Skip to content

fix(recall): verify literal facts and preserve stored attribution - #357

Merged
abogartz merged 1 commit into
abogartz:retrieval-fix-20261107from
WhollyMindless:fix/349-checked-constants
Nov 8, 2026
Merged

abogartz merged 1 commit into
abogartz:retrieval-fix-20261107from
WhollyMindless:fix/349-checked-constants

Conversation

@WhollyMindless

Copy link
Copy Markdown
Contributor

A commented-out TAX_RATE or const TAX_RATE = calculateRate() could produce a supposedly code-checked CONFLICT and a fix-the-code verdict. Parse real top-level literal declarations and keep plain guidance when the source or claim is undecidable. Duplicate names, invalid/unreadable source, source links and exhausted budgets cannot select an arbitrary authority.

Keep selected as the original stored rows. A separate render map lets whole-line budgeting recognize a surviving CONFLICT while the use ledger receives stored prose; coverage references come from the rendered text. Percent normalization no longer equates 10% with 10 or invents a rounding mismatch for 8.2% versus 0.082.

Promote the already-locked @babel/[email protected] to a pinned runtime dependency. It parses without executing source and loads only when an opt-in code check runs. A fresh-process regression proves the default OFF path does not load it. Existing file/depth/byte caps remain; incomplete scans abstain.

This targets experimental retrieval-fix-20261107@0220d9b after #356. Carry it into #343's contradiction-surface split; this does not land the experimental branch on main or take over the bot-owned split ticket. contradictionSurface remains default OFF.

Validation on native Windows / Bun 1.4.4:

  • Before implementation, 7 new regression cases failed. The complete experimental-base suite now passes: 1075 pass, 32 skip, 0 fail; 12828 assertions. Typecheck and lint/format pass (existing warnings remain).
  • Separate integration with main b235905, preserving fix(capture): fire on 2.2.5 hosts and store facts, not briefs (#328 #329) #354 and fix(security): reserve capture guidance provenance at write boundaries #355: 1085 pass, 32 skip, 0 fail; 12869 assertions, plus typecheck. The original false-fact probes now render plain guidance and retain the original selected object.
  • Tests cover comment/string/template decoys, computed/local/ambiguous declarations, typed literals, links/budgets, undecidable claims, percentages, and actual epoch ledger/coverage behavior.
  • On minimum Bun 1.3.0, 15 detector/comparison tests pass. A separate epoch probe hits an evidence-file ENOENT with the feature OFF on both unchanged base and this head; full minimum-runtime integration is not claimed here.

Refs #349. Emission reliability and real-model/merged-main confidence runs remain separate acceptance gates. Authored implementation, not an independent approval.

@abogartz
abogartz merged commit e8ea4b0 into abogartz:retrieval-fix-20261107 Nov 8, 2026
4 checks passed
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.

2 participants