fix(context): Report bounded graph evidence honestly - #119
Conversation
Build one bounded request-local dependency graph for CLI and HTTP context. Report unavailable evidence and unknown risk instead of false zero hubs or low risk. Keep prompt hooks scan-free and propagate HTTP cancellation, so agentic workflows never treat missing graph evidence as a safe change.
JordanCoin
left a comment
There was a problem hiding this comment.
The evidence direction is good, but the availability check conflates a complete edge-free graph with an incomplete scan: . I reproduced this with a valid one-file Go module: a fresh complete scan returns , , and instead of a proven zero. Please distinguish completeness using scanner provenance/coverage: complete authoritative scans with zero edges are available with zero hubs, while failed/unavailable provenance remains unavailable. Add both regression cases and I will re-review and merge.
JordanCoin
commented
Aug 12, 2026
Correction with the exact expressions omitted by shell formatting in my review: the problematic condition is |
JordanCoin
left a comment
There was a problem hiding this comment.
Re-reviewed at d108f2d. Complete edge-free graphs now report fresh available evidence with zero hubs, while explicit unavailable and failed-only provenance stays fail-closed even when edge maps contain data. Focused and full local suites pass, as do all 12 CI jobs. Approved.
Uh oh!
There was an error while loading. Please reload this page.
What does this PR do?
This prevents agentic coding workflows from treating missing graph evidence as a safe change.
Type of change
Checklist
GOENV_VERSION=1.26.5 go test ./cmd ./scanner ./watch -count=1Additional notes
The JSON envelope is version 2: hub counts are nullable and graph availability is explicit.
Developed with carefully directed, manually reviewed AI assistance.