Skip to content

Plan 034 T044 (P1-J): the six doc_health skips assert for real in a declared file; the triple 885/881/4 - #33

Merged
brettheap merged 2 commits into
mainfrom
build/034-t044-margin
Sep 28, 2026
Merged

brettheap merged 2 commits into
mainfrom
build/034-t044-margin

Conversation

@brettheap

@brettheap brettheap commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Plan 034, task T044, slice P1-J (openXdox-code green alone, less the declared exclusion). The plan is specs/034-opendox-standalone-operation/tasks.md at opensoft/openxFactory main 6b97c601. T044's entry is unchanged since b422b30a. This PR realizes box 9.4, openXdox's half, of the ratified add-neutral-product-standalone-operability: "Restore the margin, and stop the skips carrying the gap".

The task entry reads: "Restore the margin over the floors T043 re-pinned. Each of the six skips defers "doc_health reachability". Each one either asserts for real, or its file joins T041's declared exclusion with that reason (R1Q6 (d)). No skip is left carrying the gap. A file that joins the exclusion here lowers the collected counts, so T044 first re-pins T043's floors over the new whole suite less the exclusion, and then restores the margin." Its falsifier is the triple.

The six skips

All six come from one guard, repeated in each of the three § 4.5 seam suites. The guard imports serve_gate.GateRoutesExtension and serve_projection.ProjectionRoutesExtension, and skips on a doc_health ModuleNotFoundError. serve_projection reaches openxFactory's doc_health when it is imported (serve_projection.py:63 → snapshot_registry.py:85). serve_gate imports in a lone checkout at this pin, but every one of the six assembles both columns, so every one needs doc_health.

seam suite the two cases that skipped passing beside them
tests/test_role_authority_projection_seam.py test_assembles_beside_the_two_existing_contribution_columns, test_assembly_is_order_insensitive 6
tests/test_evidence_provenance_surface_seam.py test_assembles_beside_all_three_existing_contribution_columns, test_assembly_is_order_insensitive 8
tests/test_model_scenario_workbench_seam.py test_assembles_beside_all_four_existing_contribution_columns, test_assembly_is_order_insensitive 10

T041's check needs every declared file to fail alone, so a file that only skips cannot be declared. Declaring the three suites whole would also take their 24 passing cases out of the required check with them.

What this PR does

  1. The guard goes, and the six move. They go into a new file, tests/test_seam_assembly_beside_gate_and_projection.py, which imports both columns at module level, beside the three § 4.5 extensions.
    • Each case keeps its code: the AST of each moved function equals its original's, less the guard's call (6 of 6, compared with ast.dump).
    • Each name now leads with the extension it assembles, since three of the six were all test_assembly_is_order_insensitive.
    • Only comments changed, where "this extension" now names the extension.
  2. The new file joins the declaration under doc_health, in path order, with a note. tests/declared_exclusion.yaml goes from count: 66 to 67.
  3. The three seam suites keep their 24 cases in the required check. Each drops the guard, its two cases and the now-unused import pytest. Each docstring says where (d), the assembly beside the other columns, is now asserted.
  4. The triple is re-pinned in the same commit: MIN_SELECTED 890 → 885, MIN_PASSED 880 → 881, EXPECT_SKIPPED 10 → 4 (see "The pin").
  5. Comments only, elsewhere.
    • The #: comments on EVIDENCE_ROUTE, WORKBENCH_ROUTE and ROLE_AUTHORITY_ROUTE in src/openxdox/ said the seam suite proved each route beside the gate and projection columns. They now name the new file for that half, and each module's AST is unchanged.
    • tests/test_declared_exclusion.py's count comment now reads 67 files and 234 red results.

The falsifier: the triple

CI's own runs (the required validate, event pull_request), each at the exact head:

head run (job) pytest step Pin the triple step
64bca95d, the change 36445143486 (109005390827) 881 passed, 4 skipped, 1 deselected triple: selected=885 passed=881 skipped=4 failures=0 errors=0, pins: selected>=885 (margin 0) passed>=881 (margin 0) skipped==4
6de4d5b2, this head (comments only since 64bca95d) 36445567371 (109006872592) 881 passed, 4 skipped, 1 deselected the same triple and pins, margin 0

SonarCloud passed at both heads.

Locally, in the step's own form: a fresh venv, pip install -e ".[test]", openDox at the pin 2d116415, pytest 8.4.2. The run was python -m pytest -q --junitxml=pytest-report.xml --deselect "$LEFT_OUT", then the Pin the triple step's own script, read from this branch's validate.yml:

881 passed, 4 skipped, 1 deselected
triple: selected=885 passed=881 skipped=4 failures=0 errors=0
pins:   selected>=885 (margin 0) passed>=881 (margin 0) skipped==4
pin step exit: 0

At main (4610bca5) the same commands give 890 / 880 / 10. That is what CI read at #32's final head (run 36357895876).

What moved, by node id. Comparing the two JUnit reports:

  • Left the run (6, each skipped before): the six cases above.
  • Joined the run (1, passed): tests/test_declared_exclusion.py::test_each_listed_file_fails_alone_for_exactly_its_reasons[tests/test_seam_assembly_beside_gate_and_projection.py], which is T041's check of the new entry.
  • Changed state: no other node.

So SELECTED is 890 − 6 + 1 = 885, PASSED is 880 + 1 = 881, and SKIPPED is 10 − 6 = 4.

The new entry, held to its reason

Alone. The new file was run alone, the way T041's child runs it: PYTHONPATH, CONTRACTS_DIR, PYTEST_ADDOPTS and PYTEST_PLUGINS dropped, PYTEST_DISABLE_PLUGIN_AUTOLOAD=1, -q -o verbosity_assertions=2:

E   ModuleNotFoundError: No module named 'doc_health'
1 error in 0.19s                                   (exit 2)
JUnit: error, message 'collection failure', E lines: ["E   ModuleNotFoundError: No module named 'doc_health'"]

T041's evidence takes that as doc_health, and as nothing else. Run alone, the 67 entries give 234 red results between them. Each is taken by exactly its entry's reasons (doc_health 70, status-exemption-rail 87, openxfactory-contracts 75, consumer-schemas 2), and none is unattributed.

Composed, they pass. With openxFactory 6b97c601's scripts/ on PYTHONPATH, the new file gives 6 passed. The six assert for real wherever doc_health is present. The three seam suites alone give 24 passed, with nothing skipped.

The pin, and how "restore the margin" is read here

  • The floors sit ON CI's reading. That is the form § 5.4 FLOOR PART 2 clause (d), openXdox leg: pin the collection triple on the required check #25 set, and the form the holder chose for this leg, following 9.4 and T044's text. It is not openDox-code's T037 form, three below, which was accepted there. So the margin the step prints stays 0.
  • What is restored is that no skip in the pin carries the gap. The six that deferred doc_health now assert for real, in a declared file. The four left are tests/test_aggregation_register_instance.py's, which skip because the "aggregation checkout (seed register + pinned validator) not reachable". None of them waits for doc_health.
  • Those four stay as skips. Declaring them would need a fifth reason, and T041's conftest refuses a fifth without a ruling. This PR asks for none.
  • validate.yml says the same:
    • a RE-PINNED BY plan 034 T044 paragraph under T043's;
    • the skip paragraph, rewritten for the four;
    • the floors comment, naming the one act that may lower them;
    • the skip pin's error message.

Also measured

  • F9.1's two validate.yml assertions: grep -c of the no-conftest flag prints 0, and no pytest step enumerates a test file.
  • tests/test_declared_exclusion.py runs inside the whole suite above and is green. That covers batch B's three assertions, the loader's rules, and each of the 67 files run alone.

Commits

commit what
64bca95d the move, the declaration (count: 67), the re-pin to 885 / 881 / 4 with its paragraphs, and the comment updates
6de4d5b2 validate.yml's RE-PINNED BY plan 034 T044 paragraph names CI's own run, 36445143486, which read 885 / 881 / 4 at 64bca95d. Comments only: the parsed workflow is unchanged

Copilot's reviews

head overview what it said answer
64bca95d Needs a closer look, no findings "Run the required CI check on the exact commit and confirm the 885/881/4 pins" done, run 36445143486 (comment 5873450193); the run is cited in validate.yml at 6de4d5b2
6de4d5b2 Needs a closer look, no findings "CI does not execute the relocated assertions in a composed environment" true, and so it was before T044, when all six skipped on every run. The gap is now declared and checked rather than silent, and a composed CI job is the holder's decision (comment 5873528729)

No review thread was opened, so none is unresolved.

Notes for the holder

  1. "The six skips sit in carved test files" (T044's Ruled line). The three seam suites are CREATED files, with no carve-manifest row. openxFactory's docs/opendox-carve-admissions.yaml admits them under openxdox_code, since 427230c3, 5333b125 and 4f98e77c. So R1Q22 (a) is not needed for them. It is the same wording fix as P1-G's note on T037, for the next bookkeeping round.

  2. For T047 (P1-K). The new file needs a created: admission in openxFactory's docs/opendox-carve-admissions.yaml:

    • under openxdox_code, in path order after tests/test_role_authority_projection_seam.py;
    • with since: set to this PR's landing commit.

    Nothing else here reaches openxFactory. Its consumer gate runs openxFactory's own suites, and no openxFactory composition test moves, so batch E (#1183) gains nothing from T044.

  3. For T007 batch B. 9.4's addendum ("each of openXdox's six skips either asserts, or its file joins the declared exclusion") is carried out as both: the six assert for real, and their file joins under doc_health. The declaration now counts 67 entries. The pin is 885 / 881 / 4, and the four skips left are the aggregation-register suite's.

Landing

  • T043 has landed, and this branch starts from that main, so no retarget is needed.
  • Squash or merge, never rebase. Each commit carries both trailers, and so does this body.
  • It touches no openspec/changes/ path, so no Rule 6 window applies.

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

🤖 Generated with Claude Code

…eclared file; the triple 885/881/4

Box 9.4, openXdox's half, of the ratified
add-neutral-product-standalone-operability: "Restore the margin, and stop
the skips carrying the gap". Plan 034 T044 (openxFactory
specs/034-opendox-standalone-operation/tasks.md): each of the six skips
that defers "doc_health reachability" either asserts for real, or its file
joins T041's declared exclusion with that reason (R1Q6 (d), openxFactory#656
comment 5817152735).

The six are the three seam suites' guarded pairs, the cases that assemble
each section 4.5 route contribution beside the gate and projection columns.
serve_projection reaches openxFactory's doc_health when it is imported
(through snapshot_registry), so in a lone checkout the guard skipped them on
every run. The guard is gone. The six move, their code unchanged (the AST
of each equals its original, less the guard's call), into
tests/test_seam_assembly_beside_gate_and_projection.py, which imports both
columns at module level. Composed with openxFactory's scripts/ on
PYTHONPATH the six pass. Alone, the file fails at collection on doc_health
and on nothing else. So tests/declared_exclusion.yaml lists it under
doc_health (count 66 -> 67), and tests/test_declared_exclusion.py holds it
to that. The 24 seam cases that need neither column stay in their suites
and pass.

THE FLOORS MOVE, WITH THE REASON. validate.yml: a file that joins the
declaration lowers them, and "the act that adds it re-pins these floors in
the same commit, with the reason". SELECTED and SKIPPED each lose the six,
and the declaration's check gains one passing case, the new file run alone.
So MIN_SELECTED 890 -> 885, MIN_PASSED 880 -> 881 and EXPECT_SKIPPED
10 -> 4, the reading of this change's whole suite at openDox-code 2d116415.
The floors sit on that reading, as the holder decided for this leg (9.4 and
T044's text, not openDox-code's three-below form). The four skips left are
tests/test_aggregation_register_instance.py's, which wait for an
aggregation checkout, not for doc_health. Declaring them would need a fifth
reason, and so a ruling, so they stay.

Also: the three seam suites' docstrings, three src/openxdox "#:" comments
(comments only; the modules' ASTs are unchanged) and the checker's count
comment (67 files, 234 red results) now say where each half of the
assembly is proved.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 15:38
@sourcery-ai

sourcery-ai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR removes six doc_health-based skips by relocating those seam assertions into a dedicated file that imports the required columns unconditionally and is declared under the matching exclusion reason; it preserves the other seam coverage and re-pins CI’s whole-suite triple from 890/880/10 to 885/881/4.

Sequence diagram for seam assembly coverage

sequenceDiagram
    participant Suite as Seam test file
    participant Gate as GateRoutesExtension
    participant Projection as ProjectionRoutesExtension
    participant Health as doc_health
    Suite->>Gate: import
    Suite->>Projection: import
    Projection->>Health: import
    Health-->>Projection: available
    Suite->>Gate: assemble beside projection
    Suite->>Projection: assemble beside gate
    Gate-->>Suite: assertions pass
    Projection-->>Suite: assertions pass
Loading

Flow diagram for resolving the six doc_health skips

flowchart LR
    A["Three seam suites"] --> B["Move six guarded cases"]
    B --> C["Dedicated seam test file"]
    C --> D["Import GateRoutesExtension and ProjectionRoutesExtension"]
    D --> E["Six cases pass when doc_health is available"]
    C --> F["Declared exclusion: doc_health"]
    F --> G["T041 validates the file alone"]
Loading

Flow diagram for the re-pinned CI triple

flowchart LR
    A["Before: 890 selected / 880 passed / 10 skipped"] --> B["Six doc_health cases leave whole-suite run"]
    B --> C["One declared-exclusion check joins and passes"]
    C --> D["After: 885 selected / 881 passed / 4 skipped"]
    D --> E["Pin the triple succeeds"]
Loading

File-Level Changes

Change Details Files
Moved the six doc_health-gated seam tests into a dedicated declared-exclusion file so they fail explicitly when the dependency is absent and pass when it is available.
  • Created a module-level-import test file containing the six existing assembly cases with renamed, extension-specific test names.
  • Removed the skip guards and unused pytest imports from the three original seam suites while retaining their remaining 24 cases.
  • Added the new file to the doc_health exclusion and updated exclusion counts and evidence comments.
  • Re-pinned the whole-suite selected, passed, and skipped checks to 885, 881, and 4, respectively, and documented the count transition.
  • Updated route documentation comments to reference the new seam test file.
tests/test_seam_assembly_beside_gate_and_projection.py
tests/test_role_authority_projection_seam.py
tests/test_evidence_provenance_surface_seam.py
tests/test_model_scenario_workbench_seam.py
tests/declared_exclusion.yaml
tests/test_declared_exclusion.py
.github/workflows/validate.yml

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

🔵 Needs a closer look

Run the required CI check on the exact commit and confirm the 885/881/4 pins.

Review effort: Lite
Findings: None

What changed in this PR

Moves six doc_health-skipped seam tests into a declared exclusion file and updates validation counts.

Changes:

  • Adds the relocated seam tests and exclusion entry.
  • Removes obsolete guards from the original suites.
  • Updates test references and CI pins to 885 / 881 / 4.
File Summary
tests/​test_seam_assembly_beside_gate_and_projection.py Adds six relocated seam tests.
tests/​test_role_authority_projection_seam.py Removes relocated guarded tests.
tests/​test_model_scenario_workbench_seam.py Removes relocated guarded tests.
tests/​test_evidence_provenance_surface_seam.py Removes relocated guarded tests.
tests/​test_declared_exclusion.py Updates exclusion inventory documentation.
tests/​declared_exclusion.yaml Declares the new excluded file.
src/​openxdox/​role_authority_projection.py Updates test references.
src/​openxdox/​model_scenario_workbench.py Updates test references.
src/​openxdox/​evidence_provenance_surface.py Updates test references.
.github/​workflows/​validate.yml Re-pins validation thresholds.

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

The RE-PINNED BY plan 034 T044 paragraph in validate.yml now cites the
run, as every earlier re-pin there does: run 36445143486 (2026-09-28)
measured 64bca95, the commit that set these pins, at openDox-code
2d116415, and printed selected 885, passed 881, skipped 4, failures 0,
errors 0, margin 0 on both floors. That is the reading the change's own
whole-suite run gave locally. A comment-only change: the parsed workflow is
unchanged.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 28, 2026 15:42
@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot review 5341094987 at 64bca95d, "Needs a closer look" with no findings: "Run the required CI check on the exact commit and confirm the 885/881/4 pins." Done.

  • The required validate ran on exactly 64bca95d. It was run 36445143486 (job 109005390827), event pull_request, head_sha 64bca95d9c923037f7146d53e11ae02167df2922, conclusion success. Its pytest step printed 881 passed, 4 skipped, 1 deselected, and its Pin the triple step printed:

    triple: selected=885 passed=881 skipped=4 failures=0 errors=0
    pins:   selected>=885 (margin 0) passed>=881 (margin 0) skipped==4
    
  • That matches the local reading exactly, so the pins are CI's own reading.

  • 6de4d5b2 cites that run in validate.yml's RE-PINNED BY plan 034 T044 paragraph. It changes comments only, and the parsed workflow is unchanged. Its own run goes in the description once it has run.

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

@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

🔵 Needs a closer look

CI does not execute the relocated assertions in a composed environment, allowing regressions to go undetected.

Review effort: Lite
Findings: None

@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot review 5341150063 at 6de4d5b2, "Needs a closer look" with no findings: "CI does not execute the relocated assertions in a composed environment, allowing regressions to go undetected."

It is true, and it is not new with this PR. It is the state that R1Q6 (d) rules, now declared instead of silent.

  • Before T044 the six executed nowhere in CI either. This leg's only CI is a lone checkout, and there the guard skipped all six on every run. At main (4610bca5) the JUnit report has each of the six as skipped. CI's run at Plan 034 T043 (P1-J): the required check runs the whole suite, less the declared exclusion #32's final head (36357895876) printed triple: selected=890 passed=880 skipped=10, and six of those ten were these.

  • Now the gap is declared rather than hidden.

    • Every run prints excluded tests/test_seam_assembly_beside_gate_and_projection.py: doc_health under the open extraction, as run 36445567371 did.
    • T041's check runs the file alone on every run and asserts that it fails, and fails only on doc_health. That is tests/test_declared_exclusion.py::test_each_listed_file_fails_alone_for_exactly_its_reasons[tests/test_seam_assembly_beside_gate_and_projection.py], one of the 885 CI selected, with failures 0.
    • So the file cannot quietly start failing for another reason. A broken import of any of the three § 4.5 modules, which the file imports first, would be an unattributed red.
  • What still runs in CI, every run: the 24 seam cases. Between them they check:

    • each § 4.5 extension's structural conformance, its bindings alone, and its handler resolution;
    • that each route sits under neither the gate's prefix nor the core /source/ prefix;
    • dispatch through match();
    • the § 4.5 siblings' mutual assembly.

    What only the six check is the assembly beside the gate and projection columns' own bindings.

  • Where the six do run: composed. With openxFactory 6b97c601's scripts/ on PYTHONPATH, the file gives 6 passed (in the description).

  • Why this PR adds no composed CI. Running them in CI needs doc_health reachable from this leg. That is the doc_health direction arc (plan 034 T008), which is the exclusion's stated end (open_until in tests/declared_exclusion.yaml). The other route would be a CI job composing openxFactory into this leg. No release-1 task plans one, and R1Q6 (d) (openxFactory#656 comment 5817152735) chose the declared, open exclusion instead. Adding it is the holder's decision, not this task's.

No code change for this review.

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

@brettheap
brettheap marked this pull request as ready for review September 28, 2026 15:47
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 6de4d5b — 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.

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

@brettheap
brettheap merged commit 6158151 into main Sep 28, 2026
4 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-28T15:50:27Z, PR #33 → 6158151 (opensoft/openXdox-code main; plain gate)

Brett: land the phase 1 PRs when green

brettheap added a commit to opensoft/openXdox that referenced this pull request Sep 28, 2026
…63ac683 (T039) (plan 034 T047, T090 step 5) (#20)

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

Plan 034, task **T047** (slice P1-K), step 5 of **T090**'s pin procedure: *"The openXdox root moves its `code` gitlink and `code-pin.yaml`, and moves `contracts/opendox-pin.yaml` to step 2's root commit."* The plan is `specs/034-opendox-standalone-operation/tasks.md` at opensoft/openxFactory `main` `6b97c601`. The claim is openxFactory#656 comment `5873306432`.

**READY**: un-drafted by the coordinator at `6495ba98` (2026-09-28T22:21Z). The head is now `4b7555f3`, after two prose-only review commits (`1b8b26fd` and `4b7555f3`), so READY needs restating at that head. openxFactory's half is T047's openxFactory PR, opensoft/openXfactory#1181. It re-points its `openXdox` gitlink to this PR's LANDED sha, and it lands after T007 batch E (opensoft/openXfactory#1183). The first commit, `1f977e50`, pinned openXdox-code `4610bca5` while T044 was open. T044 then landed as opensoft/openXdox-code#33 → `6158151e`, the leg's last phase-1 commit, and the second commit, `6495ba98`, re-pins to it. (The branch name still reads `4610bca5`; renaming it would have meant a second PR.)

## The lockstep (head `6495ba98`)

| site | before | after |
| --- | --- | --- |
| `code` gitlink | `e28930bf` | **`6158151e`** |
| `contracts/code-pin.yaml` `commit:` | `e28930bf052f…` | **`6158151e7f5202e1894f13365702daedca88cc26`** |
| `contracts/code-pin.yaml` `digests.tree_sha256` | `9b687616…ff69` | **`40ec310846ba1aea818baed0962a76a31552badb4932e03990180a36f8e1d0c9`** |
| `contracts/opendox-pin.yaml` `commit:` | `dc7aa08f…` | **`663ac683c04c67007eaef24006f0854a650069ea`** |
| `contracts/opendox-pin.yaml` `digests.tree_sha256` | `adc049c9…7cee` | **`ec8266039f2be6988726ed2d6e78657f1e7e4919ea55d290a2825f1e22359d5d`** |

No `.github/workflows/*.yml` names the code leg by `@<sha>` (as at #17, #18 and #19), so the README's third site does not exist here.

**Each gitlink and its pin file move in one commit**: `1f977e50` moves `code` with `code-pin.yaml` and `contracts/opendox-pin.yaml`, and `6495ba98` moves `code` with `code-pin.yaml` again. `make pins` passes at both commits.

**Both moves are ancestor moves.** `e28930bf` is an ancestor of `6158151e` (through `4610bca5`), and `dc7aa08f` is an ancestor of `663ac683` (`git merge-base --is-ancestor`, every check exits 0). `6158151e` is openXdox-code `main`.

**What the code leg's advance carries.** `e28930bf..6158151e` is five first-parent commits, each a squash landing of plan 034's phase 1:
- `d84b5048`, #29 (T040): the carve residue cleared, and `rfc3339-validator` declared.
- `5fbd188e`, #30 (T041): the declared exclusion.
- `4e16db95`, #31 (T042): `tests/integration/` at the declared composition.
- `4610bca5`, #32 (T043): the required check runs the whole suite, less the exclusion.
- `6158151e`, #33 (T044): the six `doc_health` skips assert for real, in a declared file. It adds one file, `tests/test_seam_assembly_beside_gate_and_projection.py`.

**What the openDox pin's advance carries.** `dc7aa08f..663ac683` is openDox #13 (T039). It touches three paths: the `code` gitlink (`d816cf06` → `2d116415`), `contracts/code-pin.yaml` and `contracts/CHANGELOG.md`. openDox's `contracts/manifest.yaml`, `contracts/spec-pin.yaml` and `spec` gitlink are byte-unchanged. `dox-v1.0` still tags `dc7aa08f`.

## The digests, three ways

| tree | records | `scripts/repo_shape.py` `tree_digest` | independent `ls-tree` + `sha256` | `repo_shape.tree_digest_from_gh` (the forge's tree) |
| --- | ---: | --- | --- | --- |
| openXdox-code `6158151e` | 173 | `40ec3108…d0c9` | `40ec3108…d0c9` | `40ec3108…d0c9` |
| openXdox-code `4610bca5` (the first commit's pin) | 172 | `43e3d6a9…3ec0` | `43e3d6a9…3ec0` | `43e3d6a9…3ec0` |
| openDox `663ac683` | 28 | `ec826603…9d5d` | `ec826603…9d5d` | `ec826603…9d5d` |

Controls: the same independent method recomputes the recorded `9b687616…ff69` at `e28930bf` (149 records) and `adc049c9…7cee` at `dc7aa08f` (28 records).

## `contracts/opendox-pin.yaml`, edited in place

It stays at 164 lines, with every line in its position. Four lines change:
- line 34, `commit:`;
- line 40, `tree_sha256`;
- line 55, whose sentence named `dc7aa08f` as "THIS pin's own commit". It now reads "Checked at `dc7aa08f`, and unchanged at `663ac683`". The three `entries:` it describes are unchanged, because openDox's manifest is.
- line 143, the migration triple's `runbook`, which names "the pinned code leg". That is `2d116415` now.

**The migration triple.** At `2d116415`, `migrations/` holds the same two files, `0001_identity_and_coordination.sql` and `0002_migration_state.sql`. `0002` still reads "openDox ships no down migration today". So `range: "0001..0002"` and `reversible: false` stay. `docs/runtime.md` still has "## 5. Migrations" and "## 6. Running it", and `deploy/kubernetes/base/migration-job.yaml` still names it for the re-run. Only `runbook`'s leg changes. openxFactory's own `contracts/opendox-pin.yaml` takes the identical block in T047's openxFactory PR. `tests/opendox_pin/test_opendox_pin_verifier.py` asserts that the two blocks are equal.

## Prose kept true in the same commit

- **`contracts/manifest.yaml`.**
  - "THE CODE LEG CONTRIBUTES NO ENTRY" is re-measured at `6158151e`: no `contracts/` path among its 173 paths (nor among `4610bca5`'s 172). None of the five entries moves.
  - "WHAT THIS BUNDLE DEPENDS ON" named `dc7aa08f` as the pin, "the commit `dox-v1.0` tags". It now names `663ac683`, a descendant of the tagged root that moves no openDox bundle. #15's advance is kept as history.
  - The lockstep paragraph's openxFactory reading is now `069fe471`, whose blob names `dc7aa08f`. It was `88a1047e` at #15.
- **`contracts/CHANGELOG.md`, `## Unreleased — 2026-09-23`.** It records the code leg's fourth advance and the openDox pin's advance. The closing sentence is true as written: both legs' `main` are exactly the commits this root pins today. No contract byte moves.
- **No tag moves.** `xdox-v1.0` stays over `2073e3a9` (code `ab04453d`, spec `f088b097`).
- **`1b8b26fd` and `4b7555f3`, review fixes (prose only).**
  - **The attribution.** Sourcery pointed out that "moves nothing else" was false. `dc7aa08f..663ac683` is two commits:
    - opensoft/openDox #12 (`36ded1cd`) changes only `contracts/CHANGELOG.md`;
    - opensoft/openDox #13 (`663ac683`, T039) changes `code` and `contracts/code-pin.yaml`.
  - `1b8b26fd` first credited all three paths to #13. Copilot caught that, and `4b7555f3` credits each commit with its own paths, in the changelog entry and in the manifest's dependency comment.
  - **The bundle claim is unchanged.** openDox's manifest, `spec` gitlink and spec-pin are byte-identical between the two commits.
  - Copilot's overview at `6495ba98` flagged the changelog's arc label. The entry named the OpenSpec change id. It now names `neutral-product-standalone-operability`, the `Arc:` trailer that openXdox-code #29–#33 each carry.

## Validators, as `validate.yml` runs them (at `6495ba98`; the same three passed at `1f977e50`, and again at `1b8b26fd` and `4b7555f3` through `make validate`, exit 0)

| check | result |
| --- | --- |
| `python3 scripts/validate-repository-naming.py --project project.yaml` | exit 0 |
| `python3 scripts/validate-manifest.py` | exit 0: `manifest ok: openXdox (openxdox), 3 legs` |
| `make pins` (`python3 scripts/validate-pins.py`) | exit 0: `ok  code: gitlink == contracts/code-pin.yaml commit 6158151e7f52`, `ok  code: tree digest recomputes (40ec310846ba…)`, `ok  openDox: pin commit 663ac683c04c digest recomputes (gh-api-tree-recursive)`, `pins ok` |

## What this does to openxFactory

`verify-opendox-pin.py` check 5 reads this root's `contracts/opendox-pin.yaml` as a blob, at whatever commit openxFactory's `openXdox` gitlink names. This PR changes that file's `commit:` to `663ac683`. So when openxFactory's `openXdox` gitlink moves here, its own `openDox` pair must move to `663ac683` in the SAME commit (openxFactory's `docs/openxdox-pin-resync-runbook.md` § 4, `DIFFERENT`). T047's openxFactory PR does exactly that. Until it lands, openxFactory keeps reading `069fe471`.

## Landing (forced order)

1. ~~T044, opensoft/openXdox-code#33, lands.~~ Landed → `6158151e`.
2. ~~This PR re-pins `code` to T044's landed commit.~~ Done at `6495ba98`. The review fixes are at `1b8b26fd` and `4b7555f3`, prose only.
3. This PR lands. Squash or merge, never rebase, and the landing carries the `Arc:` line.
4. openxFactory's T047 PR re-points its `openXdox` gitlink to the LANDED sha, and records that tree's digest. Until then it pins this branch's head. It lands after batch E.

Plain gate: this repository has no `openspec/changes/`, so there is no Rule 6 window. **This PR is not merged by the actor that opened it.**

Arc: neutral-product-standalone-operability

🤖 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) <noreply@anthropic.com>
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