Repository navigation
DISPLAY: serve openDox's completion stage as "implemented" from openXdox (RULED #656 5784683830); openXdox pin 646f1dc0 → cd2596a2 - #1146
Conversation
… completion stage (RULED #656 5784683830); openXdox pin 646f1dc0 -> 8fdbff5d Realizes the openxFactory side of Brett Heap's ruling at #656 comment 5784683830 (2026-09-22), verbatim "1, keep completed and overlay implemented". openXdox-code #26 (195276b7) declares the overlay as openxdox.view_extensions.DISPLAY. openDox reads only the REGISTERED profile, whose DISPLAY is scripts/profile_openxfactory.py's facet, so until this commit a served page still showed openDox's neutral "completed" (measured: a real build_server() at main serves display.stages.completion {short: completed, label: completed}). The composition. _display_facet() gains "stages": _openxdox_stages(), which COPIES openXdox's stages section (two levels deep) and never restates the word, so the word has one source. Only stages is composed; a section openXdox adds later is surfaced by a test at the pin bump that carries it. A missing or malformed openXdox value is refused as RuntimeError, never AttributeError: host_display() reads the facet through a 3-argument getattr, and the lazy proxy re-raises AttributeError as ProfileFacetMissing, so an AttributeError would silently serve the WHOLE facet as absent. The pin, the minimal bump that reaches 195276b7. openXdox-code is a LEG of the openXdox assembly root, which openxFactory pins; openxFactory never pins a leg. So the chain is openXdox root code 195276b7 (opensoft/openXdox branch pin/code-195276b7-display, commit 8fdbff5d, its own PR) and then this repository's openXdox gitlink plus contracts/openxdox-pin.yaml, in one commit: openXdox gitlink 646f1dc0 -> 8fdbff5d commit: 646f1dc0 -> 8fdbff5d digests.tree_sha256 47f50184... -> eb367f68... Only those two values move in the pin file; no line is added or removed, because a promoted spec cites that file by line. The openDox pin does not move: openXdox's own derived openDox commit is still dc7aa08f, and verify-opendox-pin.py confirms the lockstep. Tests (tests/test_engineering_profile_display_facet.py, 16 -> 24 passed). The deliberate-absence test keeps tokens, values, sections and the wider areas absent and now asserts the facet declares the completion stage only. Section 8 adds: the served /capabilities page from a real build_server() shows "implemented" for short and label, with host_facet "declared"; the five other stations and completion's one/many/gate stay neutral; the stage words equal openXdox's and are a copy; stages is the one section composed; the composing files never spell the word as a value (AST); and two mutation tests, a dropped overlay failing the positive predicate and a missing openXdox DISPLAY refusing instead of serving absent. Every edit above line 300 keeps the line count, since an active change cites :300-303. Mutation sweep over the composer, each defect alone, all nine caught: no stages composed (5 failed), the word restated (4), openXdox's mapping aliased (1), shallow copy (1), missing DISPLAY raised as AttributeError (1), missing DISPLAY degraded to no stages (1), only short taken (3), a second stage overlaid (4), and the code leg on disk at ab04453d (20). Verifiers: verify-openxdox-pin.py OK at 8fdbff5d with eb367f68...; verify-opendox-pin.py OK, "lockstep with openXdox confirmed". No openspec/changes path and no README OpenSpec Records line is touched. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Reviewer's GuideThis stacked PR completes the openxFactory half of the ruled display change by pinning the openXdox assembly revision that declares the completion overlay, copying that declaration into the served display facet, and adding comprehensive tests to verify rendering, ownership, immutability, and fail-closed behavior. Sequence diagram for composing the openXdox completion stagesequenceDiagram
participant Server as serve.build_server()
participant Host as host_display()
participant Facet as _display_facet()
participant Composer as _openxdox_stages()
participant OpenXdox as openxdox.view_extensions.DISPLAY
Server->>Host: host_display()
Host->>Facet: getattr(profile, DISPLAY, None)
Facet->>Composer: _openxdox_stages()
Composer->>OpenXdox: getattr(view_extensions, DISPLAY, None)
OpenXdox-->>Composer: stages.completion
Composer-->>Facet: copied stage mappings
Facet-->>Host: DISPLAY with stages.completion
Host-->>Server: capabilities with completion=implemented
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Missing or partial completion overlays can still fall back to neutral values instead of failing closed.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
Updates openxFactory to serve openDox’s completion stage as implemented via the pinned openXdox overlay.
Changes:
- Composes copied stage display values from openXdox.
- Expands behavior and mutation test coverage.
- Advances the openXdox commit and tree digest pin.
| File | Description |
|---|---|
tests/test_engineering_profile_display_facet.py |
Tests served, normalized, copied, and failure behavior. |
scripts/profile_openxfactory.py |
Composes and validates openXdox stage values. |
contracts/openxdox-pin.yaml |
Updates the openXdox commit and tree digest. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…an empty stages and a short-only overlay (Copilot r4085197969) Copilot's review of 2e65a48 found that a well-formed openXdox DISPLAY overlaying less than the ruling (no stages, an empty stages, no completion entry) passes the guard, and read the docstring's refusal paragraph as a fail-closed promise for every drop. The behaviour stands; the docstring did not say which drops refuse at run time, and now it does: * DISPLAY absent from openxdox.view_extensions (a pin naming a code leg older than #26): RuntimeError, never AttributeError. host_display()'s 3-argument getattr, behind the proxy's AttributeError -> ProfileFacetMissing re-raise, would otherwise serve the WHOLE facet as absent. * DISPLAY malformed: RuntimeError, display_profile's own stance on a declaration it cannot read. * DISPLAY well-formed but overlaying less: FOLLOWED. openDox's schema holds a partial or empty facet legal ("PARTIAL IS LEGAL, AND IT IS THE POINT"). Refusing it would make the composer a second authority on what openXdox may declare and write the ruling's shape into production code. The ruled word is held at the gate: the served-page test fails, so a pin bump that carries such a leg cannot pass the required pytest-suite. openXdox-code #26 draws the same line on its side (test_dropping_the_facet_fails_the_overlay: "exactly what the two predicates the positive tests use must refuse"). The mutation test covers the shapes the finding named, and its docstring says where the refusal happens: test_a_dropped_or_partial_overlay_fails_ the_positive_predicate, four cases (openXdox declares no stages, an empty stages, short only; the composition drops them), each asserting the label falls back to openDox's word and the served-page predicate refuses it. tests/test_engineering_profile_display_facet.py: 24 -> 26 passed. Lines 297-304 are still byte-identical to main (cited at :300-303). The mutation sweep re-run over the composer still catches all nine defects; control 26 passed. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Answering Copilot's body-level item at The stack. This head's The order, which is the forced order RULED at #656 5767804734 item 5:
What "final human review" should look at, in one place.
At |
…facet: "implemented" for the completion stage) (#17) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **STEP 1 of the forced order** recorded at `opensoft/openXfactory#656` (RULED [5767804734](opensoft/openXfactory#656 (comment)) item 5: *openXdox root pin → openxFactory nested legs → aggregation sync*), for Brett Heap's ruling at [#656 comment 5784683830](opensoft/openXfactory#656 (comment)) (2026-09-22T21:44:49Z), verbatim **"1, keep completed and overlay implemented"**. `opensoft/openXdox-code` #26 landed the overlay as `195276b7`: `DISPLAY = {"stages": {"completion": {"short": "implemented", "label": "implemented"}}}` in `src/openxdox/view_extensions.py`. openDox reads only the REGISTERED profile, and in openxFactory that profile's `DISPLAY` is openxFactory's own facet, so the word reaches a served page only through two pins: this root's `code` pin, then openxFactory's `openXdox` pin. This PR is the first. **STEP 2 is [opensoft/openXfactory#1146](opensoft/openXfactory#1146 (draft, stacked on this branch's head `8fdbff5d`), which composes openXdox's `stages` into openxFactory's facet. ## The lockstep, in one commit | site | before | after | | --- | --- | --- | | `code` gitlink | `ab04453d` | **`195276b7`** | | `contracts/code-pin.yaml` `commit:` | `ab04453de25b…` | **`195276b75358d2f4d1f0b3eb17b8b62a3c01c409`** | | `contracts/code-pin.yaml` `digests.tree_sha256` | `132eedc1…91bc` | **`f7b9f453b4fbd4d87a0ec7e4409169dab754dcc20dfa6bd656456051f003c166`** | No `.github/workflows/*.yml` names the code leg by `@<sha>`, so the README's third site does not exist here. **What the leg advance carries.** `ab04453d..195276b7` is exactly ONE first-parent commit, #26: `src/openxdox/view_extensions.py` (the facet), `tests/test_gate_loop_views.py` (its 20 tests) and `.github/workflows/validate.yml` (its floors). It adds no file. ## The digest, three ways `sorted-ls-tree-r-v1` over the 147 records of `git ls-tree -r -z 195276b7`: - `scripts/repo_shape.py` `tree_digest`: `f7b9f453…c166` - an independent `ls-tree` + `sha256` re-implementation: `f7b9f453…c166` - `repo_shape.tree_digest_from_gh` (the forge's own tree listing): `f7b9f453…c166` Control: the same method recomputes the old recorded `132eedc1…91bc` at `ab04453d`. ## Prose kept true in the same commit - **`contracts/manifest.yaml`**. The sentence "THE CODE LEG CONTRIBUTES NO ENTRY … at `ab04453d` … carries no `contracts/` path" is re-measured at `195276b7`. That leg also has no `contracts/` path (`git ls-tree -r --name-only` shows 0 at both commits), so none of the five entries moves. The `ab04453d` reading is kept as history. - **`contracts/CHANGELOG.md`**, `## Unreleased`. It read "Nothing pending. Both legs' `main` are exactly the commits this bundle pins: `openXdox-code` `ab04453d`". That has been false since #26 landed, because openXdox-code `main` is `195276b7`. It now records the advance, and that no contract byte moves. - **No tag moves.** `xdox-v1.0` stays over `2073e3a9` (code `ab04453d`, spec `f088b097`), both measured with `git ls-tree xdox-v1.0`. ## Validators, as `validate.yml` runs them | check | result | | --- | --- | | `python3 scripts/validate-repository-naming.py --project project.yaml` | exit 0 | | `python3 scripts/validate-manifest.py` | exit 0: `manifest ok: openXdox (openxdox), 3 legs` | | `python3 scripts/validate-pins.py` | exit 0: `ok code: gitlink == contracts/code-pin.yaml commit 195276b75358`, `ok code: tree digest recomputes (f7b9f453b4fb…)`, `pins ok` | ## Cannot red openxFactory `verify-opendox-pin.py` check 5 reads this root's `contracts/opendox-pin.yaml` as a blob at whatever commit openxFactory's `openXdox` gitlink names. This PR does not touch that file; its `commit:` stays `dc7aa08f` at this head. openxFactory keeps reading `646f1dc0` until STEP 2 moves its gitlink. ## Landing Plain gate: this repository has no `openspec/changes/`. If this PR is squash-merged onto an unmoved `main` (`7194c06`), the squash commit's tree equals this head's tree. openxFactory's recorded `tree_sha256` (`eb367f68…`) therefore stays valid, and STEP 2 re-points only its gitlink and `commit:` to the landed sha. **This PR is not merged by the actor that opened it.** 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…pensoft/openXdox#17) opensoft/openXdox#17 landed as cd2596a254cc47d6bc5ef638cc91dbedc5184728 (squash, 2026-09-23T18:55:53Z), and openXdox main is exactly that commit. This moves the two halves of the one invariant together, in one commit: openXdox gitlink 8fdbff5d -> cd2596a2 contracts/openxdox-pin.yaml commit: 8fdbff5d -> cd2596a2 digests.tree_sha256 unchanged, eb367f68... The digest does not move because the landed tree IS the branch tree: cd2596a2^{tree} and 8fdbff5d^{tree} are both 2d2802de. It was recomputed rather than assumed, over the same 29 records, by verify-openxdox-pin.py's own tree_digest and by an independent re-implementation, both eb367f68..., with 8fdbff5d recomputing to the same value as the control. At cd2596a2 the root still pins code 195276b7 and spec f088b097, and its derived openDox commit is still dc7aa08f. verify-openxdox-pin.py: OK at cd2596a2, digest eb367f68... verify-opendox-pin.py: OK, "lockstep with openXdox confirmed" No file other than these two moves, and no line is added or removed in the pin file. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…(Copilot r4086188263) Copilot's review of 1e443c4 found that _openxdox_stages()'s malformed-shape branch had no test: the mutations covered a missing DISPLAY and the well-formed shortfalls, never a non-mapping value, so deleting that RuntimeError would have passed the suite. It is true, and this closes it. test_a_malformed_openxdox_display_refuses_at_every_level, parametrized over the three levels the composer reads (the facet, its stages section, a stage entry) plus a string facet: each refuses with RuntimeError, never AttributeError, both on profile_openxfactory.DISPLAY and through display_profile.host_display(proxy), so neither the proxy nor the reader's 3-argument getattr can absorb it into "no facet declared". tests/test_engineering_profile_display_facet.py: 26 -> 30 passed; lines 297-304 still byte-identical to main. The mutation sweep gains M10, the malformed guard degraded to no stages: caught (4 failed). All ten mutations caught; control 30 passed. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… that the pin names cd2596a2 (Copilot r4086188321) The 2026-09-21 amendment block in contracts/openxdox-pin.yaml read "this re-pin advances the gitlink from 88a1047e to 646f1dc0", in the present tense, beside a commit: that now names cd2596a2. The sentence records #1134's re-pin, so it now says so: "#1134's re-pin advanced the gitlink". One line changes in place; the file stays 154 lines, so no line number in it moves (a promoted spec cites it by line). The rest of that block still holds at cd2596a2: xdox-v1.0 is cut, and openXdox's contracts/manifest.yaml still carries contract_bundle_version xdox-v1.0 and the same five entries, because #17 changed only a comment in that file. verify-openxdox-pin.py OK at cd2596a2 (eb367f68...); verify-opendox-pin.py OK; tests/opendox_pin, tests/openxdox_pin and the facet file: 135 passed. Lane: openxfactory-4 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Answering Copilot's body-level item at The cross-repository pin is no longer stacked. The gitlink and
The composition, in one place for that review:
Gate evidence at this head. A correction to my The final human review is the holder's landing decision. This PR does not merge itself; the READY line follows. |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 1 day and 15 hours by commenting @sourcery-ai review. Upgrade to get a review now.
|
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) READY #1146 @00ce641d |
…3 and the proposal, and the baseline at main d52b419 #1146 landed at d52b419 while round 27 was in flight. It composes openXdox's DISPLAY stages into scripts/profile_openxfactory.py, so the first of the wording overlays that F3 describes is no longer owed. F3 now records what remains: the item nouns and every other station stayed neutral. The baselines table gains the d52b419 row, where main alone is 110/1 of 111 and with this packet 111/1 of 112. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… (RULED openxFactory#656 comment 5801057769) (#27) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Realizes Brett Heap's ruling at [openxFactory#656 comment `5801057769`](opensoft/openXfactory#656 (comment)) (2026-09-23T19:00:37Z), verbatim **"yes, overlay implemented items too"**. It answers the open question #26 recorded: `one`/`many` ("completed item", "completed items") stayed neutral there because they are item nouns rather than the stage's label, and "whether those become "implemented …" is a wording question for a ruling". It extends [`5784683830`](opensoft/openXfactory#656 (comment)) ("1, keep completed and overlay implemented"), which #26 realized as `195276b7`. # What this declares `src/openxdox/view_extensions.py`: the one stage entry of `DISPLAY` gains its two item nouns. ```python DISPLAY = {"stages": {"completion": {"one": "implemented item", "many": "implemented items", "short": "implemented", "label": "implemented"}}} ``` - **Field names and shape are openDox's own.** The pinned `display_profile._STAGE_FIELDS_REQUIRED` is `("one", "many", "short", "label")`. `normalize_display` reads each one only where the entry carries it, and requires a non-empty string. `gate` (`None`) stays openDox's. - **`one` AND `many`**, for the reason #26 gave for `short` AND `label`, one tier down. They are the stage's two item nouns, so a `one` without its `many` would spell the same items two ways the first time a view counts them (`Display.count(role, n)`). - **Where the nouns render.** Measured in the bundle of the pinned `opendox` (`5c137a90`), over every `.one(`, `.many(` and `.count(` read outside `display.js` itself: - `one(COMPLETION)` appears **twice**, both in `views/wheel.js`. These are the two sentences #26 named: the archived tile's `landed` verb title, `"what landed: this " + d.one(COMPLETION) + "'s " + …` (line 289), and the empty note of the flyout that verb opens, `"this " + vocab.one(COMPLETION) + " records no " + …` (line 881). - `many(COMPLETION)` and `count(COMPLETION, …)` appear nowhere. - This column's own six modules read no item noun at all. - **What reaches a served page.** openxFactory [#1146](opensoft/openXfactory#1146) landed as `d52b4199` at 2026-09-23T19:40:56Z. openxFactory's own facet now **copies** this leg's `stages` (`_openxdox_stages()`), so these words reach a page through openxFactory's pin on the openXdox assembly root, with no code change on that side. The comment block above `DISPLAY` now says that, replacing #26's "owed" paragraph, which that landing discharged. # Tests **`tests/test_gate_loop_views.py`: six of #26's twenty cases are amended in place, and no case is added (74 passed, unchanged).** | test | now holds | | --- | --- | | `…declares_one_stage_entry_and_nothing_else` | the value, four fields | | `…conforms_to_the_pinned_reader` | `one` / `many` as well | | `…completion_stage_renders_implemented_through_the_host` | all four words through the host; `gate` neutral | | `…overlay_changes_four_words_and_the_named_absence_and_nothing_else` (was `…two_words…`) | against the facet-less host, exactly five leaves differ: `host_facet` and completion's `one`, `many`, `short`, `label` | | `test_dropping_the_facet_fails_the_overlay` ×2 | `one` falls back to `completed item`, and the positive predicate, which now requires all four words, refuses it | **`tests/test_gate_loop_probes.py`: five new cases (50 → 55 passed) run BOTH wheel sentences under node.** *What runs.* The shipped text, lifted verbatim out of the pinned `views/wheel.js`: - its imports from `display.js`, `helpers.js` and `wheel-model.js`; - the statement that binds `COMPLETION`; - `vocab` and its per-render assignment; - `FLYOUT_VERBS`, `fetchDeltaTexts` and `renderLandedBody`. They run in the composed bundle's own `views/`, beside the modules they import from. *What is replayed, and named as replayed.* Neither sentence is reachable from outside `wheel.js`. `FLYOUT_VERBS` is a module constant, and `renderLandedBody` is a closure inside `renderWheel`. Reaching that closure through `renderWheel` needs a tile focused, seated by the spring and then expanded, which is a physics harness rather than a sentence test. So the shell around the sentences is replayed: - `app.js`'s `readDisplay(probedCaps)`, handed down as `ctx.display`; - the mounter's `verb.title(vocab)`; - `showLanded`'s read and render for a change with no spec delta. The host is `test_gate_loop_views.py`'s own, imported rather than copied: the engineering host, the registry fixture, the `serve.build_server()` replay, and the guard. | test | holds | | --- | --- | | `…completion_sentences_say_implemented_item_through_the_host` | `what landed: this implemented item's detail files` and `this implemented item records no detail files`, from the payload the host serves (`host_facet: "declared"`) | | `…completion_sentences_stay_neutral_without_the_facet` ×2 | `completed item` in both sentences: for the same host forwarding no `DISPLAY` (`host_facet: "absent"`), and for no `/capabilities` payload at all (a static image, `readDisplay(null)`) | | `…first_rulings_overlay_alone_leaves_both_sentences_neutral` | **mutation:** #26's value (`short` / `label` only) is served as declared, yet both sentences still say `completed item`, which the positive probe refuses | | `test_the_replayed_shell_statements_are_the_pinned_bundles` | each replayed statement, lifted from the pinned `app.js` / `views/wheel.js` and compared as code with comments dropped, so an old line kept in a comment cannot stand in for a changed live one (the finding the review of `a1eef310` made on #26) | **Mutation sweep**, each defect applied alone, then the two files run under `--noconftest`. All 15 were caught, the files were restored and sha256-verified, and the control is 129 passed. B1–B7 edit the installed `opendox` bundle in a private venv, standing in for an openDox pin bump that changed the shell: | mutation | result | | --- | --- | | S1 item nouns dropped (#26's value) | 5 failed | | S2 `one` only | 4 failed | | S3 `many` only | 5 failed | | S4 `one` and `many` swapped | 5 failed | | S5 `one` is the stage word `implemented` | 5 failed | | S6 `gate` overlaid too | 3 failed | | S7 a second stage's `one` overlaid | 3 failed | | S8 the item-noun field misspelled (`once`) | 7 failed | | B1 the landed title reads `short` instead of `one` | 4 failed | | B2 the empty note reworded | 4 failed | | B3 the mounter resolves the title against `neutralDisplay()` | 1 failed | | B4 `showLanded` renders a different summary | 1 failed | | B5 `app.js` reads no vocabulary (`readDisplay(null)`) | 1 failed | | B6 the wheel's mount stops handing down `ctx.display` | 1 failed | | B7 the old mounter line kept in a comment, the live one changed | 1 failed | S2 passes both sentence probes, because `many` renders nowhere. The value, the host and the five-leaf tests catch it. # The required check `validate.yml`'s 16-file `--noconftest` list, run locally exactly as the workflow spells it (fresh venv, `pip install -e ".[test]"`, then the `Pin the triple` script): | | selected | passed | skipped | failures | errors | | --- | --- | --- | --- | --- | --- | | main `195276b7` (local; CI's floors are 559 / 553, margin 0) | 559 | 553 | 6 | 0 | 0 | | `d3b179a4` (local) | 564 | 558 | 6 | 0 | 0 | | `d3b179a4` (CI run 35913645237), floors 559 / 553, margin 5 | 564 | 558 | 6 | 0 | 0 | | `39d8937e`, the head (CI run 35913837074), floors 564 / 558, margin 0 | 564 | 558 | 6 | 0 | 0 | - **+5 selected and +5 passed**, the five new probe cases, and nothing skips. - **The floors rise to CI's own run of `d3b179a4`**, in `39d8937e`, with the reason in its message and in a `RAISED BY #27` paragraph of the pin block, the way #25 and #26 took theirs ("THE NUMBERS ARE CI'S OWN"): - `MIN_SELECTED` 559 → **564** - `MIN_PASSED` 553 → **558** - `EXPECT_SKIPPED` stays 6 Copilot's review of `d3b179a4` asked for exactly this (`r4086816652`, answered and resolved). Its review of `39d8937e` reads "Approval recommended", with no findings. Locally, the pin step read from the file is margin 0. With one of the five probes deselected it exits 1: `selected 563 is BELOW the floor 564` and `passed 557 is BELOW the floor 558`. - The workflow comment's measured account stays true: - `test_gate_loop_views.py` stays at 74 under its own invocation. - `test_gate_loop_probes.py` goes 50 → 55. - The reach bullet names the probes file's new read of the DISPLAY facet. It goes through the views file's host and guard, so the `grep -ln` lines are unchanged. - Three present-tense "thirteen probes" in the probes file no longer count: that fixture now gates more. # What this does NOT do - It adds **no new file**, so no `created:` admission is owed in openxFactory `docs/opendox-carve-admissions.yaml`. - It moves **no pin**: `pyproject.toml` still names openDox-code `5c137a90`. - It changes neither openDox nor openxFactory. The chain continues in the forced order: the openXdox root's `code` pin onto this PR's landed commit, then openxFactory's openXdox pin. Each stays a draft until the PR before it lands. - It touches no `openspec/changes/` path. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…on stage's item nouns: "implemented item(s)") (#18) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) **STEP 1 of the forced order** recorded at `opensoft/openXfactory#656` (RULED [5767804734](opensoft/openXfactory#656 (comment)) item 5: *openXdox root pin → openxFactory nested legs → aggregation sync*). This time it serves Brett Heap's ruling at [#656 comment 5801057769](opensoft/openXfactory#656 (comment)) (2026-09-23T19:00:37Z), verbatim **"yes, overlay implemented items too"**. [opensoft/openXdox-code#27](opensoft/openXdox-code#27) overlays the completion stage's item nouns: `DISPLAY["stages"]["completion"]` gains `"one": "implemented item"` and `"many": "implemented items"`, beside #26's `short` / `label` `"implemented"`. openDox reads only the registered profile. Since openxFactory [#1146](opensoft/openXfactory#1146) (→ `d52b4199`), openxFactory's own facet copies this leg's `stages`. So the nouns reach a served page through two pins: this root's `code` pin, then openxFactory's `openXdox` pin. This PR is the first. > **#27 LANDED.** opensoft/openXdox-code#27 landed as **`626f2c8d`** (squash, merged 2026-09-23T20:17:07Z), and openXdox-code `main` is exactly that commit. `d2eff3e` pinned #27's pre-landing head `39d8937e`. `eb89dc2` re-points, in ONE commit, everything that named it: the gitlink, `contracts/code-pin.yaml` `commit:`, and every prose mention of the sha in `contracts/manifest.yaml` and `contracts/CHANGELOG.md`. `tree_sha256` does not move, because the landed tree IS the branch tree: `626f2c8d^{tree}` = `39d8937e^{tree}` = `3dbc0f6f`. That was recomputed rather than assumed. ## The lockstep, in one commit | site | before | after | | --- | --- | --- | | `code` gitlink | `195276b7` | **`626f2c8d`** | | `contracts/code-pin.yaml` `commit:` | `195276b75358…` | **`626f2c8d55a8a32111863e55c82599c5c1a88e69`** | | `contracts/code-pin.yaml` `digests.tree_sha256` | `f7b9f453…c166` | **`f46e574092489a63f802438574d91b38ff81cb548cf583b918c4a5ddb452bae6`** | No `.github/workflows/*.yml` names the code leg by `@<sha>` (as at #17), so the README's third site does not exist here. **What the leg advance carries.** `195276b7..626f2c8d` is ONE first-parent commit, #27's squash, and it adds no file: - `src/openxdox/view_extensions.py`: the facet's `one` / `many`; - `tests/test_gate_loop_views.py` and `tests/test_gate_loop_probes.py`: six cases amended, and five probes that run the two wheel sentences under node; - `.github/workflows/validate.yml`: its floors, 559 / 553 → 564 / 558, taken from CI's own run. ## The digest, three ways `sorted-ls-tree-r-v1` over the 147 records of `git ls-tree -r -z 626f2c8d`: - `scripts/repo_shape.py` `tree_digest`: `f46e5740…bae6` - an independent `ls-tree` + `sha256` re-implementation: `f46e5740…bae6` - `repo_shape.tree_digest_from_gh` (the forge's own tree listing): `f46e5740…bae6` Control: the same method recomputes the old recorded `f7b9f453…c166` at `195276b7`. ## Prose kept true in the same commit - **`contracts/manifest.yaml`.** "THE CODE LEG CONTRIBUTES NO ENTRY" is re-measured at `626f2c8d`. That leg has no `contracts/` path (`git ls-tree -r --name-only` shows 0), so none of the five entries moves. The `ab04453d` and `195276b7` readings are kept. - **`contracts/CHANGELOG.md`, `## Unreleased — 2026-09-23`.** It records the second advance beside #26's, and its closing sentence is true again as written: both legs' `main` are exactly the commits this root pins. No contract byte moves. - **No tag moves.** `xdox-v1.0` stays over `2073e3a9` (code `ab04453d`, spec `f088b097`). ## Validators, as `validate.yml` runs them (re-run at `eb89dc2`) | check | result | | --- | --- | | `python3 scripts/validate-repository-naming.py --project project.yaml` | exit 0 | | `python3 scripts/validate-manifest.py` | exit 0: `manifest ok: openXdox (openxdox), 3 legs` | | `python3 scripts/validate-pins.py` | exit 0: `ok code: gitlink == contracts/code-pin.yaml commit 626f2c8d55a8`, `ok code: tree digest recomputes (f46e57409248…)`, `ok contracts/shape-pin.yaml: 10 copied shape file(s) match their digests`, `pins ok` | ## Cannot red openxFactory `verify-opendox-pin.py` check 5 reads this root's `contracts/opendox-pin.yaml` as a blob at whatever commit openxFactory's `openXdox` gitlink names. This PR does not touch that file, and its `commit:` stays `dc7aa08f`. openxFactory keeps reading `cd2596a2` until the next step moves its gitlink. ## Landing Plain gate: this repository has no `openspec/changes/`. If this PR is squash-merged onto an unmoved `main` (`cd2596a2`), the squash commit's tree equals this head's tree. The openxFactory step then re-points its gitlink and `commit:` to the landed sha and records that tree's digest. **This PR is not merged by the actor that opened it.** 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…(s)" from openXdox (RULED #656 5801057769); openXdox pin cd2596a2 → 2f3f857d (#1148) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Realizes the openxFactory side of Brett Heap's ruling at [#656 comment 5801057769](#656 (comment)) (2026-09-23T19:00:37Z), verbatim **"yes, overlay implemented items too"**. It extends [5784683830](#656 (comment)) ("1, keep completed and overlay implemented"), which #1146 served. This is **STEP 2** of the forced order (RULED [5767804734](#656 (comment)) item 5), and both steps before it have landed: | step | PR | landed | | --- | --- | --- | | the facet's `one` / `many` | [opensoft/openXdox-code#27](opensoft/openXdox-code#27) | `626f2c8d` (squash, 2026-09-23T20:17:07Z) | | STEP 1, the openXdox root's `code` pin | [opensoft/openXdox#18](opensoft/openXdox#18) | `2f3f857d` (squash, 2026-09-23T20:26:02Z) | | STEP 2, openxFactory's openXdox pin | this PR | | openXdox `main` is exactly `2f3f857d`, and openXdox-code `main` is exactly `626f2c8d`. ## What a served page shows Measured from a real `opendox.serve.build_server()` in each assembly, `GET /capabilities`, `display` block: | | `main` `d52b4199` | this head | | --- | --- | --- | | `host_facet` / `host_profile` | `declared` / `openxfactory-engineering` | `declared` / `openxfactory-engineering` | | `stages.completion` `short` / `label` | `implemented` / `implemented` | unchanged | | `stages.completion` `one` / `many` | `completed item` / `completed items` | **`implemented item` / `implemented items`** | | `stages.completion` `gate` | `null` | unchanged | | the other five stations | openDox neutral | unchanged | In openDox's shell, `one` renders in the wheel's two completion sentences. openXdox-code#27 runs both under node through the xFactory host: `what landed: this implemented item's detail files` and `this implemented item records no detail files`. ## `_display_facet()` needs NO code change, as #1146 designed `_openxdox_stages()` copies openXdox's `stages` two levels deep, so the new nouns arrive with the pin. `scripts/profile_openxfactory.py` changes in **docstrings only**: its AST with every docstring stripped is identical to `main`'s (`ast.dump` compared). The docstrings said openXdox's entry is "one stage entry and two fields (`short`, `label`)" and cited only the first ruling. They now cite #27 (`626f2c8d`) and `5801057769`: one stage entry, four fields. ## The pin: value-only, in one commit - `openXdox` gitlink: `cd2596a2` → **`2f3f857d`** - `contracts/openxdox-pin.yaml` `commit:`: `cd2596a2…` → **`2f3f857daccce6ade3a15e0f3d0e926f9ff7c925`** - `digests.tree_sha256`: `eb367f68…` → **`149dc2cd6701abbacb635718713b01cb172e6eadb2f6a29607212016aa23d1c5`** The digest is `sorted-ls-tree-r-v1` over the root's 29 records, from `verify-openxdox-pin.py`'s own `tree_digest` and from an independent `ls-tree` + `sha256`. The control recomputes `eb367f68…` at `cd2596a2`. `2f3f857d^{tree}` = `eb89dc23^{tree}` = `c79958ac`, so #18's squash moved no byte. **No line is added or removed**: the file stays 154 lines, since a promoted spec cites it by line. **The openDox pin does not move.** openXdox's `contracts/opendox-pin.yaml` still names `dc7aa08f` at `2f3f857d`, and `verify-opendox-pin.py` reports `lockstep with openXdox confirmed`. ## Tests: `tests/test_engineering_profile_display_facet.py`, section 8 only, 30 → 31 passed Lines 1-407 are byte-identical to `main`, so active change `amend-home-adapter-scope-and-mapping-axis-count`'s `:300-303` citation holds. - **The positive predicate** (`_completion_renders_the_ruled_words`, renamed from `…_word`) requires all four words: `short` and `label` `implemented`, `one` `implemented item`, `many` `implemented items`. - **The neutral assertion** keeps the other five stations whole, and completion's `gate` only. - **No two stations share a rendered word**, now checked for `one` and `many` as well as `short` and `label`. - **The no-restate AST scan** covers the three ruled words AND every word openXdox's `stages` declares. A word openXdox adds at a later pin is therefore covered without editing the test. - **A new shortfall case:** #26's two names without #27's item nouns, which is what a pin still naming openXdox-code `195276b7` serves, fails the positive predicate. The drop test now asserts that some field fell back to openDox's word, rather than `label` in particular. **Mutation sweep over the composer**, each defect applied alone. All eleven were caught, and the control is 31 passed: | mutation | result | | --- | --- | | M1 no `stages` composed | 9 failed | | M2 the four words restated instead of copied | 11 failed | | M3 openXdox's mapping aliased | 1 failed | | M4 shallow copy | 1 failed | | M5 missing `DISPLAY` raised as `AttributeError` | 1 failed | | M6 missing `DISPLAY` degraded to no stages | 1 failed | | M7 only `short` taken | 3 failed | | M8 a second stage overlaid | 4 failed | | M9 the code leg on disk at `ab04453d` (no `DISPLAY`) | 28 failed | | M10 a malformed `DISPLAY` degraded to no stages | 4 failed | | **M11 the code leg on disk at `195276b7`** (#26's names, no nouns: an unbumped pin) | 2 failed | ## Gates **CI, like for like.** `main`'s own `push` run at `d52b4199`, against this head's `pull_request` run, which merged `af23298e` into that same `d52b4199` (merge `1b8b313f`): | check | `main` `d52b4199` | this head `af23298e` | | --- | --- | --- | | `pytest-suite` summary | `8439 passed, 6 skipped, 338 deselected, 410 subtests` (run 35910949799) | `8440 passed, 6 skipped, 338 deselected, 410 subtests` (run 35916269160) | | `pytest-suite` pinned triple | `selected=8855 passed=8849 skipped=6` | **`selected=8856 passed=8850 skipped=6`**, `failures=0 errors=0` | | freshness verifier / vector replay | passed / passed | passed / passed | | `openxdox-consumer-gate` pin suites | pull requests only; floor 105 | `105/105/0`, margin 0, four named verdicts passed (run 35916269093) | | `openxdox-consumer-gate` consumer suite | floor 1137 | `1137/1137/0`, margin 0, named verdict passed | | every other check | push-triggered on `d52b4199`: `clearing-dispatch-gate`, `signed-execution-chain-gate`, `review-lane-repin` success | SUCCESS: `clearing-dispatch-gate`, `former-id-arrival-gate`, `lane-line`, `merge-master-approval`, `openreposhape-pin`, `openspec-cli-pin`, `release-tag-gate`, `signed-execution-chain-gate`, `wallet-validation`, SonarCloud | **+1 selected and +1 passed, exactly the one new shortfall case**, with the same 410 subtests on both sides and SKIPPED at the pinned 6. **Local, at `af23298e`**, in the CI-shaped checkout, each gate running its workflow's exact command: | gate | `main` `d52b4199` | this head `af23298e` | | --- | --- | --- | | `validate-openspec-cli-pin.py --all --no-cache` | exit 0: `Totals: 110 passed, 1 failed (111 items)`, 0 UNDISPOSITIONED, 1 ACCEPTED EXCEPTION | identical | | `verify-openxdox-pin.py` | OK `cd2596a2` / `eb367f68…` | OK `2f3f857d` / `149dc2cd…`, gitlink read from HEAD | | `verify-opendox-pin.py` | OK, lockstep confirmed | OK, lockstep confirmed | | clearing-dispatch, signed-execution-chain, the wallet readers, factory-identity, former-id-arrival, release-tag, openreposhape-pin | exit 0 | exit 0 | | pin suites / consumer suite | | `105/105/0` / `1137/1137/0` | ## Rule 6 This PR touches no `openspec/changes/` path and no README OpenSpec Records line, so it is a **plain gate with no landing window**. ## Claims Sibling search at 2026-09-23T20:28:34Z: - no other open PR in `openxFactory` touches these files or pins - no PR is open in `openXdox` or `openXdox-code` ## Owed after this lands (not taken here) - **STEP 3**, the `opensoft/xFactory` aggregation pointer advance, in the forced order. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…fest (Q-L1 form; RULED 5815412869 C3) (#1153) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) ## What this is This is the row annotation RULED Q-L1 requires to land **FIRST**, for the leg PR opensoft/openXdox-code#28 (`fix/snapshot-validator-carve-residue`, `45825ff7`, re-cut on that leg's `main` `626f2c8d`). That PR's head is now `87e627c`, after two review rounds of its own. Neither round moves this window (see *Measured*). That PR takes the three snapshot-validator defects the archived `split-opendox-two-layer-product` booked at `tasks.md` § 8.9 (amendment #6, RULED Q-P3 (a), #656 comment `5728856581`; the box was DEFERRED at the archive by RULED `5778397686`): - **(i)** the validator's `SCHEMAS_DIR` resolves to an absent directory; - **(ii)** `snapshot.py`'s `VALIDATOR_RELPATH` names the path this repository shed at `cc4ae9d3`; - **(iii)** `find_validator`'s parent walk adopts an enclosing pre-shed checkout. RULED at #656 comment [5815412869](#656 (comment)) (item 3, **C3**, all (a)) and claimed at [5815613524](#656 (comment)). Two of the four rulings bind this PR: - **Q-XDV2 (a):** both new entries are filed under `path constants`; - **Q-XDV3 (a):** this annotation lands first, then openXdox-code. Q-L1's binding clause (`5642758731`): *"an edit to an ARRIVED file … outside its declared lines is an undeclared movement — each slice that edits such a file pairs its leg PR with an openxFactory row-annotation PR (the ASK-7 pattern) that lands FIRST"*. **This does NOT discharge #1144 task 7.3.** 7.3's FALSIFIED BY asks the INSTALLED openXdox distribution to find its own validator from a `start` outside the product. The leg PR deliberately answers `None` for such a start. So phase 2's realization of 7.3 will revisit `tests/test_snapshot_validator_home.py::test_a_start_outside_the_product_is_refused_not_walked`. The holder is taking that tension to Brett as a phase-2 question. It does not block this act. The arrived leg test `tests/test_snapshot_validation_launch.py` belongs to the same revisit (Copilot, openXdox-code#28 round 2). It launches from the corpus root, outside the product, so under the confinement it would report validation SKIPPED. It cannot be collected in that repository at the base or at the head, because the pinned openDox-code's `serve.py` imports `ideation_dashboard`, and it is not in that repository's required check. ## The window | row | before | after | | --- | --- | --- | | `scripts/ideation_dashboard/snapshot.py` → `openxdox_code` `src/openxdox/snapshot.py` | `moved_verbatim` | `moved_with_declared_edit`, `path constants` [13, 24, 29, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 133, 163, 167] — 16 | | `scripts/validate-ideation-dashboard-contracts.py` → `openxdox_code` | the carve's own entry [114, 115, 116, 909, 1800], never applied | plus a second `path constants` entry [14, 15, 16, 94, 224, 225, 226, 230, 237, 1822] — 10 | The line numbers are the CARVE COMMIT's. They were computed with `verify-carve-arrival.py`'s own algorithm (`carve_lines.text_records` + `difflib` opcodes, as `_check_declared_lines` reads them) against the re-cut leg head. They are identical to the helper bank's measurement against the first cut, because the four fix files are byte-identical and `openXdox-code` #26/#27 touched none of them. `docs/opendox-carve-admissions.yaml` admits the leg's two created suites (`tests/test_snapshot_validator_home.py`, `tests/test_validator_schema_home.py`, `since: 45825ff7…`). ## The figures, summed rather than transcribed - Declared lines 2717 → **2743** (`path constants` 246 → 272). - Rows carrying `edits:` 176 → **177**. - `moved_verbatim` 143 → **142**; `moved_with_declared_edit` 175 → **176**; `not_moved` 138, unchanged. - The runbook's `openxdox_code` row goes from `9 / 83 | 917` to `8 / 84 | 943`. - The per-destination sum goes from 2715 to 2741, and the two replica lines make 2743. Moved with them: - runbook § 2's tables and history; - the README index entry; - three script docstrings; - the aggregate pins in `tests/carve_manifest` and `tests/carve_arrival`; - the Q7 disposition digest (`2c48fa07…` → `4c4aecf1…`), moved beside its conversion record as its own failure message asks. A new test, `test_the_real_manifest_carries_the_snapshot_validator_residue_declared_edits`, pins the window by row, class and line. Main's manifest has not moved since the bank measured it at `2e222d98`: no commit since then touches any carve file. ## Measured - `scripts/validate-carve-manifest.py`: `OK … 142 moved_verbatim, 176 moved_with_declared_edit, 138 not_moved; 318 digest(s) recomputed`, rc=0. - `scripts/verify-carve-arrival.py --destination openxdox_code --phase B`, with the leg's six declared replicas: - **leg `45825ff7` vs THIS manifest: OK.** 96 rows arrived, 8 digests verified, 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used. - **leg `45825ff7` vs main's manifest: refused.** `arrival-digest-mismatch` at `src/openxdox/snapshot.py`, so the annotation is required. - **leg head `87e627c` (after openXdox-code#28's two review rounds) vs THIS manifest at `9248478c`: OK.** 87 declared-edit rows within their lines, 3 unapplied, 34 declared admissions used, rc=0. Against the carve blob, the leg's diff still touches exactly lines 14, 15, 16, 115, 116, 224, 225, 226, 230 and 1822 of the validator row, plus insertions beside 94 and 237. Every one is declared. - **leg `626f2c8d` (today's pin) vs THIS manifest: OK.** 85 within, 5 unapplied, and the two new admissions are reported `STALE (declared but not needed)` until the leg lands. So this PR lands ahead of the leg without reddening anything. - **The window is tight.** A copy without `:1822` refuses `arrival-undeclared-edit … [1822]`. - `pytest tests/carve_manifest tests/carve_arrival`: **408 passed on `main` → 409 passed here** (the new window test). - **The PR gates, `main` `dd2466ad` vs this branch at `9248478c`** (local, same-kind full clones at `…/openxFactory`, pinned CI lock, OpenSpec CLI 1.12.0, decision core `b21f0100`): | gate | `main` | this branch | | --- | --- | --- | | the PR gates' scripts (`verify-openxwallet-pin`, `validate-clearing-dispatch`, `verify-openxdox-pin`, `verify-opendox-pin`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `wallet-yaml-syntax-gate`, `validate-openxwallet`, `validate-factory-identity`, `validate-openspec-cli-pin --all --no-cache`, `validate-openreposhape-pin`, `validate-carve-manifest`, `validate-sequenced-after`) | all rc=0 | all rc=0 | | `validate-former-id-arrival.py --base dd2466a --head HEAD` | — | passed | | `openxdox-consumer-gate` pin suites | 105 / 105 / 0, HOLDS | 105 / 105 / 0, HOLDS | | `openxdox-consumer-gate` `tests/ideation-dashboard` | 1137 / 1137 / 0, HOLDS | 1137 / 1137 / 0, HOLDS | | `pytest-suite` in CI (the required check) | 8857 / 8851 / 6 (`main`'s test tree, from #1151's run) | **8858 / 8852 / 6**, freshness and vector replay passed ([job 107696117836](https://github.com/opensoft/openxFactory/actions/runs/36018216905/job/107696117836)); +1 is the new window test | | `pytest-suite` locally, per test case | 8446 cases | 8447 cases: the one added is the window test, which passed | | doc-health `--single-repo --as-of 2026-09-24` | 31 critical / 25 error / 52 warning / 20 info | identical. The one delta is the draft-age info line, where min goes 2 → 0 because the cutover runbook is edited | In the local per-test diff, the only outcome changes are three environment-bound `tests/doc-health/test_pin_reachability.py` cases, which depend on whether the retention ref namespace can be consulted from a local clone. Both local runs share two failures: a `test_validator_cli.py` subprocess timeout while several suites ran at once, and `test_snapshot_equivalence.py::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on`. CI is green. ## Touches Nothing under `openspec/changes/`, and not the README OpenSpec Records block (only the cutover-runbook doc-index line), **so no Rule 6 landing window**. ## Landing order (forced) 1. **This PR**, on a plain gate. 2. opensoft/openXdox-code#28. It stays DRAFT until this one lands. Its commit `45825ff7` is what both admissions' `since:` name. 3. OWED, separate PRs: - the openXdox root's code-pin bump, in the shape of openXdox#17/#18; - then this repository's openXdox pin bump, in the shape of #1146/#1148. It carries the consumer updates the fix makes due: `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_sealed_layout_is_the_one_find_validator_walks_up_to` asserts the old walk, and `scripts/ideation_dashboard/nightly_lane.py` calls `find_validator(agg_root)`, a start outside the product that answers `None` under the fix. ## Review round - **Copilot at `580e4684` (🟡), answered at `9248478c`.** - Both threads asked for the two admissions to be pinned by path AND `since`. The committed-admissions test gains a THIRTEENTH BUMP block, and the window test compares a path→`since` mapping. Moving one `since` to the later leg tip fails both (2 failed). - The overview's "stale count explanation" was the admissions test's ordinal sequence. It now reads "#1091 and #1153, thirteen amendments, ten of which bump `opendox_code`", recomputed from `git log --first-parent`. - `tests/carve_manifest` + `tests/carve_arrival`: 408 passed on `main` → 409 passed. - **Copilot at `9248478c`: 🟢 Approval recommended.** Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…LED 5815412869 C4) (#1154) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) ## What this is This is D-16 of the owed-acts register. `contracts/openxdox-pin.yaml` said *"A resync runbook written for THIS consumption is owed and does not yet exist"*, and its `resync_runbook:` named openXdox's own `README.md#the-lockstep-invariant` as a stand-in. RULED at #656 comment [5815412869](#656 (comment)) (item 3, **C4, option (a)**: *"the openXdox-pin resync runbook lands as one small PR after review"*) and claimed at [5815620605](#656 (comment)). Landing word: *"land the C1, C3 and C4 PRs when green"*. The holder lands this PR. I do not merge it. ## What changes | file | change | | --- | --- | | `docs/openxdox-pin-resync-runbook.md` | **new**, `Status: draft`, `Kind: runbook`, eight sections. It started as the helper bank's draft, re-verified against `main` `dd2466ad` command by command, and then went through eight Copilot rounds (below). Every command it gives fails closed or fails fast, and every one has been run as committed. | | `README.md` | one doc-index entry, beside the openXdox dispatch-credential binding runbook | | `contracts/openxdox-pin.yaml` | `resync_runbook:` now names the runbook, and the owed-gap paragraph above it is rewritten. The paragraph above `verify_pin:` still said the verifier was *"not yet wired into any required check"*. It is corrected in the same lines (`:152-153`), because `openxdox-consumer-gate` is a required check (ruleset 23554310) and has run it on every PR since #1059. **The `commit`, the digest and the gitlink do not move.** | | `scripts/verify-openxdox-pin.py` | The `REMEDIATION` trailer now names `docs/openxdox-pin-resync-runbook.md`. `neutral-product-pin` requires every refusal to name *"the path of the pin-resync runbook"*, and the openXwallet verifier's trailer already names its own. Four stale docstring blocks are corrected in place: `:89-90`, `:99-101`, `:103-105` and `:155-157`. | | `tests/openxdox_pin/test_openxdox_pin_verifier.py` | The one assertion that pins that trailer follows it. The docstring's dirty-checkout sentence (`:859-860`) gets the same correction as the verifier's. | **No cited line moves.** - The promoted `openspec/specs/document-lifecycle/spec.md` cites `contracts/openxdox-pin.yaml:76-79,92-94` and `scripts/verify-openxdox-pin.py:257` through `:329`. - The active `add-neutral-product-standalone-operability` design cites the pin's `:106-108`. - `amend-neutral-product-pin-source-tree-digest` cites `verify-openxdox-pin.py:19`, `:158-163` and the test's `:264-265`. - `scripts/doc_health/pin_shapes.py` cites `verify-openxdox-pin.py:186-187`. All three edited files keep their exact line counts (154, 626 and 1036), and every edit is in place, so each cited line still holds the content it held. ## What the re-verification corrected in the draft - **§ 2 (the verifier).** The draft said "four checks". The verifier runs shape guards first: `_pinned_commit` refuses `openxdox-pin-tag-only`, and `_pinned_tree_digest` refuses a malformed `tree_sha256`. Then come the four ordered checks, with five refusal codes in all, plus `pin-unreadable` outside the vocabulary. Check 2 reads the INDEX when the gitlink is staged, so after `git add openXdox` the verifier reports `gitlink read from the index`. - **§ 3 (the advance).** The draft gave only a pseudo-code digest recipe. The section now has three things: - an independent recompute that can be run, reproducing the recorded digest at each of four openXdox commits; - the forced leg → root → openxFactory order, with openXdox#18's re-point from PR head `39d8937e` to landed `626f2c8d` as the precedent; - the grep for the old sha in the pin's prose, and the by-line citations that make line count and position matter. - **§ 4 (the lockstep).** This now has the exact comparison, and the measured history: openXdox `646f1dc0`, `cd2596a2` and `2f3f857d` all derive openDox `dc7aa08f`. That is why #1146 and #1148 moved this pin alone. #1084 is the `DIFFERENT` precedent. - **§ 5 (the gates).** The draft reported *"105 tests, 90 passed, 15 failed"* from an uninitialized clone. This section now gives the environment both workflows set up, then their exact command blocks, floors and named verdicts. It also records a local gotcha: a checkout under any other directory name than `openxFactory` skips 13 ideation tests. - **§ 6 (the migration triple).** The facts are re-measured, and the check is now fail-closed. The one `UNCONFIRMED` is kept as the draft stated it. ## Copilot rounds Every thread is resolved with its measurement, and each overview's other items are answered in a PR comment. | round | review at | overview | fixed at | | --- | --- | --- | --- | | 1 | `d7afc3c2` | 🟡: two threads (whether the consumer gate is required; PyYAML's failure behaviour); the digest read could pass on a failed `ls-tree`; sibling staging; stale verifier docstrings | `4a050955` | | 2 | `4a050955` | 🟡: two threads (step 3 did not fail closed; an abbreviated sha in an example); the step 5 heading contradicted its bullet | `d06bb121` | | 3 | `d06bb121` | 🟡: one thread (a failed `git` call left a traceback, not `REFUSE`); § 4 accepted two malformed equal commits as lockstep (measured: rc 0 on `"abc"` == `"abc"`) | `5ae23f96` | | 4 | `5ae23f96` | 🔵, no findings. I re-read every command against its workflow and found three § 5 mismatches, plus § 6's shell-unsafe placeholder | `3302e814` | | 5 | `3302e814` | 🟡: one thread (a host-absolute placeholder); § 6 did not validate `COMMIT` | `baddd6f3` | | 6 | `baddd6f3` | 🔵, no findings; one "previously missed" item: § 5 did not give the workflows' environment setup | `51fd78d2` | | 7 | `51fd78d2` | 🔵, no findings: *"unresolved fail-closed error-handling issues and documentation corrections"*. I re-audited every block and pasted § 3 into an interactive zsh: two blocks carried `#` comments, which zsh passes on as arguments, and § 2's success line was inexact | `db09c2c4` | | 8 | `db09c2c4` | 🔵, no findings: *"pinned-core validation, dependency handling, and migration-range comparison"*. All three were real: nothing checked the pinned core's commit; § 4 needed PyYAML before § 5's setup; § 6 checked one commit, not the bump's range | `bc36cc09` | At `bc36cc09` the overview reads 🟢 *"Approval recommended — only minor documentation nits remain, with no approval-blocking issues identified"*, with **Findings: None**. ## Measured (local full clones named `openxFactory`) The kit replicates every PR-triggered gate from `.github/workflows/*.yml`. It ran over `baddd6f3`, beside `main` `dd2466ad`, this branch's base. `51fd78d2`, `db09c2c4` and `bc36cc09` change only the runbook's text. Those changes are re-measured by doc-health and by running each changed block as committed. | gate | `main` `dd2466ad` | this branch | | --- | --- | --- | | both verifiers | `OK … openXdox@2f3f857d … (149dc2cd…)`, `OK … openDox@dc7aa08f …` | same | | the other twelve validator steps the PR gates run: openXwallet pin, clearing dispatch, release-tag, signed chain, wallet syntax and validation, factory identity, OpenSpec CLI pin `--all`, openRepoShape pin, carve manifest, sequenced-after, former-id arrival | rc 0 (the arrival gate needs a range, so it runs on the branch only) | rc 0 | | consumer gate: pin suites | 105 / 105 / 0, 4 named verdicts passed | same | | consumer gate: ideation | 1137 / 1137 / 0, named verdict passed | same | | `pytest-suite`, local | 3 failed, 8 skipped | 2 failed, 6 skipped, 0 new failures | | doc-health `--single-repo --as-of 2026-09-24` | 31 critical, 25 error, 52 warning, 20 info | identical, apart from the draft-age info line (this runbook is a new draft) | - **The local `pytest-suite` failures are not this PR's.** The two left are `test_validator_cli::test_release_mode_field_is_preserved_on_the_real_repository[--require-realization-realization]` and `test_snapshot_equivalence::test_a_prefix_whose_path_cannot_be_resolved_is_replaced_not_raised_on`. Both fail identically at `main` `dd2466ad`. The per-test junit diff shows no test whose outcome worsened. The three that changed are network-dependent `test_pin_reachability` cases, which improved. - **CI is green.** `pytest-suite` passes at `baddd6f3`, and all twelve checks pass at `bc36cc09`. - **§ 5's blocks, run as committed** (fences extracted from the file): - the setup chain gave rc 0; - the consumer chain gave rc 0 (both OK lines, `105 passed`, `1137 passed`); - the `pytest-suite` chain with `CORE_CHECKOUT` unset stopped at its first link with rc 1; - the `pytest-suite` chain with it set ran through to the end, as it stood at `51fd78d2`, before round 8 added the pinned-core link: - the installer put `openspec` 1.12.0 on PATH, so none of the three `tests/proposal-support` tests skipped; - 8857 cases: 8850 passed, 6 skipped, 1 failed, the same local-only `test_validator_cli` failure as `main`; - both named verdicts, the freshness verifier and the vector replay, passed. - **§ 3, run end to end** in an interactive `zsh -f -i` under a pty, in a simulation clone with push disabled, with `NEW_SHA=069fe471…`: - every step gave rc 0, and the digest came out `3ad15b72…`, the one #1157 records; - with the checkout wrong, step 7's chain refused with rc 1. - **§ 5's pinned-core check**: the codexFactory core at `b21f0100` gives `OK`, rc 0. An openDox-code checkout, a directory that is not a git checkout, or an unset `CORE_CHECKOUT` each refuse with rc 1. - **§ 4 and the core check without PyYAML** each refuse with rc 1, naming the setup block. - **§ 6's range check**: - over the advance to `069fe471` it reports 0 changed and 0 present for the root (`2f3f857d` → `069fe471`), for code (`626f2c8d` → `e28930bf`) and for spec (unchanged); - over openDox-code `52b237e8` → `aca94ecb` it lists six added migration paths; - an abbreviated, empty or absent commit gives `REFUSE`, rc 1. ## Touches - **Rule 6: no landing window.** Nothing under `openspec/changes/`, and not the README OpenSpec Records block. - **The shared pin file.** C3's openXdox pin bump is open as #1157 and edits this pin's `:109` `commit:` and `:127` `tree_sha256`. This PR edits `:152-153`. `git merge-tree --write-tree` of the two heads is clean: the result keeps 154 lines, with #1157's `commit:` and digest and this PR's prose. Whichever lands second merges `main` in. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>





Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Realizes the openxFactory side of Brett Heap's ruling at #656 comment 5784683830 (2026-09-22T21:44:49Z), verbatim "1, keep completed and overlay implemented" (after 5784654370, "2, keep completed").
opensoft/openXdox-code#26 declared the overlay as195276b7and recorded the openxFactory half as owed "in the pin lockstep that carries this commit". This PR is that half.What a served page shows
Measured from a real
opendox.serve.build_server()in each assembly,GET /capabilities,displayblock:main5e12238800ce641dhost_facet/host_profiledeclared/openxfactory-engineeringdeclared/openxfactory-engineeringstages.completionshort/labelcompleted/completedimplemented/implementedstages.completionone/many/gatecompleted item/completed items/nullWhy the pin moves, and why it took two PRs
openxFactory pins the openXdox assembly root (
contracts/openxdox-pin.yaml, RULED OQ-L) and never a leg (split-opendox task 5.1).openXdox-codeis that root'scodeleg.Before Document content cleanup decision #17, openXdox
main(7194c06) pinnedcodeatab04453d, andab04453d..195276b7is exactly one commit, Record Merge Master review routing proof #26. So openXdox#17 moved the root's code pin, and this PR moves openxFactory's openXdox pin onto the root that Document content cleanup decision #17 landed.Minimal. Only the gitlink and two values in
contracts/openxdox-pin.yamlmove, plus one comment line reworded in place (00ce641d):commit:646f1dc0→cd2596a2(by way of the pre-landing8fdbff5d)digests.tree_sha25647f50184…b246→eb367f681435834807e2f77af9aa89c32ae7ef636d7a057ec4f6200198aa3e4bThe digest is
sorted-ls-tree-r-v1over 29 records, fromverify-openxdox-pin.py's owntree_digestand from an independent re-implementation. The control recomputes47f50184…at646f1dc0. No line is added or removed (the file stays 154 lines), because a promoted spec cites that file by line (openspec/specs/document-lifecycle/spec.md:357).The openDox pin does not move. openXdox's own
contracts/opendox-pin.yamlstill namesdc7aa08fatcd2596a2, andverify-opendox-pin.pyreportslockstep with openXdox confirmed.The composition:
scripts/profile_openxfactory.py_display_facet()gains"stages": _openxdox_stages(). That function copiesopenxdox.view_extensions.DISPLAY["stages"]two levels deep and never restates the word, so the word has one source: a pin that moves openXdox's value moves the served word with it. openxFactory declares no stage word of its own.stagesis composed. openXdox declares no other section. A section it adds later is surfaced by a test at the pin bump that carries it, rather than being merged silently.r4085197969):DISPLAYabsent, which is what a pin naming a code leg older than Record Merge Master review routing proof #26 looks like →RuntimeError, neverAttributeError. The type is load-bearing.host_display()reads the facet through a 3-argumentgetattr(profile, "DISPLAY", None), and the lazy proxy re-raises anyAttributeErrorasProfileFacetMissing, itself anAttributeError. So anAttributeErrorwould silently serve the whole facet (statuses, areas, acts, artifacts) ashost_facet: "absent".RuntimeError:DISPLAYnot a mapping,stagesnot a mapping, or a stage entry not a mapping.stages, an emptystages,shortonly) → followed. openDox's schema holds a partial facet legal. A run-time refusal would make this composer a second authority on what openXdox may declare. The ruled word is held at the gate: the served-page test fails, so a pin bump that carries such a leg cannot pass the requiredpytest-suite. This is the line openXdox-code Record Merge Master review routing proof #26 draws on its own side.stagesleaves the "left neutral" list, with the ruling that moved it (the old bullet called the stage words "an open naming question"). The new read adds no dependency:openxdox.view_extensionsandopenxdox.web_assetsimport only the standard library.Tests:
tests/test_engineering_profile_display_facet.py, 16 → 30 passedtest_sections_this_facet_deliberately_does_not_declarestill assertstokens,values,sections,areas.proposedandareas.referenceabsent. For stages it now assertsset(facet["stages"]) == {"completion"}: the five other stations are the deliberate absence./capabilities:implementedforshortandlabel,host_facetdeclarednormalize_display: the other five stations and completion'sone/many/gatestay neutral, and no two stations share a rendered wordstagesis the one section openXdox declares and the one composedstages, an emptystages, orshortonly; the composition drops them) fails the positive predicateDISPLAYremoved refuses withRuntimeError, throughhost_display()too, instead of serving absent5807b959):DISPLAYa list,DISPLAYa string,stagesnot a mapping, a stage entry not a mapping. Each refuses withRuntimeErrornaming the required shape, and none raises anAttributeErroramend-home-adapter-scope-and-mapping-axis-countcites this file at:300-303. Every edit above that range keeps the line count, and lines 297-304 are byte-identical tomain. The new tests are appended after section 7.Mutation sweep over the composer, each defect applied alone, all ten caught (re-run at
00ce641d, control 30 passed):stagescomposedDISPLAYraised asAttributeErrorDISPLAYdegraded to no stagesshorttakenab04453d(an unbumped pin)DISPLAYdegraded to no stagesGates,
mainversus this headCI, like for like.
main's ownpushrun at5e122388, against this head'spull_requestrun, which merged00ce641dinto that same5e122388(merge38d545fc):main5e12238800ce641dpytest-suitesummary8425 passed, 6 skipped, 338 deselected, 410 subtests(run 35907128216)8439 passed, 6 skipped, 338 deselected, 410 subtests(run 35907387956)pytest-suitepinned tripleselected=8841 passed=8835 skipped=6selected=8855 passed=8849 skipped=6,failures=0 errors=0openxdox-consumer-gatepin suites105/105/0, margin 0, four named verdicts passed (run 35907387930)openxdox-consumer-gateconsumer suite1137/1137/0, margin 0, named verdict passed5e122388:clearing-dispatch-gate,signed-execution-chain-gate,review-lane-repinsuccess (the rest run on pull requests only)clearing-dispatch-gate,former-id-arrival-gate,lane-line,merge-master-approval,openreposhape-pin,openspec-cli-pin,release-tag-gate,signed-execution-chain-gate,wallet-validation, SonarCloud+14 selected and +14 passed, exactly the fourteen new tests, with the same 410 subtests on both sides and SKIPPED at the pinned 6. The earlier heads measured the same way against the
mainof their day (9f357e95,8361 passed,8776 / 8770 / 6):2e65a488+8 andedd52d07+10, the new-test count at each. Thepytest-suiteruns at1e443c47and5807b959were cancelled by the next push.Local, in a CI-shaped checkout. The checkout is nested at
openxFactory/, the submodules are initialized aspytest-suite.ymldoes, and the run uses the hash-pinned lock, the pinned openspec CLI 1.12.0 andGIT_CONFIG_GLOBAL=/dev/null. Each gate below runs its workflow's exact command, and both sides exit 0. The head's merge base isa151e462:maina151e46200ce641dvalidate-openspec-cli-pin.py --all --no-cacheTotals: 111 passed, 1 failed (112 items), 0 UNDISPOSITIONED, 1 ACCEPTED EXCEPTIONverify-openxdox-pin.py646f1dc0/47f50184…cd2596a2/eb367f68…verify-opendox-pin.pyThe whole-suite local runs are superseded by CI's pair above. Both lost tests to the host, not the code: on a host at load average 46 over 32 cores,
subprocess.TimeoutExpired … timed out after 30 secondsintests/hermes_runtime_contracts/test_validator_cli.pyfailed 3 tests onmainand 1 atedd52d07, andmain's own CI passes them. Passed plus failed moved from 8771 to 8781, +10, the delta CI measured at that head.Rule 6
This PR touches no
openspec/changes/path and no README OpenSpec Records line, so it is a plain gate with no landing window.Claims
Sibling search re-run at 2026-09-23T19:35:54Z:
openxFactory, and no open PR inopenXdoxoropenXdox-code, touches these files or pinslanes/LANES.md(brett-wipefb8944e) shows no other lane on the openXdox/openDox pins#656comments after the ruling are this lane's own RULED records: 5800995035 (File add-neutral-product-standalone-operability: open the BUILD arc, recording ten rulings #1144's questions) and 5801057769 (the follow-on below)Owed after this lands (not taken here)
opensoft/xFactoryaggregation pointer advance, in the forced order.one/manywording that Record Merge Master review routing proof #26 left open is now RULED on openDox + openXdox: two open-source layers, an installable app with users, projects and a database; domain descendants pin openXdox (Brett's ruling 2026-09-04) #656 at 5801057769 (2026-09-23T19:00:37Z), verbatim "yes, overlay implemented items too". It travels as its own chain in the same forced order (openXdox-code, then the openXdox root pin, then openxFactory's pin), and is not folded into this PR. At that pin bump_display_facet()needs no code change, because it copies the stages; the section-8 test that holds completion'sone/manyneutral moves with the words.🤖 Generated with Claude Code
Summary by Sourcery
Apply the ruled completion-stage overlay by sourcing openXdox’s display declaration and advance the pinned openXdox assembly accordingly.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests:
Chores: