Repository navigation
limit 75: a refused write no longer reads as touched - #61
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 19, 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>
The parser added an Edit/Write path to `touched` at tool_use time, before its tool_result, so a write the harness refused (is_error, e.g. a gate denial) landed in `touched` and sessions_since printed it as a change. Found 2026-10-19: denial at seq 36203, session receipt seq 36204 listed the hook file under touched; the file was unchanged on disk. - parser: Edit/Write touched entries carry outcome ok | error | unknown, settled by the matching tool_result; ok is sticky; no result -> unknown; file-history entries carry no outcome. - since-view: touchedRefused count (null without a receipt), "(refused)" on the path, "(M refused)" on the work line; a later non-error receipt for the same path clears the marker. Legacy receipts render unchanged. - test/known-limits-75-touched-outcome.test.js; KNOWN-LIMITS 75. Executor glm-5.3-flash (receipts seq 36244, 36257); orchestrator verified, npm test 1066/1066. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, 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>
githubscum
force-pushed
the
lotor-lane/touched-outcome
branch
from
October 22, 2026 16:53
9de6ccf to
e5c30a6
Compare
Owner
Author
|
Review fixes pushed in e5c30a6 (force-pushed with lease from 9de6ccf). This PR now depends on #62 and must merge after it. The branch is rebased onto #62's head (8b4993b). Until #62 merges, the diff here against
|
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: touched-vs-changed (lane run 33). Closes the candidate limit found in run 32; recorded as KNOWN-LIMITS 75.
What it addresses. The trace said "touched" for a write that never happened. A gate denial (seq 36203) was followed by a session receipt (seq 36204) listing the denied file under
touched. Legibility and trust: a witness that reports attempts as changes overstates what the agent did.Change (non-core: parser and views only).
touchedentries carryoutcome:ok,error, orunknown. The matching tool_result settles it.okis sticky. No result seen meansunknown. Entries that come only from file-history carry nooutcome.touchedRefusedcount (null when there is no receipt). Paths are marked(refused)and the work line readsN files touched (M refused). A later receipt that lands the same path clears its marker. Legacy receipts render unchanged.Tested.
test/known-limits-75-touched-outcome.test.jscovers ok, error, error then ok, ok then error, no result, file-history only, the Read control, the since render, a legacy receipt, no receipt yet, and multi-receipt clearing. Fullnpm test: 1066/1066. An orchestrator probe on a hand-built transcript (a denied Edit) givesoutcome: "error".Eval served. E2-adjacent, chain fidelity of what a receipt claims. No v3 eval number applies directly.
Doubt this.
is_erroris the harness's word. It is self-attested, like all capture.okEdit can still be a no-op on disk.okmeans "not refused", not "changed".outcomeand must still be read as "attempted".touchedRefusedsums per receipt. The count line can say "(1 refused)" after a later receipt landed that path, while the path itself shows unmarked. This follows the view's existing sum-across-receipts convention (touchedCount does the same), but it is inconsistent.touchedlists every path twice, once absolute and once relative.Executor: glm-5.3-flash on Ollama (session.model read on the chain at seq 36244 and 36257). The orchestrator ran the verification.
🤖 Generated with Claude Code