This repository was archived by the owner on Oct 26, 2026. It is now read-only.
Repository navigation
Commit 07da32e
docs(tooling): reserve --rewrite-governed-file by its condition, not by actor (#9383)
`check-upstream-port-parity.mjs`'s usage header reserved the flag for "the
human merging it". The reservation's real target is a SILENT rewrite of a
governed file from another repository's bytes, and that hazard is decidable
before the run: compute each upstream digest independently first and require
it to equal what the pin will hold afterwards. Stated as an actor, the rule
had to be re-ruled per card; stated as a condition it is falsifiable, and a
digest mismatch is loud.
Restate it in all four places the file addressed the actor:
- the usage header, keeping the comment column;
- the `## --resync REFUSES to rewrite governed surface` prose, which repeated
the actor framing, plus the worked example the ruling names: on PR #9300
every re-synced file came back byte-identical and every new `upstreamSha256`
had been shown to equal the sha256 of `git show origin/main:PATH` taken in
the objectstack checkout before the run;
- the doc comment on `RESYNC_GOVERNED_FLAG`;
- the refusal's own instruction line, which now asks for the proof first and
keeps the merging human as the fallback.
No behaviour change: the gating predicate (`resyncWriteVerdict`), the governed
set it borrows from `check-governed-queue-guard.mjs`, the pin ledger and every
pinned copy are untouched. The self-test's assertions on the refusal text
(path, flag, matched surface, "drifted governed port reds this gate") all
still hold: 58 cases pass, and the live verify still reports 11 ported files
at their own refs.
Claude-Session: https://claude.ai/code/session_01DAcomhvR9kKizeYgg89Vo8
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8524372 commit 07da32e
1 file changed
Lines changed: 28 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
129 | | - | |
130 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
131 | 148 | | |
132 | 149 | | |
133 | 150 | | |
| |||
360 | 377 | | |
361 | 378 | | |
362 | 379 | | |
363 | | - | |
364 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
365 | 384 | | |
366 | 385 | | |
367 | 386 | | |
| |||
400 | 419 | | |
401 | 420 | | |
402 | 421 | | |
403 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
404 | 425 | | |
405 | 426 | | |
406 | 427 | | |
| |||
0 commit comments