Skip to content

DISPLAY: serve the completion stage's item nouns as "implemented item(s)" from openXdox (RULED #656 5801057769); openXdox pin cd2596a2 → 2f3f857d - #1148

Merged
brettheap merged 1 commit into
mainfrom
pin/openxdox-display-item-nouns-implemented
Sep 23, 2026
Merged

brettheap merged 1 commit into
mainfrom
pin/openxdox-display-item-nouns-implemented

Conversation

@brettheap

@brettheap brettheap commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Realizes the openxFactory side of Brett Heap's ruling at #656 comment 5801057769 (2026-09-23T19:00:37Z), verbatim "yes, overlay implemented items too". It extends 5784683830 ("1, keep completed and overlay implemented"), which #1146 served. This is STEP 2 of the forced order (RULED 5767804734 item 5), and both steps before it have landed:

step PR landed
the facet's one / many opensoft/openXdox-code#27 626f2c8d (squash, 2026-09-23T20:17:07Z)
STEP 1, the openXdox root's code pin 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: Record Merge Master review routing proof #26's two names without Record worker auth memory operations readiness #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

Summary by Sourcery

Update the openXdox pin so openxFactory serves the ruled implemented completion-stage item nouns.

New Features:

  • Serve “implemented item” and “implemented items” for the completion stage alongside its existing implemented names.

Enhancements:

  • Expand display coverage to ensure the completion item nouns are sourced from openXdox while other stages and the completion gate remain neutral.
  • Strengthen display tests to validate the complete overlay, partial upstream declarations, and prevention of duplicated stage wording.

Build:

  • Advance the openXdox dependency pin and update its verified tree digest.

Tests:

  • Extend engineering profile display tests for completion item nouns and incomplete overlay fallbacks.

…(s)" from openXdox (RULED #656 5801057769); openXdox pin cd2596a2 -> 2f3f857d

Brett Heap, #656 comment 5801057769 (2026-09-23T19:00:37Z),
verbatim "yes, overlay implemented items too". This is STEP 2 of the forced
order (RULED 5767804734 item 5) for that ruling:
- opensoft/openXdox-code#27 -> 626f2c8d declared `one` / `many`.
- opensoft/openXdox#18 -> 2f3f857d moved the root's code pin onto it.
- This commit moves openxFactory's openXdox pin onto that root.

The pin, value-only, and the file stays 154 lines:
- the `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. As a control, both recompute eb367f68... at cd2596a2.
2f3f857d^{tree} = eb89dc23^{tree} = c79958ac, so #18's landing moved no
byte. openXdox's contracts/opendox-pin.yaml still names dc7aa08f, and
verify-opendox-pin.py confirms the lockstep.

`_display_facet()` NEEDS NO CODE CHANGE, as #1146 designed. It copies
openXdox's `stages`, so the new nouns arrive with the pin.
scripts/profile_openxfactory.py changes in docstrings only: its AST with
docstrings stripped is identical to main's (ast.dump compared). Those
docstrings said #26's entry is "one stage entry and two fields"; they now
cite #27 and the second ruling.

tests/test_engineering_profile_display_facet.py, section 8 only; lines
1-407 are byte-identical to main, so the :300-303 citation holds:
- The positive predicate (_completion_renders_the_ruled_words) requires
  all four words.
- The neutral assertion keeps completion's `gate` only.
- The "no two stations share a word" check covers `one` and `many` too.
- The no-restate AST check covers every word openXdox's `stages` declares.
- A new shortfall case, #26's names without #27's nouns (what an unbumped
  pin serves), fails the positive predicate. 30 -> 31 passed.

Mutation sweep over the composer: 11 of 11 caught. M11 checks out the code
leg at 195276b7 (the unbumped pin) and fails 2 tests. The control run is
31 passed.

Lane: openxfactory-4
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 23, 2026 20:29
@sourcery-ai

sourcery-ai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR bumps openxFactory’s openXdox pin to the revision that supplies the ruled completion-stage item nouns, relying on the existing deep-copy composition path rather than adding local display values. Documentation and focused tests now verify that the served completion stage renders “implemented item(s),” other fields remain neutral, and upstream values remain the sole source.

Sequence diagram for serving implemented completion item nouns

sequenceDiagram
    participant Client
    participant Profile as openxFactory profile
    participant OpenXdox as openXdox DISPLAY
    participant Server as openDox server

    Client->>Server: GET /capabilities
    Server->>Profile: _display_facet(profile)
    Profile->>OpenXdox: read DISPLAY
    OpenXdox-->>Profile: completion short, label, one, many
    Profile->>Profile: _openxdox_stages()
    Profile-->>Server: deep-copied completion stage
    Server-->>Client: implemented item / implemented items
Loading

File-Level Changes

Change Details Files
Advanced the openXdox dependency to consume the ruled completion-stage item nouns.
  • Updated the openXdox gitlink and contract commit pin.
  • Recomputed and recorded the pinned tree digest.
  • Kept the pin verification metadata consistent with the new upstream revision.
openXdox
contracts/openxdox-pin.yaml
Documented that completion-stage names and item nouns are copied from openXdox as a single source of truth.
  • Updated implementation docstrings with the second ruling and upstream revision details.
  • Clarified that partial upstream overlays remain valid and are followed.
  • Confirmed no runtime composer logic change is needed because the existing deep copy propagates the new fields.
scripts/profile_openxfactory.py
Extended display-facet coverage to require and protect the implemented item singular and plural forms.
  • Changed the positive predicate to validate short, label, one, and many.
  • Preserved neutral values for the other stations and completion gate.
  • Expanded uniqueness and no-restatement checks to item nouns and future upstream stage words.
  • Added coverage for an upstream pin that provides names without item nouns.
tests/test_engineering_profile_display_facet.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain, and all reviewed changes are covered by tests.

Review effort: Lite
Findings: None

What changed in this PR

Updates the pinned openXdox assembly so completion-stage item nouns render as “implemented item(s)”.

Changes:

  • Advances the openXdox commit and verified tree digest.
  • Extends display tests for nouns, fallbacks, and neutrality.
  • Updates profile overlay documentation.
File Summary
tests/​test_engineering_profile_display_facet.py Validates implemented item singular/plural rendering and fallback behavior.
scripts/​profile_openxfactory.py Documents the expanded display overlay.
contracts/​openxdox-pin.yaml Records the updated commit and tree digest.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 23, 2026 20:54
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

READY #1148 @af23298e

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 13 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit f1c690b into main Sep 23, 2026
16 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

LANDED — lane openxfactory-4, 2026-09-23T20:57:15Z, PR #1148 → f1c690b (opensoft/openxFactory main; plain gate)

Brett: yes, overlay implemented items too

brettheap pushed a commit that referenced this pull request Sep 23, 2026
…91141), and the legs are named in D15 until #1150

Brett ruled "1, name the roots and file the follow-up" (#656 comment
5804191141, superseding 5802995365). The membership arm of #1119 refuses
a code_surface identifier the estate inventory does not carry. The
inventory carries opensoft/openDox and opensoft/openXdox, both pinned, and
neither code leg, and none of its admission kinds can admit a leg today.
The follow-up that lets it record a leg nested under a pinned root is
#1150.

- proposal.md: the head is now "openxFactory, opensoft/openDox and
  opensoft/openXdox". The gloss says the code is written in the legs and
  reaches openxFactory only through the roots' pins, as openXdox#17/#18 and
  openxFactory#1146/#1148 did, and that the head re-points at the legs once
  #1150 lands. The realization spans five repositories, target_release
  names openXdox too, and the Impact bullet no longer puts the root outside
  the code surface.
- design.md: new D15, a note and not a requirement: why the head names the
  roots, where the code lands, and the re-pointing.
- tasks.md: 9.5 lists the openXdox route (root code pin 626f2c8d,
  openxFactory's openXdox pin pair at 2f3f857d) and both verifiers; 11.0
  adds openXdox; 11.1 and its guard admit both pin pairs (PIN_PAIRS). The
  harness now builds real gitlinks: moving each pair passes; deleting the
  openXdox pin file or gitlink, or moving an undeclared gitlink, is refused;
  the previous guard refused the openXdox pair's move.
- #1148 (f1c690b) and openXdox-code#27 (626f2c8d, RULED 5801057769)
  recorded in 5.3a, F3, R-G3, D13 and the proposal. F3 stays [~]: every
  other station is still neutral. 5.3a's falsifier passes at 626f2c8d.

No requirement or scenario changes. Counts unchanged: 17 requirements, 75
scenarios, boxes 9 [x] / 106 [ ] / 9 [~].

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…recording ten rulings (#1144)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

**DRAFT STATUS — for Brett Heap's ratification read. This packet authors no code byte and lands nothing. All fifteen rulings are recorded below. Every gate is green at the head, the code-surface membership arm included, since ruling 15 named the assembly roots — see "Gate state". The packet stays `Status: draft` and lands only through the holder's lander in a Rule 6 window; this actor merges nothing.**

## What this is

The archived carve packet `split-opendox-two-layer-product` (#1139 → `e8fde27f`) closed its governance ledger and left its **dependency inversion** open — `openDox-code/src/opendox/consumer_reach.py` says so in the tree: *"the injection that would make this reach disappear does not exist yet and is BUILD-arc work."* This packet opens that arc.

ONE `## ADDED Requirements` block creating the capability **`neutral-product-standalone-operability`** — **17 requirements, 75 scenarios**, written domain-neutrally with openDox as the measured instance, one per gap of the 2026-09-22 feature/gap sweep (G1–G10) plus the ruled submission step, the ruled install shape, the ruled fix loop, the ruled check-pack interface and, from 2026-09-23, chat's model configuration — each separately satisfiable and each falsifiable by a command named in `tasks.md`. It is the sibling of `neutral-product-pin`: that governs openxFactory CONSUMING an external neutral product; this governs the product being able to STAND UP without its consumer.

## The owner's question, and the measurement that answers it

Brett asked this lane: *can openDox be self-contained as a research and document tool?* **DIRECTION Q5** already set the test in his own words — *"a student could use openDox or a lab assistant. so we want that to still be useful on its own"*. Two commands answer it, in a checkout of `opensoft/openDox-code` at `f8a1ece` with `PYTHONPATH=./src`:

```
$ python3 -c "import opendox.runtime.cli"     → exits 0
$ python3 -c "import opendox.serve"           → ModuleNotFoundError: No module named 'ideation_dashboard'
```

openDox-code is **two products in one repository**. `opendox.runtime` is the app the founding ruling asked for and it works, standalone. The **document** surface does not import. `opendox.cli` and `opendox.notebook_action` fail through the same line, so the "Open in NotebookLM" tile action — one of the two integrations Brett named by name — is unreachable in the repository that owns it. It is **two import-time lines** (`serve.py:199`, `:206`) importing **five plain route strings**, and they cause **1,232 of the 1,298 errors** a whole `pytest -q` run produces, where the passing count is zero.

## Three findings, recorded rather than assumed

**1 — Which direction is unclosed.** openDox → openXdox is **finished**: thirteen import-time back-reaches became zero under BUILD slices 2 and 2b, and the `OPENDOX_BACK_IMPORTS` ratchet passes today at `0` / `19`. What is NOT closed is the reach into the **publisher** — and **no gate watches that direction**, which is how it survived a completed inversion under a green required check. G4 is sharper still: a **declared carve edit that never landed** — the manifest row for `authoring.py` already names the edit class, the lines `[317, 318]` and the operation that answers.

**2 — Both legs are green, and that is the problem.** openDox-code runs 37 of 63 test files and clears its floor with **zero margin**; openXdox-code runs 16 of 85. Run whole, openXdox produces **1,089 errors and zero passed**. Every one of its six skips reads *"doc_health reachability is BUILD-arc work … this test will assert for real once that lands"*. **The whole-product assertions are precisely the ones that skip.**

**3 — Where this packet is filed, and why.** In **openxFactory**, not openDox-spec. That instance is **operable** (`openspec validate --all --strict` exits 0), so the default did not fire and the choice needed an argument. It is **empty** — `openspec list --specs` answers `No specs found.` Worse, three of its four active changes carry MODIFIED blocks against a spec that does not exist there, **so they can never be archived**, and its pinned CLI 1.2.0 emits none of the notices that report it. **That openDox cannot yet govern its own BUILD arc is itself G7**, carried as requirement 8, whose third scenario names the condition that ENDS the arrangement. The ruling that argues against this filing — RULED OQ-N — is answered in the proposal, not omitted: it names *that* BUILD arc by its two boxes, and **that arc is finished**, landed in openDox-code on 2026-09-18 exactly as OQ-N directed.

## Ten rulings, recorded — this packet asks nothing it could answer

Brett ruled ten things for this arc on 2026-09-22, across seven comments on #656, and sent two constraints with them. **Three of the ten AMEND FOUNDING RULINGS**, and each says so where a reader meets it rather than leaving it to be found.

**1 — THE NEUTRAL GENERATOR (req 4), [`5783335210`](#656 (comment)): *"yes, openDox gets its own neutral generator."*** openDox does not take openXdox's `generator.py`; it grows a small neutral projection over the `CorpusAdapter` protocol it *already declares*, with `runtime/local_git_adapter.py` as the conformant implementation it already ships. openXdox **keeps** its governed generator and injects it through a seam of the same pattern.

**And the ruling is better than this packet's own recommendation, for a fact the packet had not measured.** It recommended relocating the generator; `src/openxdox/generator.py:66-68` reads `from doc_health import corpus` / `RealGit` / `lines.split_keepends`. **The generator imports openxFactory's `doc_health` directly**, so relocating it would have put `import doc_health` inside the neutral core — the exact thing `corpus-adapter-seam` forbids. `design.md` § R-G3 records the correction in full rather than fixing it quietly.

*Two constraints arrived with it:* `NEUTRAL_DISPLAY`'s six words stand unchanged — `sources → groups → candidates → selections → submissions → completed` (rulings 9 and 10 below settle the sixth) — and the view-wiring slice, claimed under actor `viewwire`, has **LANDED as openDox-code#35 → `3c3a9e31`** and is **not owned here**. It touched only `src/opendox/web/` and tests, so no Python line this packet cites moved.

**2 — THE SUBMISSION STEP (req 11), [`5783934499`](#656 (comment)): *"add a neutral publish step to the build arc."*** RULING C3 makes a standalone openDox a plain local git repository, but `session_pr.py:297`'s `GhPullRequests` shells `["gh", "pr", …]` against `_GITHUB_HOST = "github.com"`, so the student C3 describes cannot get a session's work out at all. Requirement 11 declares a neutral submission protocol — `SubmissionPort`, one operation, split from the platform's `PullRequestPort`, which stays unchanged — with a neutral default that pushes the session branch to an attached remote and says plainly when there is none.

Measured refinement: a protocol **already exists** (`PullRequestPort`, three operations, `push` already neutral) and so does its injection point (`serve.py:766`'s `pull_request_factory`, called at `:931-932`) — the hard-wire is the **default binding**, not the protocol, so requirement 11 repoints an unset default rather than inventing a seam. **And a further measurement made the step larger than a binding:** the ACT of submitting, meaning the verb `gate open-pr` (`openxdox/cli_gate.py:634`), the engine `execute_open_pr` (`openxdox/gate_routes.py:2417`) and the route, is **openXdox's**, and nothing in openDox calls either default binding. So a standalone openDox cannot submit at all, `gh` or no `gh`. Task 12.4a gives openDox its own `submit` verb and route, and requirement 11 gains the scenario that names the gap. Named *submission*, not *publish*, because this capability already uses "publisher" for the repository that publishes the corpus; *submissions* is the fifth of the six ruled words.

**3 — MERGE, [`5784155201`](#656 (comment)), *"merge yes"*.** The hold is released. The absence in `session_pr.py` was never about merging — it was **separation of duties**, and that is kept wherever a governance exists outside the tool: a governed host RESERVES landing and routes it to that governance's instrument, so openxFactory's flow is untouched. What is dropped is its LETTER exactly where the user IS the governance. **Three guardrails hold in every mode and none is configurable**: explicit HUMAN act, conflicts SHOWN, and a merge that is a COMMIT and therefore revertible.

**4 — BUNDLED POSTGRES, ONE DIALECT (req 12).** The install brings the database so a user installs the product, not a database. **No SQLite** — a second dialect doubles every migration forever for a store that by RULING Q1 holds no document. Both DSNs survive: a single-user install is not a reason to serve from the migrating credential.

**5 — A NAMED LOCAL IDENTITY MODE (req 13) — AMENDS RULING Q2.** `config.py:89-92` makes the Keycloak issuer REQUIRED; a single user cannot run a Keycloak. The amendment is narrow and the narrowness is the point, with the safety in one scenario: **a hosted install with no issuer REFUSES rather than degrading**, because a mode you enter by forgetting to configure something is an unauthenticated multi-user install wearing the word "local".

**6 — HEALTH RESULTS IN THE STORE (req 6, amended) — AMENDS RULING Q1's CLOSED TABLE LIST**, by the additive path `0001`'s own text names. **Two corrections this packet measured:** it is `0003_`, not `0002_` — that file exists, the migration ledger — and the closure test is scoped to the CANONICAL migration, so it moves only if the health table is declared a DOMAIN table; `0002`'s ledger is the precedent for the other answer, and the realization declares which and why. **Q1's principle is untouched**: no document, still disposable, results recomputable from git.

**7 — THE FIX LOOP (reqs 14, 15), [`5784247356`](#656 (comment) Detection without resolution is a list that grows. Three resolution classes, CLI parity with the view, and **every repair a draft on a branch that reaches the default branch only through the merge rule — nothing auto-merges, not even a one-line fix**, with batching as the pressure valve. The applier is genuinely new: openxFactory CLASSIFIES findings (`AUTO_FIXABLE`/`CONTESTED`) and no code in `scripts/doc_health/` applies one. **And exceptions live in GIT, not the store** — the store is disposable by Q1, so an exception kept there is a judgement scheduled for deletion whose finding silently returns on the next reset.

**8 — THE CHECK-PACK INTERFACE (req 16), [`5784295745`](#656 (comment) A pack supplies families, findings and patches; the ENGINE owns the view, scheduling, the baseline, storage and the fix loop; and **a pack CANNOT redefine the resolution classes, the baseline rules, or who may land work** — those are the guarantees the rest of this capability exists to give, and a pack that could vary them would make each one conditional on which plugins an install carries. Guardrails: a pack runs **in an OS-enforced sandbox** — a read-only mount of an isolated copy, no network, its whole process tree ended with the sandbox — so only the engine can write; pinned by commit and digest (digest alone for a pack the corpus carries); and a pack that crashes or times out becomes a **finding against that pack** rather than taking the run down.

**9 — THE SIXTH WORD IS `completed`, [`5784654370`](#656 (comment)): *"2, keep completed"*.** The sixth stage's role is `completion` and its short label is **`completed`**, exactly as `NEUTRAL_DISPLAY["stages"]["completion"]["short"]` declares it — measured at openDox-code `3c3a9e31` before encoding. **This packet had spelled it `completions` in four places**, because it quoted the module docstring (`display_profile.py:77`, since aligned by openDox-code#36 → `1e4a57fb`) instead of the declaration. Every list of the six words now ends `completed`, and the correction is recorded where the old spelling stood.

**10 — openXdox OVERLAYS "implemented" THROUGH A FACET, [`5784683830`](#656 (comment)): *"1, keep completed and overlay implemented"*.** The neutral word stays; openXdox declares a PARTIAL `DISPLAY` facet labelling the `completion` stage "implemented", the governed lifecycle's word, and openDox fills everything else from `NEUTRAL_DISPLAY`. It is **the estate's first `DISPLAY` facet** (task 5.3a), and it has LANDED as openXdox-code#26 → `195276b7` — as a module value in `view_extensions.py`, not a `DomainProfile` field, which is where 5.3a and its falsifier now read it. Served pages show it since openxFactory#1146 → `d52b4199`, and its item nouns since #1148 → `f1c690b8` (ruling 14). The falsifier was run against the real `normalize_display` at `3c3a9e31` first, which is how it learned that a facet giving `short` alone leaves `label` at "completed" — so the box requires both.

**This is also what finally gives openxFactory's 23 governance families a home** that is neither "stay in openxFactory forever" nor "move into the neutral core" — an **openXdox pack**, named here as a FOLLOW-ON and deliberately not authored here, alongside each DomainxFactory's own pack.

## Three rulings of 2026-09-23 — two releases, one change

Brett ruled three more times on #656, and the third answered the four questions this packet raised when it measured the second against requirement 1.

**11 — THE DIRECT ARROW STAYS, [`5799494355`](#656 (comment)): *"keep the direct arrow, revisit after phase 1"*.** RULING OQ-2's pin chain is unchanged: openxFactory pins BOTH openXdox and openDox, with the lockstep in `scripts/verify-opendox-pin.py`. openxFactory's direct use of openDox is a legitimate host use; the arrow that blocks standalone is the reverse one, which phase 1 cuts. `design.md` § D13 carries it as a non-normative note, and follow-on F4 is the revisit.

**12 — TWO RELEASES, [`5799646419`](#656 (comment)): *"a, phases 1-3 as the first release"*.** Release 1: phase 1 it runs, phase 2 it is useful alone, phase 3 it installs. Release 2: phase 4 merge, the governed pull-request path and submission behind one interface; phase 5 the health engine, the fix loop, exceptions in git and the check packs. The release map at the head of `tasks.md` places every group, and **release 2's rulings are SEQUENCED, not deferred, reopened or weakened.**

**13 — THE FOUR QUESTIONS, [`5800995035`](#656 (comment)): *"the four 1144 questions, go with recomendations"*.**
- **Requirement 1 is KEPT.** Ruling 12's phase-1 text moved openxFactory's lane actions and host wiring into openXdox, which requirement 1, the carve manifest's `stays_openxfactory_adapter` rows and 11.1's guard all refuse (the guard, run over such a move, names five paths). Phase 1 is the G1/G4 cut, a neutral default host profile, and openDox's own default corpus adapter registered at startup (new task 4.1a). The direct-arrow revisit now re-measures after phase 1 instead of waiting on a condition that could never be met.
- **One change.** `release-realization` admits one `target_release:`, so the releases are sequencing, and the change archives only on merged, green evidence for BOTH. Splitting release 2 out stays open for later.
- **Requirement 17, NEW:** chat reaches any OpenAI-compatible endpoint by URL, model name and credential reference, never a raw key; a clear "no model configured" state with the rest of openDox working; `doxbench_provider.py` stays the only module that contacts a provider. Group 16 carries it, measured at openDox-code `1e4a57fb`: the one dialect speaks no OpenAI grammar, the record has no model name, a key inside the endpoint URL is ACCEPTED today, the catalog advertises `omp-local` as available with no harness installed, and the provider-boundary test is a standing red that no required check runs.
- **Release 1 is "standalone operation"**, not a declared standalone product: requirement 8 keeps that declaration for openDox-spec.

## Two later rulings of 2026-09-23 — the item nouns, and the code surface

**14 — THE ITEM NOUNS, [`5801057769`](#656 (comment)): *"yes, overlay implemented items too"*.** openXdox-code#27 → `626f2c8d` adds the `completion` entry's `one` and `many` ("implemented item", "implemented items") to openXdox's partial facet, and openxFactory#1148 → `f1c690b8` serves them. It is follow-on F3's second landing, not this packet's work. F3 stays `[~]` because every other station is still neutral. 5.3a, R-G3 and D13 record it, and 5.3a's falsifier passes at `626f2c8d` as it did at `195276b7`.

**15 — THE CODE SURFACE NAMES THE ROOTS, [`5804191141`](#656 (comment)): *"1, name the roots and file the follow-up"*.** This supersedes `5802995365`, whose inventory-rows route was dead. The inventory's reader, `scripts/estate_inventory.py`, reads workflow evidence only at `uses:` and `with.repository:`, never from a `run:` line. openxFactory's workflows reach the legs only through `git submodule update --init --recursive` on the two roots, in `run:` lines. The head is now **`openxFactory, opensoft/openDox and opensoft/openXdox`**: two roots the inventory already carries (both `pinned`) and openxFactory's host wiring.
- The gloss says where the code is WRITTEN: in the legs `opensoft/openDox-code` and `opensoft/openXdox-code`.
- A leg's code reaches openxFactory only through the roots' pins. That is the route openXdox#17/#18 → openxFactory#1146/#1148 took today.
- The follow-up is **#1150**, which asks the inventory to record a code leg nested under a pinned root. The head re-points at the legs once it lands.

`design.md` § **D15** is a note, not a requirement, and records all three points.

The route forced three companion edits that the ruling's own example needs:
- **9.5** now lists the openXdox route: the root's `code` pin at `626f2c8d`, and openxFactory's `openXdox` gitlink and `contracts/openxdox-pin.yaml` at `2f3f857d`. It names both verifiers.
- **11.0** adds openXdox to the repositories whose commits carry the `Arc:` trailer.
- **11.1's guard** admits BOTH pin pairs (`PIN_PAIRS`). The guard before this round refused the openXdox pair's move, as the control run shows.

## Corrections the measurements forced

- **The submission report redacts a credential the remote's URL carries** (Copilot `r4088286823`). A git remote can embed userinfo or a query-string token, and 12.4a's verb prints the report. 12.1a now reports where the work went and never what the remote holds, and the same applies to a refused or failed push's message. The falsifier runs a named regression test, `test_a_credential_in_the_remote_url_never_reaches_the_report`.
- **Scenario ordinals now match the spec delta.**
  - Group 12 cited requirement 11's report and no-remote scenarios as the second and third. Round 11 inserted a new second scenario, so they are now the third and fourth.
  - `design.md` § R-G3 and the proposal cited requirement 3's "fourth" scenario for the neutral-vocabulary rule. That scenario has been the third since it was written.
- **9.5 never listed the openXdox route**, which is the route ruling 15 cites. It now lists the openXdox root's `code` pin and openxFactory's `openXdox` pin pair, measured on every main line today.
- **11.1's guard harness now builds real gitlinks.** It extracts the committed block from `tasks.md` and runs 14 cases, all as expected:
  - the ten earlier cases;
  - a landing that moves each pin pair in one commit (passes);
  - a deleted `contracts/openxdox-pin.yaml`, a deleted `openXdox` gitlink, and a moved undeclared gitlink (each refused).

  The same harness over the guard at `f3511e0c` refuses the openXdox pair's move, so the extension was needed.
- **5.3a now reads the facet where it LANDED.** openXdox-code#26 → `195276b7` declared it as a module value, `openxdox.view_extensions.DISPLAY`, and NOT on `DomainProfile`, because openxFactory's composite host would never forward it there. The box's old falsifier, `host_display(DomainProfile)`, answers `None` against the landed trees; the new one passes against openXdox-code `195276b7` with openDox-code `1e4a57fb`.
- **3.3 asked for a manifest edit the guard refuses.** The `deleted_at_carve` row has no `edits[]` entry to annotate, so the box now leaves it byte-identical.
- **11.1's guard let a declared surface be deleted.** It now reads `--name-status --no-renames` and refuses a deletion or rename of any path, a host file or the pin file included. A scratch-repository harness ran the committed block over ten cases and every one behaved as expected: two must pass (one history holding a squash landing, another lane's landings, a merge of main into the arc branch and a trailered merge landing; and a bare note extension), and eight must refuse (a family edit hidden in a merge landing, a ledger edit, a deleted host file, a renamed host file, a deleted host test, a deleted pin file, a rewritten note, a changed digest).
- **The proposal said the carve manifest files `corpus_adapter_openxfactory` and `opendox_host.py`.** Neither has a row; the `ideation_dashboard` modules that stayed do.
- **openDox-code#36 landed** → `1e4a57fb`, and the packet says so.

## What openxFactory keeps

Requirement 1 says it as a refusal, not a promise: the corpus, the OpenSpec instance, **every** doc-health check family, the adapter column, the intent-plane schemas and the integration tests all stay. The measurement shows there was never much to take — at check-family granularity the tally is **0 pure TOOL, 6 BOTH, 17 CORPUS-OPS of 23: no pure-tooling family exists.** The arc **reverses a direction**; it does not relocate a boundary.

## Gate state at `19237b91` — every gate green, the membership arm included

Run on the head. It already carries main `f1c690b8`, merged in by `gh pr update-branch`, so it is the tree CI tests.

```
openspec validate add-neutral-product-standalone-operability --strict  → valid
openspec validate --all --strict            → 111 passed, 1 failed (112 items)
                                              baseline at main f1c690b: 110 / 1 of 111
                                              → +1 item, +1 passed, ZERO new failures
validate-openspec-cli-pin.py --all --no-cache → exit 0, 0 UNDISPOSITIONED failures
validate-code-surface.py .                  → passed. Membership: 31 heads naming 8 identifiers,
                                              all 8 carried by the inventory (33 rows), 0 refused
                                              (main alone: 30 heads naming 6)
validate-target-release.py .                → passed
validate-sequenced-after.py --ledger-diff   → consistent, 228 rows (main alone: 227)
proposal-support.py . verify                → ok
the three membership tests                  → 3 passed (all three failed at f3511e0 merged with main)
tasks.md falsifier blocks                   → 22 shell blocks pass `bash -n`; 23 Python heredocs parse
11.1's guard, in a scratch-repository harness → 14 of 14 cases as expected
                                              (the guard at f3511e0: 13 of 14; it refuses the openXdox pair's move)
5.3a's falsifier                            → passes at openXdox-code 626f2c8d with openDox-code 1e4a57fb
```

The three membership tests are:
- `tests/code_surface/test_code_surface_gate.py::test_corpus_code_surface_validates`
- `tests/estate_inventory/test_estate_inventory.py::test_corpus_code_surface_and_membership_validate`
- `tests/estate_inventory/test_estate_inventory.py::test_every_live_declared_identifier_is_CARRIED_by_the_inventory`

**CI at `19237b91`: all 13 checks are green.** `pytest-suite` reports 8440 passed, 6 skipped and 0 failed (its junit tally: selected 8858, passed 8852, failures 0, errors 0). At `f3511e0c` it reported 3 failed, 8436 passed and 6 skipped, and the 3 failures were exactly the three membership tests above. `2a0b95e6`, the same tree but for this round's Copilot fixes, gave the same 8440 / 6 / 0.

The single `failed` in `--all` is `add-chain-attestation`'s ratified disposition. The adjudicated gate accepts it by name, and this packet does not touch it.

**The membership gate, answered.** At `f3511e0c` the code-surface membership arm (#1119 → `5e122388`) refused `openDox-code` and `openXdox-code`. The inventory carries neither, so those three tests in the required `pytest-suite` failed on the branch merged with main. Ruling 15 names the roots instead, and the head now names `openxFactory`, `opensoft/openDox` and `opensoft/openXdox`, all three carried. Copilot's thread `4086593436` is answered with the ruling and #1150, and resolved. Copilot's review at `19237b91` lists no finding and no open thread (0 of 122 unresolved), and its one-line summary is answered in the conversation.

Task boxes: **9 `[x]`** (the measurements and rulings this packet recorded, and 5.6, ticked on the view-wiring landing), **106 `[ ]`** (the realization it proposes), **9 `[~]`** (deferred, each with a named Owner and exit condition).

**Rule 6:** this PR touches `openspec/changes/` and the README OpenSpec Records block, so it lands in a declared window — not by this actor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…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]>
brettheap added a commit that referenced this pull request Sep 24, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants