Repository navigation
limit 53: a matcherHash resolves to its commit; found limit 77 (stamp is line-ending-sensitive) - #67
Conversation
|
Review fixes pushed in 056f3f2. All three findings re-checked against the code first; all held. Fixed
Not renumbered: limit 75 is claimed three times. Per the instruction, nothing was renumbered. Open PRs that each add a
The owner picks the merge order; whichever lands later renumbers, along with the in-text citations (in this PR: the KNOWN-LIMITS 53 paragraph, caveat 4 in |
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>
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>
|
Merge-order fix: limit renumbered 75 -> 77 (commit d3ba724) Numbers assume the owner's merge order: #65, #66, #64, #63, #60, #62, #61, #67, #68, #69, #70, #71. #62 takes 75, #61 takes 76, this PR takes 77, #71 takes 78.
Expected conflict at merge time: after #61 lands, KNOWN-LIMITS.md conflicts at the end of the file (both append). Keep both sides, #61's 75 and 76 first, then this PR's 77, with a blank line before #68's body says the limit "is numbered 75 there"; that is now 77. #68 itself cites no number in code, so it was left alone. |
…tamped it New non-core reader src/views/matcher-history.js re-derives the stamp at each commit that touched the policy directory by importing that commit's own code. Building it found KNOWN-LIMITS 75: the stamp depends on checkout line endings (CRLF vs LF), so the reader computes both and reports which matched. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… stamp-move claim
- matcher-history: a ref or sha starting with '-' is refused before git
runs. The argv vector stopped splitting, not option parsing: before
this, matcherHistory(repo, { ref: '--output=<file>' }) made git log
write that file (probed on this clone). matcherHashAt returns null and
matcherHistory returns [] for such input. The comment claiming an argv
vector alone was enough is corrected. New test fails without the guard.
- KNOWN-LIMITS 75: the core fix would not move the stamp on every
machine. matcherHashInputs() does not hash its own source, so LF
checkouts keep their stamp and only CRLF checkouts move, onto the LF
stamp. Reworded, with the condition that makes it true.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
d3ba724 to
ac717a6
Compare
WO: KNOWN-LIMITS 53, reader half (lane run 39). v3 is still blocked on rulings, so this is the next KNOWN-LIMITS item.
What it does. New non-core reader
src/views/matcher-history.js: for every commit that touched the policy directory it imports that commit's own policy code into a temp dir and calls that commit's ownmatcherVersionHash.findMatcherHash(repo, hash)then maps a receipt'smatcherHashto the commit(s) that produced it, so "the matcher changed" becomes "here is the diff". On this clone: 28 policy commits, 15 stamped, 8 distinct stamps, ~2 s.New limit found and recorded (KNOWN-LIMITS 77).
matcherHashdepends on the checkout's line endings.toString()returns source as loaded, and a Windowscore.autocrlf=truecheckout is CRLF. At5198a07the live stamp on this machine isc4165ee9ff7612bd, while the same commit as LF ise0877fab0f459e0c. So a hash difference proves a source-text difference, not a matcher change. The reader recomputes both LF and CRLF and reportseol. The real fix belongs in core (normalize inside the hash inputs), so it is left for a signing sitting and is not in this PR. It would move only CRLF-checkout stamps, onto the LF stamp:matcherHashInputsdoes not hash its own source, so LF checkouts keep theirs. (Corrected after review; this sentence first said every machine's stamp would move.)Tested.
npm test1065/1065 (+9). The real-repo smoke test ran on this machine (not skipped) and asserts the live stamp equals the LF or CRLF recompute of HEAD. That test failed before the CRLF change, which is how limit 77 was found. Fixtures: literal-hash repos, pre-stamp commit, a crashing historical file, a self-hashing multi-line fixture that proves LF and CRLF diverge and that each resolves with the righteol, temp-dir cleanup count, and a boguseolthat throws a TypeError.Eval served. None of E1-E6; this is limit work, not a v3 WO.
Executor. glm-5.3-flash:cloud through dispatch-to-ollama.ps1, two passes (r1 plus a CRLF revision). Its sandbox could not run node or npm, so the orchestrator ran every test. Orchestrator-written: the KNOWN-LIMITS prose, plus a mechanical renumber of the limit citation from 77 to 75, then back to 77 (2026-10-22) to follow the merge order.
What a reviewer should doubt.
known-limits-numberingreports 75 and 76 missing until limit 75/76: one edited file no longer counts twice in touched #62 and limit 75: a refused write no longer reads as touched #61 are on main.nullmeans two things: "predates the stamp" and "historical import failed" (for example, an old policy file importing something outside its directory). Against this history the nulls are all older than the first stamped commit, so neither one hides a real stamp. A future refactor could change that.bin/file is a protected write. The executor's attempt was gated (request 708d7248) and left to lapse. A CLI wrapper needs a signature.