Skip to content

T039: phase 1's openDox root pin -- code d816cf06 -> 2d116415 (T037 landed; plan 034) - #13

Merged
brettheap merged 2 commits into
mainfrom
pin/T039-phase1-code
Sep 27, 2026
Merged

brettheap merged 2 commits into
mainfrom
pin/T039-phase1-code

Conversation

@brettheap

@brettheap brettheap commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Plan 034, task T039, slice P1-R (the openDox root pin). The plan is
specs/034-opendox-standalone-operation/tasks.md at opensoft/openxFactory
main 133e37d9 (#1167, the phase-1 gate, merged). This PR realizes box
9.5 (part) of the ratified add-neutral-product-standalone-operability.

Arc: neutral-product-standalone-operability

  • Claim: openxFactory#656 comment 5857393332.
  • Ruled: Brett's "Draft ahead in phase 1" speed-up ruling, openxFactory#656 comment 5857365170, verbatim: "Draft ahead in phase 1" — naming P1-R (T039) explicitly as one of three things to draft ahead of their dependencies, refreshed as each lands.

What changes — THE PIN THIS PR DELIVERS IS 2d116415159b721b55613fe20a159afc46202d1f

ONE final gitlink + pin state: the code gitlink and
contracts/code-pin.yaml (commit: and digests.tree_sha256) both name
2d116415159b721b55613fe20a159afc46202d1f at this PR's head
(ede8d979). No .github/workflows/*.yml references the code leg by
@<sha> (plan.md, "Pins and landing order (9.5)": "none does at
36ded1cd"
, confirmed unchanged), so no workflow file moves.

Dependencies (T039's After: line) — ALL LANDED

T039 is After: T022, T032, T037, T038 — every phase-1 openDox-code slice.

task state landed as
T022 landed openDox-code#45 → 255514df
T032 landed openDox-code#49 → 68be484a
T038 landed openDox-code#48 → 796838e8
T037 landed openDox-code#55 → 2d116415 (mergedAt 2026-09-27T18:43:15Z)

2d116415159b721b55613fe20a159afc46202d1f is openDox-code main's tip
now that T037 has landed, and is the ONLY commit this PR pins — it carries
every one of the four dependency tasks above.

History (informational only — the pin above is what lands, nothing else is proposed)

This PR was opened as a DRAFT ahead of T037 landing, per Brett's "Draft
ahead in phase 1" ruling (openxFactory#656 comment 5857365170). Its very
first commit (e86ba98d, now superseded) pinned a transient, pre-T037
state of openDox-code main; that value is retired and does not appear
anywhere in this PR's current tree or metadata below the historical note
in this paragraph. A second commit (ede8d979, the current head)
replaced it outright with the pin named above, once T037 landed
(openDox-code#55, 2026-09-27T18:43:15Z) — a plain fast-forward push, no
force. The only commit sha this PR advances the code leg to, now and
at merge, is 2d116415159b721b55613fe20a159afc46202d1f.

Falsifier

make pins in the openDox root, at the final head (ede8d979, pinning
2d116415):

$ make pins
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 8fe8c4c71c4d
  ok  spec: tree digest recomputes (f63c5b8fee6b…)
  ok  code: gitlink == contracts/code-pin.yaml commit 2d116415159b
  ok  code: tree digest recomputes (322f8105d15c…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok

The repo's own make validate (naming + manifest + lockstep pins) also
passes at this head:

$ make validate
python3 scripts/validate-repository-naming.py --project project.yaml
  openDox                          neutral-product/assembly   also_matches project-leg/assembly
  openDox-spec                     project-leg/spec
  openDox-code                     project-leg/code
python3 scripts/validate-manifest.py
manifest ok: openDox (opendox), 3 legs
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 8fe8c4c71c4d
  ok  spec: tree digest recomputes (f63c5b8fee6b…)
  ok  code: gitlink == contracts/code-pin.yaml commit 2d116415159b
  ok  code: tree digest recomputes (322f8105d15c…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok

The digest 322f8105d15cf01582dae8771fce2cc6ca9120e5b6bca2750898e872cb6a26e2
was computed with the repo's own scripts/repo_shape.py::tree_digest, over
git ls-tree -r -z 2d116415159b721b55613fe20a159afc46202d1f in the code
submodule's own object store — the same definition validate-pins.py
recomputes it with. Before first use on this PR, the function was
sanity-checked against a value the repository already trusted (an existing
contracts/code-pin.yaml digest, unrelated to any commit this PR names):
it reproduced that value exactly.

Not this PR

  • No workflow @<sha> reference exists for the code leg today, so none is
    touched (see above).
  • The spec leg's pin is untouched.
  • T037 itself (openDox-code's own change) is P1-G's, not this slice's.

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

🤖 Generated with Claude Code

Summary by Sourcery

Enhancements:

  • Update the openDox code leg to the newer pinned revision and its corresponding tree digest.

Move the `code` gitlink and `contracts/code-pin.yaml` (`commit:` and
`digests.tree_sha256`) to openDox-code's current main, 71b631bc, which
carries the phase-1 slices already landed there: T022 (255514df),
T032 (68be484a) and T038 (796838e8). No `.github/workflows/*.yml`
references the code leg by `@<sha>` (plan.md, "Pins and landing
order"), so none moves.

T037 (P1-G's, restoring the margin over the floors) has not landed
yet -- its first PR is openDox-code#51 (T035), open. Per Brett's
"Draft ahead in phase 1" ruling (openxFactory#656, comment
5857365170), this PR opens as a DRAFT at the current pin and is
refreshed in a follow-up commit once T037 lands.

Falsifier: `make pins` in the openDox root -- pins ok.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 27, 2026 15:53
@sourcery-ai

sourcery-ai Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Refreshes the openDox root’s code-leg pin from d816cf06 to the landed T037 tip 2d116415, updating the corresponding tree digest in lockstep; repository pin and validation checks pass, with no workflow or spec-pin changes.

File-Level Changes

Change Details Files
Advance the openDox code submodule pin to the post-T037 phase-1 tip and update its lockstep tree digest.
  • Move the code gitlink from d816cf06 to 2d116415.
  • Regenerate contracts/code-pin.yaml with the matching tree_sha256 digest.
  • Leave the spec pin and workflow references unchanged because no code-leg SHA references exist in workflows.
code
contracts/code-pin.yaml
Validate that the refreshed pin satisfies the repository’s lockstep and integrity checks.
  • Run make pins to verify the gitlink, commit metadata, and tree digest.
  • Run make validate to verify naming, manifest, and all pin invariants.
code
contracts/code-pin.yaml

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

🟡 Changes recommended

Add the matching code gitlink update so pin validation passes.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

Advances the openDox code dependency pin to commit 71b631bc and its tree digest.

Changes:

  • Updates contracts/code-pin.yaml.
  • Leaves the spec pin and workflow references unchanged.
  • The matching code gitlink update is missing from the supplied diff.
File Summary
contracts/​code-pin.yaml Records the new code commit and tree digest; the corresponding gitlink must also be updated.

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

Comment thread contracts/code-pin.yaml Resolved
…anded, plan 034)

T037 (P1-G's, restoring the margin over the floors) landed on
opensoft/openDox-code main as #55 -> `2d116415159b721b55613fe20a159afc46202d1f`
(mergedAt 2026-09-27T18:43:15Z). Move the `code` gitlink and
`contracts/code-pin.yaml` (`commit:` and `digests.tree_sha256`) to that
commit. This is now every phase-1 openDox-code slice landed (T022, T032,
T037, T038).

Falsifier: `make pins` in the openDox root -- pins ok.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 27, 2026 18:44
@sonarqubecloud

Copy link
Copy Markdown

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

🟡 Changes recommended

The contract records 2d116415 instead of the advertised 71b631bc; regenerate the pin and digest or correct the metadata.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Comment thread contracts/code-pin.yaml Resolved
@brettheap brettheap changed the title T039: phase 1's openDox root pin -- code d816cf06 -> 71b631bc (plan 034) T039: phase 1's openDox root pin -- code d816cf06 -> 2d116415 (T037 landed; plan 034) Sep 27, 2026
@brettheap
brettheap marked this pull request as ready for review September 27, 2026 18:48
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at ede8d97 -- Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

@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.

Hey - I've reviewed your changes and they look great!

Sourcery assessment

Approved.


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

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

The pin and corresponding digest are updated consistently, with no unresolved review issues.

Review effort: Lite
Findings: None

Resolved since last review (1)

@brettheap

Copy link
Copy Markdown
Contributor Author

READY at ede8d97 -- Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Fresh Copilot review at this same head, requested via the reviewer API (not a @copilot comment): "🟢 Approval recommended -- Findings: None," naming the prior gitlink/description-mismatch finding "Resolved since last review." PR body scrubbed so no stale 71b631bc reference remains anywhere (title and every body section now name only 2d116415159b721b55613fe20a159afc46202d1f).

@brettheap
brettheap merged commit 663ac68 into main Sep 27, 2026
6 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-27T21:01:15Z, PR #13 → 663ac68 (opensoft/openDox main; plain gate)

Brett: land the phase 1 PRs when green

brettheap added a commit to opensoft/openXdox-code that referenced this pull request Sep 27, 2026
Plan 034 task T040, slice P1-I: the pin move. T039 (P1-R) landed as
opensoft/openDox#13 (merge 663ac683), which pins the code leg at openDox-code
2d116415159b721b55613fe20a159afc46202d1f, the phase-1 openDox-code commit.
This moves pyproject.toml's `opendox @` from 5c137a90 to that commit. The
ratchet is unchanged, since phase 1 closes no openXdox reach (T040; plan.md
section Pins, step 3).

Measured in a fresh venv built from this pyproject.toml (pip records
direct_url.json commit_id 2d116415), with NO Group 2 shim, since T011 landed
Group 2 in openDox-code:

- The whole suite gives 106 failed, 1027 passed, 10 skipped and 126 errors
  (232 red). Its test ids are the same as the old pin's shim run. Classes B
  to G and M are 0: no collection error names test_gate_routes,
  test_doxbench_routes or test_doxbench_model, no test reads a
  scripts/ideation_dashboard/ path, test_register.py passes 10 of 10, and
  the bridge suite passes 60 of 60.
- The pin moves three things. The 87 rail results (test_doxbench_packet 54,
  test_doxbench_turns 32, test_doxbench_abstract_envelope 1) now fail
  closed at openDox's status-exemption seam
  (StatusExemptionNotRegistered, opendox/doxbench_packet.py:304, 70 of
  them; the rest at :1555), which is still R1Q24 (a)'s class. The 9
  ProfileNotRegistered cases of test_snapshot_validation_launch clear
  (T016), and behind them the suite reaches doc_health through
  opendox/consumer_reach.py:120 -> src/openxdox/corpus_root.py:34, which is
  T041's class. The shim's own red in test_dependency_direction is gone.
- The required job gives 558 passed and 6 skipped, triple 564/558/6.
  tests/opendox_bundle.py agrees: declared_pin() == installed_commit() ==
  2d116415, and find() resolves the installed bundle.
- src/route_extension.py is 7781665 at 2d116415 too, byte-identical to this
  branch's copy (openDox-code#40 is the only commit touching it since
  5c137a90). So are src/subcommand_extension.py and
  tests/fixtures/fake_omp_child.py.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit to opensoft/openXdox-code that referenced this pull request Sep 27, 2026
…re rfc3339-validator; the opendox pin bump waits on P1-R (#29)

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

> **P1-R has landed, and the pin is moved.** This is plan 034's task **T040** (slice **P1-I**, openxFactory `specs/034-opendox-standalone-operation/`). It was authored **ahead of its dependency**, on Brett's "draft ahead of dependencies", and kept DRAFT until its one dependency landed. T040 is `After: T039`, and T039 (P1-R, the openDox root pin) landed as opensoft/openDox#13 (merge `663ac683`, 2026-09-27T21:01:09Z), pinning the code leg at openDox-code `2d116415`. The carve residue (T005's classes B–G, plus the `rfc3339-validator` declaration) and the ruled `src/route_extension.py` resync were done against the old pin, `5c137a90`. The final commit, `37fac9f`, moves `opendox @` to `2d116415`. The whole suite was then re-measured at the new pin with no shim (§ "At the P1-R pin").

## What T040 says

> Move `pyproject.toml`'s `opendox @` to the phase-1 openDox-code commit … Give `test_create_project.py`, `test_edit_project.py` and `test_register_edit_lane.py` a helper of their own, in place of the openxFactory-only `test_gate_routes` module … Do the same for the importers of two more openxFactory-only helpers (T005, classes C and D) … Declare `rfc3339-validator` in the `test` extra. Add two fixtures (T005, classes F and E) … Respell the pre-carve source paths, `scripts/ideation_dashboard/<module>.py` … (T005, class G) … No protected suite is edited.

**Ruled:** R1Q22 (a), `5817152735`: the edited test files are carved rows, and no declared-edit act is needed. R1Q24 (a) and R1Q25 (b) (`5850003126`) send **eight named files** to the declared exclusion under T041/T043:
- R1Q24 (a)'s seven: `test_doxbench_packet.py`, `test_doxbench_turns.py`, `test_doxbench_abstract_envelope.py`, `test_validate_ideation_dashboard_contracts.py`, `test_wheel_action_contracts.py`, `test_project_schema_election.py` and `test_project_action_contracts.py`;
- R1Q25 (b)'s `test_snapshot.py`.

**The holder's reading of T040 against R1Q24 (a).** The lane coordinator relayed it to this slice on 2026-09-27, verbatim: *"#29 makes the fix. T040's own task text and falsifier name the source paths in test_doxbench_packet.py, so they are T040's. R1Q24 (a) covers only that file's exemption-rail failures, which stay for T041/T043's declared exclusion."* So this PR changes one of the eight. `0336288` fixes `test_doxbench_packet.py` at its three source-path sites and changes nothing about its rail cases. The other seven are unchanged.

**Ruled 2026-09-27: the `route_extension.py` resync** (Brett Heap, opensoft/openXfactory#656 comment `5856475254`, P1-K's question 1 answered at (a), verbatim): *"openxFactory `scripts/route_extension.py` and openXdox-code `src/route_extension.py` are resynced to openDox-code #40's `src/route_extension.py`. T007 batch E admits both as named arc edits, each with its reason. openxFactory's copy is resynced in T047's PR, and openXdox-code's in P1-I (T040, openXdox-code#29)."* `f65537a` makes this repository's half:
- `src/route_extension.py` is the carve's replica of the neutral route extension point (carve-manifest row `scripts/route_extension.py`, `not_moved` / `replicated_at_destination`, RULING Q-L1). It still held the carve-time blob `34802071` (30,017 bytes). It now holds opensoft/openDox-code#40's blob `7781665d9ae0d4be298cd7d9cbe625666f7481ee` byte for byte: 62,817 bytes, mode `100644`, sha256 `d81124e62dba9df33abe44f3eb467188c98156f002cc7a92e297cd689da87515`. That blob is the same at the PR's head `c8d5c802`, at its merge `0f10b1f5` and at openDox-code `main` `796838e8`.
- The change is additive: the handler-contribution facet of opensoft/openDox-code#40 (R1Q1 (a)). No top-level name is removed, 30 are added, and the only changed definition is `RouteBindingError`'s docstring.
- It is the copy a test session imports. pytest's `pythonpath = ["src"]` and the root `conftest.py` put `src/` ahead of site-packages, so openXdox's columns and the installed openDox both resolve the bare `import route_extension` to this file. Measured with and without `--noconftest`: the pinned wheel's own copy is shadowed.
- The admission is T007 batch E's, in openxFactory, as a named arc edit with its reason. Its figures are above.

`test_doxbench_blank_reason.py` is **not** one of the eight. T040 names it for classes C and G, and those are its only edits here. The one class I case that shows behind them reads openxFactory's `contracts/manifest.yaml`. That makes it the eighth file T005's experiment found behind the residue, as R1Q24's re-measure note (T006) records, and the note leaves it to T043's triage by class. At this pin, five files this PR changes fail on `doc_health` alone: the three class B importers and the two module-scope class C importers. Only their residue imports change here. T041 writes its list from the run at T040's pin, and its test asserts that each listed file fails for exactly that reason.

## The commits (one class each; every commit carries the `Arc:` and `Lane:` trailers)

| commit | class (T005) | change |
|---|---|---|
| `27a007a` | M | `rfc3339-validator>=0.1.4` in the `test` extra. The floor is what openxFactory's validator-input lock pins (`requirements/hermes-runtime-contracts.in`), the same source PyYAML's floor came from. It is a test dependency, since nothing under `src/` imports it. |
| `8769210` | B | `tests/gate_routes_harness.py`: `_post` and `_serving` plus the 4 definitions they reach. The three project suites import it in place of openxFactory's `test_gate_routes` (a `not_moved` row). |
| `2b34084` | C | `tests/doxbench_routes_harness.py`: ONE harness for its three importers, carrying the 21 names they import. It is the closure of those names, 52 of the source module's 272 statements. |
| `ee569e1` | D | `tests/doxbench_port_ban.py`: `FORBIDDEN_PORT_MEMBERS`, for the bridge suite. |
| `1e04515` | E | `tests/fixtures/fake_omp_child.py`, byte-identical: blob `e51045fc`, the same at openxFactory's carve tag, at openDox-code `5c137a90` and at openDox-code `main`. |
| `b20a514` | F | `tests/fixtures/base-repo`, byte-identical: tree `cef59fd9`, the same at the carve tag and at openxFactory `main`, eleven blobs. |
| `d266db3` | G | Each moved module is read where the carve put it (details below). |
| `0336288` | G | `test_doxbench_packet.py`'s three source-path sites, on the holder's reading above (details below). |
| `f65537a` | ruled arc edit | `src/route_extension.py` resynced to opensoft/openDox-code#40's, byte for byte (`5856475254`, above). |
| `37fac9f` | the pin | `opendox @` → openDox-code `2d116415159b721b55613fe20a159afc46202d1f`, the commit T039 pins. The ratchet is unchanged (§ "At the P1-R pin"). |

**How the helpers were made, and proved.** Each helper's definitions are copied from openxFactory at the carve tag `opendox-carve-0` (`b075fd91`), the tree the importers were carved from. An AST comparison of every carried definition against that source, after the declared rewrites, gives `mismatches: 0` for the gate harness and the port ban. The routes harness gives `mismatches: 1`, which is `released_only`, the one declared change. The declared rewrites are these:
- the carve's own import rewrites (`ideation_dashboard.serve` → `opendox.serve`, `generator` → `openxdox.generator`, …);
- the pre-carve served web root → the pinned bundle, `opendox_bundle.web()`, read per call;
- in the routes harness, the four wire kinds → openDox's own `serve_wire.DOXBENCH_*_KIND`. Those are the kinds the routes emit, and the keys they look an injected validator up by (`serve_workbench.py`, `validators.get(kind)`). The source read them from `doxbench_contracts`, which stays in openxFactory.

`released_only` skips here, naming why. That rung, and `build_server`'s default validator seam, both need openxFactory's `doxbench_contracts`, and this checkout has neither. **None of the helpers is named `test_*.py`.** So pytest never collects a harness as a suite, and 12.5's protected-suite grep over `tests/test_*.py` cannot select one. That set is still the same 16 files.

**Class G, in detail.**
- `tests/conftest.py`'s `serve_surface_paths()` reads each serve file at its carved home through a new `carved_module_path()`. openDox's four come through the PIN (the installed `opendox`), and openXdox's two from this leg's `src/openxdox/`. The resolver refuses a name found in both homes or in neither.
- The one file of the tuple that is at neither home, openxFactory's lane column `serve_openxfactory_lanes.py` (`not_moved`), is NAMED in `SERVE_SURFACE_NOT_AT_THIS_LEG` rather than dropped. Any other absence still refuses.
- `test_doxbench_bridge.py` and `test_doxbench_blank_reason.py` read the module each already imports, through `__file__`. That is § 3.4 slice S8's repair of `MODULE_PATH`.
- `test_scope_column_split.py`'s parser now takes the package to be both halves the carve made. It reads the `opendox`/`openxdox` spellings beside the pre-carve two (T040: *"its import parser must also recognise an `opendox.` import"*).
- `test_doxbench_packet.py` (`0336288`): `MODULE_PATH` is `Path(pk.__file__)`, the same S8 repair. It covers the read at `:309` and the 11-case test at `:1054`. The watch-list sweep at `:963` reads each module through `carved_module_path()`. Its one module at neither home, openxFactory's rail `doxbench_status_exemption.py` (`not_moved`), is NAMED in `SWEEP_NOT_AT_THIS_LEG` and stays in the tuple, which the file's own rule only ever widens.
- Both declarations are held to their word. `assert_not_at_this_leg()` (`conftest.py`) refuses once a declared file is present in either home, so a skip can never hide code this leg carries. A 28-case mutation check caught every needle injected into each of the packet suite's respelled reads, and each declaration refused when its file was planted in either home.
- A mutation check fed a reader the back-edge in five spellings: `from openxdox.doxbench_scope import ScopeKey`, `from openxdox import doxbench_scope`, the pre-carve absolute, the relative, and `import openxdox.doxbench_scope`. Every one was caught. A reader with its types import removed trips the non-vacuity assertion.

## The falsifier, and the evidence at both pins

> **Falsifier (T040):** collection no longer fails on `test_gate_routes`, `test_doxbench_routes` or `test_doxbench_model`. No test reads a source path under `scripts/ideation_dashboard/`. `test_register.py` and `test_snapshot_validation_launch.py` find their fixture, and the bridge suite finds its child.

Measured exactly as T005 measured, from `cd "$W/openXdox-code"`, with research R0's Group 2 shim. The shim digests match T005's record, and it is never committed. The venv is fresh, from THIS branch's `pyproject.toml`: `pip install -e ".[test]"` now brings `rfc3339-validator 0.1.4`, and jsonschema's `date-time` checker registers. The runs: The last column is the new pin instead: a fresh venv from `37fac9f`'s `pyproject.toml`, the root conftest in play, and **no shim**, since T011 landed Group 2.

    PYTHONPATH="$W/shim" python -m pytest -q --continue-on-collection-errors --junitxml="$W/whole.xml"
    python3 "$W/tools/classify_whole_suite.py" "$W/whole.xml"      # T005's classifier, sha256 3a76945d…

| | `e28930bf` (T005's `oxr` run, reproduced exactly) | `d266db3` | `0336288` (old pin, shim) | **`37fac9f` (new pin `2d116415`, no shim)** |
|---|---|---|---|---|
| whole suite | `166 failed, 967 passed, 10 skipped, 126 errors`, **292** red | `120 failed, 1013 passed, 10 skipped, 126 errors`, 246 red | `107 failed, 1026 passed, 10 skipped, 126 errors`, 233 red | `106 failed, 1027 passed, 10 skipped, 126 errors`, **232** red |
| B `test_gate_routes` | 3 | 0 | 0 | **0** |
| C `test_doxbench_routes` | 3 | 0 | 0 | **0** |
| D `test_doxbench_model` | 2 | 0 | 0 | **0** |
| E the bridge's child | 32 | 0 | 0 | **0** |
| F `base-repo` | 13 | 0 | 0 | **0** |
| G pre-carve source paths | 22 | 13, all in `test_doxbench_packet.py` | 0 | **0** |
| M `rfc3339-validator` (T005's `ox` run) | 23 | 0 | 0 | **0** |

The accounting closes. At `0336288`, 75 residue results are cleared, and 16 became visible behind them: `doc_health` +6, openxFactory contracts +1, `ProfileNotRegistered` +9. That is net −59, and the passes rose by exactly +59: the bridge suite +36, the packet suite +13, the scope split +4, `test_register.py` +4, `blank_reason` +2. At `f65537a` the resync moves nothing: the whole suite has 0 outcome differences from `0336288`, and so does the plain run. The packet suite's 13 expose nothing behind them. Against `d266db3`, the whole suite differs in exactly those 13 results, each one failure → passed. That file's 54 rail failures and 3 `doc_health` failures are the same tests with the same causes.

- **Collection no longer fails on the three helpers.** No red result anywhere names `test_gate_routes`, `test_doxbench_routes` or `test_doxbench_model`, and no module imports them (`git grep`). The five importers that failed at collection on them now fail collection **one layer further in, on `doc_health`**. That layer is T041's declared exclusion (R1Q6 (d)), not residue:
  - `test_create_project.py`, `test_edit_project.py` and `test_register_edit_lane.py` fail at `openxdox/gate_console.py:63`;
  - `test_doxbench_knowledge_service.py` and `test_doxbench_thread_wiring.py` fail at `openxdox/generator.py:66`, the harness's fixture snapshot.
- **No test reads a source path under `scripts/ideation_dashboard/`.** Class G is **0**. The packet suite's 13 went with `0336288`, on the holder's reading above. The only static pre-carve reads that remain are in 8 files that fail **collection** on `doc_health` and so never execute: `test_completeness`, `test_doxbench_knowledge_service`, `test_doxbench_share`, `test_doxbench_thread_wiring`, `test_doxbench_threads`, `test_repo_selector`, `test_round_trip` and `test_session_document_ownership`. They are respelled when they become runnable, as T043 records for the excluded files.
- **`test_register.py` and `test_snapshot_validation_launch.py` find their fixture.** `test_register.py`: 4 failed / 6 passed → **10 passed**. The launch suite: its 9 base-repo failures are gone. It now fails its 9 cases one layer further in, on `ProfileNotRegistered` at `build_parser()`. T005's experiment saw the same layer, and it is T016's to clear at the phase-1 pin. It is a protected suite (5.4a), and this PR does not edit it.
- **The bridge suite finds its child.** `test_doxbench_bridge.py`: 36 failed / 24 passed → **60 passed**.

## The repository's own required check

`validate.yml`'s `validate` job, reproduced locally in the same fresh venv with `CI=true`: 16 named files, `--noconftest`, then its "Pin the triple" step verbatim:

    558 passed, 6 skipped
    triple: selected=564 passed=558 skipped=6 failures=0 errors=0
    pins:   selected>=564 (margin 0) passed>=558 (margin 0) skipped==6

None of this PR's files is on that list, and the triple is unchanged. The result was the same at `d266db3`, `0336288` and `f65537a` on the old pin, and at `37fac9f` on the new pin. CI's own `validate` run on this PR is the gate.

## What remains red at the new pin, and where it goes (not this PR's): T043's triage

| cause | files | goes to |
|---|---|---|
| `doc_health` (A) | 58 files, 68 results: T005's 51, the 5 importers above, one `blank_reason` case, and at the new pin `test_snapshot_validation_launch` 9 (below) | T041's declared exclusion |
| the status-exemption rail (H) | `test_doxbench_packet` 54, `test_doxbench_turns` 32, `test_doxbench_abstract_envelope` 1. At the new pin they fail CLOSED at openDox's seam: `StatusExemptionNotRegistered` at `opendox/doxbench_packet.py:304` (70), and the rail's absent attributes at `:1555` (17). T005's classifier has no pattern for the new text, so it prints them as unclassified | R1Q24 (a): the exclusion, T041/T043 |
| openxFactory's contracts (I) | the four contract-family files (74) and **`test_doxbench_blank_reason` 1**: `test_every_textual_home_states_the_admission_rule` reads openxFactory's `contracts/manifest.yaml`. This is the "eighth" file of R1Q24's re-measure note (T006), which T005's experiment found and which now shows behind its residue | R1Q24 (a), by class: T043's triage |
| the validator's schemas (J) | `test_snapshot` 2 | R1Q25 (b): the exclusion |
| ~~`ProfileNotRegistered`~~ | `test_snapshot_validation_launch` 9: **cleared at the new pin** (T016). Behind it the suite reaches `doc_health` through `opendox/consumer_reach.py:120` → `src/openxdox/corpus_root.py:34`. It is a protected suite (5.4a) and is not edited | now class A: T041 |
| ~~the shim itself (K)~~ | `test_dependency_direction` 1: **gone** at the new pin, since no shim is installed | none |

**Also for T043's re-pin.** With `rfc3339-validator` declared, `tests/test_validator_schema_home.py` (C3's suite, which `importorskip`s the package) runs its **12** cases instead of skipping. In the plain run (no shim) that is the one difference from `e28930bf`: `5 skipped, 1126 errors` becomes `4 skipped, 1138 errors`. The base tree in the same venv gives the same figure, so this PR's test edits move nothing in a plain run.

## At the P1-R pin (done)

opensoft/openDox#13 landed as `663ac683`, and its code leg is openDox-code `2d116415159b721b55613fe20a159afc46202d1f`, which is on openDox-code `main`.
1. **The pin.** `37fac9f` moves `pyproject.toml`'s `opendox @` to that commit, and nothing else. The ratchet is unchanged (T040; plan.md § Pins, step 3).
2. **The whole suite, with no shim**, in a fresh venv built from this `pyproject.toml` (pip's `direct_url.json` records `commit_id` `2d116415`): `106 failed, 1027 passed, 10 skipped, 126 errors`, 232 red. The test ids are the same as the old pin's shim run. Classes B–G and M stay **0**. No red result names the three helpers, no test reads a `scripts/ideation_dashboard/` path, `test_register.py` passes 10/10 and the bridge suite 60/60. The pin moves three things, all in the table above:
   - the rail's 87 now fail closed at openDox's seam;
   - `test_snapshot_validation_launch`'s `ProfileNotRegistered` clears, and `doc_health` shows behind it;
   - the shim's own red is gone.

   **No residue of T040's kind shows.** What the pin shows is T043's to triage by class: the `doc_health` set (68 results in 58 files, T041), the rail (87, R1Q24 (a)), the contract family (75 including `blank_reason`'s one case, R1Q24 (a) by class) and `test_snapshot` (2, R1Q25 (b)).
3. **The required check**: `558 passed, 6 skipped`, triple `selected=564 passed=558 skipped=6`, the same as at the old pin. The pin guard agrees: `opendox_bundle.declared_pin()` == `installed_commit()` == `2d116415`, and `find()` resolves the installed bundle. CI's own `validate` run on `37fac9f` is the gate.
4. **`src/route_extension.py`** at `2d116415` is `7781665d`, byte-identical to this branch's copy. opensoft/openDox-code#40 is the only openDox-code commit touching it since `5c137a90`, so the ruling's version is the pinned version. `src/subcommand_extension.py` (`1d4833b2`) and `tests/fixtures/fake_omp_child.py` (`e51045fc`) are identical at the pin too.
5. **`main`** has not moved (`e28930bf`), so there is nothing to merge in.

## Notes

- **Protected suites:** none edited. 12.5's grep set is the same 16 files, and 5.4a's glob is untouched. `test_doxbench_packet.py` is in neither set. `test_snapshot_validation_launch.py` gains only its fixture.
- **Rule 6:** not applicable. openXdox-code holds no OpenSpec record, and the `openspec/changes/` paths under `tests/fixtures/base-repo/` are fixture content.
- **Created files at this leg** (the three helpers and the two fixtures) have no carve-manifest row (RULED OQ-C). openxFactory's `docs/opendox-carve-admissions.yaml` says a new admission is a reviewed one-line diff *"in the pull request that bumps the destination's pin"*, with `since:` set to the leg commit. That is openxFactory's pin PR (T047, P1-K), once this PR's landing commit is known. The `route_extension.py` resync is not a created file. T007 batch E admits it, as ruled above.
- **The holder's question, answered.** At `d266db3` this draft asked whether T040 or T043 respells `test_doxbench_packet.py`'s 13 class G reads. The holder's reading (above) gives them to T040, and `0336288` makes the three-site fix. T041's listing rule is why it matters: a file with another cause *"is listed only once T040 or R1Q24's answer has dealt with that other cause"*. With the paths respelled, the file's remaining red is its rail (54, R1Q24 (a)) and its 3 `doc_health` cases (T041).

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

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


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit to opensoft/openXfactory that referenced this pull request Sep 29, 2026
…57e2b8f2, with T045 and T046's host wiring (plan 034) (#1181)

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

Arc: neutral-product-standalone-operability

**T047, and it stays DRAFT.** This PR is plan 034's task **T047**: phase 1's consumer pins, carrying the host wiring of **T045** and **T046** (slice P1-K) as T047's task text requires (*"openxFactory then moves both pin pairs in ONE PR, which also carries T045 and T046"*). Per `#656` comment `5856475254` finding 3, it lands after T007 batch E (#1183). Batch E has now landed as `b9742534`, and it is merged into this branch at `96ca2b06`.

- **Plan**: `specs/034-opendox-standalone-operation/tasks.md` at `main`. The T045–T047, T090 and T092 lines are unchanged since `468863d1` (checked at `main` `e369cb25`).
- **Claim**: T047, `#656` comment `5873306432` (P1-K's was `5852803348`).
- **Ruled**: R1Q1 (a), R1Q2 (a), R1Q4 (a), R1Q9 (a) (`5817152735`); P1-K's three questions, all (a) (`5856475254`).
- **Rule 6**: the net diff against `main` touches no `openspec/` path. The `openspec/` changes on the branch are all main's, merged in: batch B (#1194) at `f79a72f3`, and batch E (#1183) at `96ca2b06`. Both touch `openspec/changes/add-neutral-product-standalone-operability/tasks.md`.
- **Landing order, done**:
  - Batch E has landed (`b9742534`).
  - opensoft/openXdox#20 has landed, squashed to `57e2b8f2`.
  - `1a32fe8d` re-points this PR's `openXdox` gitlink and `contracts/openxdox-pin.yaml` to that LANDED sha (runbook § 3 step 1: *"NEW_SHA must be on opensoft/openXdox main"*).
  - The PR stays DRAFT until the coordinator marks it READY.

## The pins: both pairs in ONE commit (`b4e701cb`)

| pair | gitlink | pin file `commit:` | `digests.tree_sha256` |
| --- | --- | --- | --- |
| openDox | `dc7aa08f` → **`663ac683`** | same | `adc049c9…7cee` → **`ec826603…9d5d`** (28 records) |
| openXdox | `069fe471` → `6495ba98` (`b4e701cb`) → **`57e2b8f2`** (`1a32fe8d`) | same | `3ad15b72…3b48` → `ff568ab3…8e31` → **`e52c1383a0fcc71a4abd7fa75821f6f2473c52ac1211e448acf0a2ba0c1a6390`** (29 records) |

- `663ac683` is openDox root `main`, two commits ahead of `dc7aa08f`:
  - opensoft/openDox#12 (`36ded1cd`) changes only `contracts/CHANGELOG.md`;
  - opensoft/openDox#13 (`663ac683`, T039) moves `code` `d816cf06` → `2d116415` with `contracts/code-pin.yaml`.

  Nothing else changes. `dox-v1.0` still tags `dc7aa08f`, which is an ancestor of `663ac683`.
- **`57e2b8f2` is opensoft/openXdox `main`, where #20 squash-landed.**
  - #20 moves `code` `e28930bf` → `6158151e`. That is openXdox-code `main` after #29–#33, which are T040–T044; T044 landed as #33 → `6158151e`.
  - #20 also moves `contracts/opendox-pin.yaml` `dc7aa08f` → `663ac683` (T090 step 5).
  - `b4e701cb` pinned #20's head at the time, `6495ba98`.
  - `1a32fe8d` re-points to the landing. Its tree is #20's final head, `4b7555f3`, whose two review commits change only `contracts/CHANGELOG.md` and `contracts/manifest.yaml` prose. So only the digest moves, and the derived `contracts/opendox-pin.yaml` is the same blob.
- Every digest was recomputed three ways, with controls on the old values: `repo_shape.tree_digest`, an independent `ls-tree` + `sha256`, and the forge's tree listing. `57e2b8f2`'s digest was recomputed the same way.
- **Why one commit and not "one commit each" (T090 step 6).** The runbook's § 4 comparison prints `DIFFERENT`: `openXdox@6495ba98 derives openDox 663ac683c04c…; this repository pins dc7aa08fe48c…`. So § 3 step 8 moves the openDox pair *"in the SAME commit"*. Each pair still moves as one unit (box 9.5). Split, the first commit would fail `verify-opendox-pin.py` check 5. **The holder confirmed the single commit** (answer 1 below). This PR therefore deliberately departs from T090 step 6's "one commit each".
  - The re-point, `1a32fe8d`, moves the openXdox pair alone. At `57e2b8f2`, § 4 prints `openXdox@57e2b8f2 derives openDox 663ac683…; this repository pins 663ac683…`, so the openDox pair does not move.
- Both pin files are edited in place, keeping 216 and 154 lines. The openDox `migration:` triple keeps `range` and `reversible` (`2d116415`'s `migrations/` holds the same two files). Its `runbook` names the new code leg. The block is identical to openXdox's derived copy, which `tests/opendox_pin` asserts.
- **Gates**:
  - At `96ca2b06`, `verify-openxdox-pin.py` prints `OK openxdox-pin verified: openXdox@57e2b8f2…, gitlink read from HEAD`, with digest `e52c1383…`.
  - `verify-opendox-pin.py` prints `OK … openDox@663ac683…, lockstep with openXdox confirmed`.
  - On the staged index before `1a32fe8d`, both printed `OK`, the openXdox one reading `gitlink read from the index`.
  - In the openXdox root, `make pins` and `make validate` exit 0 at `4b7555f3`, whose tree `57e2b8f2` carries.

## What else it carries

| commit | what | F11.1 surface |
| --- | --- | --- |
| `b31829d3`…`c4dcaba8` | P1-K's host wiring (T045, T046): below, under "History" | HOST, HOST_TESTS, batch A's two COMPOSITION_TESTS |
| `4303e67c` | `scripts/route_extension.py` resynced `34802071` → `7781665d` (62817 B, sha256 `d81124e6…87515`). `scripts/sync-notebooklm-books.py`'s `session_source_set()` calls `opendox_host.register_openxfactory()` first. A test holds that order. | named arc edits, `5856475254` items 1–2 (batch E) |
| `7cd76cdb` | T034's 4 moved cases and 9 of T035's 13, in six files under `tests/domain_profile/` | HOST_TESTS |
| `e54d8253` | 37 `created:` admissions in `docs/opendox-carve-admissions.yaml`, pinned in `tests/carve_arrival` | **none**: batch E admits it (answer 2) |
| `a5898490` | the two batch-E composition tests, each moved to the seam phase 1 put in place | batch E's COMPOSITION_TESTS |
| `b05175f7` | two tests that record the pins' own values: the openXdox pin suite's snapshot literal, and the seal's by-name leg modules (with the lane's `RENDER_LEG_MODULES`) | **none**: batch E admits it (answer 2) |
| `f79a72f3` | merge of `main` `e369cb25` (batch B, #1194) | none (main's own change) |
| `42a998dc` | `scripts/opendox_host.py` names the home seam as the one seam that overwrites, and says why that overwrite never reaches another host's home (Copilot, at `f79a72f3`). Two subprocess tests pin both cases. No behaviour change. | HOST, HOST_TESTS |
| `16134cc9` | `register_seams()` checks every declared seam's take-back calls before anything is written, so a later refusal's take-back never meets a missing call (Copilot, at `42a998dc`). One parametrized test with four cases. No change at the pinned leg. | HOST, HOST_TESTS |
| `1a32fe8d` | the re-point: the `openXdox` gitlink and `contracts/openxdox-pin.yaml` move `6495ba98` → `57e2b8f2`, #20's landing, with the new `tree_sha256`. The file keeps 154 lines. | PIN_PAIRS |
| `96ca2b06` | merge of `main` `b9742534`: #1195 (the hermeticity probe; `EXPECT_SKIPPED` 6 → 5) and batch E (#1183) | none (main's own change) |
| `091a32f9` | a clean-interpreter test of the standalone NotebookLM sync (Copilot, at `96ca2b06`). Loading the script imports neither `opendox` nor the host. The first `session_source_set()` installs the pinned reach, registers, and reads; the second reads the same documents through the same profile. It catches both planted breaks. The measurement is in comment `5880677597`. | HOST_TESTS |
| `6de2b407` | `test_workbench_manifest_validation.py`'s import-time resolution answers None for `CarveReachUnavailable` (a leg not on disk), so its three cases skip rather than failing collection (Copilot, at `091a32f9`). Two tests pin it. | HOST_TESTS |

**The `route_extension` row has no note to extend.** Batch E admits the resync *"provided the row's `note` is EXTENDED, never rewritten"*. The row (`docs/opendox-carve-manifest.yaml:2993`) is `not_moved / replicated_at_destination` with no `edits[]` entry at all, so it has no `note`. F11.1's content check refuses any other field change, so the manifest is untouched. Its `evidence` records the `carve_commit` blob, which is still true. Batch E records the unchanged row (answer 2).

## The falsifiers, at the COMMITTED pins

T047's falsifiers are `make pins` in the openXdox root, `verify-opendox-pin.py` and `verify-openxdox-pin.py` (all above), and `pytest-suite`.

Every run below is the `pytest-suite` step exactly: `pytest tests/ -q -m "not postgres"`, Python 3.12.3, the hash-pinned lock, node 24, `PINNED_CORE_CHECKOUT` at codexFactory `b21f0100`. It runs in a checkout named `openxFactory`, whose gitlinks are the committed pins, recursively initialized: openDox/code `2d116415`, openDox/spec `8fe8c4c7`, openXdox/code `6158151e`, openXdox/spec `f088b097`. This is the first run that can adjudicate `tests/snapshot_equivalence/`, and it passes 115 of 115.

| run | tree | result |
| --- | --- | --- |
| T1a | the pins commit alone, `b4e701cb` (with P1-K's wiring) | **interrupted: 1 error during collection** |
| T1 | the same, with `--continue-on-collection-errors` | **266 failed, 1 error**, 8547 passed, 6 skipped |
| T3 | `b05175f7` | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests (JUnit counts 9304 = 8886 + 6 + 412) |
| T4 | `f79a72f3` (adds main `e369cb25`) | **8886 passed, 6 skipped, 0 failed, 0 errors**, 412 subtests |
| CI | `f79a72f3` | `pytest-suite`: `8886 passed, 6 skipped`, read as `selected=9304 passed=9298 skipped=6 failures=0 errors=0`; floors met with margin 2254, `skipped==6`. All 12 checks pass. |
| CI | `42a998dc` | `openxdox-consumer-gate` passes (105/105/0 and 1480/1480/0), and so do the other checks. |
| CI | `16134cc9` | **All 12 checks pass.** `pytest-suite`: `8892 passed, 6 skipped` (the six added cases), read as `selected=9310 passed=9304 skipped=6 failures=0 errors=0`, with margin 2260 and `skipped==6`. `openxdox-consumer-gate`: 105/105/0 and 1480/1480/0. Copilot's review here has no findings. |
| T5 | `96ca2b06` (head: the landed pin, with main `b9742534`) | **8896 passed, 5 skipped, 0 failed, 0 errors**, 412 subtests. The consumer gate chain: both verifiers `OK`, 105/105/0, 1480/1480/0. |
| CI | `96ca2b06` | **All 12 checks pass.** `pytest-suite`: `8896 passed, 5 skipped`, read as `selected=9313 passed=9308 skipped=5 failures=0 errors=0`, with margin 2263 and `skipped==5`. `openxdox-consumer-gate` passes. |
| CI | `6de2b407` (head) | **All 12 checks pass.** `pytest-suite`: `8899 passed, 5 skipped`, read as `selected=9316 passed=9311 skipped=5 failures=0 errors=0`, with margin 2266 and `skipped==5`. Copilot's review here: "Needs a closer look", with no findings and no open thread. |

- **The skips are main's own, node for node.**
  - Through `16134cc9` there were 6. T4's skipped set equals the one from a run of `main` `468863d1` at the old pins.
  - At `96ca2b06` there are 5, `main`'s `EXPECT_SKIPPED: "5"` since #1195. The one case that left the set is #1195's own: `test_hermeticity_guard`'s in-process-runner case now asserts. No case entered it.
- **`openxdox-consumer-gate`** (CI at `f79a72f3`, and locally at `b05175f7`): both verifiers print `OK`. The pin suites give 105 / 105 / 0 (margin 0). `tests/ideation-dashboard` gives 1480 / 1480 / 0 against floors of 1137 and exactly 0 (margin 343).
- **The other PR gates** exit 0 at `b05175f7`: `validate-carve-manifest`, `validate-sequenced-after`, `validate-clearing-dispatch`, `validate-release-tag-gate`, `validate-signed-execution-chain --require-pinned-wallet-vocabulary`, `verify-openxwallet-pin` and `validate-former-id-arrival`. At `42a998dc` and at `16134cc9`, `validate-carve-manifest` (`456 file(s) in the declared surface with none undeclared`) and `validate-former-id-arrival --base main --head HEAD` pass again. At `16134cc9`, `tests/domain_profile` gives 74 passed, and the suites that import the host give 643 passed: the cli and serve column splits, route_extension, the source seal, the display facet and snapshot_equivalence.

## The red list, for batch E (#1183)

Every red at the committed pins (T1), and what answers it. T1's 267 entries are 260 in A1, and 1 error and 6 failures in A2. One more red was hidden behind the collection error. The exact node ids are in the lane's `PROGRESS-T047.md`. At the head, the list is empty (T3, T4, and CI at `f79a72f3`).

**A1. 260 reds, one cause.** Every one raises `AttributeError: module 'route_extension' has no attribute 'collect_handler_contributions'`. openxFactory's stale replica is found ahead of the leg's copy. `4303e67c` cures all 260, and no test is edited. The 260 are spread over these files:

| reds | file |
| ---: | --- |
| 148 | `tests/ideation-dashboard/test_doxbench_routes.py` |
| 52 | `tests/ideation-dashboard/test_gate_routes.py` |
| 20 | `tests/ideation-dashboard/test_serve_column_split.py` |
| 15 | `tests/ideation-dashboard/test_route_extension.py` |
| 8 | `tests/ideation-dashboard/test_intent_feed.py` |
| 5 | `tests/ideation-dashboard/test_snapshot_abstract_noninterference.py` |
| 4 | `tests/ideation-dashboard/test_staging_seed.py` |
| 3 | `tests/ideation-dashboard/test_shared_identity.py` |
| 2 | `tests/ideation-dashboard/test_intent_plane_boundary.py` |
| 2 | `tests/domain_profile/test_openxfactory_host_wiring.py` |
| 1 | `tests/test_engineering_profile_display_facet.py` |

**A2. The other seven: one collection error and six failures.**

1. **`tests/ideation-dashboard/test_doxbench_status_exemption.py`: a COLLECTION ERROR**, which in CI interrupts the whole suite.
   - Its `from test_doxbench_packet import …` executes openXdox-code `6158151e`'s `from conftest import assert_not_at_this_leg, carved_module_path`. In this process `conftest` is this directory's, which has neither name.
   - `a5898490` lends both names as refusals for that one import and takes them back.
   - **Batch E names this file, but does not yet record this edit.**
2. `tests/domain_profile/test_openxfactory_host_wiring.py::test_the_lanes_column_arrives_where_the_pinned_leg_binds_it` names the stale replica, as designed. `4303e67c` cures it.
3. `tests/ideation-dashboard/test_extension_point_parity.py::test_the_mixins_precede_simplehttprequesthandler_in_the_mro`: the same as item 2.
4. `tests/ideation-dashboard/test_authoring_classify_derivation.py::test_the_gate_reaches_the_corpus_only_through_the_two_public_names`: *"authoring.py binds [] out of the adapter package"* (T020/T021). The assertion becomes `bound == []`, and the two public names are asserted as `DocumentId` and `home` (`a5898490`).
5. `tests/openxdox_pin/test_openxdox_pin_verifier.py::test_ruling_q7_two_direct_upstreams_in_lockstep`. Its snapshot literal moves `dc7aa08f` → `663ac683`, and its comment says it *"is expected to move on every future bump"* (`b05175f7`). **Not an F11.1 surface.**
6. and 7. `tests/ideation-dashboard/test_dashboard_source_seal.py::test_the_render_leg_modules_are_what_the_render_unit_imports_by_name` and `::test_the_serve_leg_modules_are_what_the_serve_entry_imports_by_name`.
   - #1166's seal (on `main`) holds the render unit's by-name leg imports to an `ast` read of the entry and its host bootstrap. T046's `opendox_host.seams()` imports four more modules: `corpus_adapter`, `doxbench_packet`, `serve_wire` and `workbench`.
   - `b05175f7` adds the four to `RENDER_UNIT_IMPORTS` and to the lane's `RENDER_LEG_MODULES` (`scripts/ideation_dashboard/dashboard_refresh_lane.py`). The seal carries a leg's whole `src/`, so no sealed artifact changes.
   - This red is #1166 merging with the host wiring, and it appears at any pin. **Neither file is an F11.1 surface.**

**Hidden behind item 1.** `tests/ideation-dashboard/test_doxbench_status_exemption.py::test_the_dependence_on_the_carved_rail_sits_at_exactly_one_line` could not run in T1, and it is red once the file collects.
- It asserts exactly one import of `ideation_dashboard.doxbench_status_exemption` in the leg's `doxbench_packet.py`.
- openDox-code `d816cf06` has that import once, at line 177. `2d116415` has none, because T027 removed it.
- `a5898490` moves the pinned count from one to none, and asserts `_status_exemption()` as the one reader of the registered rail.

**C. Where the proposed destinations would have been red.**

- **The carve surface refuses a new file.** `tests/ideation-dashboard/` is inside the manifest's `moved_paths:`. So `validate-carve-manifest.py` refuses `carve-file-undeclared` for each of the six moved-case files at their proposed paths (measured). F11.1 forbids the row that would declare them.
  - So they land under `tests/domain_profile/`, with the proposed basenames. That directory is outside the surface and is F11.1's HOST_TESTS prefix.
  - Batch E's two T034 COMPOSITION_TESTS entries, `tests/ideation-dashboard/test_outline_template_agreement.py` and `…/test_memory_gateway_roster.py`, name files that cannot exist there. Batch E records the relocation (answer 2).
- **Held: T035's three hermeticity route cases.** In openxFactory, two FAIL: `test_a_pytest_run_started_inside_a_conftestless_directory_is_guarded` (`1 passed, 1 skipped`, where `2 passed` is expected) and `test_the_bare_unittest_route_is_detected_as_unguarded` (the bare route exits 0).
  - The cause is `tests/notebooklm/test_hermeticity_guard.py:87`, which still asks `find_spec("ideation_dashboard.workbench")`. That is None since the shed, so the probe's layer-2 case silently skips, and it is one of the six `EXPECT_SKIPPED`. This is P1-G decision 5's "find_spec probe goes silent".
  - Measured: with `find_spec("opendox.workbench")`, the pytest route and the negative control pass. The `tests/hermetic_unittest.py` route then errors (`No module named 'opendox'`), because that runner installs no reach.
  - A repair touches that probe, `tests/hermetic_unittest.py`, and `EXPECT_SKIPPED` 6 → 5. None of the three is an F11.1 surface. These cases are now on #1195 (answer 2).
- **Held: T035's `test_worktree_container_is_gitignored_in_the_aggregation_repo`.** It skips wherever no xFactory aggregation checkout encloses the tree, CI included, so it would move `EXPECT_SKIPPED` 6 → 7. Batch E records it as held (answer 2).

## The admissions (`e54d8253`)

The coordinator's step 4: `docs/opendox-carve-admissions.yaml` gains 37 `created:` entries. Each `since` is the file's introducing commit, the leg's own squash landing, checked with `git log --diff-filter=A`. Each path is present at the new pin.

- **`openxdox_code`, 24.**
  - openXdox-code#29 (T040), `d84b5048`: 15 files. The `base-repo` fixture is listed file by file, because the verifier matches exact paths (`if relpath in allow_created`).
  - #30 (T041), `5fbd188e`: 4.
  - #31 (T042), `4e16db95`: 4.
  - #33 (T044), `6158151e`: 1, the coordinator's entry, verbatim.
- **`opendox_code`, 13, beyond the coordinator's list.**
  - 11 are the files openDox-code #33 and #37–#49 added after `d816cf06`.
  - 2 are openDox-code#31's (`93ccc3dd`). The arrival run at `d816cf06` already needed them as `--allow-created`, and no earlier bump admitted them.
  - **Kept** (answer 3).
- **Derived, not run green.** At both new pins, `verify-carve-arrival.py --phase B` refuses `arrival-undeclared-edit` before it reaches the created-file walk. Phase 1's arc edits to carved files carry no declared-edit act (batch A's addendum to 11.1). So each list is the set of files added between the last pin where the run was green (openXdox-code `e28930bf`, which is OK with 34 admissions; openDox-code `d816cf06`) and the new pin.
- **The pinning test.** `tests/carve_arrival`'s committed-admissions test records the fourteenth amendment, and pins all 37 by path and `since`, counted in the committed file. A moved `since` fails it, and so does a planted extra entry (both measured). `tests/carve_arrival` and `tests/carve_manifest` together: 409 passed.

## Copilot, on T047

Copilot raised eleven threads at `b05175f7`, `f79a72f3` and `42a998dc`. Each is answered and resolved, and two changed code:

- **The home seam's overwrite** is answered in `42a998dc`. Its documentation changes, two tests are added, and there is no behaviour change.
- **The take-back calls** are now checked before any write, in `16134cc9`.
- **The `openXdox` gitlink and the openXdox-code replica** were already moved and resynced, in `b4e701cb` and openXdox-code#29.
- **The pin-scope pair** is answered by this description.
- **The admissions order** was already sorted: `c` < `d`.
- **The two composition assertions** always sit on the new leg, because the pin move precedes them in this PR.
- **The `route_extension` replica** stays byte-identical to both legs. The nested-scope point is recorded for openDox-code's owner.
- **The arrival verifier** needs no manifest change (answer 2).

## The holder's answers (relayed by the coordinator, 2026-09-28)

1. **One commit for both pin pairs**, as the runbook requires (§ 3 step 8, § 4 `DIFFERENT`). `b4e701cb` is that commit. It deliberately departs from T090 step 6's "one commit each".
2. **Batch E (#1183) records the rest**:
   - the five paths edited outside every F11.1 surface, as admitted arc edits:
     - `docs/opendox-carve-admissions.yaml`;
     - `tests/carve_arrival/test_verify_carve_arrival.py`;
     - `tests/openxdox_pin/test_openxdox_pin_verifier.py`;
     - `tests/ideation-dashboard/test_dashboard_source_seal.py`;
     - `scripts/ideation_dashboard/dashboard_refresh_lane.py`;
   - the status-exemption collection fix;
   - the unchanged `route_extension` manifest row;
   - the relocation of the moved cases to `tests/domain_profile/`;
   - the held hermeticity and aggregation `.gitignore` cases.

   The hermeticity cases are now on #1195 (READY). This answers questions 2 to 5.
3. **Keep** the 13 `opendox_code` admissions.
4. **T092's phase-1 notes go to the T049 checkpoint bookkeeping**, not to this PR.

## History: P1-K (T045, T046)

P1-K's measurements, from `b31829d3` to `c4dcaba8`, were verified with a local composition that points at openDox-code main, as a measurement only, never committed.

- **The wiring.**
  - `profile_openxfactory.HANDLER_CONTRIBUTIONS = (LaneRoutes,)`, which `opendox_host.FACETS` forwards (T045).
  - One process-start call, `register_openxfactory()`, fills openDox-code phase 1's five seams (T046): the home corpus, the session-notebook scope `documents`, the scoped health check, the doxBench validators and the status-exemption rail.
  - It asserts that its profile is the registered one (R1Q4 (a)). It fills all five seams or none, and it takes back its own partial writes on a refusal.
- **Tests.** `tests/domain_profile/test_openxfactory_host_wiring.py` held 28 tests at `c4dcaba8`. `42a998dc` adds two and `16134cc9` adds one parametrized test with four cases, for 34 cases. Batch A's two composition tests move with the facet.
- **CI at `c4dcaba8`** (the current pins then): `8500 passed, 6 skipped`.
- **The red list at openDox-code `main`**, then: comment `5853319553`.
- **Copilot.** Five threads, each answered and resolved. The last review, at `c4dcaba8`, had no findings.

## Rulings

Brett answered P1-K's three questions at (a), recorded in `#656` comment `5856475254` (2026-09-27T13:54:40Z):

1. The stale `route_extension.py` copies are resynced to openDox-code #40's, and batch E admits both as named arc edits. openxFactory's copy is resynced in T047's PR, which is `4303e67c` here. openXdox-code's was resynced in openXdox-code#29.
2. The NotebookLM sync's missing `register_openxfactory()` call goes in T047's PR, which is `4303e67c` here.
3. F11.1's `COMPOSITION_TESTS` arm lands as a bookkeeping PR with batch E, before T047.

🤖 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 30, 2026
…ps 1–2) (#16)

Plan 034, task **T062**, slice **P2-D** (the openDox root pin, phase 2). The plan is
`specs/034-opendox-standalone-operation/tasks.md` at opensoft/openxFactory `main`
`39f19145`. This PR realizes box **9.5 (part)** of the ratified
`add-neutral-product-standalone-operability`, as T090 steps 1-2.

Arc: neutral-product-standalone-operability

- **Claim:** openxFactory#656 comment [`5917907106`](opensoft/openXfactory#656 (comment)).
- **Landing word:** Brett's "land phase 2 when green", as this lane's phase-2 claims quote it (for example #656 comment `5901343950`). The holder's lander merges; this writer does not.

## What changes -- THE PIN THIS PR DELIVERS IS `047bb4fa394f3e1bf42466062a67ef18e99f8d6a`

ONE commit (`ef7e83f7`, this PR's head) moves exactly two things, as T039 (#13) did:

| file | before | after |
|---|---|---|
| `code` (gitlink) | `2d116415159b721b55613fe20a159afc46202d1f` | `047bb4fa394f3e1bf42466062a67ef18e99f8d6a` |
| `contracts/code-pin.yaml` `commit:` | `2d116415159b721b55613fe20a159afc46202d1f` | `047bb4fa394f3e1bf42466062a67ef18e99f8d6a` |
| `contracts/code-pin.yaml` `digests.tree_sha256` | `322f8105d15cf01582dae8771fce2cc6ca9120e5b6bca2750898e872cb6a26e2` | `97536dbe7454ac062cc8fd3e34fd15a32eee52213f0292042b243f7e5c699a02` |

Diffstat: 2 files, 3 insertions, 3 deletions. The `spec` leg and `contracts/spec-pin.yaml` are untouched.

**No workflow file moves.** No `.github/workflows/*.yml` references the code leg by
`@<sha>`. Checked here with `grep -rnE "openDox-code[^ ]*@[0-9a-f]{40}" .github`, which finds
nothing; the only 40-hex `uses:` pin in the tree is `actions/create-github-app-token@fee1f7d6...`,
an unrelated action. `validate-pins.py`'s own workflow check (`WORKFLOW_REF_RE`) raises no finding.

## Dependencies (T062's `After:` line) -- ALL LANDED

T062 is `After: T054-T058 (every phase-2 openDox-code landing), T039 (the root pin's single-writer order)`,
and comes after T053's spec pin and bundle in this root.

| task | state | landed as |
|---|---|---|
| T053 (spec pin and bundle, this root) | landed | openDox-spec#16 -> `f7ee3c76`; openDox#14 -> `52005213` (tag `dox-v1.1`, tag object `851a28e9`); openDox#15 -> `66758438` |
| T039 (phase 1's root pin, single-writer order) | landed | openDox#13 -> `663ac683` |
| T054 | landed | openDox-code#57 -> `a691e4e4` (mergedAt 2026-09-30T00:32:48Z) |
| T057 | landed | openDox-code#58 -> `8ec08e91` (2026-09-30T15:01:12Z) |
| T055 | landed | openDox-code#59 -> `fa140875` (2026-09-30T17:12:43Z) |
| T055 follow-up | landed | openDox-code#70 -> `75bd8703` (2026-09-30T18:19:46Z) |
| T056 | landed | openDox-code#66 -> `a23e4224` (2026-09-30T18:28:21Z) |
| T058 | **landed** | openDox-code#68 -> `047bb4fa` (**mergedAt 2026-09-30T19:07:35Z**) |

**`047bb4fa394f3e1bf42466062a67ef18e99f8d6a`** is openDox-code `main`'s tip now that T058 has landed
(`gh api repos/opensoft/openDox-code/commits/main --jq .sha` at this PR's opening), and is the ONLY commit
this PR pins. Its first-parent history above the phase-1 pin `2d116415` is exactly nine landings, every
phase-2 openDox-code task: T050 `dc3765dd` (#53), T051 `86647320` (#56), T052 `fa8862cc` (#54), T054, T057,
T055 with its follow-up, T056 and T058 (`git log --first-parent 2d116415..047bb4fa` in the `code` submodule).
`2d116415` is an ancestor of `047bb4fa`, so this is an ancestor move.

## Falsifier

`make pins` in the openDox root, **at this PR's head** (`ef7e83f7`, pinning `047bb4fa`):

```
$ make pins
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit f7ee3c763b3a
  ok  spec: tree digest recomputes (e81f8530d93e…)
  ok  code: gitlink == contracts/code-pin.yaml commit 047bb4fa394f
  ok  code: tree digest recomputes (97536dbe7454…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
```

The repo's own `make validate` (naming + manifest + lockstep pins) also passes at this head, exit 0:

```
$ make validate
python3 scripts/validate-repository-naming.py --project project.yaml
  openDox                          neutral-product/assembly   also_matches project-leg/assembly
  openDox-spec                     project-leg/spec
  openDox-code                     project-leg/code
python3 scripts/validate-manifest.py
manifest ok: openDox (opendox), 3 legs
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit f7ee3c763b3a
  ok  spec: tree digest recomputes (e81f8530d93e…)
  ok  code: gitlink == contracts/code-pin.yaml commit 047bb4fa394f
  ok  code: tree digest recomputes (97536dbe7454…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
```

Before the commit, with the gitlink not yet recorded, the same `make pins` reported
`FINDING pin-gitlink-mismatch` (recorded gitlink `2d116415` vs pin file `047bb4fa`), exit 2, with the digest
line already `ok`. That is the lockstep rule working, and is why the gitlink and the pin file are one commit.

## The digest, and how it was recomputed independently

`97536dbe7454ac062cc8fd3e34fd15a32eee52213f0292042b243f7e5c699a02` is `sorted-ls-tree-r-v1` over
`047bb4fa394f3e1bf42466062a67ef18e99f8d6a` (299 records), the definition in `contracts/code-pin.yaml`'s own
header. Four methods, none of them copied from another, gave the same value:

| method | result |
|---|---|
| A. standalone Python that does NOT import `repo_shape` (split `git ls-tree -r -z` on NUL, drop empties, sort bytewise, sha256 of each record plus `\n`), in the `code` submodule's own object store | `97536dbe...9a02`, 299 records |
| B. shell only: `git ls-tree -r -z <sha> \| tr '\0' '\n' \| LC_ALL=C sort \| sed '/^$/d' \| sha256sum` | `97536dbe...9a02` |
| C. the repo's own `scripts/repo_shape.py::tree_digest(Path('code'), <sha>)`, the function `validate-pins.py` recomputes with | `97536dbe...9a02` |
| D. the forge's own data: `gh api repos/opensoft/openDox-code/git/trees/<sha>?recursive=1` (not truncated), tree rows dropped, `mode type sha TAB path` rows sorted and hashed, no clone involved | `97536dbe...9a02`, 299 records |

**Sanity check on the method first.** Before trusting methods A and B on the new commit, they were run on the
commit the repo already trusts, `2d116415159b721b55613fe20a159afc46202d1f`, and both reproduced the existing
`contracts/code-pin.yaml` value `322f8105d15cf01582dae8771fce2cc6ca9120e5b6bca2750898e872cb6a26e2` exactly
(219 records). Only then were they applied to `047bb4fa`.

## Not this PR

- `contracts/CHANGELOG.md` is not edited. A code-pin move carries no CHANGELOG line: #13 and every earlier
  code-leg bump (#5 to #10) changed only the gitlink, `contracts/code-pin.yaml`, and, in #5, #6 and #10, the
  spec pair too, and the `code` leg carries no contract bytes (`contracts/manifest.yaml`: "THE CODE LEG
  CONTRIBUTES NO ENTRY"). The
  `dox-v1.1` section still names `2d116415` in its bundle table because it describes the bundle at the tagged
  commit `52005213`, which it still does. One dated line does read differently after this lands: the
  `## Unreleased` bullet dated 2026-09-29 says `contracts/code-pin.yaml` "still pins `2d116415`". It is a dated
  snapshot and is left as written; refreshing it is a holder call, not part of T090's steps 1-2.
- No bundle is cut. T053's `dox-v1.1` is phase 2's one bundle (T090), and the `dox-v1.1` tag is over `52005213`,
  untouched.
- The `spec` leg, `contracts/spec-pin.yaml`, `contracts/manifest.yaml`, and every workflow file are untouched.
- The consumer side is not this PR's. T059 (openXdox-code, `After: T062`) moves `pyproject.toml`'s `opendox @`
  to this same openDox-code commit (T090 step 3), and T064 (T090 steps 5-6) moves the openXdox root to T061's
  commit and to this PR's root commit, and openxFactory's pin pairs with them.

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

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


Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[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