Skip to content

Level the openXdox assembly-root scaffold for the carve (OQ-O) - #3

Merged
brettheap merged 2 commits into
mainfrom
chore/level-scaffold-for-carve
Sep 9, 2026
Merged

brettheap merged 2 commits into
mainfrom
chore/level-scaffold-for-carve

Conversation

@brettheap

@brettheap brettheap commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

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

file why
docs/branch-protection.md (new) this repository had no docs/ directory at all; its openDox sibling has carried the § 1.5 ruleset-evidence file since 2026-09-06. A ruleset is a repository setting, not a tree fact, so this file is the only evidence a checkout can hold. It records the ruleset (id 22371409), the real evaluate → active history from the #656 Group 1 record, and the policy difference below.
contracts/manifest.yaml declares the carved_from: slot and its exact shape in a comment block — RULED OQ-I. No key is added; the YAML data is byte-for-byte unchanged.
README.md a ## Documentation doc index, plus the posture sentence pointing at the new evidence file that the openDox root already carries

The reference leg

opensoft/openDox-code is the reference for the four legs; for this file set the reference is opensoft/openDox, the sibling assembly root, whose docs/branch-protection.md and posture wording this mirrors. This repository is an assembly root, not a leg: its validate runs the three neutral openRepoShape validators, and its workflow, .gitignore and Makefile are digest-pinned by contracts/shape-pin.yaml — untouched here.

Tests run locally

python3 scripts/validate-repository-naming.py --project project.yaml   → exit 0
python3 scripts/validate-manifest.py                                   → manifest ok: openXdox (openxdox), 3 legs
python3 scripts/validate-pins.py                                       → pins ok (code gitlink + digest, 10/10 shape-file digests, openDox pin bad2d2ad recomputes)

NOT DONE, deliberately

  • No carve content. Not one row of openxFactory docs/opendox-carve-manifest.yaml is placed by this PR. The carve is a later, separate PR under OQ-H (history-preserving git filter-repo).
  • No ruleset or branch-protection change. strict_required_status_checks_policy is false on the three opendox rulesets and true on the three openxdox ones. 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 every docs/branch-protection.md instead of being discovered.
  • No carved_from: value. The two assembly-root PRs declare the SLOT and its shape (RULED OQ-I); the carve PR fills it.

Asking for Brett Heap's separate word to land this (CODEOWNERS * @brettheap; admin merge).

🤖 Generated with Claude Code

Summary by Sourcery

Level the assembly-root scaffold by documenting branch protection, indexing the new documentation, and reserving the agreed carve-provenance manifest shape without introducing carve content.

New Features:

  • Add repository branch-protection documentation recording the active validate ruleset, its history, and the policy difference from the sibling family.
  • Add a documentation index to the README.],
  • bug_fixes ช [

Enhancements:

  • Declare the planned top-level carved_from manifest shape without adding carve provenance data or changing manifest entries.

Documentation:

  • Document the repository ruleset and link it from the README.

Adds docs/branch-protection.md — the ruleset evidence file its openDox sibling
has carried since 2026-09-06 — plus the README doc index and posture link, and
declares the carved_from: slot in contracts/manifest.yaml (RULED OQ-I). 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 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 9, 2026 22:48

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

@sourcery-ai

sourcery-ai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Reviewer's Guide

This scaffold-only PR levels the openXdox assembly root against its openDox reference by adding branch-protection evidence and README documentation indexing, while documenting the future carved_from manifest shape without adding carve content or changing repository settings.

Flow diagram for the openXdox scaffold-levelling PR

flowchart LR
    Reference[openDox reference scaffold] -->|mirror evidence and wording| PR[openXdox scaffold PR]
    PR --> Evidence[docs/branch-protection.md]
    PR --> README[README Documentation index]
    PR --> Slot[manifest carved_from slot comment]
    Slot -->|filled later| Carve[Separate carve PR]
    PR -.->|does not change| Settings[Repository ruleset settings]
Loading

File-Level Changes

Change Details Files
Adds repository ruleset documentation and indexes it in the README.
  • Document the validate ruleset, its identifier, lifecycle, scope, and strict-policy difference from the sibling family.
  • Add a documentation index and link the branch-protection evidence from the repository posture text.
docs/branch-protection.md
README.md
Predeclares the provenance schema for the future carve without changing manifest data.
  • Document the top-level carved_from mapping and expected repository, commit, tag, manifest, and leg-count fields.
  • Leave the YAML entries unchanged and explicitly defer populating the slot to the carve PR.
contracts/manifest.yaml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

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.

🟢 Approval recommended

Changes are documentation/comment-only scaffolding alignment with only minor wording/typo nits identified.

Pull request overview

This PR levels the openXdox assembly-root scaffold ahead of the carve by adding repository-local evidence of branch protection rules and documenting the forthcoming carve provenance slot without changing manifest data.

Changes:

  • Add docs/branch-protection.md to record the validate ruleset evidence and its evaluate→active history.
  • Extend README.md with a Documentation index and a posture note pointing to the new evidence file.
  • Add a comment-only block to contracts/manifest.yaml that specifies the intended carved_from: mapping shape (no YAML data changes).
File summaries
File Description
README.md Adds a docs index and links to branch-protection evidence from the Posture section.
docs/branch-protection.md New evidence document describing the required validate ruleset and its history.
contracts/manifest.yaml Comment-only schema declaration for the future carved_from: provenance slot.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread contracts/manifest.yaml Resolved
Comment thread docs/branch-protection.md Resolved
- 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 <[email protected]>
Copilot AI review requested due to automatic review settings September 9, 2026 22:59
@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

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.

🟢 Approval recommended

The changes are documentation/comment-only scaffold levelling with only minor wording clarity nits noted.

Review details

Suppressed comments (2)

Previously missed (2) — in code that hasn't changed since the last review.

docs/branch-protection.md:3

  • The reference path in the code span includes a space (openxFactory openspec/...), which isn’t a valid file path and is ambiguous to readers. Consider making the repo explicit and leaving only the actual path inside backticks.
    docs/branch-protection.md:41
  • “on his act” is unclear phrasing here; using an explicit actor makes the history easier to read and avoids ambiguity.
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction (formerly openxfactory-opendox)

INDEPENDENT VERIFICATION of head d504a0e6702d5400c11eb099dbfc21cd34b314aa — PASS

  1. No carve content — PASS. Diff vs main touches only README.md, contracts/manifest.yaml (comment block), docs/branch-protection.md (new; 3 files, +120/-1). None of these paths appear in the manifest's 454 source/destination paths.
  2. Reference-leg alignment — N/A to this repo (assembly root; no workflow/pytest changes here). docs/branch-protection.md (newly added — this repo had no docs/ directory at all before) states strict_required_status_checks_policy: true here vs false on the openDox family — confirmed live via gh api repos/opensoft/openXdox/rulesets/22371409 → true, matching openDox's confirmed false. Ruleset ids, the evaluate→active history and the org-wide ruleset ids (18834180, 8981805) all check out against the live rulesets.
  3. Import root — N/A (assembly root).
  4. contracts/manifest.yaml — PASS. Diff is 38 comment-only lines (identical boilerplate to openDox#3's, correctly adapted with openxdox/opendox naming); project: openxdox, contract_bundle_version: none, entries: [] byte-identical to main. python3 scripts/validate-manifest.py → manifest ok: openXdox (openxdox), 3 legs. python3 scripts/validate-pins.py (submodules initialized) → pins ok, including the transitive openDox pin digest recompute via contracts/opendox-pin.yaml.
  5. Test suite / validate — validate-repository-naming.py --project project.yaml passes; CI validate: SUCCESS; SonarCloud: SUCCESS. No pytest suite in this repo (assembly root).
  6. Hygiene — Lane first line correct; **Refs opensoft/openxFactory#656** qualified; no closing keyword; both commits carry the exact two-line trailer; autoMergeRequest: null. Two Copilot threads, both resolved with on-point replies (a MACHINE-READ-is-not-a-typo clarification, and a branch-protection.md grammar rephrase).
  7. Sequencing — no other open PRs on this repo; no landing-order constraint (the openXdox-spec sibling-PR collision is scoped to that repo, see its own report).

No FAIL/SHOULD-FIX items.

@brettheap
brettheap merged commit 77eb7b8 into main Sep 9, 2026
4 checks passed
brettheap added a commit that referenced this pull request Sep 17, 2026
…cy bump) and openDox pin to c4c5014d (S8 leg B) (#11)

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

Refs opensoft/openXfactory#656 (stays OPEN). CLAIM: 5699629088.

Second leg of pin lockstep #3, on #10 -> a650014's precedent:
`code` (opensoft/openXdox-code) advances `c1ad341a` -> `2529c10a`, and
`contracts/opendox-pin.yaml` advances `3819625e` -> `c4c5014d` to match
opensoft/openDox#9. `spec` unchanged at `ae59dfa5`.

`code` CROSSES TWO LANDINGS in one advance, because lockstep #2 stopped at
c1ad341a deliberately, before #19 existed:
  1. S 3.4 S8 leg A - openXdox-code#19 -> 0a0265f7: 44 of the 46 root spellings
     across 31 files stop naming `REPO_ROOT / "src" / "openxdox" / "web"`, a
     directory this leg does not have, and read openDox's bundle through the
     PIN instead (RULED openxFactory#656 comment 5656343213, "the path constant
     moves, the file does not"; LANDED note 5690615323).
  2. The `opendox` dependency bump - openXdox-code#21 -> 2529c10a (LANDED note
     5714326926): pyproject.toml pins `opendox` at openDox-code 0b4e8bbf, the
     act owed by the S5 LANDED note 5656797299 item 4 and by pin lockstep #2's
     residue item 1. That leg's `validate` reads 360 passed / 6 skipped at the
     landed head, of which the bump alone is 317 / 6 - the three S5
     materialization assertions and the thirteen node probes stop skipping and
     pass - and the rest is its 43 direct tests of the PEP 610 provenance guard.
So this is the first openXdox assembly commit whose `code` both points at
openDox's bundle AND declares an `opendox` that carries one.

`contracts/opendox-pin.yaml` moves in the SAME commit because openxFactory's
`scripts/verify-opendox-pin.py` check 5 reads THIS file as a git BLOB out of
this repository's object store, at whatever commit openxFactory's `openXdox`
gitlink names, and refuses `opendox-pin-lockstep-mismatch` the moment it
disagrees with openxFactory's own direct pin of openDox. Leg 3 cannot pass
until this leg has landed naming the same openDox assembly commit.

Three files, the three #10 predicts. Both digests are sorted-ls-tree-r-v1
recomputed - the code one from this repository's own object store
(d4cff06d27127f949a3e51bddace29f8164777e7cf7d95695eccb43c3b789358), the openDox
one from a sibling checkout of opensoft/openDox
(f7b9b0236ae6afabcb2692abb3f7e084053ea67babf450222efff7452cac51f6) - not
retyped from anywhere. `digest_source` does not move: it is already
`local-checkout`.

GATE EVIDENCE, MEASURED AT THE LANDED HEAD 38b36e4: `validate` SUCCESS, run
35221373195 (check run 105202087872), this leg's only required check;
validate-pins.py `pins ok` with the tree digests recomputed and the
gitlink/pin-file lockstep confirmed, validate-manifest.py `manifest ok:
openXdox (openxdox), 3 legs` and validate-repository-naming.py exit 0.
SonarCloud PASSES here. Copilot's review 5235635969 at this head reads
"Approval recommended - Pin updates and corresponding digests are synchronized
and validated", files reviewed 3/3, comments generated 0, with NO suppressed
comments section; 0 review threads / 0 unresolved.

Lane: openxfactory-4
Co-Authored-By: Claude Fable 5.1 <[email protected]>
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