Repository navigation
Plan 034 T044 (P1-J): the six doc_health skips assert for real in a declared file; the triple 885/881/4 - #33
Conversation
…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>
Reviewer's GuideThe 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 coveragesequenceDiagram
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
Flow diagram for resolving the six doc_health skipsflowchart 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"]
Flow diagram for the re-pinned CI tripleflowchart 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"]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Copilot review overview
🔵 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 review
Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
|
|
Copilot review It is true, and it is not new with this PR. It is the state that R1Q6 (d) rules, now declared instead of silent.
No code change for this review. Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
|
READY at 6de4d5b — Lane: openxfactory-4 (openXfactory-4-openDox_extraction) |
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 5 hours and 52 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
…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>



Plan 034, task T044, slice P1-J (openXdox-code green alone, less the declared exclusion). The plan is
specs/034-opendox-standalone-operation/tasks.mdat opensoft/openxFactorymain6b97c601. T044's entry is unchanged sinceb422b30a. This PR realizes box 9.4, openXdox's half, of the ratifiedadd-neutral-product-standalone-operability: "Restore the margin, and stop the skips carrying the gap".5817152735. See note 1 below on "carved".5871347075.4610bca5. This branch starts from thatmain.The task entry reads: "Restore the margin over the floors T043 re-pinned. Each of the six skips defers "
doc_healthreachability". 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.GateRoutesExtensionandserve_projection.ProjectionRoutesExtension, and skips on adoc_healthModuleNotFoundError.serve_projectionreaches openxFactory'sdoc_healthwhen it is imported (serve_projection.py:63→snapshot_registry.py:85).serve_gateimports in a lone checkout at this pin, but every one of the six assembles both columns, so every one needsdoc_health.tests/test_role_authority_projection_seam.pytest_assembles_beside_the_two_existing_contribution_columns,test_assembly_is_order_insensitivetests/test_evidence_provenance_surface_seam.pytest_assembles_beside_all_three_existing_contribution_columns,test_assembly_is_order_insensitivetests/test_model_scenario_workbench_seam.pytest_assembles_beside_all_four_existing_contribution_columns,test_assembly_is_order_insensitiveT041'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
tests/test_seam_assembly_beside_gate_and_projection.py, which imports both columns at module level, beside the three § 4.5 extensions.ast.dump).test_assembly_is_order_insensitive.doc_health, in path order, with a note.tests/declared_exclusion.yamlgoes fromcount: 66to67.import pytest. Each docstring says where (d), the assembly beside the other columns, is now asserted.MIN_SELECTED890 → 885,MIN_PASSED880 → 881,EXPECT_SKIPPED10 → 4 (see "The pin").#:comments onEVIDENCE_ROUTE,WORKBENCH_ROUTEandROLE_AUTHORITY_ROUTEinsrc/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, eventpull_request), each at the exact head:pyteststepPin the triplestep64bca95d, the change881 passed, 4 skipped, 1 deselectedtriple: selected=885 passed=881 skipped=4 failures=0 errors=0,pins: selected>=885 (margin 0) passed>=881 (margin 0) skipped==46de4d5b2, this head (comments only since64bca95d)881 passed, 4 skipped, 1 deselectedSonarCloud passed at both heads.
Locally, in the step's own form: a fresh venv,
pip install -e ".[test]", openDox at the pin2d116415, pytest 8.4.2. The run waspython -m pytest -q --junitxml=pytest-report.xml --deselect "$LEFT_OUT", then thePin the triplestep's own script, read from this branch'svalidate.yml:At
main(4610bca5) the same commands give890 / 880 / 10. That is what CI read at #32's final head (run 36357895876).What moved, by node id. Comparing the two JUnit reports:
skippedbefore): the six cases above.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.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_ADDOPTSandPYTEST_PLUGINSdropped,PYTEST_DISABLE_PLUGIN_AUTOLOAD=1,-q -o verbosity_assertions=2: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_health70,status-exemption-rail87,openxfactory-contracts75,consumer-schemas2), and none is unattributed.Composed, they pass. With openxFactory
6b97c601'sscripts/onPYTHONPATH, the new file gives6 passed. The six assert for real whereverdoc_healthis present. The three seam suites alone give24 passed, with nothing skipped.The pin, and how "restore the margin" is read here
doc_healthnow assert for real, in a declared file. The four left aretests/test_aggregation_register_instance.py's, which skip because the "aggregation checkout (seed register + pinned validator) not reachable". None of them waits fordoc_health.validate.ymlsays the same:RE-PINNED BY plan 034 T044paragraph under T043's;Also measured
validate.ymlassertions:grep -cof the no-conftest flag prints0, and no pytest step enumerates a test file.tests/test_declared_exclusion.pyruns 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
64bca95dcount: 67), the re-pin to885 / 881 / 4with its paragraphs, and the comment updates6de4d5b2validate.yml'sRE-PINNED BY plan 034 T044paragraph names CI's own run, 36445143486, which read885 / 881 / 4at64bca95d. Comments only: the parsed workflow is unchangedCopilot's reviews
64bca95d885/881/4pins"validate.ymlat6de4d5b26de4d5b2No review thread was opened, so none is unresolved.
Notes for the holder
"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.yamladmits them underopenxdox_code, since427230c3,5333b125and4f98e77c. 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.For T047 (P1-K). The new file needs a
created:admission in openxFactory'sdocs/opendox-carve-admissions.yaml:openxdox_code, in path order aftertests/test_role_authority_projection_seam.py;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.
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 is885 / 881 / 4, and the four skips left are the aggregation-register suite's.Landing
main, so no retarget is needed.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