fix(cli_guard): join audit rows by repo_root, not the removed commit_scope #100

Closed
opened 2026-06-04 06:29:45 +00:00 by coilysiren · 0 comments
Owner

coily/cli-guard removed the --commit-scope flag and now stamp the git toplevel only as the repo_root audit field. The cli_guard ingest still joined rows to repos via commit_scope, so every current row had commit_scope: null and landed under repo 0 (unrouted).

Fall back commit_scope -> repo_root at the join in refresh.rs, refresh the stale comments in db.rs / mod.rs / refresh.rs, and add smoke coverage for a repo_root-only row routing correctly.

coily/cli-guard removed the `--commit-scope` flag and now stamp the git toplevel only as the `repo_root` audit field. The cli_guard ingest still joined rows to repos via `commit_scope`, so every current row had `commit_scope: null` and landed under repo `0` (unrouted). Fall back `commit_scope` -> `repo_root` at the join in `refresh.rs`, refresh the stale comments in `db.rs` / `mod.rs` / `refresh.rs`, and add smoke coverage for a `repo_root`-only row routing correctly.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
coilyco-flight-deck/repo-recall#100
No description provided.