Repository navigation
Level the openDox-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 opendox 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 opendox 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). Also adds the README doc index, records the strict-status-check policy difference between the two families, and pins the levelled state in tests/test_leg_shape.py. 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-only PR prepares the openDox leg for a future Flow diagram for validating the pre-carve scaffoldflowchart TD
Start["Run validate"] --> Root["pytest anchors repository root"]
Root --> Import["src/ is added to sys.path"]
Import --> Shape["test_leg_shape.py verifies import-root evidence"]
Shape --> Green["Scaffold passes before carve content arrives"]
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 low-risk scaffold additions with only minor documentation casing nits noted in review comments.
Pull request overview
This PR levels the openDox-code repository scaffold ahead of any carved implementation by establishing a reliable src/ import root (for both local runs and CI) and adding supporting scaffold documentation and validation tests.
Changes:
- Add
pyproject.toml+ rootconftest.pyto makesrc/-layout imports (import opendox) resolve consistently under pytest. - Extend leg-shape tests to assert the import root exists,
src/is onsys.path, and branch-protection evidence documentation exists. - Add/update documentation to record branch-protection evidence and index
docs/from the README.
File summaries
| File | Description |
|---|---|
pyproject.toml |
Defines the package root for a src/ layout and anchors pytest root/test discovery. |
conftest.py |
Ensures src/ is on sys.path for pytest sessions to support imports without editable installs/PYTHONPATH. |
tests/test_leg_shape.py |
Adds scaffold-level assertions proving the import root and branch-protection evidence file exist and that the conftest/config actually ran. |
docs/branch-protection.md |
Records branch-protection evidence and the noted policy difference between repo families. |
README.md |
Adds a docs/ index section and links the branch-protection evidence doc. |
Review details
Suppressed comments (1)
docs/branch-protection.md:68
- Inconsistent casing: this line uses
openXdoxwhile other references useopenxdox. Keeping one canonical spelling makes cross-repo grep/search reliable.
which is here, in the openXdox family's matching file, and in the pull
- Files reviewed: 5/5 changed files
- Comments generated: 1
- 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>
|
There was a problem hiding this comment.
🟢 Approval recommended
The changes are cohesive scaffold-level additions that align with the existing CI validate job and include tests that assert the new import-root behavior.
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox) INDEPENDENT VERIFICATION of head
No FAIL/SHOULD-FIX items. |



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
The memo's risk 2: "No editable install, no
PYTHONPATH, nopyproject.toml, noconftest.pyin any of the six. Withsrc/layout,import opendoxdoes not resolve andvalidategoes red on the first carved commit." Per the memo's own P2a–d row and the OQ-O ruling, the import root belongs to the levelling pass, not to the leg's first move — so it exists and is proven green before any carved byte arrives.pyproject.toml(new)opendoxpackage over asrc/layout;[tool.pytest.ini_options]is the rootdir anchor (without an ini table anywhere,pytest -qandpytest tests/can disagree about the root and therefore about which conftest chain applies) and carriespythonpath = ["src"]conftest.py(new)src/onsys.pathby hand, so the leg still imports under a runner that does not read that table, and so the arrivingtests/suites are collected beneath a real root conftest chaintests/test_leg_shape.pytest_import_root_exists+test_src_is_on_sys_path(proves the conftest ran, not merely exists) +test_branch_protection_evidence_existsdocs/branch-protection.md,README.md## Documentationdoc index, level across all sixBoth new files are CREATED at a destination and carry no manifest row — RULED OQ-C: the manifest declares what LEAVES openxFactory, never what a destination assembles.
The reference leg
This repository is the reference leg. Its
validatealready pinnedpytest>=8,<9and declaredpermissions: contents: read; the other three legs are aligned to it in their own PRs. Its workflow is therefore unchanged here.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
Prepare the openDox code leg for the future carve by establishing and validating its
src/import root without adding carve content or changing repository rulesets.New Features:
src/-based openDox code leg before carved content arrives.Enhancements:
src/is available onsys.pathacross runners.Build:
opendoxpackage.Documentation:
Tests: