Repository navigation
Level the openXdox-code leg scaffold for the carve (OQ-O): the import root - #3
Conversation
… root Creates this leg's IMPORT ROOT before any carved content arrives — pyproject.toml naming the openxdox package over a src/ layout, with the pytest rootdir anchor and pythonpath, plus a repository-root conftest.py that puts src/ on sys.path by hand for a runner that does not read that table. Without it, import openxdox does not resolve under python -m pytest from the root and validate would go red on the first carved commit for a reason that has nothing to do with the carve. Both are CREATED files and carry no manifest row (RULED OQ-C). Levels the validate workflow against openDox-code, the reference leg: pytest was installed UNPINNED here, and an unpinned major is how a 71-file suite goes red for a reason that has nothing to do with the carve; adds the least-privilege permissions block openDox-code declares and this leg did not. Adds docs/branch-protection.md, the README doc index and posture link, and pins the levelled state in tests/test_leg_shape.py. The strict-status-check policy difference between the two families is recorded, not changed: a ruleset is outside a pull request's reach. No carve content. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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 1 day and 2 hours by commenting @sourcery-ai review. Upgrade to get a review now.
Reviewer's GuideThis scaffold-levelling PR prepares the Sequence diagram for deterministic pytest validationsequenceDiagram
participant CI as GitHub Actions
participant Workflow as validate.yml
participant Pytest as pytest
participant Root as Repository root
participant Src as src/
participant Tests as tests/
CI->>Workflow: run validate
Workflow->>Workflow: install pytest>=8,<9
Workflow->>Pytest: python -m pytest -q
Pytest->>Root: load pyproject.toml
Pytest->>Root: load conftest.py
Root->>Src: add src/ to sys.path
Pytest->>Tests: collect and execute tests
Tests->>Src: import openxdox
Src-->>Tests: resolve package
Flow diagram for branch-protection evidenceflowchart TD
Ruleset[Require validate check]
Evaluate[evaluate: created 2026-09-06]
Validate[validate reports success]
Active[active: promoted 2026-09-06]
Evidence[docs/branch-protection.md]
Policy[Strict policy difference recorded]
Ruleset --> Evaluate
Evaluate --> Validate
Validate --> Active
Active --> Evidence
Evidence --> Policy
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 reviewed changes have no unresolved issues blocking approval.
Pull request overview
This pull request levels the code-leg scaffold before the carve by establishing import configuration, CI safeguards, documentation, and scaffold tests.
Changes:
- Adds
src/packaging and pytest import configuration. - Pins CI to pytest 8 with read-only permissions.
- Documents branch protection and adds scaffold validation.
File summaries
| File | Description |
|---|---|
tests/test_leg_shape.py |
Verifies scaffold and import-root requirements. |
README.md |
Adds documentation and branch-protection links. |
pyproject.toml |
Defines package and pytest configuration. |
docs/branch-protection.md |
Records ruleset evidence and policy differences. |
conftest.py |
Adds src/ to sys.path. |
.github/workflows/validate.yml |
Pins pytest and sets workflow permissions. |
Review details
- Files reviewed: 6/6 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.
- Every posture assertion the levelling pass added now carries an explicit failure message, matching test_required_file_exists, so a red CI names the missing file instead of raising a bare AssertionError. - Family prose names the REPOSITORIES (openDox / openXdox) rather than the lowercase project ids, which are reserved for project.yaml's project: key. - docs/branch-protection.md's opening sentence about ruleset state rephrased. - The manifest comment says why MACHINE-READ is the openXwallet precedent's own word rather than a truncation of machine-readable. No behaviour change; every suite and validator re-run green. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) SonarCloud finding, disclosed and NOT taken — asking for Brett Heap's word. The required check
Sonar wants an exact version ( Diverging four legs from the reference leg to satisfy an analyzer imported into this estate hours ago is your call, not an author's, so nothing is changed here. Two ways out, either on one word:
🤖 Generated with Claude Code |
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) INDEPENDENT VERIFICATION of head
No FAIL/SHOULD-FIX items. |
…his leg does not have (#19) Lane: openxfactory-4 Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: #656 comment 5649985838. RULED 2026-09-13 at #656 comment 5656343213 (Brett Heap, by interactive multi-choice) — "the path constant moves, the file does not". Spec: openDox-spec docs/front-end-package-boundary.md § 1.2(d) and § 5 row S8 @ 7d12428c. LEG A of § 3.4 slice S8, the shed half. Lands AFTER openxFactory#1025, the annotation that declares every line these edits touch, and after S5 leg A (#18, landed c1ad341), which this branch merged in. FORTY-FOUR OF FORTY-SIX BUNDLE PATHS STOP NAMING A DIRECTORY THIS LEG DOES NOT HAVE. 46 ROOT SPELLINGS over 31 files name REPO_ROOT / "src" / "openxdox" / "web" — 22 files resolving a concrete views/<name>.js module under it, 9 passing the root to serve_mod.build_server as a serve root — and the carve's import rewrites edit class is what pointed them at the wrong leg. 44 move. TWO stay, named rather than silently skipped: tests/test_gate_console.py:58, because S5 leg A places src/openxdox/web/views/gate.js at this leg, and tests/tools/playwright-smoke.py:282, a TOOL outside validate's list rather than a suite. Both stayers are byte-identical to main at this head. ONE site is ADDED, deliberately: tests/test_renderer.py:49's OWN_VIEWS, which reads this column's own swb-session.js out of this leg's package data. RE-DERIVED AT LANDING, AND ONLY THE COUNT MOVED. The rounds on the PR said "31 files, 47 sites; 46 move; the 47th". Under an instrument NAMED so it can be re-run — a ROOT SPELLING is a line spelling REPO_ROOT / "src" / "openxdox" / "web" in any Path or slash form, counted over the REVISIONS with git grep and never a worktree — openXdox-code main c1ad341 carries 46 spellings over 31 files and this head carries 4 over 4: openDox-spec#11 (boundary-note amendment #3)'s own second-instrument table, reproduced here on the nose. TWO of the 46 stay, not one — the missed one is the TOOL at tests/tools/playwright-smoke.py:282, outside validate's list — so 44 move. NINE files use the root as a serve root, not eight, the same tool being the ninth; with the 22 that resolve a concrete views/<name>.js module under it that is the 31, as 22 + 9. The 22 is NOT a correction of § 1.2(d)'s 23: amendment #3 recovered that instrument and reproduced the 23 exactly at the census tree, and the 22 is the subset that ALSO roots at src/openxdox/web — the round-2 sentence had conflated the two sets. The round-2 "47 path sites" is left attributed rather than restated, because a root spelled once carries several derived sites and neither total corrects the other; the STAYER count, by contrast, is wrong under every instrument. Nothing in the tree changed and nothing was re-gated: validate run 34785404471 at 080dcfc stands unchanged. THE FILES DO NOT MOVE, AND THAT IS A MEASUREMENT. § 5's S8 row infers the 23 go to the leg the census says owns each bundle file; an ast walk of every module-level Import/ImportFrom says the inference holds for NONE of them — every one imports a real openxdox module (generator, snapshot_registry, gate_console, gate_routes, doxbench_scope, round_trip), and RULED OQ-G's TEST HOMES rule places a mixed file HERE for exactly that reason. Moved the other way each fails on its first import line, in the direction tests/test_dependency_direction.py exists to refuse. WHERE THE BUNDLE ACTUALLY IS. tests/opendox_bundle.py — a CREATED file (RULED OQ-C, admitted by name in openxFactory docs/opendox-carve-admissions.yaml) — resolves Path(opendox.__file__).parent / "web" and SKIPS the importing module where the pin carries no bundle: the identical resolution and identical skip S5 landed at this leg in tests/test_gate_loop_probes.py::_opendox_bundle. composed() builds RULED Q5's composed root for the four suites that assert across the seam by calling the assembly hook itself (openxdox.web_assets.install_view_modules()), so it cannot drift from it. WHY validate IS NOT UN-NARROWED FURTHER, measured rather than asserted: every one of the 31 files still errors at COLLECTION on src/openxdox/generator.py:66 from doc_health import corpus, an openxFactory-only package present at neither leg, sitting ahead of this repair in the import order — 57 collection errors across the tree, 873 errors past them. RULED Q-L8 (b') waits on the BUILD arc (§ 3.5/3.6). The list went from 6 files to 15 (4 shape assertions, S5's 2, S8's 9) and from 154 passed / 16 skipped to 301 passed, 23 skipped. ONE SUITE RULED TO RETIRE, NOT REPAIRED AND NOT DELETED. tests/test_staging_workbench.py:1985 copies views/intent-feed.js into its ending-replay harness — a RULED OQ-F not_moved row present at neither leg, whose surface S2 replaced with views/intent-binding.js. re_destined: to: openxfactory is not expressible (to is held to the CLOSED destinations: keys; openxFactory is the SOURCE), and deleting an arrived row has no form at all. RULED 5656343213: it RETIRES at this leg as a declared act citing OQ-F, under a retired: row form registered as the NEXT carve-floor act (CLAIMED at #656 comment 5656690570). It lands here untouched and narrowed out of validate, named RETIRING. Plain gate: validate run 34785404471 SUCCESS at 080dcfc; 5 review threads / 0 unresolved. The branch already contained openXdox-code main (c1ad341, S5 leg A #18) before landing, so no merge was owed here. Reproduced locally under the workflow's own invocation, file list read out of the workflow rather than retyped: 301 passed, 23 skipped. COPILOT'S REVIEW IS THE REVIEW OF THIS TREE, AND ITS EIGHT SUPPRESSED COMMENTS ARE ANSWERED IN PUBLIC at openXdox-code#19 comment 5690504939. Its last review sits at 582ae21 and this head at 080dcfc, which is the SAME TREE (ae0e126 at both — the merge brought an origin/main the branch already contained and changed no file), so the review covers what lands. One finding, eight times: tests/opendox_bundle.py's module-level skip suppresses bundle-independent tests in the file that imports it. Measured: NOT ONE of the eight files it names is in this leg's validate list, and every one of the eight ERRORS AT COLLECTION today on doc_health (2) or ideation_dashboard (6) — before the bundle import is reached — so the skip suppresses nothing that runs and a lazy lookup would change no verdict at this head. Of the fifteen files the list does name, exactly ONE takes the module-level skip (tests/test_doxbench_mutation_boundary.py, 1 skip). Inside that file the finding has real content — 14 of its 20 tests name none of the five bundle-derived module constants — and it is REGISTERED for a later declared act, not dismissed: this slice's scope is RULED to the path constant (5656343213), the module-level form is slice S5's landed precedent at this leg, and the skip clears at the pin bump its own reason names. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d), and sweep the claims the old pin left true (#21) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5699629088. pyproject.toml:106 pins `opendox` at openDox-code main 0b4e8bbf68fabfcd65d4f0d80e619c20a013e888 (#23, S 3.4 slice S8 leg B, LANDED note 5690615323), following the pin past a99eba03 (#11, S 4.3 lazy proxy, pinned here by #15 on 2026-09-11). Owed twice in openxFactory#656's own record: the S5 LANDED note 5656797299 item 4, and pin lockstep #2's LANDED note 5689609863 residue item 1 - Copilot's suppressed finding on #1054, that a pip install of the pinned openXdox code resolves an older opendox than the lockstep contract names. BOTH OF THIS ACT'S OPEN QUESTIONS ARE RULED. RULED openxFactory#656 comment 5700475319 (Brett Heap, 2026-09-16, by interactive multi-choice): (a) DROP tests/test_doxbench_mutation_boundary.py from validate.yml's list, with the measurement and both grounds in the workflow comment, returning with the BUILD arc beside test_doxbench_turns.py; and (a) KEEP the three skip guards and CORRECT their reasons, because they test the ASSEMBLED openDox and a consumer may pin behind the view contract. Both were already what this act does; the ruling is now cited at each of the four places the decision is stated, so it travels with the file rather than with this message. MEASURED in fresh venvs at each pin, under validate.yml's exact invocation (python 3.12.3 / pytest 8.4.2, direct_url.json asserted): a99eba03 301 passed, 23 skipped 0b4e8bbf, the bump alone 317 passed, 6 skipped 0b4e8bbf, the landed head 360 passed, 6 skipped (the third is the second plus the FORTY-THREE provenance-guard tests the review rounds asked for; no other count moved between them, and both figures are re-derived at every head rather than carried — the pass count 317 -> 323 -> 330 -> 332 -> 333 -> 334 -> 336 -> 343 -> 346 -> 348 -> 349 -> 351 -> 353 -> 355 -> 356 -> 357 -> 359 -> 360, one step per round that added tests, and the test count from `git diff main -- tests/test_gate_loop_probes.py tests/test_gate_loop_views.py | grep -c '^+def test_'`.) THE SKIP DELTA IS TWO HALVES, not seventeen cleared skips — Copilot's round-3 review caught that conflation. SIXTEEN became passes: the three S5 materialization assertions RUN and PASS (test_gate_loop_views.py 32/3 -> 35/0) and the thirteen node probes run (test_gate_loop_probes.py 0/13 -> 13/0). The SEVENTEENTH did not clear: it was test_doxbench_mutation_boundary.py's module-level skip, and that file leaves the list (below), so the skip is no longer RUN rather than cleared. The six that remain are the three seam suites' doc_health pairs, which no pin bump touches. THE REVIEW TOOK TWENTY-EIGHT ROUNDS AND CHANGED WHAT THIS ACT IS, which the description records round by round rather than presenting as one clean diff. The bump is one line; the sweep is prose in six files; everything after that is the guard behind those skips learning to tell the DECLARED pin from somebody else's, because after the bump a skip could hide a regression instead of reporting one. It fails closed for the declared commit and for unreadable provenance under CI, skips for a different commit and for an unreadable side off CI, and 43 tests hold it there — including the PEP 610 parser itself, which one round showed was the way to reach the silent green without going through the decision at all. The last round found the four-row table paraphrased in eight places, each paraphrase missing a row; the table now lives in one place and the rest point at it. The last round split the two FAILURES apart everywhere they had been run together — an equal-commit regression says the declared openDox is wrong, an unreadable side under CI says only that the run cannot tell which openDox it is testing — and drove declared_pin()'s own unreadable-file branch, the last part of the fail-closed rule that had never been produced by the function rather than supplied to it. The round after it retired the line "or None where the pin carries none" from both discovery functions and pointed validate.yml's 2026-09-10 preamble at the S8 un-narrowing block twenty lines below it, so the required check's scope is stated where a reader starts rather than only where the list is. The last round went one level out again, to the three CALL SITES: every test before it either called the guard or monkeypatched the function under it, so swapping any one call for a bare pytest.skip would have left every required test green. THE LAST NINE ROUNDS WERE ONE CLASS, the reading itself: each found the guard admitting or refusing one more real declaration shape — a 40-hex PREFIX of a longer ref, an `@` in an SSH authority, a FALSE environment marker, a name spelled `OpenDox` (PEP 503 says names are case-insensitive), a `;` in a url path, pip's direct-reference fragment — until the reading stopped guessing: tomllib parses the file, packaging.requirements parses the entry, and fullmatch reads the pin. The last two closed the SOURCE on both sides. A pin at another PROJECT is not a declaration this guard can interpret (the declared url), and a distribution built from another project is not provenance it may compare (direct_url.json's url, which installed_commit() had been dropping while comparing shas alone) — a fork or a mirror of openDox-code passing on both sides, RULED 5700475319, and a different project failing closed under CI rather than taking the different-commit skip. The last round closed the other recurring class rather than its latest instance: a count written in prose goes stale one round after it is written, so the two inventories that kept doing it now print the `grep -c` that derives them instead of carrying a number. It also drove the one path the call-site tests could not: the 29 module-scope `OPENDOX_WEB` importers call require() with no argument, where a skip must carry allow_module_level=True, and nothing had ever asserted that the default is forwarded. ONE FILE LEAVES validate.yml's LIST, for the BUILD arc's defect and not this bump's. tests/test_doxbench_mutation_boundary.py was named by S8 on the measurement that it COLLECTS and then skips whole at tests/opendox_bundle.py's module-level skip. With the bundle in the wheel that skip no longer fires, the module runs on to its line 481 `from openxdox import gate_console` -> gate_console.py:63 `from doc_health import corpus`, and collection ERRORS. It is dropped rather than repaired for the reason test_doxbench_turns.py is not named at all - naming it would put the required check red for split-opendox S 3.5/3.6 (RULED Q-L8 (b')) - and because it is an arrived carve row whose edits are declared at openxFactory. THE SWEEP, whole-repository. `git grep -n a99eba03 main` — the tree this act starts from — returns exactly one line, the pin itself at pyproject.toml:106; at the landed head the same grep returns 13 lines in 6 files and NONE in pyproject.toml, every one a provenance quotation this sweep added on purpose (the claim is about the dependency SPEC, not the string — Copilot's review of cb84001 was right that the unqualified sentence is false at the head it is read at). There is no lockfile, requirements or constraints file and no test asserting the pin string. Eleven sites in six files carried sentences stating what IS pinned and are corrected, each quoting its old wording as provenance: validate.yml (three blocks), src/openxdox/view_extensions.py's module docstring, tests/opendox_bundle.py's docstring and _REASON, tests/test_gate_loop_probes.py's docstring / fixture / skip, tests/test_gate_loop_views.py's _view_extension_or_skip, and tests/test_dependency_direction.py's two - one of them stale since #15, which called BUILD slice 2b's merge the commit "this file's pin now names". Left untouched as conditional or historical: ViewContractUnsupported and both GateLoopViews.views() refusals, and the 29 `# noqa: E402 (skips where the pin carries no bundle)` comments across 29 files. NONE of the seven files this PR touches is an arrived carve row - checked against openxFactory's manifest, where 92 rows carry destination openxdox_code and none of the seven is among them, while all 29 noqa files ARE - so no edit here is an undeclared edit. THE RATCHET IS RE-MEASURED, NOT CARRIED FORWARD: _back_import_census() against the newly pinned tree returns exactly OPENDOX_BACK_IMPORTS' five rows - 0 import-time / 19 deferred, unchanged across two openDox slices. WHOLE-TREE, the rehearsal lockstep #2's residue item 2 asks for (pytest tests/ -q --noconftest --continue-on-collection-errors, both venvs): a99eba03 153 failed, 568 passed, 29 skipped, 127 errors 0b4e8bbf 153 failed, 626 passed, 10 skipped, 128 errors (at 9ff630d; 586 plus the 40 provenance-guard tests present at that head; 43 at the landed one) No new failure anywhere in the tree; the one new error is the file named above. SONARCLOUD'S ONE NEW FINDING, ANSWERED BY MEASUREMENT (advisory check): a VULNERABILITY/MAJOR at .github/workflows/validate.yml line 40, "Omitting --only-binary :all: can lead to the execution of setup scripts". That line is `run: python -m pip install -e ".[test]"`, is BYTE-IDENTICAL to main, and lies in no changed hunk of this PR (the first is at +95). Sonar's new-code window for a pull request covers a FILE this PR edits, so a pre-existing line is re-reported; #15 passed because it never touched validate.yml. The rule is also unsatisfiable here: --only-binary :all: forbids source builds, and this step is an editable install plus a PEP 508 direct VCS reference, both source installs by definition. validate, this leg's only required check, is SUCCESS at this head. NOT DONE HERE, by name: no assembly or aggregation pin moves (that is pin lockstep #3, claimed with this act); no arrived carve row is touched; and README.md:40-43's "validate runs only the scaffold's shape assertions" is left as it stands - it went stale at slice S8, not at this pin, and is registered for a later declared act. GATE EVIDENCE, MEASURED AT THE LANDED HEAD 894781e: validate SUCCESS, run 35155979036, the job's own line `360 passed, 6 skipped`; the same invocation in a fresh venv reads the same. Copilot's review 5228891702 at that head — "Needs a closer look - the broad dependency, CI, provenance, and test changes warrant final human review" — with every finding of every round fixed or answered by measurement, and 15 review threads / 0 unresolved. SonarCloud is advisory here and its one issue is answered above. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d sweep the claims the old pin left true (#24) Lane: openxfactory-4 (openXfactory-4-openDox_extraction) Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: openxFactory#656 comment 5699629088 (pin lockstep #3's claim, which covers this leg's pin advances) — and openxFactory#656 comment 5699629486 (Q7's own claim), because this advance is the thing openXdox-code#22 waits on. RULED: openxFactory#656 comment 5700475319 (Brett Heap, 2026-09-16) — the decisions this tree already carries and this bump does not disturb. ## What this is **One line of `pyproject.toml` moves**, and every sentence in this repository that was true only because of the line it replaced moves with it. Six files, **+42 / −24** (`git diff --shortstat main`): the pin, and five files of prose and comments. Not one line of executable code changes — the review round below is what the extra six insertions are. `pyproject.toml:106` pins `opendox` at openDox-code `5c137a9049600afbcf93b2ac26baf3d229755f95` — `main`, § 3.4 **RULED Q7** (openDox-code#27, landed 2026-09-17 16:36:31Z) — replacing `0b4e8bbf68fabfcd65d4f0d80e619c20a013e888` (§ 3.4 slice S8 leg B, openDox-code#23, pinned here by #21 on 2026-09-16). The advance crosses **two** landings, not one: * **openDox-code#24 → `0e65b5f8`** — the two intent-feed DOM suites retired at that leg (RULED openxFactory#656 comment 5656343213, citing OQ-F). * **openDox-code#27 → `5c137a90`** — § 3.4 RULED Q7: a contributed binding's CSS leaves the shared `styles.css` for the binding's own sheet. ## What the new `opendox` carries that the old one did not Measured in a venv at each pin, not read off the upstream description. `dataclasses.fields(opendox.view_extension.ViewBinding)`: ``` 0b4e8bbf: id region module entry view_class routes exports requires optional 5c137a90: id region module entry view_class routes exports requires optional styles ``` `styles` is the field this column's `GateLoopViews.views()` **feature-detects** for RULED Q7's contributed stylesheets in **openXdox-code#22** (`262ba369`, READY, and this pin is all it still needs). From the other side of the same act, openDox's own `web/styles.css` shrinks **145,821 → 139,502 bytes**: the binding CSS leaving the shared sheet. ## The measurement, which is not the expectation The leg's own required invocation — `.github/workflows/validate.yml`'s 14 files under `--noconftest` — run on **this** tree in **two fresh venvs**, one per pin, with `direct_url.json` asserted in each so every number belongs to the commit named: | | `0b4e8bbf` (old pin) | `5c137a90` (new pin) | |---|---|---| | required invocation | **360 passed, 6 skipped** | **360 passed, 6 skipped** | | `test_gate_loop_views.py` | 41 passed | 41 passed | | `test_gate_loop_probes.py` | 50 passed | 50 passed | | `test_dependency_direction.py` | 16 passed | 16 passed | Whole tree, both venvs, `pytest -q --noconftest --continue-on-collection-errors tests/`: **153 failed, 629 passed, 10 skipped, 128 errors at both pins** — character for character the same four numbers. No new failure and no new collection error anywhere in this repository; the 153 and the 128 are the BUILD arc's `doc_health` / `ideation_dashboard` blockers, identical at both. **The CI baseline says the same thing.** `validate` runs on `pull_request` only, so `main` files no run of its own; its tree's run is the one on the pull request that produced it. | run | head | reported | |---|---|---| | `35226334545` (#20 → `main` `589adee7`) | main's tree, old pin | **360 passed, 6 skipped** | | `35248736400` / `35249287252` (this PR) | new pin | **360 passed, 6 skipped** | | `35231367938` (#22, `262ba369`) | old pin + Q7 `views()` | 372 passed, 6 skipped | **360, not 372.** 372 is the shape of #22's merge-main run, and #22 is not in `main`; its `views()` is what consumes `styles`. This bump adds a field this leg does not use **yet**, and nothing on the required list depends on it until #22 lands. That is the honest shape of the act, and it is stated here so that the number in the workflow comment and the number in this description are derived the same way rather than carried. **The ratchet is re-measured, not carried.** `_back_import_census()` against the newly pinned tree returns exactly `OPENDOX_BACK_IMPORTS`' five rows, **0 import-time / 19 deferred** — unchanged now across five openDox-code landings (`a99eba03 → 8efb3cf5 → 1e469713 → 0b4e8bbf → 0e65b5f8 → 5c137a90`). ## The sweep, whole repository `git grep -c 0b4e8bbf` read **18 hits in 7 files** before this commit and **15 in 6** after. **Nine** of them stated what *is* pinned, and all nine moved: * `pyproject.toml` — the pin itself. * `src/openxdox/view_extensions.py` — the *"the pin now names"* paragraph, which also gains the `styles` field and its Q7 role. * `tests/test_dependency_direction.py` — *"the pin has moved **twice** since"* → three; *"the pin names `0b4e8bbf` as of 2026-09-16"* → `5c137a90` as of 2026-09-17; and the landing range, now five. * `tests/test_gate_loop_views.py` — two *"if `0b4e8bbf` lost `view_extension`"* readings, now the declared leg. * `tests/test_gate_loop_probes.py` — the declared-leg counterfactual. * `.github/workflows/validate.yml` — *"names `0b4e8bbf` since 2026-09-16"* → *"named `0b4e8bbf` from 2026-09-16 and names `5c137a90` from 2026-09-17"*. The **15** that stay are statements about a named commit or a dated act — the S8 pin-bump-only measurement pair at `708591b`, the retired `_REASON` wording, the dated bump narratives — and several now hold the old sha beside the new one as the chain. The workflow still parses (`yaml.safe_load`). ## Lane protocol `git diff --name-only main` returns the six files above: **no `openspec/changes/` path and no README OpenSpec Records block**, so **Rule 6's landing window does not apply** to this pull request. Measured, not assumed. Draft until its gates are green and the review rounds are answered. The lane does not merge; it hands over a READY head. ## Review rounds **Round 1 — `ea6991b` → `b21793f`.** Two findings, both FACT errors in text **this pull request wrote**, both fixed at the site rather than argued here. * *"a docstring claims `views()` already feature-detects `ViewBinding.styles`, but the implementation does not"* — **right, and it mattered.** At this head `views()` is `tuple(view_extension.ViewBinding(**spec) for spec in VIEW_BINDING_SPECS)`; no spec names `styles` and no branch asks for it. The detection is #22's `specs_for()` (`fields = {f.name for f in dataclasses.fields(binding_cls)}`), so the sentence described *that* pull request in the present tense inside *this* one. The paragraph now carries the field as AVAILABLE, names #22 as where it is read, and names the review that caught it. * *"one updated docstring line is unwrapped"* — right, and mine: the replacement joined a sentence without re-wrapping, leaving the file's longest line at 114 characters. Re-wrapped; the longest line this branch adds is now **77**. Measured after both: **360 passed / 6 skipped**, unchanged, locally and in CI (`35249287252`). They are comments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>




Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)
Refs opensoft/openXfactory#656
RULING (Brett Heap,
opensoft/openxFactory#656, 2026-09-09): "OQ-O → level the six scaffolds first, one small PR per repo (docs/,openspec/project.md, strict-check and pytest pins aligned)" — before any carve content, so that a carve failure is never confounded with a scaffold difference. This is one of the six.What this changes — the import root, and the two workflow gaps
The memo's risk 2: with a
src/layout and no import root,import openxdoxdoes not resolve underpython -m pytestfrom the root andvalidategoes red on the first carved commit. Per the memo's P2a–d row and the OQ-O ruling, the import root belongs to the levelling pass.pyproject.toml(new)openxdoxpackage over asrc/layout;[tool.pytest.ini_options]is the rootdir anchor and carriespythonpath = ["src"]conftest.py(new)src/onsys.pathby hand, for a runner that does not read that table, and roots the conftest chain the arrivingtests/suites are collected beneath.github/workflows/validate.ymlpytest>=8,<9. Adds thepermissions: contents: readblock openDox-code declares and this leg did not.docs/branch-protection.md(new)docs/directory at all; ruleset id22371412, its realevaluate→activehistory, and the policy differencetests/test_leg_shape.pytest_import_root_exists+test_src_is_on_sys_path+test_branch_protection_evidence_existsREADME.md## Documentationdoc index + the posture link openDox-code already carriespyproject.tomlandconftest.pyare CREATED at a destination and carry no manifest row — RULED OQ-C.The reference leg
opensoft/openDox-code— the most complete leg. Its pinned pytest major, itspermissions:block and its import-root idiom are what this leg is aligned to; the twopyproject.tomlfiles differ only in the package name and description.Tests run locally
NOT DONE, deliberately
openxFactory docs/opendox-carve-manifest.yamlis placed by this PR. The carve is a later, separate PR under OQ-H (history-preservinggit filter-repo).strict_required_status_checks_policyisfalseon the threeopendoxrulesets andtrueon the threeopenxdoxones. That is a repository setting outside a pull request's reach, and which policy the family standardises on is your call, not an author's. The difference is now written down in everydocs/branch-protection.mdinstead of being discovered.Asking for Brett Heap's separate word to land this (CODEOWNERS
* @brettheap; admin merge).🤖 Generated with Claude Code
Summary by Sourcery
Level the openxdox code leg’s import, validation, documentation, and scaffold checks before any carve content is added.
New Features:
openxdoxcode leg using asrc/layout.Bug Fixes:
Enhancements:
src/path configuration, and branch-protection evidence.CI:
Documentation:
validatestatus check, ruleset history, and the policy difference between the openXdox and openDox repository families.Tests: