Repository navigation
limit 75/76: one edited file no longer counts twice in touched - #62
Merged
Merged
Conversation
…twice in touched Edit/Write record file_path absolute; file-history records the same file relative to the session cwd. parseSession now resolves both against the transcript's cwd and keys touched on that identity (Windows paths folded case- and separator-insensitively). Merged entries keep the edit/write via and gain alsoVia ['file-history']. No cwd: no guessing. Measured on two real sessions: touched 68 -> 39 and 26 -> 15. Executor: glm-5.3-flash:cloud (lotor lane run 34). Orchestrator verified. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
Merged
…bsolute Edit paths - Fixtures: file-history-snapshot and file-history-delta lines no longer carry cwd (real transcripts never do). Tests that need a cwd before the first file-history line get it from a user line, as a real session does. - touchKey normalises an absolute Edit/Write file_path lexically in its own flavour (win32 for drive/UNC, posix otherwise), so `.\`, `..` and doubled separators collide with the resolved file-history twin. Two tests; both fail on the previous head. - KNOWN-LIMITS 75: this lands before #61 (which becomes 76); the doubt now names the first-cwd-only assumption and file-history before any cwd. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
…, claim narrowed Rebased onto #62 (limit 75, touched-path identity); this entry renumbered 75 -> 76 and its test file renamed to match. Parser conflict resolved by having recordTouched open the attempt's outcome and return the canonical key, which touchToolIds stores, so a tool_result settles the same entry a file-history twin merged into (tests h1, h2). - since-view: touchedRefused counts distinct refused paths per session. Every subsession receipt re-parses the whole transcript, so the old per-receipt sum showed one refusal as "(3 refused)". Tests g5, g6, g4. - text receipt: a refused path prints "(via: write, refused)". Test i. - live view: "N files (M refused)" and "(refused)" on the path; refusedPaths on the session object. Test j. - KNOWN-LIMITS 76 narrowed to PARTLY CLOSED: retcon's charter reconciliation folds touched to bare paths in bin/retcon.js (core), so a refused Write still confirms a charter item; MCP query_receipts touchedCount, the chapters view, and the since-view's per-receipt touchedCount sum are listed as still open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Review fixes pushed in 8b4993b.
Noted, not fixed:
Numbering and land order: this PR keeps 75 and must merge first. #61 has been rebased onto this branch and renumbered to 76. PR #67 also claims 75 (matcher stamp line endings); that collision is left for the owner, #67 was not touched. |
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, #70, #71: #62 takes 75, #61 takes 76, this PR takes 77. Every citation on this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note, src/views/matcher-history.js header, test/matcher-history.test.js comment). On this branch alone the numbering test reports 75 and 76 missing; that clears once #62 and #61 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, #70, #71: #62 takes 75, #61 takes 76, #67 takes 77, this PR takes 78. Every citation on this branch moves with it: KNOWN-LIMITS.md heading, CHANGELOG.md, docs/receipt-coverage.md, and the V3-03 proposal note. The staged .patch carries no limit number and is unchanged. On this branch alone the numbering test reports 75, 76 and 77 missing; that clears once #62, #61 and #67 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
githubscum
added a commit
that referenced
this pull request
Oct 22, 2026
The KNOWN-LIMITS numbering test requires contiguous entries, so numbers follow the merge order #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, this branch moves with it (KNOWN-LIMITS.md heading and the limit 53 note, src/views/matcher-history.js header, test/matcher-history.test.js comment). On this branch alone the numbering test reports 75 and 76 missing; that clears once #62 and #61 are on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WO: WO-TOUCHED-PATH-IDENTITY, lotor lane run 34. Closes the candidate limit run 33 named: every touched path appeared twice, absolute and relative.
Spec / limit: new KNOWN-LIMITS entry (numbered 75 here; #61 also claims 75, so whichever lands second renumbers to 76). Serves v3's R1 completeness: a trace that double-counts its own writes is not a trustworthy floor for the deeper rungs. Non-core: parser only.
What changed: the parser resolves Edit/Write paths (absolute) and file-history paths (relative to cwd) against the transcript's first
cwd, and keystouchedon that identity. Windows keys fold case and separators. Merged entries keep the edit/writeviaand gainalsoVia: ['file-history']. Nocwdmeans no guessing: the relative entry stays separate. Parser version hash changes.Tested:
npm test1064/1064 green on this branch (8 new tests in the new parser-touched-identity test file). Probe: main's parser and this branch's, on two real transcripts from this machine.touchedwent 68 -> 39 and 26 -> 15, with no relative paths left. Executor glm-5.3-flash:cloud wrote the code and tests. The orchestrator re-read the diff and ran the suite and probe; the executor could not run tests itself.Eval: none of E1-E6 applies directly. The closest is E2 (fidelity of what the chain says), and the probe above is the evidence.
Doubt this:
touchedblock in the parser. limit 75: a refused write no longer reads as touched #61 addsoutcomeand maps tool_use ids to paths; after this PR, that map has to carry the canonical key andrecordTouchedhas to carryoutcome. Whichever lands second needs that merge and the 75 -> 76 renumber.via.