Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified backend/data/issues.db
Binary file not shown.
7 changes: 7 additions & 0 deletions data/dailySnapshots/2026-03-14.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"date": "2026-03-14",
"indexScore": 50,
"delta": 0,
"topKeywords": [],
"emergingConcerns": []
Comment on lines +2 to +6
}
35 changes: 35 additions & 0 deletions data/modelWeights.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"categoryWeights": {
"Pothole": 5,
"Garbage": 3,
"Water Supply": 4,
"Streetlight": 2,
"Flooding": 8
},
Comment on lines +2 to +8
"duplicateThreshold": 0.83,
"lastUpdated": "2026-03-14T19:32:45.319Z",
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot Mar 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Don't check in the generated modelWeights.json state file; the service already seeds defaults and rewrites this file on every run.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At data/modelWeights.json, line 10:

<comment>Don't check in the generated `modelWeights.json` state file; the service already seeds defaults and rewrites this file on every run.</comment>

<file context>
@@ -0,0 +1,35 @@
+    "Flooding": 8
+  },
+  "duplicateThreshold": 0.83,
+  "lastUpdated": "2026-03-14T19:32:45.319Z",
+  "history": [
+    {
</file context>
Fix with Cubic

"history": [
{
"date": "2026-03-14",
"categoryWeights": {
"Pothole": 5,
"Garbage": 3,
"Water Supply": 4,
"Streetlight": 2,
"Flooding": 8
},
"duplicateThreshold": 0.85
},
{
"date": "2026-03-14",
"categoryWeights": {
"Pothole": 5,
"Garbage": 3,
"Water Supply": 4,
"Streetlight": 2,
"Flooding": 8
},
"duplicateThreshold": 0.84
}
]
Comment on lines +9 to +34
}
2 changes: 1 addition & 1 deletion scheduler/dailyRefinementJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Issue } from "../services/types";

// Load environmental or fallback to test.db or production db
const dbPath =
process.env.DB_PATH || path.join(__dirname, "../../backend/app.db");
process.env.DB_PATH || path.join(__dirname, "../data/issues.db");

Comment on lines 9 to 12
export class DailyRefinementJob {
private db: sqlite3.Database;
Expand Down
Loading