Skip to content

fix(wave26): Address audit findings - #373

Merged
harshsinghmp merged 1 commit into
devfrom
fix/wave26-audit
Nov 9, 2026
Merged

harshsinghmp merged 1 commit into
devfrom
fix/wave26-audit

Conversation

@harshsinghmp

Copy link
Copy Markdown
Owner

Fixes all five audit blockers: project/trust/freshness gating for anchor recall, gated + degradation-aware associative expansion, corrected risk inputs, read-only pre-flight, and validated CLI flags. Adds regression tests and records W26-1..5 debt. Gate 1495/0.

Why: Audit rejected Wave 26: anchor recall was store-wide and skipped
freshness/trust, the associative CTE leaked cross-project/hidden ids and
swallowed errors, risk inputs were inverted, and pre-flight wrote access
counts and CURRENT.md.

What:
- src/retrieval/anchors.ts: project/trust/validity filters, orphaned and
  drifted anchors excluded, path normalization, stable sort.
- src/associative.ts: detailed result with degradation, project/status/
  trust gating through the normal read view.
- src/retrieval.ts: `recordAccess`/`syncConstraints` options, associative
  degradation fault note, project passed to expansion.
- src/hooks/preflight.ts: read-only pack, cwd, symbol/line inputs, 15-file
  cap, test-aware risk inputs, project-scoped anchors.
- CLI: strict boolean flag, validated budget/lines, cwd and symbols.
- Tests: cross-project, orphaned, degraded CTE, read purity, risk
  monotonicity; trajectory claims corrected; debt W26-1..5 recorded.

Verification: bun test 1495 pass / 0 fail; tsc --noEmit clean; build 434
modules; secret scan clean.

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@harshsinghmp
harshsinghmp merged commit 4508397 into dev Nov 9, 2026
@harshsinghmp
harshsinghmp deleted the fix/wave26-audit branch November 9, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant