Skip to content

worker: claims can say how they are known; reads mark them apart from bare assertions - #86

Merged
vu1n merged 6 commits into
mainfrom
claude/project-thread-ghkdsb
Nov 7, 2026
Merged

vu1n merged 6 commits into
mainfrom
claude/project-thread-ghkdsb

Conversation

@vu1n

@vu1n vu1n commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Requested by Vu · project thread

claim takes an optional evidence (≤500 chars): what was run or read and what it showed. It is stored in metadata.evidence (no migration) and lifted out by claimColumns and unjudged. Recall and briefing lines with evidence end in [checked: …] (clipped to 100 chars); expand returns all of it. Room claim takes it too.

Agents read evidence, so the write gate and judgeLate judge gatedText(content, evidence). Note: when evidence is present the keep score now sees it as well as the content; DROP_BELOW was tuned on content alone. Purge resets metadata, so it erases evidence.

From the review of Anthropic's "components of agent memory" post: the models that gained most from memory wrote how they knew each rule.

Contracts touched: claim input schema (repo and room) gains evidence; expand output gains optional evidence; compact line gains a suffix.

Verification: npm run typecheck; npm test 388/388; new test/evidence.test.ts (4 cases: mark and expand, clip and limit, gate text, purge); featuremap.py check clean.

(The branch carries a merge of main because it was reused after #85 squash-merged; the diff against main is only this change.)


Generated by Claude Code

@vu1n vu1n self-assigned this Nov 7, 2026

@vu1n vu1n left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VPS review of 313e89a: 0 finding(s), 0 blocking.

The change adds claim evidence to stored data, read responses, and immediate and delayed judging. The reported test coverage gap does not establish a reachable defect, so this finding does not block merging.

1 finding(s) dropped by the check
  • worker/test/evidence.test.ts:53 Test evidence through the write gate and delayed judging: Although the test only checks gatedText directly, both repo and room claim callers pass gatedText(content, evidence) to judge, and judgeLate receives evidence hydrated by D1Store.unjudged, so no concrete failure is demonstrated.

@vu1n
vu1n merged commit dd9edac into main Nov 7, 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.

1 participant