Skip to content

Plan 034 T043 (P1-J): the required check runs the whole suite, less the declared exclusion - #32

Merged
brettheap merged 64 commits into
mainfrom
build/034-t043-whole-suite
Sep 28, 2026
Merged

brettheap merged 64 commits into
mainfrom
build/034-t043-whole-suite

Conversation

@brettheap

@brettheap brettheap commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Arc: neutral-product-standalone-operability

On main. #30 (T041) landed as 5fbd188e, and #31 (T042) as 4e16db95 at 23:11:08Z. This PR was retargeted to main straight after, while #31's branch still existed, and 7a3e4882 merges main in, with no force-push and no rebase. Plan 034 task T043 (openxFactory specs/034-opendox-standalone-operation/tasks.md, read at openxFactory main 7af30fc5), slice P1-J, box 9.2: the required check runs the whole suite, less the declared exclusion. Claimed on openxFactory#656, comment 5860269897. It is re-verified at the final head (§ "Checks on this PR"): CI's triple and the whole-suite triage, each as before. Brett ruled its one open question (b), openxFactory#656 comment 5870594693. F9.1's pytest line takes one --deselect for the help-tree test, and F9.1 so amended passes here (§ "The falsifier").

Ruled: R1Q6 (d), R1Q7 (a), R1Q22 (a), openxFactory#656 comment 5817152735; R1Q24 (a), R1Q25 (b), comment 5850003126; F9.1's pytest line, comment 5870594693 (§ "Ruled: F9.1 and the left-out help-tree test"). After: T019, T041, T042, T007 batches C (#1172) and F (#1178); both batches have landed. T061 stays in phase 2, so tests/test_snapshot.py keeps its consumer-schemas entry.

What changes

  1. .github/workflows/validate.yml (0b506a92).
    • The pytest step loses its sixteen-file list and pytest's no-conftest flag. It runs python -m pytest -q --junitxml=pytest-report.xml with the conftest chain in play and no path. pytest takes testpaths = ["tests"], so tests/ is collected whole, tests/integration/ included. The root conftest.py (T041) leaves out tests/declared_exclusion.yaml's 66 files and prints them as an open extraction.
    • All eight lines that named the flag are gone, comments included, because F9.1 counts them with grep -c. The long per-file account of the old list is replaced by a pointer to its history (git show d84b5048:.github/workflows/validate.yml). That replacement also removes the stale 5c137a90 line at :198.
    • T042's integration (9.3) step folds into the whole-suite step, since the whole suite collects tests/integration/ itself. The exclusion that step carried comes with it unchanged: the LEFT_OUT deselect and the ::notice:: line for RULED openxFactory#656 comment 5859927858 (the 31-entry help-tree test, out with its stated reason until T008). The guard test beside that test, and its module docstring, now name the whole-suite step (tests/integration/test_assembled_surface.py, three wording edits).
    • The triple reads one report again. Its comment names every skip it pins (§ "The triple").
    • The floors were not moved in this commit. Its CI runs printed the numbers against the old pins and failed on the exact skip pin, as § 5.4 FLOOR PART 2 clause (d), openXdox leg: pin the collection triple on the required check #25's rule has it ("the first commit of that pull request having printed them before this step pinned them"). b1d127c0 then pinned what CI printed (§ "The triple").
  2. The stale present-tense 5c137a90 pin claims (69646675), in src/openxdox/view_extensions.py, tests/test_dependency_direction.py and tests/test_gate_loop_probes.py:197. Each is respelled to what it says at 2d116415, measured there (§ "The sweeps"). The protected tests/test_gate_loop_views.py is left alone.
  3. The docstrings T043's own change made untrue (01fbbd98). Six places said in the present tense that validate names a file or runs it with the conftest chain off: tests/test_corpus_shape.py, tests/test_domain_corpus_adapter.py, tests/test_domain_profile.py, tests/test_dependency_direction.py, tests/test_gate_loop_probes.py and tests/opendox_bundle.py.
  4. The re-pin (b1d127c0): MIN_SELECTED 574 -> 890, MIN_PASSED 568 -> 880, EXPECT_SKIPPED 6 -> 10, from CI's own run, with a RE-PINNED BY paragraph (§ "The triple").
  5. Two wording fixes from Copilot's rounds.
    • 799a4950 names the one deselected test beside the exclusion wherever the check's scope is stated: tests/test_dependency_direction.py's module docstring and validate.yml's header (thread 4117373483).
    • b944104a respells tests/test_gate_loop_probes.py's call-site note, which said "validate.yml's record block carries the total, 43". That block is gone since T043, so the note says it carried the total until then, and names git show d84b5048:.github/workflows/validate.yml. The same note's "at THIS head" now names the head it meant, Bump opendox pin to openDox-code 0b4e8bbf (§ 3.4 slice S8 leg B landed), and sweep the claims the old pin left true #21's: squashed as 2529c10, its diff adds 37 tests there and 6 in the views file.
  6. Merges, never a rebase or force-push.

Commits 2, 3 and 5 change only comments and docstrings. Each touched file's AST, with docstrings masked, is unchanged (checked with ast.dump). No protected suite is edited (the 16 of 12.5's git grep and the 7 of 5.4a's glob). So no respelling needs R1Q7 (a)'s allow-list, and this PR does not create tests/protected_suite_respellings.yaml.

The falsifier: F9.1 (openXdox-code), as T007's batches B and F amend it, and as RULED 5870594693 amends its pytest line

Quoted from #1144's tasks.md at openxFactory 8421603a (sha256 ec2acf0c…), with the ruling's one --deselect added to the ratified pytest line. The amendment itself is T007's: a bookkeeping PR that another writer is authoring, which lands through a Rule 6 window. This block is the text as run (sha256 06921b49…):

set -euo pipefail
W=$(mktemp -d)                                        # scratch space, resolved at run time (never a host path)
python -m venv --clear "$W/v9"                       # a FRESH environment: nothing already installed stands in
. "$W/v9/bin/activate"
pip install ".[test]"
python -m pytest -q --deselect tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records   # NOT --noconftest, NOT a file list
test "$(grep -c -- --noconftest .github/workflows/validate.yml)" -eq 0
# AND no pytest step enumerates a subset: a named file list with no
# --noconftest would otherwise pass the assertion above.
python - <<'EOF'
import re, sys, pathlib
w = pathlib.Path(".github/workflows/validate.yml").read_text()
body = "\n".join(l.split("#")[0] for l in w.split("\n"))
named = set(re.findall(r'tests(?:_runtime)?/test_[A-Za-z0-9_]+\.py', body))
sys.exit(0 if not named else (print("FAIL: workflow still enumerates", len(named), "test files"), 1)[1])
EOF

The one line it changes, against #1144's ratified text:

-python -m pytest -q                                   # NOT --noconftest, NOT a file list
+python -m pytest -q --deselect tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records   # NOT --noconftest, NOT a file list
  • Batch B (R1Q6 (d), 5817152735; recorded in plan 034 § "Ruled amendments", not yet in #1144, since it lands once T041 names its file): python -m pytest -q collects the whole suite less the files in T041's declared exclusion file. The falsifier asserts three things: the file's count equals its entries, every entry carries its reason, and the run prints the exclusion as an open extraction. The two validate.yml assertions stay.
  • Batch F (R1Q24 (a), R1Q25 (b), 5850003126; landed as #1178): the exclusion takes three more reasons, the rail, openxFactory's contracts, and the consumer's schemas for tests/test_snapshot.py alone. Every entry is reported as an open extraction.

Run as amended at 7a3e4882, the final head, from this checkout, in a fresh venv: exit 0. pip install ".[test]" gave openDox commit_id 2d116415159b721b55613fe20a159afc46202d1f (read from direct_url.json). Python 3.12.3, pytest 8.4.2.

line result
python -m pytest -q --deselect the help-tree test PASS: 880 passed, 10 skipped, 1 deselected, the reading of the required check's own step (CI run 36357895876 at 7a3e4882)
batch B: the run prints the exclusion yes: open extraction: the declared exclusion, declared exclusion: 66 files, listed in tests/declared_exclusion.yaml and left out of this run, the four reasons with their rulings, and 66 excluded lines
batch B: count equals entries; every entry carries its reason the root conftest refuses to load otherwise, and tests/test_declared_exclusion.py asserts both inside this run (test_the_count_equals_the_entries, test_every_entry_carries_its_reason), both passed
test "$(grep -c -- --noconftest …)" -eq 0 PASS, grep -c prints 0
no pytest step names a test file PASS, exit 0

Unamended, the ratified pytest line exits 1 on that one test alone: 1 failed, 880 passed, 10 skipped. The failure is ModuleNotFoundError: No module named 'doc_health', through openxdox/cli_gate.py, measured at 7a3e4882 and at b1d127c0. That is the question the ruling answers (§ "Ruled").

So F9.1 as amended passes at this head. The required check and F9.1 now leave out the same one test, each by its own --deselect, and T008 removes both.

Ruled: F9.1 and the left-out help-tree test

RULED 5859927858 left the help-tree test out of T042's step until T008, with its stated reason, "which is R1Q6 (d)'s kind of exclusion", and said "F9.2 is unchanged". It said nothing of F9.1. The required check carries that exclusion as a workflow --deselect, because T041's declaration lists whole tests/test_*.py files directly in tests/. F9.1's bare python -m pytest -q never sees a workflow flag, so its pytest line exited 1 on that one test. This PR put three ways to settle it: (a) the declaration carries the one test; (b) T007 amends F9.1's pytest line to deselect it; (c) F9.1 stays red on it until T008.

RULED (b), openxFactory#656 comment 5870594693 (Brett Heap, 2026-09-28, verbatim choice: "(b) Amend F9.1 to deselect it (Recommended)"):

  • "A small T007 bookkeeping amendment adds one --deselect to F9.1's pytest line for tests/integration/test_assembled_surface.py::test_the_assembled_help_tree_is_the_31_entry_tree_the_manifest_records."
  • "It cites 5859927858 and this comment." "It lands through a Rule 6 window."
  • "T008 removes it together with the workflow deselect."

So this PR changes no code for it. The step's LEFT_OUT stays, and T041's declaration stays file-only, as T041 landed it. Copilot's thread on it (4117316098) is answered with the ruling in 4122573866, and resolved.

The whole suite at T040's pin, every red file with its class

T043 first runs openXdox-code's whole suite at T040's pin, as T005 did at e28930bf. Each tests/test_*.py file is named on the command line, so the declaration hides nothing (pytest collects a file named there whatever collect_ignore says), and tests/integration is named too. The conftest chain is in play, with --continue-on-collection-errors. At 7a3e4882, the final head, openDox 2d116415: 107 failed, 1249 passed, 10 skipped, 127 errors, which is 234 red results in 67 files. The table is the same one b1d127c0 gave. The same run at 9a67bafb, before T043's own commits, gave the same 234 in the same 67 files, with the same classes, and 1242 passed.

The classifier is T005's persisted classify_whole_suite.py (sha256 3a76945d…), with one rule added for this pin. At T027's seam (openDox-code#41), the rail's reach now fails closed as StatusExemptionNotRegistered, not as a missing module, so class H also takes that refusal (the extended tool's sha256 0721b897…):

+    if "StatusExemptionNotRegistered" in txt or "the status-exemption rail cannot answer it" in txt:
+        return "H"   # T043: the rail's refusal at openDox's seam (plan 034 T027), which replaced the module reach
     if "rfc3339-validator" in txt:
class cause red files
A doc_health 70 60 (59 declared, and the ruled-out help-tree test)
H openxFactory's status-exemption rail, refused at openDox's seam 87 3
I the contract family, read outside the checkout 75 5
J the consumer's schemas (7.3) 2 1 (tests/test_snapshot.py)
B–G, M carve residue, rfc3339-validator 0 —
? unclassified 0 —
  • No carve residue is left at this pin. Classes B to G and M are empty, so T043 clears none.
  • The layer T005 found behind tests/test_snapshot_validation_launch.py's fixture, ProfileNotRegistered, is gone at the pin, because T016 registers the default. Its 9 cases now fail on doc_health (no ProfileNotRegistered in any message), and the file is a doc_health entry.
  • Every red file's classes equal its declared reasons exactly. The two-reason entries are tests/test_doxbench_packet.py (A 3, H 54) and tests/test_doxbench_blank_reason.py (A 1, I 1). No declared file is green, and the one red file that is not an entry is the help-tree test, which the ruling handles.
All 67 red files, each with its class and its declared reasons
file red results, by class declared reasons
tests/integration/test_assembled_surface.py A doc_health (1) not an entry: RULED 5859927858 leaves it out (LEFT_OUT)
tests/test_authoring_agent.py A doc_health (1) doc_health
tests/test_branch_session.py (protected) A doc_health (1) doc_health
tests/test_canvas.py A doc_health (1) doc_health
tests/test_completeness.py A doc_health (1) doc_health
tests/test_create_document_cli.py A doc_health (1) doc_health
tests/test_create_project.py A doc_health (1) doc_health
tests/test_doxbench_abstract_envelope.py H the rail (1) status-exemption-rail
tests/test_doxbench_abstract_route.py A doc_health (1) doc_health
tests/test_doxbench_blank_reason.py A doc_health (1), I the contracts (1) doc_health, openxfactory-contracts
tests/test_doxbench_knowledge_service.py A doc_health (1) doc_health
tests/test_doxbench_mutation_boundary.py (protected) A doc_health (1) doc_health
tests/test_doxbench_packet.py A doc_health (3), H the rail (54) doc_health, status-exemption-rail
tests/test_doxbench_request_handling.py A doc_health (1) doc_health
tests/test_doxbench_save.py A doc_health (1) doc_health
tests/test_doxbench_scope.py A doc_health (1) doc_health
tests/test_doxbench_share.py (protected) A doc_health (1) doc_health
tests/test_doxbench_thread_wiring.py A doc_health (1) doc_health
tests/test_doxbench_threads.py A doc_health (1) doc_health
tests/test_doxbench_transport.py A doc_health (1) doc_health
tests/test_doxbench_turns.py H the rail (32) status-exemption-rail
tests/test_doxchat_model_intake.py A doc_health (1) doc_health
tests/test_edit_action.py A doc_health (1) doc_health
tests/test_edit_project.py A doc_health (1) doc_health
tests/test_explorer_viewer.py A doc_health (1) doc_health
tests/test_gate_console.py A doc_health (1) doc_health
tests/test_gate_failure_diagnostics.py A doc_health (1) doc_health
tests/test_gateway_provenance.py (protected) A doc_health (1) doc_health
tests/test_generated_at_anchor.py A doc_health (1) doc_health
tests/test_generator.py (protected) A doc_health (1) doc_health
tests/test_grouping.py A doc_health (1) doc_health
tests/test_header_value_readers.py A doc_health (1) doc_health
tests/test_hermeticity_gate_verbs.py A doc_health (1) doc_health
tests/test_hosted_actor.py (protected) A doc_health (1) doc_health
tests/test_kickoff.py A doc_health (1) doc_health
tests/test_notebook_action.py A doc_health (1) doc_health
tests/test_project_action_contracts.py I the contracts (11) openxfactory-contracts
tests/test_project_aggregates.py A doc_health (1) doc_health
tests/test_project_schema_election.py I the contracts (13) openxfactory-contracts
tests/test_readiness_gate.py A doc_health (1) doc_health
tests/test_register_edit_lane.py A doc_health (1) doc_health
tests/test_renderer.py A doc_health (1) doc_health
tests/test_repo_root_guard.py A doc_health (1) doc_health
tests/test_repo_selector.py A doc_health (1) doc_health
tests/test_round_trip.py A doc_health (1) doc_health
tests/test_session_commits.py (protected) A doc_health (1) doc_health
tests/test_session_confinement.py (protected) A doc_health (1) doc_health
tests/test_session_document_ownership.py A doc_health (1) doc_health
tests/test_session_gates.py (protected) A doc_health (1) doc_health
tests/test_session_lifecycle.py (protected) A doc_health (1) doc_health
tests/test_session_notebook.py (protected) A doc_health (1) doc_health
tests/test_session_records.py (protected) A doc_health (1) doc_health
tests/test_session_runbook.py (protected) A doc_health (1) doc_health
tests/test_session_snapshot.py (protected) A doc_health (1) doc_health
tests/test_session_transaction.py (protected) A doc_health (1) doc_health
tests/test_session_verbs.py (protected) A doc_health (1) doc_health
tests/test_snapshot.py (protected) J the consumer's schemas (2) consumer-schemas
tests/test_snapshot_determinism.py (protected) A doc_health (1) doc_health
tests/test_snapshot_registry.py (protected) A doc_health (1) doc_health
tests/test_snapshot_validation_launch.py (protected) A doc_health (9) doc_health
tests/test_source_dot_directories.py A doc_health (1) doc_health
tests/test_staging_workbench.py (protected) A doc_health (1) doc_health
tests/test_trust_gaps.py A doc_health (1) doc_health
tests/test_validate_ideation_dashboard_contracts.py I the contracts (32) openxfactory-contracts
tests/test_wheel_action_contracts.py I the contracts (18) openxfactory-contracts
tests/test_wheel_model.py A doc_health (1) doc_health
tests/test_wheel_verbs_cli.py A doc_health (1) doc_health

67 red files.

The protected suites (12.5's 16 and 5.4a's 7): 21 are red, each only for a declared reason. 20 are doc_health, and tests/test_snapshot.py is consumer-schemas. 2 are green: tests/test_gate_loop_views.py (74 passed) and tests/test_snapshot_validator_home.py (12 passed). No protected suite is red for a cause no bucket takes, so nothing stops this task, and none needs a respelling.

T041's layer 2, re-run at the pin (the holder's decision on T041's landing). tests/test_declared_exclusion.py with tests/test_hermeticity_runner_seams.py gives 212 passed. tests/test_hermeticity_gate_verbs.py alone stops at collection on No module named 'doc_health', its declared reason. The same file, with openxFactory's scripts/ at 7af30fc5 on PYTHONPATH (R1Q23 (a)'s composition), gives 2 passed.

The whole-suite step, as validate.yml runs it

CI's own run 36357895876 at 7a3e4882, the final head, is green. It measured refs/pull/32/merge over main 4e16db95, with openDox-code 2d116415. The pytest step gives 880 passed, 10 skipped, 1 deselected, and Pin the triple reads selected=890 passed=880 skipped=10 failures=0 errors=0, at margin 0. A local run of the same step at the same head gives the same triple. It collects 27 files:

  • the sixteen the list named, still 564 tests between them (the old floor exactly: 558 passed, 6 skipped);
  • eight more under tests/, 316 tests: test_declared_exclusion.py (207), test_doxbench_bridge.py (60), test_validator_schema_home.py (12), test_snapshot_validator_home.py (12), test_register.py (10), test_scope_column_split.py (6), test_hermeticity_runner_seams.py (5) and test_aggregation_register_instance.py (4, all skipped);
  • tests/integration/, 10 tests: 4 + 5, plus the guard test in test_assembled_surface.py, with the help-tree test deselected.

tests/test_validator_schema_home.py runs its 12 cases now that T040 declares rfc3339-validator, and all 12 pass, so it adds no skip.

The triple

Re-pinned in b1d127c0 from CI's own reading (#25's rule: the numbers are CI's own, printed before they are pinned).

The ten skips, all named in the workflow comment:

  • six, the three seam suites' doc_health pairs, two each in test_evidence_provenance_surface_seam.py, test_model_scenario_workbench_seam.py and test_role_authority_projection_seam.py ("doc_health reachability is BUILD-arc work (§ 3.5/3.6) ... this test will assert for real once that lands");
  • four, all of test_aggregation_register_instance.py ("aggregation checkout (seed register + pinned validator) not reachable"), which the list never ran.

The sweeps (69646675, 01fbbd98, 799a4950, b944104a), each measured at 2d116415

  • src/openxdox/view_extensions.py: the pin names 2d116415, where view_extension imports and ViewBinding takes exports. ViewBinding's fields, read from each commit's own source, lack styles at 0b4e8bbf and carry it at 5c137a90 and 2d116415. At 2d116415, specs_for() drops nothing: six bindings materialize, five carry sheets, and the four distinct sheets are live.
  • tests/test_dependency_direction.py:
  • tests/test_gate_loop_probes.py:197: the declared leg is 2d116415 now.
  • tests/test_gate_loop_probes.py:1635-1643 (b944104a): the call-site note's record-block total is history now (§ "What changes", 5). The file gives 55 passed.
  • The docstring sweep: each place now says how the file ran until T043 and how it runs since. The standalone property each one states still holds, so it stays.
  • With these edits, the touched test files pass at 2d116415: test_dependency_direction.py, test_gate_loop_probes.py and test_gate_loop_views.py give 145 passed. The docstring sweep's five test files give 312.

Left alone, for the holder:

Checks on this PR

  • validate, each run CI's own, on refs/pull/32/merge:
    • 7a3e4882, the final head, over main 4e16db95: run 36357895876, green. The pytest step gives 880 passed, 10 skipped, 1 deselected, and Pin the triple reads selected=890 passed=880 skipped=10 failures=0 errors=0, margin 0.
    • The heads before it, all green with the same triple: b944104a (run 36357806519), 799a4950 (36357279997), 88cd8d4c (36357038236) and b1d127c0 (36356547905).
    • The runs before the re-pin, 36356259272 at 4e1def2d and 36356408029 at 890a4809, each passed the pytest step and were refused only by the exact skip pin, which is the refusal working.
  • SonarCloud: green at 7a3e4882, as at every head since b1d127c0.
  • Re-verified locally at 7a3e4882:
    • The step as CI runs it gives 880 passed, 10 skipped, 1 deselected and the triple 890/880/10/0/0.
    • The whole-suite triage gives the same 234 red results in 67 files. Each file's classes equal its declared reasons, and the one undeclared file is the ruled-out help-tree test.
    • F9.1 as the ruling amends it: exit 0 (§ "The falsifier").
  • Copilot:
    • 5332460299 at 01fbbd98 ("Changes recommended") found two things. On the stale floors: fixed in b1d127c0, answered in 4117343809 (the thread was already resolved). On F9.1 and the workflow-only deselect: answered with the measurement in 4117343892, then with the ruling in 4122573866, and resolved.
    • 5332487263 at 4e1def2d repeats the F9.1 finding. The overviews 5332499740 at 890a4809 and 5332517512 at b1d127c0 are answered in comment 5860616093.
    • 5332550775 at 88cd8d4c found a scope sentence that left out the deselected test. It is fixed in 799a4950, answered in 4117377168, and resolved.
    • 5332570488 at 799a4950 named "the workflow and probe comments". The workflow's is the F9.1 thread. The probe comment's was the record-block total, fixed in b944104a. Both are answered in comment 5860781990.
    • 5332612906 at b944104a and 5332620490 at 7a3e4882, the final head, raise nothing new. Their one open finding was the F9.1 thread, now ruled and resolved.
  • Clean at 7a3e4882: the dependencies have landed, validate and SonarCloud are green, and every review thread is resolved.

For T044 (9.4, openXdox's half)

  • The floors T044 inherits are this PR's: 890/880/10, at zero margin. T044 re-pins at CI's own reading, as 9.4 and T044's text have it for openXdox, not in openDox-code's form three below CI's reading (the holder's direction, 2026-09-28).
  • The six doc_health skips live in three files that also hold passing tests. The seam suites have 10, 12 and 8 tests, 24 passing among them, and all 24 would leave with their files.
  • A file that only skips cannot be declared as it stands. tests/test_declared_exclusion.py holds each entry to failing alone for exactly its reasons, and a file that skips does not fail. So each skip must first become a real assertion (which fails on doc_health until T008). Then either its file joins the declaration, taking the 24 passing tests out with it, or its two cases move to a file of their own that joins it. Whichever it does, the counts drop, and T044 re-pins these floors in the same commit, as the workflow comment now says, before restoring the margin.
  • The four aggregation-register skips are not doc_health skips. 9.4 names only the six. They skip because the aggregation checkout (the seed register and its pinned validator) is not in a lone checkout. If T044 reads them as carrying the gap, the declaration has no reason that admits them, and a fifth reason needs a ruling first. Otherwise EXPECT_SKIPPED stays at least 4 after T044.

🤖 Generated with Claude Code

Summary by Sourcery

Run the required CI check over the whole test suite while preserving and reporting its declared exclusions.

Enhancements:

  • Run the required validation check across the complete test suite with the declared exclusions and documented integration-test exception.
  • Consolidate the regular and integration test runs into one JUnit report and re-pin the selected, passed, and skipped test thresholds to the expanded suite.
  • Update validation documentation and test descriptions to reflect whole-suite collection and current dependency pins.
  • Refresh stale dependency-pin references and related historical documentation.

Build:

  • Simplify the validation workflow by removing the explicit test-file list and disabling no-conftest execution.

CI:

  • Update the CI exclusion reporting and exact test-count guard for the whole-suite validation run.

brettheap and others added 30 commits September 26, 2026 22:20
Plan 034 task T040, slice P1-I (openxFactory
specs/034-opendox-standalone-operation/). jsonschema registers its
date-time format checker only when rfc3339-validator is importable, and
this leg's scripts/validate-ideation-dashboard-contracts.py refuses to run
without that checker. T005's whole-suite run at e28930b, with Group 2
simulated, found 23 red results asking for the package (its class M): 21
in tests/test_doxbench_blank_reason.py and 2 in tests/test_snapshot.py.
Declared, the 21 clear. tests/test_validator_schema_home.py, which
importorskips the package, also runs its 12 cases instead of skipping.

It is a TEST dependency and stays out of `dependencies`, for the reason
the file's jsonschema paragraph already records: nothing under src/
imports it. The floor, >=0.1.4, is what openxFactory's validator-input
lock pins (requirements/hermes-runtime-contracts.in), the same source
PyYAML's floor was read from.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… own

Plan 034 task T040, slice P1-I. test_create_project.py, test_edit_project.py
and test_register_edit_lane.py drive their wire half through
`from test_gate_routes import _post, _serving`. That module is openxFactory's
tests/ideation-dashboard/test_gate_routes.py, whose carve-manifest row is
not_moved (stays_openxfactory_adapter), so all three failed collection on
"No module named 'test_gate_routes'" (T005's class B, research R10).

tests/gate_routes_harness.py is the helper of their own. It carries exactly
the two names they import and the four definitions those reach, copied
from openxFactory at the carve tag opendox-carve-0 (b075fd91). An AST
comparison against that source finds every definition identical except the
declared change: the served web root is the pinned openDox bundle,
opendox_bundle.web(), read per call, in place of the pre-carve
scripts/ideation_dashboard/web path. `serve` is opendox.serve, the carve's
own import rewrite, and staging_fragment comes from staging_shapes. It is
not named test_*.py, so pytest never collects it as a suite and 12.5's
protected-suite grep over tests/test_*.py cannot select it.

With it, none of the three fails on test_gate_routes. Each now fails
collection one layer further in, on doc_health, at
openxdox/gate_console.py:63. That is T041's declared exclusion (R1Q6 (d)),
not carve residue.

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 T040, slice P1-I. test_doxbench_knowledge_service.py and
test_doxbench_thread_wiring.py import their harness from
`test_doxbench_routes` at module scope, and test_doxbench_blank_reason.py
inside one test. That module is openxFactory's
tests/ideation-dashboard/test_doxbench_routes.py, whose carve-manifest row
is not_moved (stays_openxfactory_adapter), so all three failed on
"No module named 'test_doxbench_routes'" (T005's class C).

tests/doxbench_routes_harness.py is ONE helper for all three, which keeps
the reason they give for importing the harness rather than copying it. It
carries exactly the 21 names they import and the definitions those reach:
52 of the source module's 272 top-level statements, copied from openxFactory
at the carve tag opendox-carve-0 (b075fd91). An AST comparison against that
source finds every definition identical, under the declared rewrites, except
the one declared change, `released_only`:

- the carve's import rewrites: serve, doxbench_hash and doxbench_model are
  opendox.X, and generator is openxdox.generator;
- the served web root is the pinned openDox bundle, opendox_bundle.web(),
  read per call;
- the four wire kinds come from openDox's own declaration,
  opendox.serve_wire.DOXBENCH_*_KIND. Those are the kinds the routes emit
  and the keys they look an injected validator up by, whereas the source
  read them from doxbench_contracts, which stays in openxFactory;
- released_only skips here, naming why: the released-contract rung needs
  openxFactory's doxbench_contracts, and so does build_server's default
  validator seam, and this checkout carries neither.

The two module-scope importers now fail collection one layer further in,
on doc_health, where the harness's fixture snapshot reaches
openxdox/generator.py:66. That is the declared doc_health reach (R1Q6 (d),
T041's exclusion), and the harness does not hide it. In blank_reason the
one test that takes the harness meets the same doc_health.

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 T040, slice P1-I. test_doxbench_bridge.py takes
FORBIDDEN_PORT_MEMBERS with `from test_doxbench_model import ...` inside two
tests. That module is openxFactory's tests/ideation-dashboard/
test_doxbench_model.py, whose carve-manifest row is not_moved
(stays_openxfactory_adapter), so both tests failed on
"No module named 'test_doxbench_model'" (T005's class D).

tests/doxbench_port_ban.py carries the one name, the same sixteen members
at the carve tag opendox-carve-0 (b075fd91) and at openxFactory main today.
The AST comparison finds it identical. openxFactory's module is not brought
whole, because at main it imports a further openxFactory-only helper
(carved_reach), which T005's experiment hit when it copied that module in.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…e_omp_child.py

Plan 034 task T040, slice P1-I. test_doxbench_bridge.py drives a real child
over real pipes at `Path(__file__).parent / "fixtures" / "fake_omp_child.py"`.
The carve moved that fixture to openDox-code only (its manifest row is
moved_verbatim, destination opendox_code), so here 32 of the suite's cases
failed on BridgeUnavailable or ThreadMirrorFailed (T005's class E).

The file is a byte-identical copy: git blob e51045f, the same blob at
openxFactory's carve tag opendox-carve-0, at openDox-code 5c137a90 (this
leg's pin) and at openDox-code main. Mode 100644, as there. The suite runs
it as `sys.executable <path>`, so it needs no exec bit.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…se-repo

Plan 034 task T040, slice P1-I. tests/conftest.py names
BASE_REPO = tests/fixtures/base-repo, and test_register.py and
test_snapshot_validation_launch.py read it. That corpus is an openxFactory
test fixture (tests/ideation-dashboard/fixtures/base-repo), whose eleven
carve-manifest rows are not_moved (stays_openxfactory_adapter), so it never
arrived: 13 red results (T005's class F), 9 in the launch suite and 4 in
test_register.py.

The tree is a byte-identical copy: git tree cef59fd, the same tree at
openxFactory's carve tag opendox-carve-0 and at its main today, eleven blobs,
each mode 100644. The copy edits no suite, and test_snapshot_validation_launch
is one of 5.4a's protected suites. Its `openspec/changes/` paths are fixture
content, a copy of another repository's layout, not an OpenSpec record of
this one.

With it, test_register.py passes whole (10 passed), and the launch suite finds
its fixture. It then fails its 9 cases one layer further in, on
ProfileNotRegistered at build_parser(), which T016's default registration
addresses at the phase-1 pin (T005's experiment saw the same layer).

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 T040, slice P1-I. Four suites read openDox and openXdox
modules at their pre-carve path, scripts/ideation_dashboard/<module>.py, a
directory this leg does not have (T005's class G). This commit respells
the reads in three of them, test_scope_column_split.py,
test_doxbench_blank_reason.py and test_doxbench_bridge.py, and the conftest
serve surface two of them read through:

- tests/conftest.py: serve_surface_paths() reads each serve file at its
  carved home, through carved_module_path(). openDox's four come through
  the PIN, from the installed opendox package, and openXdox's two from this
  leg's src/openxdox/. carved_module_path() refuses a name found in both
  homes or in neither. The one file of the tuple that did not come to
  either, openxFactory's own lane column serve_openxfactory_lanes.py
  (not_moved), is NAMED in SERVE_SURFACE_NOT_AT_THIS_LEG, not dropped from
  the tuple, so any other absence still refuses the read;
- test_doxbench_bridge.py and test_doxbench_blank_reason.py: the module
  each already imports, read through its __file__, the repair § 3.4 slice
  S8 made for MODULE_PATH;
- test_scope_column_split.py: the package its parser means is both halves
  the carve made of ideation_dashboard, openDox's through the pin and
  openXdox's here, and it reads opendox/openxdox spellings beside the
  pre-carve two. A mutation check fed a reader the back-edge in five
  spellings, including `from openxdox.doxbench_scope import ScopeKey`, and
  every one was caught. It also fed a reader with its types import removed,
  which the non-vacuity assertion caught.

With Group 2 simulated at the current pin: test_scope_column_split 6/6,
test_doxbench_bridge 60/60 (with classes D and E), and blank_reason's three
class G cases pass.

Not respelled: tests/test_doxbench_packet.py's 13 class G reads. That file
is one of the seven that R1Q24 (a) (#656 comment 5850003126) sends to the
declared exclusion under T041/T043, and it is left to that act.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…t them

Plan 034 task T040, slice P1-I. tests/test_doxbench_packet.py read openDox's
modules at their pre-carve path, scripts/ideation_dashboard/<module>.py, at
three sites. Those sites are 13 of T005's class G results. d266db3 left the
file alone because it is also one of the seven files R1Q24 (a) sends to the
declared exclusion.

The holder read T040 against R1Q24 (a), and the lane coordinator relayed that
reading to this slice on 2026-09-27. T040's own text and falsifier name these
source paths, so they are T040's. R1Q24 (a) covers only the file's
exemption-rail failures, which stay for T041/T043. This commit makes the
three-site fix and changes nothing else in the file:

- MODULE_PATH is Path(pk.__file__), the installed openDox module the file
  already imports. Slice S8 of section 3.4 made the same repair in
  test_doxbench_turns.py. It covers the read at :309 and the 11-case
  parametrized test at :1054;
- the watch-list sweep (:963) reads each module at its carved home through
  conftest's carved_module_path(). One module of the sweep did not come to
  this leg: doxbench_status_exemption.py, openxFactory's rail (not_moved).
  It is NAMED in SWEEP_NOT_AT_THIS_LEG and stays in the tuple, which is only
  ever widened.

tests/conftest.py: carved_module_homes() factors out the two homes that
carved_module_path() already searched. assert_not_at_this_leg() holds a
"not at this leg" declaration to its word: it refuses once a declared file
is present in either home, so a skip can never hide code this leg carries.
The sweep and serve_surface_paths() both call it, so the serve surface's
SERVE_SURFACE_NOT_AT_THIS_LEG gets the same check.

With Group 2 simulated at the current pin, the whole suite differs from
d266db3 in exactly 13 results. All 13 are in this file, and each went from
failure to passed. The file's 54 exemption-rail failures and 3 doc_health
failures are the same tests with the same causes. A plain run (no shim) is
identical to d266db3. A mutation check of 28 cases showed that each
respelled read catches its needles, and that each declaration refuses once
its file arrives in either home. The required job gives 558 passed and 6
skipped, triple 564/558/6.

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 T040, slice P1-I, on Brett Heap's ruling of 2026-09-27
(opensoft/openXfactory#656 comment 5856475254, P1-K's question 1, answered
at (a)): "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. ... openXdox-code's in P1-I (T040, openXdox-code#29)."

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
3480207 (30,017 bytes). openDox-code's copy moved on in
opensoft/openDox-code#40 (merge 0f10b1f5, plan 034 T010), which declares
the handler-contribution facet (R1Q1 (a)). This commit copies that file
byte for byte:

  blob    3480207 -> 7781665
  size    30,017 -> 62,817 bytes, mode 100644 unchanged
  sha256  d81124e62dba9df33abe44f3eb467188c98156f002cc7a92e297cd689da87515

The blob is the same at that PR's head c8d5c802, at its merge 0f10b1f5, and
at openDox-code main 796838e8. The change is additive. No top-level name is
removed, 30 are added (HANDLER_FACET, collect_handler_contributions,
compose_handler, declared_handler_contributions and their private helpers),
and the only changed definition is RouteBindingError's docstring.

This copy is the one a test session imports. pyproject.toml's pytest
pythonpath and the root conftest put src/ ahead of site-packages, so
openXdox's own columns and the installed openDox both resolve the bare
`import route_extension` to this file (measured: blob 7781665 from
src/route_extension.py, with and without --noconftest). The pinned wheel's
copy in site-packages is shadowed.

Verified at the current pin (5c137a90), Group 2 simulated: the whole suite
gives 107 failed, 1026 passed, 10 skipped and 126 errors, with 0 outcome
differences from 0336288. A plain run (no shim) shows 0 differences. The
required job gives 558 passed and 6 skipped, triple 564/558/6.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tests/hermeticity.py is openxFactory's replica here (a not_moved row,
replicated_at_destination). Its runner_seams() probed
ideation_dashboard.session_pr and .workbench with find_spec. This leg
has no such package, so the probe always returned no seams, and layer 2
was OFF in this suite. The carve manifest's row records both reaches as
resolving "to nothing at a destination that lacks them". Layer 1, the
PATH shim, was still on. But a non-zero nlm exit is the degradation the
notebook adapter swallows, so an escape through the default runner
passed silently.

The seams now name the pinned openDox's opendox.workbench and
opendox.session_pr, with no probe, as openDox-code#51 did for its own
copy (plan 034 T035). The two gate-verb cases #51 moves here, in the
next commit, need it: the unguarded create must RAISE.

Measured with openDox-code 71b631bc installed (the phase-1 commit T040's
pin moves to): the whole suite gives the same outcome for all 1269 nodes
with the layer on and with it off, so no test was escaping. The required
job at this branch's pin (5c137a90) gives 558 passed and 6 skipped,
triple 564/558/6.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
openDox-code#51 (plan 034 T035) takes two cases out of openDox-code's
tests/test_hermeticity.py and lists them for this leg's declared
exclusion (T041): test_an_unguarded_cli_scoped_create_is_refused and
test_the_cli_seam_with_a_fake_port_reaches_no_binary. Both drive
`gate create-document`. Since the carve, `gate` is openXdox's verb
(openxdox.cli_gate.GateSubcommands), and the host profile contributes
it.

They land byte-identical to openDox-code main 68be484a,
tests/test_hermeticity.py lines 226-240 and 262-275. The module around
them is new. It carries a stand-in host profile that contributes exactly
cli_gate.GateSubcommands(), as openxFactory's
profile_openxfactory.SUBCOMMAND_EXTENSIONS does. The host is registered
per test and the previous registration restored after it.

cli_gate imports gate_console, whose module-level
`from doc_health import corpus` needs openxFactory's doc_health. So in
a lone checkout the file fails at collection on doc_health, and it joins
the declared exclusion with that reason in the next commit (R1Q6 (d)).

Measured behind that reason, with openxFactory's scripts/ (133e37d9) on
PYTHONPATH to supply doc_health: 2 passed. Without the stand-in host,
`gate` is an invalid choice. Without the previous commit's layer 2, the
unguarded create does not raise.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…lds it

tests/declared_exclusion.yaml lists the 66 test files a lone checkout
cannot run, each with its reason, and their count (requirement 9, first
scenario; R1Q6 (d), R1Q24 (a), R1Q25 (b)):

  doc_health               59 files
  status-exemption-rail     3 files
  openxfactory-contracts    5 files
  consumer-schemas          1 file, tests/test_snapshot.py alone

Two entries name two reasons, and each is checked for both:
test_doxbench_packet.py (doc_health and the rail) and
test_doxbench_blank_reason.py (doc_health and the contracts).

The repository-root conftest.py derives collect_ignore from the file.
It refuses a declaration that breaks one of the file's rules, and it
prints the exclusion at the end of every run that loads it, as an OPEN
extraction: the count, each reason, and each file with its reasons.

tests/test_declared_exclusion.py carries T007 batch B's three
assertions: the count equals the entries, every entry carries its
reason, and the run prints it. It also checks the declaration's rules
and the conftest's refusals. For each listed file it runs that file
ALONE, which must fail, with every red result attributed to exactly one
of the reasons its entry names, and each of those reasons shown at least
once.

Written from a run of each file alone, with the openDox this leg pins
installed at openDox-code 71b631bc (the phase-1 commit), not from a
list. There the check gives 85 passed. The whole suite, loading the
root conftest, gives 743 passed and 10 skipped, and 12 planted defects
are each caught. The required job at this branch's pin (5c137a90,
--noconftest) is unchanged: 558 passed and 6 skipped, triple
564/558/6.

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's review of aa51a5f on #30 found that the loader compared
schema_version and count by equality alone. So `schema_version: true`
or `1.0` loaded, because True == 1 and 1.0 == 1. And `count: 66.0`
loaded and printed as "66.0 files", which breaks batch B's shell
comparison of the printed count. Measured against the loader at
aa51a5f, all three load. Now each is refused, naming the rule.

The same pass takes the rest of the review's overview:
- a reason id is one lowercase token, since the run prints ids in a
  comma-separated list;
- an unknown key is refused at the top, on a reason and on an entry, so
  a misspelt `only:` cannot silently restrict nothing;
- `only` lists exactly the files that name its reason, and a reason no
  entry names is refused: a reason leaves with its last entry, as
  consumer-schemas does with T061's;
- a note is a line of text.

The declaration's header states the tightened rules.
tests/test_declared_exclusion.py adds ten refusal cases. Batch B's
first assertion now checks that the count is an integer, and the
reasons check reads "drawn from the four", since a cleared reason
leaves the declaration.

At openDox-code 71b631bc the check gives 95 passed. The whole suite,
loading the root conftest, gives 753 passed and 10 skipped, with no
outcome changed except the new cases, and each of the 12 planted
defects is still caught.

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's second review of #30, at 7ad389f, named missing hermeticity
coverage. The regression that needs layer 2,
tests/test_hermeticity_gate_verbs.py, sits in the declared exclusion on
doc_health, so a lone checkout never runs it. Nothing the whole suite
collects would fail if runner_seams() went back to returning no seams.

tests/test_hermeticity_runner_seams.py imports only the pinned openDox
and the guard, so it runs wherever the whole suite does. It holds three
cases:
- the seam table names opendox.workbench's _default_runner and
  opendox.session_pr's SubprocessCommandRunner.run, and it fails before
  any refusal is tried if either drops out;
- openDox-code's own two refusal cases, as they read at openDox-code
  main 68be484a (tests/test_hermeticity.py lines 185-198): the default
  notebook runner and the default pull-request runner each raise the
  guard's violation instead of running nlm or gh.

With openDox-code 71b631bc installed (the phase-1 commit T040's pin
moves to), the three pass. With runner_seams() put back to its carved
find_spec probe of ideation_dashboard, all three fail. At this branch's
own pin, 5c137a90, they error in setup on ideation_dashboard, as the
rest of the whole suite does there. The required job is unchanged, at
558 passed and 6 skipped.

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's second review of #30, at 7ad389f, named moderate gaps left
in the declaration's validation. The root conftest's loader at 7ad389f
had three:
- measured at 7ad389f, a fifth reason, declared and named by an entry,
  loads. Only the test module held the reasons to the four the rulings
  admit, and only in a run that selects it. The conftest now carries
  ADMITTED_REASONS, with the rulings that admit each, and refuses any
  other id at load. A new case holds its list and the test module's
  RULED_REASONS to one set, so neither can admit a fifth alone;
- a reason's texts or a note could span lines, though the run prints
  each on one line. Measured at 7ad389f, a reason text broken by a
  carriage return loads. Each is now refused unless str.splitlines()
  gives it back whole, so every kind of line break counts, a trailing
  one too;
- PyYAML keeps the last of two equal keys and drops the first without
  a word. Measured at 7ad389f, an entry giving reasons: twice loads,
  with its reasons silently swapped. A second entries: list was refused
  only by a later, unrelated rule. The declaration is now read through
  a SafeLoader subclass that refuses a key given twice, naming the key
  and its line.

The declaration's header states the new rules. The test module adds
seven cases: four refusal cases, the key-given-twice pair, and the
admitted-set check.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 105 passed. The whole suite, loading the root conftest, gives 763
passed and 10 skipped. Against the run before this commit, the only
differences are the new cases, all passing. Each of the 12 planted
defects is still caught. The required job at this branch's own pin
(5c137a90) is unchanged, at 558 passed and 6 skipped.

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's third review of #30, at 4582eac, said two moderate
conftest.py validation issues remain, with no findings and no threads.
So the loader at 4582eac was probed with declarations that should not
load. Five of them load:
- the check listed as an entry. Every run that loads the root conftest
  then drops tests/test_declared_exclusion.py, and with it the module's
  own guard against being listed. Measured at 4582eac with the check
  listed (count 67), the whole suite gives 661 passed and 10 skipped,
  exit 0, with the check's 102 cases gone. The conftest now refuses an
  entry naming DECLARED_EXCLUSION_CHECK, and a new case holds that name
  to the module's own;
- one file listed twice under two spellings: tests/./test_canvas.py
  beside tests/test_canvas.py. It loads, counts 67 and prints 67, and
  no check in the module notices. A path with a doubled slash loads
  too. An entry's path must now be written plainly, as PurePosixPath
  gives it back;
- an only listing a file twice. It is now refused;
- a reason whose ruled text cites another ruling. Only the test module
  held ruled to its ruling. ADMITTED_REASONS is now a table of each
  reason's ruling, ruled must start with it, and the test module's
  RULED_REASONS is held to that table.

The declaration's header states the new rules. The test module adds
six cases: five refusal cases, and one for the check's name. It also
asserts that each path is written plainly.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 111 passed. The whole suite, loading the root conftest, gives 769
passed and 10 skipped. Against the run at 4582eac, the only
differences are the new cases, all passing. Each of the 12 planted
defects is still caught. The required job at this branch's own pin
(5c137a90) is unchanged, at 558 passed and 6 skipped.

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's fourth review of #30, at d1fc5a2, again said moderate
declaration-validation issues remain in conftest.py, with no findings
and no threads. Its one named item, listed as previously missed, says
an entry's reasons: [[]] raises TypeError at set(named) instead of
being refused. Measured at d1fc5a2, that case is refused by the
undeclared-reason rule, which runs first: "tests/test_canvas.py names
[[]], which is not a declared reason". A guard now refuses a reason
that is not an id before any other rule reads it, so the refusal no
longer rests on the order of the checks.

The class of fault is real elsewhere, though. A structural sweep of
the loader at d1fc5a2 gave each place in the declaration each odd
value in turn, and added odd keys to each mapping. It crashes 56 of
577 variants with TypeError. An unknown key beside a key of another
type, such as 1: beside counts:, cannot be sorted for the refusal's
message, at the top, on a reason, or on an entry. The unknown keys are
now named by their repr and sorted as text, so the refusal names them.

tests/test_declared_exclusion.py keeps the sweep as a standing case,
test_the_root_conftest_refuses_rather_than_crashes. It runs over a
declaration cut down from the committed one, so it takes about four
seconds: 781 variants, each of which must load or be refused. Against
d1fc5a2's loader it fails, with 36 of the 781 crashing. Two refusal
cases name the new rules.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 114 passed. The whole suite, loading the root conftest, gives 772
passed and 10 skipped. Against the run at d1fc5a2, the only
differences are the three new cases, all passing. Each of the 12
planted defects is still caught. The required job at this branch's own
pin (5c137a90) is unchanged, at 558 passed and 6 skipped.

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's fifth review of #30, at 58e5eb1, found one fault (thread
4116386894, conftest.py:188). A declaration whose bytes are not UTF-8
makes read_text raise UnicodeDecodeError. That is a ValueError, neither
OSError nor yaml.YAMLError, so the root conftest crashed on import
instead of refusing. Measured at 58e5eb1, it crashes. So does YAML
nested 5000 deep, with a RecursionError from the parser. A missing file
was already refused.

Both are now refused as unreadable, as a missing file is, and the
refusal names the exception's type. Three cases hold this: bytes that
are not UTF-8, nesting past the recursion limit, and a file that is not
there. Against 58e5eb1's loader, the first two fail with the crashes
above.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 117 passed. The whole suite, loading the root conftest, gives 775
passed and 10 skipped. Against the run at 58e5eb1, the only
differences are the three new cases, all passing. The structural sweep
still gives 0 crashes in 577, and each of the 12 planted defects is
still caught. The required job at this branch's own pin (5c137a90) is
unchanged, at 558 passed and 6 skipped.

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's sixth review of #30, at f74c6d2, said a moderate
manifest-validation issue remains, with no findings and no threads.
Held against the declaration's header rule by rule, the loader missed
one ruling. R1Q25 (b) admits the consumer's schemas for
tests/test_snapshot.py alone, and only the test module held that.
Measured at f74c6d2, the root conftest loads the reason widened to a
second file, moved to another file, and with no only at all.

RULED_FILES now names the files a ruling admits a reason for, and the
reason's only must list exactly those. A new case holds that table to
R1Q25 (b), and three refusal cases break it each way. The two cases for
the general only rules move to the rail's reason, since breaking
consumer-schemas' only now meets the narrower rule first. Two
assignments that an earlier edit left as "name =[" get their space
back.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 121 passed. The whole suite, loading the root conftest, gives 779
passed and 10 skipped. Against the run at f74c6d2, the only
differences are the four new cases, all passing. The structural sweep
still gives 0 crashes in 577, and each of the 12 planted defects is
still caught. The required job at this branch's own pin (5c137a90) is
unchanged, at 558 passed and 6 skipped.

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's seventh review of #30, at 6f9a36a, found two faults, both
reproduced here.

Thread 4116448804: the contracts evidence took any missing path under a
contracts/ directory outside the checkout as openxFactory's contracts.
So a listed contracts file that gained an unrelated missing
/tmp/contracts/... file would have that failure hidden under its
reason. Measured at 6f9a36a, with that planted in
tests/test_project_schema_election.py, the file's alone case gives
"1 passed". The evidence is now tied to where the contract family
looks. That is the contracts/ above the checkout, which its files take
for openxFactory's root, the contracts/ at the checkout's own root, or
the validator at scripts/validate-ideation-dashboard-contracts.py above
the checkout. Those are the three shapes the five contracts files show
when each runs alone. A relative path is anchored at the checkout, the
child's cwd. Eight cases hold the evidence to that, and with the plant
the alone case now fails, naming the unattributed /tmp path.

Thread 4116448815: tests/test_hermeticity_gate_verbs.py's fixture read
opendox.domain_profile's _is_default and _built_from_default, which
openDox-code 5c137a90, this branch's pin, does not have. With
openxFactory's scripts/ on PYTHONPATH at that pin, both cases errored
in setup with AttributeError. The fixture now records whichever of the
registry's state the pinned openDox keeps. Composed, both cases now
pass at 5c137a90 and at 71b631bc. Alone, the file still fails at
collection on doc_health, as its entry says. With layer 2 off, the
unguarded create still does not raise, and without the stand-in host,
gate is still an invalid choice.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 129 passed. The whole suite, loading the root conftest, gives 787
passed and 10 skipped. Against the run at 6f9a36a, the only
differences are the eight new cases, all passing. The structural sweep
still gives 0 crashes in 577. The planted defects, now 13 with the
/tmp one, are all caught. The required job at this branch's own pin
(5c137a90) is unchanged, at 558 passed and 6 skipped.

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's eighth review of #30, at 8dcf00a, found one fault (thread
4116483580). The contracts evidence accepted any missing file under
the contract trees, so an unrelated file beside the real ones, in the
same contracts/, was still hidden under the reason. Measured at
8dcf00a, with a missing
Path(__file__).resolve().parents[2] / "contracts" / "t041-unrelated.yaml"
planted in tests/test_project_schema_election.py, the file's alone
case gives "1 passed".

The evidence is now the exact set of contract files the five contracts
files report missing, each run alone:
- contracts/schemas/gate-intent.schema.yaml, above the checkout;
- contracts/schemas/project-register.schema.yaml, above the checkout;
- scripts/validate-ideation-dashboard-contracts.py, above the
  checkout;
- contracts/manifest.yaml, at the checkout's own root.

"Above the checkout" is where the family's parents[2] takes
openxFactory's root to be. A path a new run shows joins the set in the
pull request that quotes that run, as the declaration's header already
requires of any evidence.

The evidence case is renamed for what it now holds and has twelve
cases, among them an unrelated file in each contracts/ and a schema
beside the known ones. With the plant, the alone case now fails,
naming the unattributed file. It is plant 14 in the mutation harness.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 133 passed. The whole suite, loading the root conftest, gives 791
passed and 10 skipped. Against the run at 8dcf00a, the only
differences are the renamed evidence case, now 12 cases instead of 8,
and every listed file's alone case still passes. The structural sweep
still gives 0 crashes in 577, and all 14 planted defects are caught.
The required job at this branch's own pin (5c137a90) is unchanged, at
558 passed and 6 skipped.

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's ninth review of #30, at 0763181, found two faults in the
attribution. Both are one weakness: a reason took a red result when its
evidence appeared anywhere in the result's text.
- Thread 4116509312: consumer-schemas took any text containing
  "CONTRACTS_DIR is not set". Measured at 0763181, an unrelated
  assert False, "CONTRACTS_DIR is not set" planted in
  tests/test_snapshot.py is hidden, and the file's alone case passes.
- Thread 4116509339: openxfactory-contracts took a result as soon as
  one known contract path showed, even beside an unrelated missing
  file. Measured at 0763181, a planted case that misses
  gate-intent.schema.yaml and then /tmp/t041-unrelated-dependency.yaml
  is hidden, and the alone case passes.

doc_health and the rail had the same weakness. So the evidence is now
built on one rule. A reason takes its cause as raised, and only when
that cause is all the result shows. All 233 red results the 66 files
give, each run alone, fit it:
- doc_health is ModuleNotFoundError: No module named 'doc_health...';
- the rail is StatusExemptionNotRegistered: no status-exemption rail
  is registered..., which the AttributeError variant chains;
- the contracts are a FileNotFoundError, or the interpreter's "can't
  open file", on one of the four known files;
- the consumer's schemas are the validator's own "ERROR harness
  failure: <this checkout>/contracts/schemas carries none of the
  family's N schemas (this tree carries no contracts/ and
  CONTRACTS_DIR is not set;".
A reason must account for every missing module, missing file and
refusal its result shows. A result that shows anything else beside its
cause is unattributed. So no two reasons can take one result, and a
result showing two reasons' causes fails closed, as unattributed.

The evidence case becomes
test_the_evidence_takes_each_cause_as_raised_and_alone, with 28
cases. They cover each real shape, and the same words quoted
elsewhere. They cover each cause beside an unrelated module or file,
and both of the threads' cases. The two plants are plants 15 and 16 in
the mutation harness, and plant 9, which quotes two reasons' words in
one assertion, is now caught as unattributed.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 149 passed. The whole suite, loading the root conftest, gives 807
passed and 10 skipped. Against the run at 0763181, the only
differences are the evidence case's 12 cases replaced by 28, and every
listed file's alone case still passes. The structural sweep still
gives 0 crashes in 577, and all 16 planted defects are caught. The
required job at this branch's own pin (5c137a90) is unchanged, at 558
passed and 6 skipped.

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's tenth review of #30, at 0651221, found one fault (thread
4116549888). The evidence checked what a result showed, but not what
finally failed the test. So doc_health's cause, followed by an
unrelated failure raised while handling it, was still taken as
doc_health. Measured at 0651221, with that planted in
tests/test_snapshot_validation_launch.py (an import of doc_health,
then an unrelated AssertionError in its except clause), the file's
alone case gives "1 passed".

Each result is now judged by its final exception, the one that ended
the test. JUnit's message holds it. It is wrapped for a setup or
teardown error, and for a collection failure it is the last exception
the E lines open. The final exception must BE its reason's cause, in
one of the shapes the 233 red results take:
- ModuleNotFoundError naming doc_health;
- StatusExemptionNotRegistered with the seam's words, or openDox's
  AttributeError carrying them;
- FileNotFoundError on one of the four known contract files, or the
  interpreter's "can't open file" on the validator, in the assertion
  on its exit status;
- the consumer validator's refusal asserted on, or met where the test
  expected another refusal.
The rule from 0651221 still holds beside it: the reason must account
for every missing module, missing file and refusal the result shows.
All 233 results fit both.

The evidence cases are now shaped as JUnit reports a result (message
and E lines) and number 39. New among them are Copilot's case, a
cause's whole exception quoted in an assertion, and a collection
failure that ends on an unrelated exception. The plant is plant 17 in
the mutation harness.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 160 passed. The whole suite, loading the root conftest, gives 818
passed and 10 skipped. Against the run at 0651221, the only
differences are inside the evidence case's parameters, and every
listed file's alone case still passes. The structural sweep still
gives 0 crashes in 577, and all 17 planted defects are caught. The
required job at this branch's own pin (5c137a90) is unchanged, at 558
passed and 6 skipped.

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's second review of #30 at 0651221 (19:06Z) left two threads.

Thread 4116563316 says a whole exception-shaped string quoted in an
assertion was taken for its reason, and that the same is true of the
other causes. Its own case,
assert False, "FileNotFoundError: [Errno 2] ...gate-intent.schema.yaml",
is already taken by no reason at 4b9e129, which judges the final
exception. But two real causes do reach their tests inside an
assertion: the consumer validator's refusal, and the interpreter's
"can't open file" on the contract validator. At 4b9e129 a bare
assertion quoting either one in full was taken. Measured with the
consumer's whole refusal, this checkout's path included, planted in
tests/test_snapshot.py, the file's alone case gives "1 passed". Each
now also needs pytest's own account of the assertion:
- the consumer's refusal needs "where False =
  ValidationResult(ok=False, returncode=2, ...", or the
  SnapshotInvalid that carried it when the test expected another
  refusal;
- the unrun validator needs "where N = CompletedProcess(...".
All 233 real results carry these, and a bare assertion has neither.
Six evidence cases are new, among them each cause's whole exception
quoted in an assertion. The plant is plant 18 in the mutation harness.

Thread 4116563297 says an unhashable key, such as ? [a, b], crashes
the loader with TypeError. Measured at 4b9e129, it does not. PyYAML
6.0.3 raises ConstructorError ("found unhashable key"), a YAMLError,
and the declaration is refused as unreadable. Two cases now hold that:
a list for a key at the top, and a mapping for a key inside an entry.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 167 passed. The whole suite, loading the root conftest, gives 825
passed and 10 skipped. Against the run at 4b9e129, the only
differences are the new cases, and every listed file's alone case
still passes. The structural sweep still gives 0 crashes in 577, and
all 18 planted defects are caught. The required job at this branch's
own pin (5c137a90) is unchanged, at 558 passed and 6 skipped.

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's review of #30 at 4b9e129 (5331662913) found one fault
(thread 4116591535, and the same at two more places). The rail's forms
were prefix matches, so a final exception that began with the rail's
refusal and went on with unrelated text was still taken. So were the
two assertion-borne forms. Measured with 96db95c's evidence, five such
cases are taken: the rail's refusal and its AttributeError, each with
text after it, the consumer's refusal asserted on with a line after
pytest's account, the unexpected refusal with more text in its input,
and the unrun validator with a line after pytest's account. A real
StatusExemptionNotRegistered raised with a diagnostic after
openDox's words, planted in tests/test_doxbench_turns.py, is hidden,
and the file's alone case gives "1 passed". doc_health's and
FileNotFoundError's forms were already whole matches.

Every cause is now matched whole:
- the rail's two forms against openDox's own constant,
  STATUS_EXEMPTION_NOT_REGISTERED, read lazily, since a pin before the
  seam (5c137a90) has none and there nothing is this reason;
- the unrun validator as its full line, then pytest's account of the
  assertion on the return code;
- the consumer's refusal, whose full sentence now runs to "no mode may
  report success". It is asserted on, then gets pytest's account of
  the ValidationResult, or it is the whole input of the pattern that
  did not match it.
The where-line checks 96db95c added are now part of the whole matches.
All 233 real results fit.

Seven evidence cases are new, each cause with text after it, and the
cases now carry each cause's complete text. The plant is plant 19 in
the mutation harness.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 174 passed. The whole suite, loading the root conftest, gives 832
passed and 10 skipped. Against the run at 96db95c, the only
differences are the new cases, and every listed file's alone case
still passes. The structural sweep still gives 0 crashes in 577, and
all 19 planted defects are caught. The required job at this branch's
own pin (5c137a90) is unchanged, at 558 passed and 6 skipped.

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's review of #30 at 96db95c (5331686800) found that the rail's
form there took any dotted module before StatusExemptionNotRegistered,
so a class of that name in another module, raising the same words,
was taken as the rail (thread 4116613647, and the same at two more
places). Measured with 96db95c's evidence, other.StatusExemptionNotRegistered
with openDox's constant is taken. 54d06b8 already fixed it: it compares
the refusal whole against opendox.doxbench_packet.StatusExemptionNotRegistered,
and the AttributeError against module 'opendox.doxbench_packet'. So this
commit adds the two negative cases, a same-named class in another
module and the AttributeError from another module, and takes neither.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 176 passed. The whole suite, loading the root conftest, gives 834
passed and 10 skipped, and the only differences from the run at
54d06b8 are the two new cases. The required job at this branch's own
pin (5c137a90) is unchanged, at 558 passed and 6 skipped.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…cted

Copilot's review of #30 at d3d634a (5331724652) left no thread, but its
summary asked for two changes. Both were measured true.

The printout. pytest collects a file named on the command line whatever
collect_ignore says, but the run printed every listed file as left out.
Measured at d3d634a with openDox-code 71b631bc installed: a run naming
tests/test_doxbench_turns.py ran 183 of its tests (32 failed, 151
passed). It still printed "declared exclusion: 66 files, listed in
tests/declared_exclusion.yaml and left out of this run" and "excluded
tests/test_doxbench_turns.py". pytest_collectstart now notes each listed
file the run collects. The summary prints such a file as "collected",
and its first line counts the files left out and the files collected
apart. A run that names no listed file, the whole suite among them,
prints what it printed before, byte for byte, with all 66 files
"excluded". A new case names the first and the last entry in a
collect-only run. With d3d634a's conftest it fails.

The evidence. It judged the final exception, and it scanned every line
for a missing module, a missing file or a refusal. But it did not read
the chain pytest shows, so a cause raised while an unrelated exception
was being handled was taken, provided the unrelated one named nothing
missing. Three planted defects show this. Each handles a KeyError, by
raising the rail's refusal in tests/test_doxbench_turns.py, by reading a
known contract file in tests/test_project_schema_election.py, or by
importing doc_health in tests/test_snapshot_validation_launch.py. With
d3d634a's evidence, each file's alone case gives "1 passed".

The evidence now reads the lines pytest joins a chain's exceptions with.
Every exception shown before the final one must be one the cause comes
with. For most causes that is none. The rail's AttributeError comes with
the refusal it is raised from, and the consumer's regex mismatch comes
with the SnapshotInvalid that carried the refusal, matched whole. A
collection failure's final exception is now its last exception, whole,
rather than the last line that opened one.

All 233 real results still fit, each taken by the same reason as
before. 17 show the rail's refusal before its AttributeError, and 1
shows the SnapshotInvalid. The other 215 show one exception each.

Fifteen evidence cases are new. d3d634a's evidence takes 14 of them. One
of those 14 is the rail's AttributeError with no refusal before it,
where all 17 real ones show it. The fifteenth, a SnapshotInvalid for
another defect, is refused by both. The plants are 20 to 22 in the
mutation harness. Plant 23 makes the summary print a named file as left
out. All 23 plants are caught.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 192 passed. The whole suite, loading the root conftest, gives 850
passed and 10 skipped. Against the run at d3d634a, the only differences
are the 16 new cases, and every listed file's alone case still passes.
The structural sweep still gives 0 crashes in 577. The required job at
this branch's own pin (5c137a90) is unchanged, at 558 passed and 6
skipped.

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's review of #30 at b1b2b97 (5331850219) left no thread. Its
summary asks to tighten the ValidationResult evidence so that mixed
diagnostics are rejected. That was measured true.

The consumer's asserted form took pytest's account of the validator's
result with anything inside ValidationResult(ok=False, returncode=2,
...). A planted test in tests/test_snapshot.py writes a snapshot the
validator cannot read, validates it with the schemas missing, and
asserts as the real test does. Its message shows only the refusal. Its
result shows outcome='not-conformant' and no unavailable_reason: a
defect in the data behind the harness refusal. With b1b2b97's evidence,
the file's alone case gives "1 passed".

pytest shows that result's repr, which runs past 240 characters, as its
start and its end around "...". The evidence now reads both ends. The
start must be the result of a validator that printed nothing on stdout
and the refusal on stderr. The end must be the reason validate_snapshot
in src/openxdox/snapshot.py gives a validator that exits 2, a harness
error. The two ends must also split the way pytest splits them, the end
as long as the start or one character longer. The unrun contract
validator's form needs no such check. There the test's message is the
process's stdout and stderr, in full, and the evidence already matches
that message whole.

The real result fits. The cases' helper now renders the result as pytest
does, and for the real refusal it gives the real run's line character
for character. All 233 real results are taken by the same reason as
before.

Three evidence cases are new: the unreadable snapshot, a validator that
also printed on stdout, and a diagnostic before the refusal on stderr.
b1b2b97's evidence takes all three. The other 68 are judged as before.
The plant is plant 24 in the mutation harness, and all 24 are caught.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 195 passed. The whole suite, loading the root conftest, gives 853
passed and 10 skipped. Against the run at b1b2b97, the only differences
are the 3 new cases, and every listed file's alone case still passes.
The structural sweep still gives 0 crashes in 577. The required job at
this branch's own pin (5c137a90) is unchanged, at 558 passed and 6
skipped.

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's review of #30 at 387b9e9 (5331903928) left one thread. Its
summary also names a plugin-isolation finding, with no thread.

Thread 4116820877 says the ValidationResult check read only the two
ends pytest shows around "...", so an extra diagnostic in the elided
middle was not read. Its own example is a validator that writes the
refusal, then another stderr line. Planted in this checkout's validator,
that example is refused at 387b9e9 too, because the test's message puts
the validator's last line first and then all it printed. But the middle
was unread all the same. So the child now runs each listed file with
-o verbosity_assertions=2, and pytest shows every value an assertion
reads whole. Both results the evidence reads are now matched exactly.
The validator's result must be the harness error's: exit 2, nothing on
stdout, the refusal alone on stderr, this checkout's validator, and the
reason validate_snapshot gives. The contract validator's unrun process
must be the interpreter on the validator: exit 2, nothing on stdout, and
the interpreter's line on stderr.

The plugin-isolation point is taken as the child's plugins. The child
dropped PYTEST_PLUGINS, but pytest still autoloaded any plugin installed
in the environment. A plugin installed for the plant turns a planted
unrelated failure in tests/test_snapshot.py green in the child. With
387b9e9's evidence, the file's alone case then gives "1 passed". The
child now runs with PYTEST_DISABLE_PLUGIN_AUTOLOAD=1. Neither measured
environment installs any plugin (no pytest11 entry point), and a lone
checkout's pip install -e ".[test]" installs none, so no real run
changes.

All 233 real results were run again with the child's new settings. Only
the two that show a result changed, and each is taken by the same reason
as before. Each whole result equals the one the evidence expects,
character for character.

Three evidence cases are new: a diagnostic after the refusal on stderr,
another tree's validator, and the unrun process printing on stdout.
387b9e9's evidence takes the third. It refuses the first two, and the
case for the real refusal, only because they are now shown whole. The
plants are 25 (Copilot's example) and 26 (the installed plugin), and all
26 are caught.

With openDox-code 71b631bc installed, the module and the layer-2 file
give 198 passed. The whole suite, loading the root conftest, gives 856
passed and 10 skipped. Against the run at 387b9e9, the only differences
are the 3 new cases, and every listed file's alone case still passes.
The structural sweep still gives 0 crashes in 577. The required job at
this branch's own pin (5c137a90) is unchanged, at 558 passed and 6
skipped.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
tests/test_declared_exclusion.py's test_the_whole_suite_collects_less_the_exclusion
compared what a collect-only run of the whole suite collects against a FLAT
glob of tests/test_*.py. Plan 034 T042 adds tests/integration/, whose files
sit inside the whole suite that 9.2's required check runs (box 9.3), and
pytest collects them from there. So with the directory present the check read
each of them as "collected but not a test file here". Measured at the pin
proxy (openDox-code 2d116415) with T042's three test modules in place:

  AssertionError: not collected: []; collected but not a test file here:
  ['tests/integration/test_assembled_bundle.py',
   'tests/integration/test_assembled_surface.py',
   'tests/integration/test_declared_composition.py']

The glob is now recursive. No test file sits below tests/ before this
commit, so on its own it changes nothing the check reads. It lands first, so
the commit that adds the directory keeps the check green. The declared
exclusion's entries stay tests/test_*.py paths, as T041's rules require.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
brettheap and others added 3 commits September 27, 2026 22:53
…e the child

Copilot's review of 4ae1c5c and 2d1340f, two findings.

Rule 2 missed a refused name built by a constant expression, such as
`getattr(pytest, "s" + "kip")()`. Measured with six plants before this
commit, none caught by rule 2: `"s" + "kip"`, `"".join(["x", "fail"])`,
f"{'sk'}ip", `@getattr(pytest.mark, "s" + "kip")`, `"SK".lower() + "ip"`, and
`"".join(map(chr, ...))`. Now the scan folds constant string expressions (a
literal, `+`, `*` by an integer literal, an f-string, `sep.join([...])`, and
the no-argument case methods) before it compares them. And the collection
child reports each item's marks as pytest finds them, so a skip or xfail mark
fails however it was spelled. After: 5 of 6 caught. The sixth computes its
name at run time from values that are not constants, which no reading of
source can see. The required check refuses it all the same: measured with it
present, the integration step reports it skipped and `Pin the triple` refuses
`skipped 7, pinned exactly 6`, as it did for each of the six. The docstring
says so.

The collection child inherited PYTEST_PLUGINS and plugin autoloading, so an
installed plugin could change what the audit reads. It now scrubs
PYTEST_PLUGINS beside PYTHONPATH and PYTEST_ADDOPTS and sets
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1, as tests/test_declared_exclusion.py gives
its own children.

Still caught: the 12 loophole probes, the 18 plants, and the 6 collection
probes. At openDox-code 2d116415 the step reads `10 passed, 1 deselected`.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#30 (T041) landed as 5fbd188, and this PR is retargeted to main. main's
tree equals #30's last head, 5b0e1c3, which this branch already carries, so
the merge brings no change of content, and this PR's diff to main is its own
five files: .github/workflows/validate.yml and tests/integration/'s four.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
It brings #31's merge of main (#30's squash, 5fbd188) and T042's rule 2
folding constant strings and reading pytest's marks (90cd3ad). #31 now sits
on main, so this branch contains main at 5fbd188.

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 27, 2026 22:57
@brettheap

Copy link
Copy Markdown
Contributor Author

On Copilot's overviews at 890a4809 (5332499740) and b1d127c0 (5332517512), both "Needs a closer look", each with one finding:

  • The finding is thread 4117316098, F9.1 against the workflow-only deselect. It is this PR's open question for the holder, answered with the measurement in 4117343892. It stays open until the holder rules between (a) a test-level entry in the declaration and (b) a T007 amendment of F9.1. This PR stays DRAFT until then.
  • "the checked-in floors do not match the reported suite results": they do at b1d127c0. The checked-in pins are MIN_SELECTED 890, MIN_PASSED 880 and EXPECT_SKIPPED 10. CI run 36356547905 at b1d127c0 reports 880 passed, 10 skipped, 1 deselected and triple: selected=890 passed=880 skipped=10 failures=0 errors=0, pins: selected>=890 (margin 0) passed>=880 (margin 0) skipped==10, and validate is green. The mismatch that review read was in the PR body, which still quoted the pre-re-pin local reading (884/874, taken before Plan 034 T042 (P1-J): tests/integration/ at the declared composition; stacked on #30, and the 31-entry tree needs a ruling #31 added six tests) until it was refreshed at 22:54Z. At 88cd8d42, merging Plan 034 T042 (P1-J): tests/integration/ at the declared composition; stacked on #30, and the 31-entry tree needs a ruling #31 at 44902aec, the local reading is the same triple.
  • "the required falsifier still fails on the excluded help-tree test" (5332499740): yes. That is the same finding, measured verbatim at b1d127c0: 1 failed, 880 passed, 10 skipped, and the one failure is the test RULED openxFactory#656 comment 5859927858 leaves out.

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

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

Three review follow-ups remain regarding count accounting, dependency documentation, and the separately excluded help-tree node.

Review effort: Lite
Findings: 1 High severity · 1 Low severity

Open (2)

Comment thread tests/test_dependency_direction.py Resolved
…pe is stated

Copilot's review of 88cd8d42 (thread on tests/test_dependency_direction.py
line 26): the docstring said the check runs "the whole suite less its
declared exclusion". But the pytest step also deselects the assembled
--help tree (RULED openxFactory#656 comment 5859927858), which
tests/declared_exclusion.yaml does not list, so the scope was understated.
The docstring now names that test and its ruling. validate.yml's header
made the same claim and now says the same. The pytest step's own block
already names both, and the triple's comment already said "less the
declared exclusion and the one test the step leaves out".

Comments and docstrings only. tests/test_dependency_direction.py gives
16 passed at openDox-code 2d116415, and F9.1's two workflow assertions still
hold (grep -c prints 0; no pytest step names a test file).

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 27, 2026 23:01

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

Two documentation issues remain unresolved in the workflow and probe comments.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (1)

tests/test_gate_loop_probes.py's call-site note said "`validate.yml`'s
record block carries the total, 43". T043 replaced that block with the
whole-suite step, so the sentence now says the block carried the total
until then, and names `git show d84b504:.github/workflows/validate.yml`
for it. The same parenthetical's "at THIS head" now names the head it
meant: #21's, squashed as `2529c10`, whose diff adds 37 test functions
here and 6 in the views file.

Comments only: the module's AST is unchanged, and the file gives
55 passed at openDox-code `2d116415`.

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 27, 2026 23:10
@brettheap
brettheap changed the base branch from build/034-t042-integration to main September 27, 2026 23:11
#31 (T042) landed on main as squash 4e16db9, whose tree (32a04bd) is
the tree of 44902ae, the #31 head this branch already merged in
88cd8d4. So the merged tree is this branch's own (eb9c239), and the two
conflicts, `.github/workflows/validate.yml` and
`tests/integration/test_assembled_surface.py`, are T043's edits of #31's
lines; both resolve to this branch's side.

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

Three unresolved review comments require documentation and grammar corrections.

Review effort: Lite
Findings: 1 High severity

Open (1)

Copilot AI review requested due to automatic review settings September 27, 2026 23:13

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

The help-tree exclusion must be represented in the declaration or applied by the F9.1 falsifier.

Review effort: Lite
Findings: 1 High severity

Open (1)

@brettheap

Copy link
Copy Markdown
Contributor Author

Copilot's overview 5332570488 at 799a4950 named two documentation issues, "in the workflow and probe comments". It listed one finding.

  • The workflow's is thread 4117316098: F9.1 and the workflow-only deselect. It is the open question for the holder (PR body, § "Question for the holder"), and the thread stays open until the holder answers.
  • The probe comment's was tests/test_gate_loop_probes.py's call-site note: "validate.yml's record block carries the total, 43". T043 replaced that block, so b944104a says it carried the total until then and names git show d84b5048:.github/workflows/validate.yml, whose line 342 still reads "it is the 43 direct tests". The same note's "at THIS head" now names the head it meant, Bump opendox pin to openDox-code 0b4e8bbf (§ 3.4 slice S8 leg B landed), and sweep the claims the old pin left true #21's: squashed as 2529c10, its diff adds 37 def test_ there and 6 in the views file. The change is to comments only. The module's AST is unchanged, and the file gives 55 passed at openDox-code 2d116415.

The overviews at b944104a (5332612906) and at 7a3e4882 (5332620490, the final head, after main's merge) list the F9.1 thread as the only open finding. validate is green at 7a3e4882. Run 36357895876 gives 880 passed, 10 skipped, 1 deselected and the triple 890/880/10/0/0.

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

@brettheap brettheap changed the title Plan 034 T043 (P1-J): the required check runs the whole suite, less the declared exclusion; stacked on #31 Plan 034 T043 (P1-J): the required check runs the whole suite, less the declared exclusion Sep 27, 2026
@brettheap
brettheap marked this pull request as ready for review September 28, 2026 13:19

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

@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 7a3e488 — Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

@brettheap
brettheap merged commit 4610bca 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-28T13:24:57Z, PR #32 → 4610bca (opensoft/openXdox-code main; plain gate)

Brett: land the phase 1 PRs when green

brettheap added a commit that referenced this pull request Sep 28, 2026
…eclared file; the triple 885/881/4 (#33)

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

- **Ruled:** R1Q6 (d), R1Q22 (a), openxFactory#656 comment `5817152735`. See note 1 below on "carved".
- **Claim:** openxFactory#656 comment `5871347075`.
- **After:** T043 (#32), landed as `4610bca5`. This branch starts from that `main`.

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 #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](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