You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(score): grounding checker counts URLs, env vars, and HTTP paths as broken file references #164
charter score on aegis-daemon reports 177 broken path references. The top entries reveal the path resolver is not filtering non-file strings:
AEGIS_LOCAL_URL=http:/localhost:11434 — env var assignment pulled from a code block
C:/Users/kover/Documents/aegis-daemon — Windows absolute path in a markdown table
/chat, /api/runs, /webhooks/voice/complete — HTTP route paths in a table
None of these are file paths, but the grounding checker treats any string that looks like a path as a reference to validate.
False positive categories
URL strings — anything containing :// or starting with http should be excluded
Env var assignments — KEY=value lines in code blocks should not have the value extracted as a path
HTTP routes — strings starting with /api/, /webhooks/, /chat etc. in markdown tables are URL paths, not filesystem paths
Windows absolute paths — C:/... paths in documentation tables are reference documentation, not resolvable local paths
Env var names — bare ANTHROPIC_API_KEY tokens are not file paths
Impact
These false positives inflate the broken reference count from a likely real count of ~5–10 to 177, dragging the Grounding score from what should be ~18/20 to 7/20. This makes the score misleading and undermines trust in the metric.
Fix
Before running path resolution:
Strip any token that matches https?:// (URL)
Strip any token that matches ^[A-Z_]+= (env var assignment)
Strip any token that starts with /api/, /webhooks/, /health, /chat (HTTP route heuristic, or: only validate paths that resolve to a plausible relative file under the repo root)
Strip Windows absolute paths ([A-Z]:/)
Only validate paths containing a file extension (.ts, .md, .json, etc.) OR paths that start with ./ or ../ (explicit relative references)
Alternatively: require file references to appear in a specific ADF notation (e.g., ref:path/to/file) rather than doing heuristic path extraction from all text.
Activity
stackbilt-admin commentedon May 23, 2026
Fixed in PR #168
fix(score): filter URLs, env-vars, Windows paths, and HTTP routes fro…