Repository navigation
Realize fix-pin-value-boundary-and-sentinel-split: refuse the fabricated pin, and split the sentinel that covered two failures - #478
Merged
Conversation
The module already carried the rule and carried it in one place only. LOOSE_SHA_RE guards both sides of a forty-hex token and its comment says why: a hex digit boundary inside a longer hex run is a word boundary, so \b would read a sha256 as two pins. Every word of that applies to the four expressions that BUILD sites — _field_re, _VOCAB_RE and the two prose members' own patterns — and not one of them carried it. So a sixty-four-character digest under a declared pin key produced a forty-character prefix of a value nobody wrote, and the verification then judged THAT for reachability. Measured on a fixture whose digest begins with a real reachable commit, the committed module answers `pass`: it certifies a provenance claim the artifact never made. The other direction is no better and is likelier — an orphan reported against a record whose value is intact, sending a reader to retention for a defect that does not exist. The fix is a boundary, not a grammar, and it is now NAMED: HEX_BOUNDARY is declared once and referenced by all four builders, with LOOSE_SHA_RE rebuilt from the same constant so the module cannot drift against itself. No leading guard — the value group is already anchored by \s*"? and an inert guard beside a live one reads as live to the next editor. Nothing a conforming pin does moved. All six shapes still build the same site: bare, quoted, JSON, sequence item, comment-trailed, and each prose form. The refused value is not dropped either — it reaches the non-commit classification WHOLE, all sixty-four characters, as the undeclared-value defect the promoted requirement already defines. Q1 ruled it rides that finding rather than earning a class of its own, and the measurement agrees: uncovered and uncovered_non_pins both stay zero. The corpus does not move, and that was checked on ONE TREE rather than across the merge that landed mid-realization: pre-edit module and post-edit module against the same commit, summary string identical, all 66 site rows identical, all 7 non-pin rows identical, not one of fifteen counts changed. It does not move because nothing is there to move — 1119 files in the scan roots, 182 read, 0 values of 41 or more hex characters under any vocabulary key. A test now asserts that zero, so the day one arrives it is a finding. Both prose patterns are the reason this owes a structural test rather than more examples. Removing either boundary was caught by NOTHING behavioural — no artifact in the corpus exercises a prose pattern — and only by the test that enumerates every site-building expression from the declaration and runs each against a whole object name, a 64-hex value and a 41-hex run. A prose member added later with an unguarded pattern fails on the day it lands. Co-Authored-By: Claude Fable 5 <[email protected]>
The inherited record named three call sites emitting "unknown" and asked for them to be split onto three conditions. Re-measured, there are five, one of them is already correct, and one fires on TWO conditions by itself — so this is not a rename and could not have been done by one. avatar_f0._git_file_commit ran subprocess.run with no check and never read out.returncode, so `out.stdout.strip() or "unknown"` was reached identically by a git log that SUCCEEDED and found no commit for the path and by one that FAILED and produced nothing because it failed. The first is dirty-worktree: the repository is readable, the content is real, no commit holds it. The second is unreadable-repository: nothing was established. A branch on the return code had to exist before either member could honestly be written, and it now does. snapshot_registry.index_entry keeps its member, which corrects the inherited record. Its condition IS unestablished-revision — the entry has no recorded revision, the repository is readable, and the emitter cannot say whether the snapshot's generation lacked one, could not fetch one, or never recorded one. Writing a stronger member there would assert a condition nobody established. Only the literal moved, to the declared constant (Q3). A SIXTH CONDITION turned up in the re-measurement and the packet's own reasoning said it could not exist. Task 3.3 argued no return-code branch was needed in _git_head because a failed rev-parse always produces nothing. Measured against git: on an unborn HEAD it prints the literal string HEAD on stdout and exits 128, so the committed code returned "HEAD" as the repository's revision — neither a commit name nor a declared sentinel, and exactly the class of defect this packet exists to fix. The vocabulary already assigns the unborn case to unreadable-repository BY NAME, so reading the return code there legislates nothing and moves no ruled member; it stops a third failure being spelled as a pin. Recorded in tasks.md against the premise it corrects rather than performed quietly. Every condition below is CONSTRUCTED, never mocked: an uncommitted file in a real repository, a directory that is not a repository, a freshly-inited repository with an unborn HEAD, and — for the exception return — an emptied PATH so subprocess.run raises FileNotFoundError for real. That last one is a correction: the first attempt pointed at a missing directory, and `git -C <missing>` does not raise, it exits 128, so the fixture had been exercising the return-code branch under the exception test's name. The mutation run is what caught it. site condition emits snapshot_registry.index_entry unestablished-revision unknown _git_file_commit rc==0, empty dirty-worktree uncommitted-worktree _git_file_commit rc!=0 unreadable-repository uncommitted _git_file_commit raises unreadable-repository uncommitted _git_head rc!=0 (incl. unborn) unreadable-repository uncommitted _git_head empty unreadable-repository uncommitted _git_head raises unreadable-repository uncommitted The emitter tuples follow the split and the UNKNOWN note stops claiming three call sites across three conditions — that sentence became false the moment this landed, and a declaration asserting what the code contradicts is the drift the vocabulary exists to stop. unused_sentinels() still returns empty and declaration_defects() still returns empty: every member keeps at least one emitter, and nothing was stranded. No committed bytes move — seven legal non-pins, six uncommitted-worktree and one not-applicable-ad-hoc, and not one "unknown". Co-Authored-By: Claude Fable 5 <[email protected]>
…ted it Twenty-three of thirty-two boxes ticked, and the nine left open say why rather than sitting blank. The four in the archive gate are deliberately untickable from a branch: they read a merge commit that does not exist yet and re-run on a tree nobody has built, and recording a measurement nobody took is the same falsification this packet's subject matter is about. The merge is the orchestrating session's act. The five in section 6 each carry a disposition instead of a tick. Two dispositions changed while the work was done, and both are recorded against the text they correct rather than smoothed into it. Task 3.3 reasoned that _git_head needed no return-code branch because a failed rev-parse always produces nothing. That premise is false — an unborn HEAD prints HEAD and exits 128 — so a branch was added. The ruled OUTCOME is untouched: every _git_head return still writes the same single member. The reason moved; the ruling did not. Section 6.1 inherited three unrepaired generators and this packet narrowed none of them, which is the honest disposition. What it adds is that the unborn-HEAD measurement applies to all three verbatim — _head_sha(), git_head_revision() and RealGit.head_sha() each read only stdout, so each returns the literal string HEAD today. That is measured now rather than conjectured, and the item is more urgent than when it was inherited. Section 6.4 asked whether a generator must import a declared spelling rather than retype it. Q3 ruled to do it here and legislate nothing, on the ground that one instance is not evidence for a rule. The instance count is now four generators importing and none retyping — a practice with no exception left, which is the condition under which legislating costs nothing. This session still legislated nothing. The next reader deciding otherwise now has the count. Section 6.5 held under a real temptation to cross it. The fix refuses a sixty-four-character hexadecimal value and a release digest is exactly that shape, so extending the class to cover digests was one edit away while the code was open. The class, its key vocabulary and its non-member exclusions are byte-unchanged: what moved is only what a value must look like to build a site inside the class as it already stood. Numbers, all re-measured on this branch rather than copied. doc-health suite 1270 -> 1292 passed, 0 failed, exit 0 read from the status rather than a tail. openspec validate --all --strict 78 passed, 0 failed. The declared class identical on every one of fifteen counts, compared pre-edit against post-edit on the SAME tree so the thirteen commits main landed mid-realization could not be mistaken for an effect of this change. Forty release bundles parsed, 7396 entries walked, none of the six edited files a member of any of them, so no contract tag is owed. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
This PR realizes the OpenSpec change packet fix-pin-value-boundary-and-sentinel-split by (1) preventing fabricated 40-hex “pins” from being derived out of longer hex runs (e.g., sha256 digests) and (2) splitting the previously overloaded "unknown" sentinel into condition-accurate members by reading subprocess return codes.
Changes:
- Introduces a single
HEX_BOUNDARYconstant inscripts/doc_health/pin_class.pyand applies it to every site-building regex (including prose-member patterns), preventing truncation-based fabricated pins. - Updates generators to import declared sentinel spellings (not retype literals) and fixes the avatar harness to distinguish “dirty worktree” vs “unreadable repository” based on
returncode. - Adds targeted regression + structural tests to pin both “refusal” behaviors and prevent future regressions (including prose-member boundary coverage).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/doc-health/test_sentinel_vocabulary.py | Adds constructed-condition tests to verify the "unknown" split and prevent any avatar emission site from writing the weakest member. |
| tests/doc-health/test_pin_reachability.py | Adds regression + structural tests ensuring no pin site is built from over-long hex runs and that all builders carry the shared boundary. |
| scripts/ideation_dashboard/snapshot_registry.py | Switches the snapshot index projection to use pin_sentinels.UNKNOWN (imported) instead of retyping "unknown". |
| scripts/doc_health/pin_sentinels.py | Updates vocabulary documentation and emitter tuples to reflect the post-split reality (including avatar harness emitters). |
| scripts/doc_health/pin_class.py | Defines HEX_BOUNDARY once and applies it across all pin-site builders, including prose pattern strings; rebuilds LOOSE_SHA_RE from the shared constant. |
| openspec/changes/fix-pin-value-boundary-and-sentinel-split/tasks.md | Marks realization tasks as complete with measured results while explicitly leaving the archive gate section untouched per packet scope. |
| experiments/avatar-brokered-call/src/avatar_f0/cli.py | Imports declared sentinel constants via explicit path insertion and distinguishes git failure modes via returncode in _git_file_commit and _git_head. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This was referenced Aug 29, 2026
brettheap
added a commit
that referenced
this pull request
Sep 22, 2026
…e forced order is complete, and § 4.2's registered obligation discharges inside this amendment ZERO marker changes, still: 67 [x] / 3 [ ] / 2 [~] of 72, `^- \[.\]` lines byte-identical to main's in text and in order. This round folds landings the holder sent while the amendment was open; the Copilot finding budget stays closed at round 5. § 8.7 — STEP 3 LANDED and the forced order at `#656` `5767733963` IS COMPLETE. `opensoft/xFactory` #478 → `1385f380117f54f1e266e239a9e467e730ce3f29`, `mergedAt` 2026-09-22T01:33:07Z, a MERGE COMMIT (two parents). The three pointers are read AT that commit rather than from its title: openxFactory → `aaddda66`, openDox → `dc7aa08f`, openXdox → `646f1dc0`. So the equality this box's own line checks holds again for BOTH legs — STEP 1 broke it by design and STEP 3 restores it, which is what makes the order forced rather than preferred. FOUR FILES IS NOT A BREACH OF #474's TWO-FILE INVARIANT — IT IS A DIFFERENT SYNC. #474 was the openxFactory-POINTER sync (that gitlink plus the clearing PIN); this is the THREE-POINTER sync, so its shape is three gitlinks plus that same PIN, and #474's pair moves here too for #474's own reason. THE WHOLE ORDER IN ONE LINE: STEP 1 openXdox #15 → `646f1dc0` (21:51:39Z) · STEP 2 openxFactory #1134 → `aaddda66` (01:12:58Z) · STEP 3 xFactory #478 → `1385f380` (01:33:07Z). §§ 5.1 AND 4.2 — BOTH HALVES OF THE HEADER AMENDMENT HAVE LANDED, so round 2's "NEITHER pin file carries the amended header on a landed commit" is superseded and kept with its clock. The openXdox half is `opensoft/openXdox` #16 → `7194c06ca456d1675e32e890b4acf640b14bfc60`, `mergedAt` 01:33:20Z, a squash, ONE file. MEASURED IN THE LANDED BYTES rather than taken from the title: it cites the ruling `5768144952` twice and no longer contains the trigger sentence at all, while `commit:` still reads `dc7aa08f` — the header moved, the referent did not. § 4.2's obligation was registered as owed at 00:45Z and discharged at 01:33Z, inside one amendment, and both are recorded: a ledger that records only what is still outstanding cannot be used to check what was. A CLOCK PATTERN WORTH MORE THAN ITS FOUR FIGURES: #1134 handed 01:13:04Z / measured 01:12:58Z; openDox-code #34 handed 01:07:26Z / 01:07:19Z; #478 handed 01:33:14Z / 01:33:07Z; openXdox #16 handed 01:33:28Z / 01:33:20Z. Four reports, every one six to eight seconds fast — a systematic offset, not four slips, and it changes no gate. This packet names the FIELD beside every clock precisely so an offset like that is visible. `openspec validate split-opendox-two-layer-product --strict` valid · `proposal-support.py . verify` ok · `validate-sequenced-after.py . --ledger-diff` clean (222 rows). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap
added a commit
that referenced
this pull request
Sep 22, 2026
…is qualified, the pin-shape ruling is recorded at the box that owns the direct pins, and STEP 2's openXdox target is corrected (#1135) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs #656 (stays OPEN). **`split-opendox-two-layer-product` `tasks.md` AMENDMENT #11 — a small pre-archive amendment: one registered citation qualified, one ruling recorded at the box that owns its object, and one figure corrected where two boxes of amendment #10 disagreed.** Branched from the landed `main` at **`6b298a1e`**. **Ledger 67 `[x]` / 3 `[ ]` / 2 `[~]` of 72 BEFORE and AFTER — ZERO marker changes**, verified rather than asserted: the file's `^- \[.\]` lines are **byte-identical to `main`'s in text and in order** (`diff` empty). One file, **+133 / −2**; the two deletions are the two lines the § 8.4 citation is repaired in. The three still open are §§ **5.6, 8.4, 8.9**; §§ 7.3 and 7.4 hold their `[~]`. Rule 6 applies. > **Nothing here ticks anything, and that is the shape of the act.** Two of the three items were REGISTERED at amendment #10's head and deliberately not pushed; this is the amendment that carries them, which is the half of "register it" that makes registering honest. ## § 8.4 — the `assert_landed_pin` citation is qualified IN PLACE (`#656` `5768299637`) Copilot's finding at amendment #10's head `525fe5b2` — LOW, *"Unresolvable citation path for assert_landed_pin"* — **was correct**. § 8.4 cited `specs_floor_block.py::assert_landed_pin` bare, and **no file of that name exists anywhere in `openxFactory`**: the function is codexFactory's, and this same document already qualifies it properly at § 5.6. Folded **verbatim in the words Brett Heap wrote out for this amendment**: codexFactory's `scripts/merge_master/specs_floor_block.py::assert_landed_pin`. **It is repaired in place rather than kept-and-superseded, and the rule is the packet's own**: a bookkeeping amendment fixes stale or under-qualified **COORDINATES** — § 7.3's locator took exactly this treatment at amendment #10 — and does not re-word what ratification was over. *The rule's words are unchanged; only the path that finds it is.* **Why it waited one amendment, written into the box so the delay does not read as neglect**: the finding under-qualifies a citation in a box that **does not tick** — § 8.4 is one of the three still `[ ]` — so it falsified no tick and no evidence line, and this lane moves a reviewed head only for a finding showing that a **tick is wrong**. Six pushes had already re-run that gate. *The cost of that rule is exactly this: a true finding waits one amendment, and it is carried in writing so that waiting cannot become losing.* ## § 5.1 — the PIN SHAPE is ruled, and it lands at the box that owns the direct pins (`#656` `5768144952`) **RULED 2026-09-21T22:03:33Z by Brett Heap, verbatim *"(b) for the pin shape, keep going"***, answering the RULING NEEDED at `5768088579`. **`files:` and `pinned_by_commit_only:` stay DEFERRED in BOTH direct pins**, on the ONE-LINK-UP precedent this chain already runs on and which `scripts/verify-openxdox-pin.py` reached first: the whole-tree `sorted-ls-tree-r-v1` digest addresses **every byte** of the pinned root, so no member can be undeclared and none can be added or altered without changing the referent. It discharges the completeness obligation those two lists exist to serve, and discharges it **more strongly** than an enumeration; the legs the digested artifacts sit in are themselves pinned by commit **and** digest by their assembly root. *An enumeration here would add a second, weaker statement of one fact — and a second statement is a thing that can drift.* **The trigger the header set for itself DID fire, and the ruling answers it rather than avoids it.** The revisit condition is the first commit whose pinned manifest carries a non-empty `entries:` row: | measured | | | --- | --- | | commit | openDox **`dc7aa08f`** (the commit `dox-v1.0` tags), 2026-09-21 | | manifest | `contract_bundle_version: dox-v1.0`, **3** entries | | the three | `xfactory-workbench-chat-turn`, `xfactory-workbench-model-catalog`, `ideation-workbench` | | where they live | `contracts/schemas/…` in `opensoft/openDox-spec` at **`8fe8c4c7`**, digested per file | So **the revisit is recorded DONE with the digest reading as its resolution**, and the trigger sentence — *"that artifact then moves into a `files:` list here"* — is **amended rather than left standing contradicted**. *Two recorded readings in this family disagreed, and a ruling that leaves both in the tree leaves the next reader to pick one; that is why the amendment is written into the pin FILE, beside the sentence it supersedes, and not only onto the issue.* **Why § 5.1 and not § 4.2**: the ruling is about the shape of a **DIRECT** pin, and the two direct pins `openxFactory` declares — `contracts/openxdox-pin.yaml` and, since RULED **Q7**, `contracts/opendox-pin.yaml` — are § 5.1's own object, with the two gitlinks they move with. § 4.2 owns openXdox's pin of openDox, one link further down the same chain, and takes its own record. **The marker does not move.** § 5.1 is `[x]` on `#917` → `edf0e24f`, and a later advance of a pin it already ticked on does not re-open it. ## § 4.2 — the judgment stands and its FIRST REASON does not The recorded hand-act judgment — that the per-file `sha256` and `pinned_by_commit_only:` lists are both empty — rested on **two** reasons, and the first has expired: openDox's manifest no longer reads `contract_bundle_version: none` with `entries: []`. The same ruling **keeps the judgment on its second reason**, the whole-tree digest. **What this box now OWES, registered and not discharged**: `openXdox/contracts/opendox-pin.yaml` still carries the **un-amended trigger sentence** at openXdox `main` **`646f1dc0`**. The identical header amendment the `openxFactory` side takes inside STEP 2's own pull request is owed here in a small follow-up by the same actor after STEP 3. *Named at the box that owns the FILE, because an obligation recorded only where it was ruled is an obligation the file's next reader never meets — and the ruling's own words state the gap (the claim posted as `5767868394` was an earlier draft that lacked this finding) rather than closing it quietly.* **The tick is undisturbed**: § 4.2 ticked on the file's **fields** at openXdox root `eca0b597` — product, source repository, an assembly-root `commit:`, `revision_kind`, the `sorted-ls-tree-r-v1` digest and the RULED ASK-1 migration triple — and a later advance of the `commit:` removes none of them. *A pin that moves is a pin that works.* ## § 8.7 — STEP 2's openXdox target is corrected, `2073e3a9` → `646f1dc0` Amendment #10's AGGREGATION-SIDE RECORD A2 wrote step 2 as *"`openDox` → `dc7aa08f`, `openXdox` → `2073e3a9`"*, while **§ 4.6 of the same amendment wrote `646f1dc0`**. `646f1dc0` is right, and the gap between the two commits is the whole of STEP 1: - `2073e3a9` is the commit **`xdox-v1.0`** tags, and its `contracts/opendox-pin.yaml` still pins openDox at `c4c5014d`; - `openxFactory`'s `scripts/verify-opendox-pin.py` enforces a **LOCKSTEP** — its own direct openDox `commit:` must equal the `commit:` read from `openXdox/contracts/opendox-pin.yaml` at the pinned gitlink — so pinning `dox-v1.0` and `2073e3a9` together is **REFUSED**; - `openXdox` **`#15` → `646f1dc0`** is the act that makes step 2 possible, and `openxFactory` **#1134** moves the `openXdox` gitlink to `646f1dc0` exactly. **The sentence above the correction is kept**, because it is the reading the claim was written under. *The forced order at `#656` `5767733963` names its own openXdox target as **X**, a variable step 1 resolves; that record resolved it from the TAG instead of from the LANDING, which is the one substitution the order forbids.* ## STEP 2 and STEP 3 are recorded as POSITIONS, not landings | step | state, measured at the forge | recorded at | | --- | --- | --- | | **2** — `openxFactory`'s nested leg-advance | **#1134**, `change/advance-nested-opendox-openxdox-legs`, head **`ca2c8a82`**, DRAFT, base `main`. **Six files**: both pin files (`commit:` + `digests.tree_sha256`), the `openDox` gitlink `c4c5014d → dc7aa08f`, the `openXdox` gitlink `88a1047e → 646f1dc0`, and both verifiers' tests. It carries the `openxFactory` half of the pin-shape amendment **in the same landing as the pin it amends**. | § 5.1 | | **3** — the aggregation three-pointer sync (claim `5767572080`) | **has not opened**: `opensoft/xFactory`'s five open pull requests at 00:40Z are #396, #160, #22, #21, #5, none a pointer sync. | § 8.7 | **Amendment #12 carries both shas.** This amendment records the act, its object and its head, and refuses to record a merge that has not happened — the same standard §§ 3.8/4.6 held to for their tags. ## What is deliberately NOT in this amendment **The landings of 2026-09-21 that arrived after amendment #10's head are already in the file** — checked against `origin/main` rather than assumed: `openXdox` **#15 → `646f1dc0`** is recorded at § 4.6 (`#656` `5768022822`) and the **fourth MIGRATION_PIN ceremony**, `xFactory` **#475 → `c88d1fdd`**, at § 5.6 with its four gates (`#656` `5768064136`). Amendment #10 carried both; re-recording them would be a duplicate, not a record. **#1131's own landing is carried by the ledger count alone** — this amendment IS that record. ## Copilot round 1 — TWO FACT findings, both right, both taken as fixes (head `22b9af23`) **Finding `r4067623184` (MEDIUM) — *"Empty pin resolution omits required per-file hashes"* — is right in the delta, and the amendment's prose was wrong to read as settled.** Measured in this packet's OWN ratified `neutral-product-pin` MODIFIED requirement: | `specs/neutral-product-pin/spec.md` | what it says | | --- | --- | | **`:87-100`** | the **SOURCE-TREE** clause: the pin *"SHALL carry the product's COMMIT, its `revision_kind`, a per-file `sha256` for every artifact the product's own manifest digests per file, and `pinned_by_commit_only:` for every artifact the product content-addresses by commit alone"* | | **`:102-121`** | the one-digest-addresses-every-byte reasoning **is in the requirement** — and it is scoped to *"WHERE THE PRODUCT IS DISTRIBUTED AS A PUBLISHED, CONTENT-ADDRESSED ARTIFACT RATHER THAN AS A SOURCE TREE"* | | **`:123-138`** | the runtime clause **this packet itself added**: the deployment declaration *"SHALL NOT be read as permission to skip the digests — commit and per-file `sha256` remain the trusted referent exactly as for a file-read pin"* | **openDox is pinned as a SOURCE TREE, by commit**, so `dc7aa08f`'s three per-file entries make that obligation **non-vacuous for the first time** — exactly what the pin header's own trigger anticipated. **SETTLED and NOT SETTLED are now stated separately in the box.** Settled: what the two pin FILES carry today — Brett's word at `5768144952`, already executed. Not settled: whether the source-tree clause is discharged by a whole-tree digest — **normative text**, therefore a spec-delta-class act, on the disposition RULED `5700622683` gave § 7.1's scenario-4 defect and § 7.3 records for its own ratified trigger phrase: registered, owed from an act that CLAIMS the delta, never repaired by a bookkeeping amendment. > **RULING NEEDED** (registered in the box, not left on a pull request): **(a)** both direct pins carry the three per-file `sha256` entries plus an explicit `pinned_by_commit_only: []`, the deferral narrowing to the SHAPE of the lists rather than their existence; **(b)** the source-tree clause is amended to admit a whole-tree `sorted-ls-tree-r-v1` digest as an EQUIVALENT discharge — the reading the ruling already applies one medium over; **(c)** the ruling stands as a recorded EXCEPTION, named at the box and at the delta. **REC (b)**, because it leaves ONE rule in the corpus instead of a rule and an exception. § 4.2 carries a pointer to the same tension, so the actor taking that file's follow-up meets it **before** editing the header rather than after. **Finding 2 (Copilot's overview — the intervening `6df0a030`) is also right.** § 8.7's correction said the two commits are *"one commit apart"*. **Measured on the root's own history they are two**, and only the second is STEP 1: `2073e3a9` (#13, release surface, 20:56:18Z) → **`6df0a030`** (#14, CHANGELOG `draft` → `standard`, 21:39:17Z, **touching no pin**) → **`646f1dc0`** (#15, 21:51:39Z, the pin advance that IS step 1). *A reader counting back one from `646f1dc0` lands on a CHANGELOG edit rather than on the tag — the off-by-one locator class this packet has already spent three amendments on. Fixed rather than tidied away, and the correction-of-a-correction is left on the page.* **Markers are still untouched after both fixes**: `67 [x] / 3 [ ] / 2 [~] of 72`, and the `^- \[.\]` lines remain byte-identical to `main`'s in text and in order. ### Copilot round 2 — one LOW finding, right, taken as a fix (head `439843f6`) **`r4067646318` — *"Pin-file trigger amendments remain incomplete"*.** § 5.1 wrote that the trigger sentence *"is AMENDED"*, which reads as a landed fact, while the same box's execution paragraph two below records the `openxFactory` half as **in flight** in `#1134` and the openXdox half as **owed**. One box stated a thing as done and, further down, as pending. It now reads **"is RULED AMENDED"**, with a paragraph stating the split in terms: **as this amendment is written, NEITHER pin file carries the amended header on a landed commit** — the `openxFactory` side is in flight inside STEP 2's pull request, the openXdox side is not yet authored. *What is DONE is the ruling and the revisit it answers; what is PENDING is the execution, in two pull requests.* **The finding's reasoning about the archive is why it earned a head**: a ledger that reads *"amended"* where it means *"ruled to be amended"* is how an archive comes to treat outstanding work as closed. This packet has refused that at § 3.7 (three candidate heads), § 4.5a (an abbreviated command) and §§ 3.8/4.6 (a live read of a tag ref), each time by recording nothing but a landed sha as landed — and neither STEP 2 nor STEP 3 is recorded as landed anywhere in this amendment. **Three findings across two rounds, all three FACT-class on this amendment's own prose, all three taken as fixes; zero registered.** Markers untouched throughout. ## Round 3 — STEP 2 has LANDED, and three of its handed figures are corrected **`openxFactory` #1134 → `aaddda666165655a60abc1720f271e2e967e3bdc`, `mergedAt` 2026-09-22T01:12:58Z** — the STEP 2 nested leg advance. Six files; both gitlinks at **`dc7aa08f`** and **`646f1dc0`** exactly. **The in-flight sentences are SUPERSEDED and KEPT with their clock** (measured 00:36Z, landed thirty-six minutes later), which is this packet's standing treatment of a position overtaken by an act. | handed | measured | why it is recorded | | --- | --- | --- | | `mergedAt` 01:13:04Z | **`mergedAt` 01:12:58Z**, commit date **01:12:57Z** | the seconds change no gate — **the FIELD does**, which is why this packet names the field beside every clock | | (unstated) | **a SQUASH**: ONE parent, subject ending `(#1134)` | not the two-parent MERGE COMMIT the two assembly-root pin landings took | | head `ca2c8a82` (measured 00:36Z) | **`a28d68a6`** is `#1134`'s final PR head — the **source ref** that was squashed; **`aaddda66`** is the commit on `main` | three shas, none of them each other: a head is a MOVING reference until a landing fixes a different sha. *Corrected on Copilot finding `r4067741174`, which caught an earlier round writing "the head that landed" — the one error class this packet is built to catch, since it ticks on landed shas and nothing else.* | **One narrative defect in `#1134`'s own body is REGISTERED and not fixed** (another actor's text; no sha turns on it): it says the openXdox target is *"one commit past `xdox-v1.0`"*, and **measured it is two**. **That is the identical off-by-one this amendment corrected at § 8.7**, reached independently on the other side of the same landing — the argument for recording defect CLASSES and not only defects. **§ 8.7 — STEP 3 re-measured at 01:17Z, after step 2 landed: still not opened.** `opensoft/xFactory` now carries six open pull requests; the new one is **#477**, the ceremony-history DOCS follow-up § 5.6 already registered, **not** the sync. **§ 3.6 — the openDox-code hygiene arc has landed twice, at the box that already carries its register**, and neither landing moves it: **#33 → `1d4ac83c`** (2026-09-19T02:29:06Z) and **#34 → `f8a1eced`** (2026-09-22T01:07:19Z, a squash). The triple is **measured, not reported** — `1114 / 1111 / 3` at `.github/workflows/validate.yml`:2128 with `MIN_SELECTED`/`MIN_PASSED` at :2136-2137, where #33 read `1109/1106/3` and the root-pinned `d816cf06` reads `1099/1096/3`. **And the reason neither touches an obligation is verified rather than asserted**: the `openDox` assembly root still pins `code` at `d816cf06`, and `f8a1eced` is **ahead_by 2, behind_by 0** of it. *(Clock correction owed to the report: #34 was handed as 01:07:26Z; both fields that exist read 01:07:19Z.)* **`origin/main` `aaddda66` is merged into this branch**, and the markers are re-verified against it: `67 [x] / 3 [ ] / 2 [~] of 72`, `^- \[.\]` lines byte-identical in text and order. ### Round 5 — the last head-moving round: *"direct pins"* named two different pairs Copilot's round-4 overview reported **Findings: None** with the headline *"the pin-trigger evidence must be attributed to the correct direct and transitive pin files"*. No thread, nothing to register — and the headline is right about the prose: § 5.1 used **"direct pins"** for **two different pairs**, four paragraphs apart, and only ONE file belongs to both. | the phrase | the pair | | | --- | --- | --- | | the **ruling's** — *"both direct pins"* | `openxFactory`'s `contracts/opendox-pin.yaml` + `openXdox`'s file of the same name | each DIRECT from its own consumer's position; the second is TRANSITIVE as seen from `openxFactory` | | **this box's own** | `contracts/openxdox-pin.yaml` + `contracts/opendox-pin.yaml` | the two pins `openxFactory` DECLARES — what RULED **Q7** made two | The deferral sentence now **names its two files** instead of saying *"both direct pins"*, and a **PHRASE COLLISION** paragraph flags the ambiguity once — on the same treatment the `R-5` collision gets at § 5.6: every mention names its files and **neither phrase is renamed**, because renaming a ruling's label in a ledger breaks every record that cites it. **This is the final head-moving round on this amendment.** Anything further is registered for #12. ## Round 6 — a FOLD, not a review round: STEP 3 lands and the forced order is COMPLETE **`opensoft/xFactory` #478 → `1385f380117f54f1e266e239a9e467e730ce3f29`, `mergedAt` 2026-09-22T01:33:07Z, a MERGE COMMIT (two parents).** The three pointers are read **at that commit**, not from its title: `openxFactory` → **`aaddda66`**, `openDox` → **`dc7aa08f`**, `openXdox` → **`646f1dc0`**. The equality § 8.7's own line checks holds again for **both** legs — STEP 1 broke it by design and STEP 3 restores it, which is what makes the order *forced* rather than preferred. | the forced order, `#656` `5767733963` | landing | UTC | | --- | --- | --- | | **STEP 1** `openXdox` #15 | `646f1dc0` | 2026-09-21T21:51:39Z | | **STEP 2** `openxFactory` #1134 | `aaddda66` (squash) | 01:12:58Z | | **STEP 3** `xFactory` #478 | `1385f380` (merge commit) | 01:33:07Z | **Four files is not a breach of #474's two-file invariant — it is a different sync.** #474 was the openxFactory-**pointer** sync (that gitlink plus `.github/clearing/openxfactory/PIN.yaml`); this is the **three-pointer** sync, so its shape is three gitlinks plus that same clearing PIN, and #474's pair moves here too for #474's own reason: the nightly runs its scripts from the `openxFactory` gitlink. **§§ 5.1 and 4.2 — both halves of the header amendment have landed**, so round 2's *"NEITHER pin file carries the amended header on a landed commit"* is superseded and kept with its clock. The openXdox half is **`openXdox` #16 → `7194c06ca456d1675e32e890b4acf640b14bfc60`**, `mergedAt` 01:33:20Z, a squash, one file. **Measured in the landed bytes rather than taken from the title**: it cites the ruling `5768144952` **twice**, the trigger sentence *"that artifact then moves into a `files:` list here"* **no longer occurs in it at all**, and `commit:` still reads `dc7aa08f` — the header moved, the referent did not. **§ 4.2's obligation was registered as owed at 00:45Z and discharged at 01:33Z**, inside one amendment, and both are recorded: *a ledger that records only what is still outstanding cannot be used to check what was.* > **A clock pattern worth more than its four figures.** #1134 handed 01:13:04Z / measured **01:12:58Z**; `openDox-code` #34 handed 01:07:26Z / **01:07:19Z**; #478 handed 01:33:14Z / **01:33:07Z**; `openXdox` #16 handed 01:33:28Z / **01:33:20Z**. **Four reports, every one six to eight seconds fast** — a systematic offset in whatever field the reports read, not four slips. It changes no gate; this packet names the FIELD beside every clock precisely so an offset like that is visible instead of invisible. **The Copilot finding budget stays closed at round 5.** This round folds landings the holder sent while the amendment was open. ### Round 7 — round 6's fold left its own plan standing as live, and the marker goes in the same round **`r4067822689` (MEDIUM) is right.** Round 6 recorded `openXdox` #16 as landed and § 4.2's obligation as discharged, and left § 5.1's *"EXECUTION IN TWO HALVES, AND THE SECOND IS OWED"* standing beneath it with no superseded timestamp and no discharge reference — one box saying both halves landed and, four paragraphs down, scheduling the second as future work. **The same defect class round 2 corrected, re-created by a later fold in the same section.** The plan is **kept** — this packet keeps superseded readings in the present tense of their own act — and it is now **marked** *SUPERSEDED 2026-09-22T01:33:20Z*, naming `openXdox` #16 → `7194c06c` as the discharge and § 4.2 as the other place it is recorded. **The general lesson is written into the marker, not merely applied**: a fold that lands an obligation must mark every plan that schedules it, in the same round as the fold, or the contradiction outlives the round that made it. ### Round 8 — the mirror, found in the review BODY rather than in a thread Copilot's round-7 review reported **Findings: None** open and **0 unresolved threads**, and carried a **"Previously missed"** finding in its body, in text round 7 did not touch: § 4.2's heading *"WHAT THIS BOX OWES, REGISTERED AND NOT DISCHARGED HERE"* still presented the obligation as live with its own discharge in the very next paragraph. **It is right, and it is the exact mirror of what round 7 fixed at § 5.1**, so it takes the identical treatment: the reading is **kept** in the present tense of its own act and **marked** *SUPERSEDED 2026-09-22T01:33:20Z*, naming `openXdox` #16 → `7194c06c`. **The marker rule now stands at both boxes rather than only at the one that was reported.** *Recorded because of where it was visible: a zero-unresolved-threads count is not evidence, and this lane's gate reads the review BODY for exactly this block.* ## Gates `openspec validate split-opendox-two-layer-product --strict` **valid** · `proposal-support.py . verify` **ok** · `validate-sequenced-after.py . --ledger-diff` **clean (222 rows)**. `openspec validate --all --strict` → **106 passed, 1 failed** — and **the one is not this branch's**: `add-chain-attestation`'s `signed-execution-chain` MODIFIED block omits *"a tranche-two link does not exist yet"*. **Measured identical at this branch's own base `6b298a1e` AND at `main` `aaddda66` after the merge**, so it is inherited `main`-red; it is asked of lane **`openxfactory-1`** by name at `#656` comment `5767267092`, and it is § 8.9's registered residue (vi). Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Realizes the active packet
fix-pin-value-boundary-and-sentinel-split, filedand fully ruled via #463 (merged 2026-08-28 as
5314fac5). Two defects, onepromoted-canon obligation each, no contract bundle owed. Not for archive by
this branch — § 5 of tasks.md is deliberately untouched.
Defect 1 — four expressions built a pin site and none said where a pin ends
LOOSE_SHA_REalready carried the rule, in one place only, with a commentsaying why
\bis insufficient: a hex digit boundary inside a longer hex run isa word boundary, so a sha256 would yield two spurious pins. Every word of that
applies to the four expressions that BUILD sites and not one carried it —
_field_re,_VOCAB_RE, and both prose members' ownpatternstrings.The truncation proof
Measured on a fixture readiness record whose
source_revisionis a64-character value whose first forty characters name a real commit the
fixture's
mainreaches — the colliding case on purpose, because a randomprefix would only turn an orphan into a defect and hide the worse failure.
report.resultspass()8e96c2ea…44a— 40 chars, fabricated8e96c2ea…44a0123456789abcdef01234567— 64 charsswept_sites[]At the expression level, the same 64-hex value under a swept key: 4 of 4
builders returned the fabricated forty-character prefix before, 0 of 4 match
after, while
LOOSE_SHA_REreturned nothing on the identical line throughout —the guard the module already had and had not carried across.
All six conforming shapes still build the same site (bare, quoted, JSON,
sequence item, comment-trailed, and each prose form), and a 41-hex run is
refused by the same rule rather than by a list of widths.
The guard is now named once as
pin_class.HEX_BOUNDARYand referenced byall four builders, with
LOOSE_SHA_RErebuilt from the same constant. Noleading guard: the value group is already anchored by
\s*"?, and an inertguard beside a live one reads as live to the next editor.
Defect 2 — one sentinel covered two failures because nobody read the return code
The inherited record named three call sites; re-measured there are five, one
already correct, and one firing on two conditions by itself.
snapshot_registry.index_entryunestablished-revisionunknown(member unchanged; literal → constant)_git_file_commit— rc 0, empty stdoutdirty-worktreeuncommitted-worktree← new branch_git_file_commit— rc non-zerounreadable-repositoryuncommitted← new branch_git_file_commit— raisesunreadable-repositoryuncommitted_git_head— rc non-zero (incl. unbornHEAD)unreadable-repositoryuncommitted← see below_git_head— empty stdoutunreadable-repositoryuncommitted_git_head— raisesunreadable-repositoryuncommittedsubprocess.runcarried nocheckandout.returncodewas never read, so one"unknown"was reached identically by agit logthat succeeded and foundno commit for the path and by one that failed and produced nothing because
it failed. The return-code branch is the prerequisite for the whole split.
A sixth condition turned up that task 3.3 said could not exist. That task
argued
_git_headneeded no return-code branch because a failedrev-parse HEADalways produces nothing. Measured against git: on an unbornHEADitprints the literal string
HEADon stdout and exits 128 (rc=128,stdout='HEAD\n'), so the committed code returned"HEAD"as the repository'srevision — neither a commit name nor a declared sentinel, and exactly the class
of defect this packet exists to fix. The vocabulary already assigns the unborn
case to
unreadable-repositoryby name, so reading the return code moves noruled member; it stops a third failure being spelled as a pin. The premise moved,
the ruling did not, and tasks.md records it against the text it corrects.
Every condition is constructed, never mocked: an uncommitted file in a real
repository, a directory that is not one, a freshly-
inited repository with anunborn
HEAD, and — for the exception return — an emptiedPATHsosubprocess.runraisesFileNotFoundErrorfor real.Verification
pytest tests/doc-health -q— baseline on this branch before any edit1270 passed, 0 failed, exit 0 (167.45s); after 1292 passed, 0 failed,
exit 0. Run under
set -o pipefailwith the status captured to file ratherthan read off a tail. The +22 is +14 test functions from this packet and +8
from the three doc-health suites
mainlanded mid-realization. Re-run a secondtime after
tasks.mdwas committed, because the first run predated thatcommit and several doc-health families read committed state: 1292 passed,
0 failed, exit 0 again.
openspec validate --strict— the change is valid;--all --strict78 passed, 0 failed, exit 0.
pre-edit module and the post-edit module against the same merge commit, so the
thirteen commits
mainlanded mid-realization could not be mistaken for aneffect of this change. Summary string identical, all 66 site rows
identical, all 7 non-pin rows identical,
cleanandfully_verifiedTrue onboth, and not one of fifteen counts moved: 66 declared pin sites across 23
class members — 50 reachable, 0 orphaned, 1 lost (0 awaiting a superseding
record), 0 inconclusive; 0 uncovered, 0 vanished, 0 arrived; 7 legal non-pins,
0 undeclared non-commit values, 3 recognized legacy absences, 0 unused
vocabulary members. Nothing moves because nothing is there to move — 1119 files
in the scan roots, 182 read, 0 values of 41 or more hex characters under any
vocabulary key, now asserted by test so the day one arrives it is a finding.
The class entry point exits 0 (clean) on the branch tip.
patterns — were caught by nothing behavioural, only by the structural test
over the declaration. No artifact in the corpus exercises a prose pattern, so a
boundary removed there is invisible until one happens to carry the shape. That
is Q4's argument, measured rather than asserted.
exception test, which it should not have been able to reach:
git -C <missing-dir>exits 128 rather than raising, so that fixture had beenexercising the return-code branch under the exception test's name. Rewritten to
construct the real condition, with the non-zero-exit route given its own test.
contracts/releases/*.digests.yamlloaded with a YAML parser and every stringin every document walked, 7396 entries, rather than only the declared
bundle. Not one of the six edited files appears in any bundle.
contract-v2.0unchanged from filing: 192 entries, 22scripts/members,0 under
scripts/doc_health/,scripts/ideation_dashboard/orexperiments/.target_release: noneholds; no contract tag is owed.asserting the files differ: zero added lines carry an upper-cased HTTP write
verb, zero carry a bare approval switch. Neither scanned file is touched —
avatar_f0/cli.pyshares only a basename with the wallet CLI.CI and the wider suite
All three required checks pass:
pytest-suite(15m55s),merge-master-approval,wallet-validation. CI runspython3 -m pytest tests/ -q -m "not postgres", the same selection run locally.The local full selection reported 93 failed, 7493 passed where CI reported
green, and the difference is fully accounted for rather than waved at:
openXwalletsubmodule is not initializedin a fresh
git worktree, and the failing tests name the remedy themselves(
git submodule update --init openXwallet). Initialized and re-run, all 92pass:
tests/trust-anchor,tests/openxwallet_pinandtests/hermes_runtime_contractstogether give 644 passed, 1 failed.test_validator_cli.py::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]— a 30-second
subprocess.TimeoutExpiredonscripts/validate-hermes-runtime-contracts.py. It still fails in isolation,so it is not a load artifact, and it fails identically at the merge base
c79d6e54with none of this branch's commits applied — so it is pre-existingand not this packet's. It sits on the sibling packet's surface
(
scripts/hermes_runtime_validation/), which this packet does not touch, andCI passes it.
tests/doc-health/at any point — this packet's actualsurface.
Separately flagged, found and proven pre-existing rather than introduced: the
avatar harness's own offline suite
(
experiments/avatar-brokered-call/tests/offline, which no CI workflow runs)has 3 failures in
test_acceptance_map.py, anacceptance_map_digest_mismatch.Identical failure set before and after this branch, verified at
c79d6e54.Untouched here — a committed acceptance map disagreeing with its pinned digest
wants its own packet.
Scope held
specs/doc-health/spec.mdis byte-unchanged from the filing. The declared class,its key vocabulary and its non-member exclusions are byte-unchanged too: a
release digest is a 64-character hex value and therefore exactly the shape defect
1 is about, so extending the class to cover digests was one edit away while the
code was open. It was not extended — § 6.5's boundary is about whose question
it is, not what it looks like.
Twenty-three of thirty-two task boxes are ticked with evidence. The nine left
open say why: four are the archive gate, which reads a merge commit that does not
exist yet, and five are § 6 follow-ups, each carrying a disposition rather than a
blank box.
🤖 Generated with Claude Code