Repository navigation
Level the leg scaffold, round 3: validate runs the shape assertions only until the BUILD arc (RULED Q-L5 (b′)) - #7
Conversation
…nly until the BUILD arc (RULED Q-L5 (b′)) The carved tests/conftest.py (arriving with leg 1, PR #6) re-exports two autouse fixtures from tests/session_fixtures.py whose bodies import opendox.cli -> authoring -> workbench -> openxdox.snapshot. Autouse fixtures fire for every test under tests/, including this scaffold's own tests/test_leg_shape.py, so every test in the suite errors at setup once those carved files land -- the round-2 collect_ignore list (openxFactory#656, PR #5, landed at da2391e) can remove files from collection but cannot remove a fixture. RULED Q-L5 (b′) (Brett Heap, opensoft/openXfactory#656, 2026-09-10, verbatim "rule Q-L5 (b′)"): narrow validate to what CAN run, disclosed. .github/workflows/validate.yml's pytest step now runs `python -m pytest -q tests/test_leg_shape.py --noconftest` -- the scaffold's own shape assertions, collected with no conftest.py loaded at all (root or tests/) -- preceded by a comment naming the ruling. README.md's Posture section gets the same citation in one sentence. Nothing else changes: not pyproject.toml, not conftest.py, not tests/. Proven against PR #6's branch (carve/opendox-code-leg-1-recut, commit A 8e8983d, the 123-row arrival; commit B / the tests/conftest.py replica has not landed on that branch yet): `python -m pytest -q tests/test_leg_shape.py --noconftest` exits 0, 12 passed. Without --noconftest, the CURRENT validate.yml step (`python -m pytest -q`, unrestricted) is red today -- 31 errors during collection, first: `tests/test_account_menu_dom.py:27: from conftest import REPO_ROOT` -> `ImportError: cannot import name 'REPO_ROOT' from 'conftest'` -- a different symptom than the 982-error/openxdox signature measured in the round-2 finding (that measurement was taken against a tree that already carried the tests/conftest.py replica; commit B hasn't landed on PR #6 yet), but the same family of cause: the leg's tests reach for carved helper files this branch does not yet fully carry, which the BUILD arc's inversion resolves. Opened as a draft, not ready for review: Brett Heap is separately being asked whether a lazy import of find_validator in src/opendox/workbench.py (declared in the manifest) lets the full suite run instead of narrowing it, in which case this PR lands only as a fallback or not at all. Refs opensoft/openXfactory#656 Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the required validate workflow and README to transparently run only the 12 scaffold shape assertions with --noconftest until the BUILD arc makes the full carved test suite runnable, following RULED Q-L5 (b′). Flow diagram for the interim validation workflowflowchart TD
A[Validate workflow] --> B[Install package and test extra]
B --> C[Run pytest tests/test_leg_shape.py --noconftest]
C --> D[12 scaffold shape assertions pass]
E[BUILD arc lands] --> F[Full carved test suite returns]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
🟢 Approval recommended
The changes are limited, internally consistent (workflow + README), and implement the stated temporary CI scope without introducing functional code risk.
Pull request overview
Updates the scaffold-era CI posture so the required validate workflow runs only the leg’s runnable “shape” tests until the BUILD arc inverts the openDox → openXdox dependency, and documents that posture in the README.
Changes:
- Narrow
validate’s pytest invocation totests/test_leg_shape.py --noconftest(per RULED Q-L5 (b′)). - Add an explanatory comment block in the workflow capturing the rationale and when full-suite CI returns.
- Document the temporary validation scope in the README “Posture” section.
File summaries
| File | Description |
|---|---|
| README.md | Documents that validate is intentionally scoped to scaffold shape assertions until the BUILD arc. |
| .github/workflows/validate.yml | Narrows CI execution to tests/test_leg_shape.py --noconftest with an inline ruling citation. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.
You can request another review in 7 hours and 51 minutes by commenting @sourcery-ai review. Upgrade to get a review now.
…arve-0 (split-opendox § 3.2, RULED Q-L4) (#6) Carve leg 1 of split-opendox-two-layer-product (§ 3.2, RULED OQ-H; re-cut under RULED Q-L4): opensoft/openDox-code receives its 123 manifest rows at carve_commit b075fd91dc8fced8e1373825ba80220c33536bae (tag opendox-carve-0), on Brett Heap's standing word "merge leg 1 when green". History-preserving `git filter-repo` over the rows from a `--mirror` of the public source, rewritten on the named `carve-src` ref and joined to the levelled scaffold with an unrelated-histories merge, per the landed cutover runbook (openxFactory #875 → a970fd9d) and the amended manifest (#889 → 15ebb37d): 207 commits, two roots, original authorship carried. Two content commits: A (8e8983d) places every row byte-identical to the carve commit — `verify-carve-arrival.py --phase A`: OK, 123 rows arrived, 123 digests verified, 124 files, none undeclared (1 scaffold); its tree is identical to the superseded first cut's A (#4, CLOSED) over the carve roots. B (749c926) applies exactly the 250 declared lines over 61 `moved_with_declared_edit` rows (220 edits, 5 deletions, 25 declared-and-lawfully-left) and places the 10 declared replicas, including the two § 2.4 extension-point seams at `src/route_extension.py` and `src/subcommand_extension.py` — `--phase B`: OK, 61 declared-edit rows within their lines, 10 of 10 replicas byte-identical, 132 files, none undeclared; the fence proved (`arrival-undeclared-edit`, exit 2; phase A over the B tree refuses). Census 123 = 61 verbatim / 62 declared-edit. Independent verification: READY FOR LANDING — whole-history path census over the 207 exclusive commits = 146 paths = 123 rows + 10 replicas + 13 scaffold files byte-identical to base (no unfiltered history, no undeclared bytes); three-way digests 123/123 at A; both OK lines and both refusals reproduced; the 13 module-level openXdox reaches confirmed on declared lines with no third failure class; the regenerated 246-line path file matches commit A's recorded sha256; 2/2 review threads resolved; closingIssuesReferences 0. `validate` is green on the scaffold's shape assertions only (RULED Q-L5 (b′), #7 → fe71247): the carved openDox column reaches openXdox at module level from 13 declared lines across five core files, and the byte-identical `tests/conftest.py` replica's `REPO_ROOT` depth misresolves — both BUILD-arc items (§ 3.5/3.6), recorded on #656; Q-L6 (defer one import) was measured ineffective and withdrawn. Merged as a merge commit so the carried history arrives intact. Not in this PR: any other leg, the assembly roots' `carved_from`, the openXdox submodule pin. Refs opensoft/openXfactory#656 (stays OPEN). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>



Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs opensoft/openXfactory#656
DRAFT — not ready for review. Brett Heap is separately being asked whether a lazy import of
find_validatorinsrc/opendox/workbench.py(declared in the manifest) lets the full suite run instead of narrowingvalidate, in which case this PR lands only as a fallback, or not at all. Opened now so the mechanism is proven and ready either way.The problem
The carved
tests/conftest.py(arriving with leg 1, PR #6) re-exports two autouse fixtures fromtests/session_fixtures.pywhose bodies importopendox.cli → authoring → workbench → openxdox.snapshot. Autouse fixtures fire for every test undertests/, including the scaffold's owntests/test_leg_shape.py, so every test in the suite errors at setup until the BUILD arc inverts that dependency. The round-2collect_ignorelist (PR #5, onmainatda2391e0) can remove files from collection; it cannot remove a fixture.The ruling
RULED Q-L5 (b′) — Brett Heap,
opensoft/openxFactory#656, 2026-09-10, verbatim "rule Q-L5 (b′)", on the request in that issue's comment immediately above the ruling ("LEVELLING ROUND 2 AUTHORED... Q-L5 — how doesvalidateon openDox-code read until the BUILD arc inverts the dependency?"):The change (scaffold files only)
.github/workflows/validate.yml: thepyteststep now runs exactlyREADME.md(Posture section): one sentence with the same citation.pyproject.toml, notconftest.py, nottests/.Proof, against PR #6's branch
Built a detached probe worktree on
carve/opendox-code-leg-1-recut(commit A8e8983d, the 123-row arrival atopendox-carve-0; commit B / thetests/conftest.pyreplica has not landed on that branch yet), created a venv, and ranpip install -e ".[test]"(succeeded: PyYAML 6.0.3, pytest 8.4.2).With
--noconftest(the command this PR ships) — green:Exit code 0. Re-ran the identical command against this PR's own branch tree (which only has
tests/test_leg_shape.pyundertests/, since the carve hasn't landed onmainyet) — same result, 12 passed.Without
--noconftest— red today, running the current (unmodified)validate.ymlstep (python -m pytest -q, no path restriction) against PR #6's tree:Exit code 2. Note this is a different red than the 982-error
No module named 'openxdox'signature in the round-2 finding — that measurement was taken against a tree that already carried thetests/conftest.pyreplica; commit B (which brings that file, a declared replica) has not landed on PR #6's branch as of this writing. It is the same family of cause: carved test modules reach for helper symbols (REPO_ROOT, and — once commit B lands — the autouseopenxdox-importing fixtures) that this leg's tree does not yet fully carry ahead of the BUILD arc's inversion. Either way, the unrestrictedpytest -qstep is provably red on the leg's actual tree today; the narrowed command is provably green.Also confirmed:
.github/workflows/validate.ymlstill parses as valid YAML, and the precedinginstall the package and its test extrastep (python -m pip install -e ".[test]") succeeds standalone against Python 3.12 (the pinnedsetup-pythonversion), matching the workflow as written end to end.Lands on Brett Heap's ruling Q-L5 (b′) via the lane's gate; must land BEFORE #6 (the re-cut) lands so #6's
validatere-runs green.🤖 Generated with Claude Code
Summary by Sourcery
Keep CI validation green during the scaffold phase by running only the available shape assertions until the BUILD arc restores the full test suite.
Bug Fixes:
Enhancements:
CI:
Documentation: