Skip to content

dox-v1.1: T053's neutral snapshot contract (spec pin, manifest bump, CHANGELOG draft) - #14

Merged
brettheap merged 3 commits into
mainfrom
build/dox-v1.1-cut-pr
Sep 29, 2026
Merged

brettheap merged 3 commits into
mainfrom
build/dox-v1.1-cut-pr

Conversation

@brettheap

@brettheap brettheap commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Arc: neutral-product-standalone-operability

The dox-v1.1 cut PR. Plan 034's T053 (opensoft/openxFactory,
specs/034-opendox-standalone-operation/) is [oDs] [oD] — its spec-leg half
landed as opensoft/openDox-spec#16 (squash-merged f7ee3c76); this is its
root half. RULED — Brett Heap, 2026-09-29, opensoft/openxFactory issue #656
comment 5894235642:

"Same as v1.0 (Recommended)."

— the same two-step shape as dox-v1.0: the lane authors and lands this cut
PR now (RULED ASK-9a → 1, quoted in contracts/CHANGELOG.md: "the lane
authors and lands the cut PR … the annotated tag is Brett's act"
), and the
operator cuts the annotated dox-v1.1 tag over this commit once the draft is
green. This PR does not create or push a tag.

What moved, in the one lockstep commit

  • spec gitlink and contracts/spec-pin.yaml (commit: + digests.tree_sha256)
    → opensoft/openDox-spec#16's landed commit f7ee3c763b3af4581daf1cd54406e5111e9358e6.
    No .github/workflows/*.yml names the spec leg, so there is no third fact to
    move.
  • contracts/manifest.yaml: contract_bundle_version dox-v1.0 → dox-v1.1.
    The three existing entries' commit: field advances with the leg (their
    sha256 digests are unchanged — no existing schema byte moved). One row is
    added, opendox-snapshot (release_member: false, absent from
    openxFactory's contracts/hermes-runtime/contract-index.yaml, exactly as
    ideation-workbench already is).
  • contracts/CHANGELOG.md: a new ## dox-v1.1 section, and the file's
    Status: header reads draft again — the same window dox-v1.0 itself
    passed through before its own tag existed, for the same rule.

Verification

From a fresh --recurse-submodules clone, at this branch's head:

$ make validate
python3 scripts/validate-repository-naming.py --project project.yaml
  ...
python3 scripts/validate-manifest.py
manifest ok: openDox (opendox), 3 legs
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit f7ee3c763b3a
  ok  spec: tree digest recomputes (e81f8530d93e…)
  ok  code: gitlink == contracts/code-pin.yaml commit 2d116415159b
  ok  code: tree digest recomputes (322f8105d15c…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
$ make pins
  ... pins ok

Both exit 0. The spec leg's tree_sha256 (e81f8530d93e5be7aae4c5be36346627b01c52691bf36d51b19907c1b32991a2)
was independently recomputed here with repo_shape.tree_digest against the
landed commit f7ee3c76 and matches — expected, since opensoft/openDox-spec#16
squash-merged to the SAME tree (7b00d19e) as its branch head cd49eb25, which
is what the tree_sha256 was originally computed against. The new manifest row's
sha256 (f9e3e111af1d4bd4c377c933027d81b582ae2b0a395b66f4e4621992454a584a)
was independently recomputed here with sha256sum against
spec/contracts/schemas/opendox-snapshot.schema.yaml at this pin and matches.

Why the CHANGELOG's Status: header moves to draft

Read literally from the file's own text (unedited by this PR beyond the new
paragraph): Status: standard was reached for dox-v1.0 only once all four
coordinated values (bundle version, entries, tag, changelog entry) were in
place. This PR moves the bundle version and the entries and adds the changelog
entry, but the dox-v1.1 tag does not exist — so, by the same rule, the header
reads draft until it does. dox-v1.0's own published tag, entries and
digests are unaffected; only the file's single top-level Status: line moves,
tracking the newest in-flight bundle.

Not in scope here

No tag is created or pushed by this PR — RULED ASK-9a → 1 and this round's
explicit instruction both reserve that to the operator. Nothing under code/
or contracts/code-pin.yaml moves (unrelated to T053; last moved by plan 034
T039). No workflow file changes.

🤖 Generated with Claude Code

Summary by Sourcery

Prepare the dox-v1.1 contract bundle with the neutral snapshot schema and synchronized spec pins, leaving tag creation to the operator.

New Features:

  • Add the neutral opendox-snapshot contract to the dox-v1.1 bundle.

Enhancements:

  • Advance the pinned openDox-spec revision and manifest bundle from dox-v1.0 to dox-v1.1 while preserving existing contract digests.
  • Document the dox-v1.1 draft release and its pending operator-created tag.

Documentation:

  • Update the contract changelog with dox-v1.1 provenance, contents, and release status.

Tests:

  • Verify repository validation and lockstep pin and digest checks pass for the new bundle.

…ifest bump, CHANGELOG (Status: draft, no tag)

Realizes plan 034 T053 (opensoft/openxFactory, specs/034-opendox-standalone-
operation/), Ruled R1Q11 (a) and R1Q12 (a) (#656 comment 5850003126). The one
commit the lockstep invariant requires (scripts/validate-pins.py): the spec
gitlink and contracts/spec-pin.yaml (commit + tree_sha256) both move to
opensoft/openDox-spec#16's landed commit f7ee3c76 (squash merge; same tree,
7b00d19e, as its branch head cd49eb25). No workflow @<sha> reference names
the spec leg, so there is no third fact to move.

contracts/manifest.yaml: contract_bundle_version dox-v1.0 -> dox-v1.1. The
three existing entries' commit: field advances with the leg (their sha256
digests are unchanged); one row is added, opendox-snapshot, false by
measurement (absent from openxFactory's contract-index.yaml, exactly as
ideation-workbench already is).

contracts/CHANGELOG.md: Status: draft again, over dox-v1.1, for the same
reason dox-v1.0's own window read draft (RULED ASK-9a -> 1: "the lane authors
and lands the cut PR ... the annotated tag is Brett's act"). Cut under RULED,
Brett Heap, 2026-09-29, opensoft/openxFactory issue #656 comment 5894235642:
"Same as v1.0 (Recommended)" -- the same two-step shape as dox-v1.0's own
comment 5767052465. dox-v1.0's own published entry, tag and digests are
unaffected.

No tag is created here. The annotated dox-v1.1 tag is the operator's act
(runbook § 9 Phase 6, "BRETT'S ACT, ALWAYS"), cut once this draft is green.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 17:58
@sourcery-ai

sourcery-ai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Reviewer's Guide

This PR creates the dox-v1.1 cut candidate by atomically advancing the spec submodule and pin metadata to openDox-spec#16, updating the manifest with the new bundle version and neutral snapshot contract, and documenting the release as draft until the operator creates the annotated tag. Validation confirms pin consistency, tree and schema digests, and manifest correctness; no code leg, workflow, or tag changes are included.

Sequence diagram for the dox-v1.1 cut workflow

sequenceDiagram
    participant Lane as Lane authors
    participant Root as openDox root
    participant Validator as Validation
    participant Operator as Operator

    Lane->>Root: Advance spec gitlink and contracts/spec-pin.yaml
    Lane->>Root: Update manifest and CHANGELOG
    Lane->>Validator: make validate
    Validator-->>Lane: pins ok, manifest ok
    Lane->>Root: Land cut candidate
    Operator->>Root: Create annotated dox-v1.1 tag
Loading

Entity-relationship diagram for the dox-v1.1 manifest

erDiagram
    CONTRACT_BUNDLE ||--|{ CONTRACT_ENTRY : contains
    CONTRACT_BUNDLE {
        string contract_bundle_version "dox-v1.1"
        string changelog_status "draft"
    }
    CONTRACT_ENTRY {
        string id
        string leg "spec"
        string commit "f7ee3c76"
        string path
        boolean release_member
    }
Loading

File-Level Changes

Change Details Files
Advance the repository’s spec leg and lockstep pin metadata to the landed openDox-spec commit.
  • Update the submodule gitlink and spec pin commit.
  • Replace the spec tree digest with the recomputed value.
  • Advance existing manifest entry commits while preserving their schema digests.
spec
contracts/spec-pin.yaml
contracts/manifest.yaml
Cut the contract bundle metadata for dox-v1.1 and add the neutral snapshot schema to its catalog.
  • Change the bundle version from dox-v1.0 to dox-v1.1.
  • Add the opendox-snapshot entry with its digest and non-release-member classification.
  • Keep the code leg unchanged and retain existing entry digests.
contracts/manifest.yaml
Document dox-v1.1 as an in-flight additive minor release pending operator tag creation.
  • Set the changelog status back to draft.
  • Add release details, provenance, leg pins, schema inventory, and tag handoff instructions.
  • Clarify that dox-v1.0 remains published and unaffected.
contracts/CHANGELOG.md

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.

Copilot review overview

🟡 Changes recommended

The changelog incorrectly identifies the bundle’s pinned code commit as the current code-leg main.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Prepares the assembly root for the dox-v1.1 neutral snapshot contract release and subsequent operator-created tag.

Changes:

  • Advances the spec leg and pin in lockstep.
  • Adds the snapshot contract to the dox-v1.1 manifest.
  • Documents the draft release state and pending tag.
File Description
spec Advances the spec gitlink.
contracts/​spec-pin.yaml Updates the pinned commit and tree digest.
contracts/​manifest.yaml Adds the snapshot entry and bumps the bundle version.
contracts/​CHANGELOG.md Documents dox-v1.1 and its draft status.

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

Comment thread contracts/CHANGELOG.md Resolved
…ent main (Copilot review)

Copilot, #14, contracts/CHANGELOG.md:60: openDox-code had already advanced to
dc3765dd (2026-09-29T16:40:07Z) before this PR opened, while 2d116415 is only
the bundle's pinned commit (contracts/code-pin.yaml, unmoved by this cut). The
Unreleased entry's "its main is at 2d116415" conflated the two. Reworded to
name it as the bundle's pin, explicit that the leg's own main has since
advanced independently of any contract byte. No other line makes this claim
(the dox-v1.1 bundle table already said "unchanged by this cut", never "is
main").

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:03

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

🟢 Approval recommended

The release metadata is consistent; only a minor Markdown path-formatting defect remains.

Review effort: Balanced
Findings: None

Resolved since last review (1)
Previously missed (1)

In code that hasn't changed since last review

Low severity Keep Markdown code path contiguous across line breaks

contracts/​CHANGELOG.md:78

The line break is inside the Markdown code span, so this renders as scripts/ validate-pins.py rather than the real path. Keep the path contiguous so readers can copy or follow it.

…reak (Copilot review)

Copilot, #14, contracts/CHANGELOG.md:78 ("Previously missed"): the line break
sat inside the Markdown code span, rendering as `scripts/ validate-pins.py`
rather than the real path. Rewrapped so the path stays on one line.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI balanced review requested due to automatic review settings September 29, 2026 18:07
@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

🟢 Approval recommended

The lockstep pin update, manifest metadata, changelog, and successful validation checks are consistent with repository requirements.

Review effort: Balanced
Findings: None

@brettheap
brettheap marked this pull request as ready for review September 29, 2026 18:10
@brettheap

Copy link
Copy Markdown
Contributor Author

READY at 9626cf6 — Brett: land phase 2 when green; dox-v1.1 cut PR per #656 5894235642. Lane: openxfactory-4 (openXfactory-4-openDox_extraction)

@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 22 hours and 27 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap
brettheap merged commit 5200521 into main Sep 29, 2026
4 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

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

LANDED — lane openxfactory-4, 2026-09-29T18:12:53Z, PR #14 → 5200521 (opensoft/openDox main; plain gate)

Brett: land the phase 1 PRs when green

brettheap added a commit to opensoft/openDox-code that referenced this pull request Sep 29, 2026
…s, f7ee3c76

T053 has landed: openDox-spec#16 squashed as f7ee3c76. The openDox root
now pins it (opensoft/openDox#14, dox-v1.1): its spec gitlink and
contracts/spec-pin.yaml name f7ee3c76, and its contracts/manifest.yaml
records the four files at that commit. T057's falsifier holds each copy
to "the spec-leg commit the openDox root pins", so the record's commit
and the test's SPEC_COMMIT move from #16's head, cd49eb25, to f7ee3c76
together, on the holder's word.

No digest moves.
- f7ee3c76 has cd49eb25's tree (7b00d19e).
- The four copies are byte for byte the files at f7ee3c76.
- The four digests are the ones the root's manifest records there.

The comments in copies.yaml and test_validator_input_set.py now say
what the root pins, and test_validator.py's corpus note names the
landed commit.

Checked:
- Moving SPEC_COMMIT back alone fails 2 of the falsifier's 28 cases, so
  the two still move together or not at all.
- The whole suite: selected=2817 passed=2806 skipped=11, unchanged.

Arc: neutral-product-standalone-operability
Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 29, 2026
… now exists (#15)

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

Refs opensoft/openXfactory#656 (stays OPEN).

The dox-v1.1 counterpart of #12. The cut PR #14 (→ `520052139d10e98c2894abafa315fa924a6fd495`) landed the `dox-v1.1` entry with the header kept at `Status: draft`, because the tag did not exist yet. The file itself says the header *"promotes back to `standard` once the `dox-v1.1` tag exists, by the same act as before — no second open question is needed, the rule already covers it."*

**The tag exists now.** `dox-v1.1` is annotated tag object **`851a28e966d011518c19b0abd321502288ac12ea`** over **`520052139d10e98c2894abafa315fa924a6fd495`**. The tagger is `Brett Heap <[email protected]>`, 2026-09-29T18:43:27Z. It was cut under RULED [#656 comment 5894235642](opensoft/openXfactory#656 (comment)), *"Same as v1.0 (Recommended)"*. Before the cut it was checked in a freshly cloned tree, and after the push it was checked again in a third clone that never tagged anything.

## One file, the shape of #12

```
 contracts/CHANGELOG.md | 35 ++++++++++++++++++++---------------
 1 file changed, 20 insertions(+), 15 deletions(-)
```

1. The header changes from `Status: draft` to **`Status: standard`**.
2. The paragraph that explained the draft header (*"the annotated `dox-v1.1` tag does not exist yet … This header promotes back to `standard` once …"*) now records how that was resolved: the tag object, the target commit, the tagger and the date. The dox-v1.0 paragraph above it changes "was reached once" to "was first reached", so the two paragraphs read in order.
3. The Unreleased line changes from "nothing pending beyond `dox-v1.1` below" to "nothing pending", which is the form the line had after dox-v1.0 was cut.

## Checked line by line: nothing left asserts the pre-tag state

| line | why it stays |
|---|---|
| *"the header read `draft` through that window"* | past tense, about dox-v1.0's closed window |
| *"`Status: draft` again over `dox-v1.1`'s own window … and `standard` again now"* | the resolution record |
| *"`openxFactory`'s own contract changelog still carries `draft` …"* | a different repository, and a measured fact |
| the `dox-v1.1` entry's *"Not cut by this pull request. Cut by the operator when the draft is green"* | **left alone on purpose.** It is text inside a released entry, it was true of the cut PR it was written in, and #12 left the dox-v1.0 entry's own "The tag" section unedited in the same way. A release entry does not change after its tag. |
| *"cut the tags when the drafts are green"* | the verbatim dox-v1.0 ruling quote |

## What does not change

This PR touches no release entry, manifest, pin, gitlink or workflow, and **no tag**. `dox-v1.0` (`608236a1` over `dc7aa08f`) and `dox-v1.1` (`851a28e9` over `52005213`) stay exactly as published. `make validate` passes locally at this head (exit 0).

It opens as a **draft**.

🤖 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) <[email protected]>
brettheap added a commit to opensoft/openDox-code that referenced this pull request Sep 30, 2026
**Authored ahead, as a phase-2 draft.** Brett ruled on openxFactory#656, comment `5857365170` ("Start phase 2's independent tasks"), that phase-2 tasks are authored as drafts. **T049 has landed** (openxFactory#1204 → `9d2e5bc3`), so phase 2 is open. T054 is `After: T050, T052, T053`:
- T050 has landed, as `dc3765dd` (#53);
- T052 has landed, as `fa8862cc` (#54);
- T053 has landed, as openDox-spec `f7ee3c76` (#16), and the openDox root pins it (opensoft/openDox#14).

#56 (T051), which this branch also carried, has landed as `86647320`. This PR stays a draft until the holder un-drafts it.

This is plan 034's **T054 (5.1–5.3: openDox's small neutral projection)**, phase-2 slice **P2-P**. I read the plan at openxFactory `main` `d90df42d` (`specs/034-opendox-standalone-operation/tasks.md`), and re-read it at `9d2e5bc3`: T054's entry is unchanged. The slice is claimed on openxFactory#656, comment `5859496321`.

## What this branch carries

- It is **built on #54's branch**, `build/034-p2g-t052-generator-seam` (T052, the generator seam). It was cut at `4ca45d27`, and it now carries #54's final head, `2f515c57`. T054 replaces that seam's placeholder default with the projection.
- **#53 (T050) has landed as `dc3765dd`.** Its tree equals #53's final head, `4ba410ff`, which this branch had merged first. So `main`'s merge (`d97a4aa`) had one add/add conflict, in `tests/test_plain_documents_fixture.py`, resolved to this branch's side. That file differs from `dc3765dd` by T054's three docstring corrections and nothing else. `git diff dc3765d -- <file>` after the merge is byte-identical to `git diff 4ba410f <pre-merge head> -- <file>`.
- **#56 (T051)** is merged at `44dcc3a1`. It adds `tests/fixtures/malformed`, which the holder's T051 rule reads.
- **#56 and #54 have landed** (`86647320`, `fa8862cc`), and `main` `fa8862cc` is merged here as `1a603677`. Its two add/add conflicts, `src/opendox/default_generator.py` and `tests/test_generator_seam.py`, are resolved to this branch's side: in each, main's blob is #54's final blob, so `git diff fa8862c <pre-merge head> -- <file>` equals `git diff 2f515c5 <pre-merge head> -- <file>`. The merged tree is the pre-merge head's, `45ddf9ec`.
- So the diff against `main` is now T054's alone: its commits `25fe7526` through `5a6fe637`, `8e7da4a`, `03e06ccd`, `50b0d42b` and `d7954fc6` (below).

## What it builds

`src/opendox/neutral_projection.py` is new code over `CorpusAdapter`, written to openDox's own needs. It is not openXdox's generator re-expressed, and it imports nothing of openXdox's or openxFactory's.

`default_generator.generate()` keeps its signature. It resolves the home corpus through the home-corpus seam and projects it. Standalone, that corpus is T022's `WorkingTreeCorpus`, a `LocalGitCorpus` (5.2). `NeutralProjectionNotBuilt` and its refusal case in `tests/test_generator_seam.py` are retired, as the brief asks.

The projection writes T053's neutral snapshot, `opendox-snapshot`. The rules it follows:

- **What is a document.** A document is an entry the adapter lists AND classifies.
  - An entry it cannot classify, such as a `Makefile` or an image, is left out unread (holder ruling).
  - An entry whose path the schema's `path-is-repo-relative` rule cannot carry is also left out, and it is reported. Examples are a backslash or a control character in the name.
- **Where a document lands (R1Q13 (a) with (c)).**
  - The station is the one its neutral `stage:` key names. That key is the first line of the leading `Name: value` block. `local_git_adapter.leading_header` reads the block, and it is the same reader the default adapter's `classify` uses.
  - A document that declares no `stage:` is a source.
  - A value outside the six role keys is not a declaration. That includes the empty value and another casing such as `Grouping`. The generator reads the document as a source and reports it on standard error. For example: `notice: grouping-compost-corner.md: its stage: value 'shelved' is not one of the six station role keys (source, grouping, candidate, selection, submission, completion), so it is not a declaration; the document is read as a source`.
- **`title` and `summary`** are copied exactly as the header gives them, the empty value included. They are `null` only where the key is absent. Nothing is coerced, and no document is dropped for lacking them. This is the holder's rule on T051.
- **The topic rule** (named here, as the task asks). A document with a `topics:` header carries exactly the topics it lists: split on commas, whitespace collapsed, and case-folded. It carries none where the header lists none, because an empty header is still a declaration. A document without the header carries:
  - the **words of its name**, where the name is its `title:`, else its first `#` heading, else its file name without the suffix;
  - plus the **words of the name of every other document it mentions**, where mentioning means its text holds that document's name, or its file name, as a run of whole words.
  - A word is a run of three or more letters, case-folded, that is not in `STOPWORDS`. Letters and digits are split apart, so `Q3planning` holds the word `planning`. So the rule needs no front matter at all.
- **Groups.** A group forms wherever **two or more sources share a topic**, and topics shared by the same sources form one group, named `a · b`. A document that declares `stage: grouping` is a group of its own: it gathers itself and every source that shares one of its topics. Each group has **one edge per member document**, naming the topics that matched.
- **The other stations.**
  - A declared candidate is `unselected`. It is claimed by each group it shares a topic with, and its `claim` is its summary.
  - A declared selection is a `staged_topics` entry.
  - A declared submission or completion is a `changes` entry, `active` or `archived`.
  - Each of these lists the document as its file. Ids are unique within each section.
- **`keyword_index`** is written, and it counts exactly the documents that carry each topic.
- **The anchors.**
  - `source_revision` is the revision the caller pins, else the corpus HEAD (holder ruling 5). With neither, `ProjectionRefused`, a `GeneratorSeamError`, is raised.
  - `generated_at` is the caller's value, else that revision's own committer date. It is looked up only for a revision spelled as a hexadecimal object id, so git never reads a revision as an option. Nothing reads the clock.
  - A pin labels the snapshot; it does not choose the bytes. The content is the working tree's, as openXdox's governed generator also records a supplied revision and scans the tree it is handed.

It also changes these files:
- **`display_profile.py`, in one place (batch G's 5.3).** `SNAPSHOT_VALUES`' defaults become the neutral snapshot's values:
  - `document_stage`: `captured` is `source`, and `organized` is `grouping` (holder ruling 1);
  - `register_state`: `unselected`, `selected`, `declined` and `replaced`, which are `NEUTRAL_DISPLAY`'s own candidate words, role for role, so no word is re-authored.
  - `display.js`'s mirror moves with it and keeps its line count, so the web census is unchanged. The governed values move to openXdox's facet in T060 (holder ruling 4: T060's block lands before openXdox moves its openDox pin past T054).
- **The default adapter's field set (R1Q13 (a)).**
  - `local_git_adapter.NEUTRAL_FIELDS = ("title", "summary")`, and `WorkingTreeCorpus` defaults to it. `LocalGitCorpus()` still defaults to `()`.
  - The suffix branch of `classify` reports a field as missing when it is absent or empty, but only when fields are required. So `authoring.required_header_fields()` answers `("title", "summary")` through the entry point.
  - A document without those fields is still read, as a source.
- **The wheel (holder ruling 3).** The grouping tile counts a group's edges. `views/wheel-model.js` uses `tallies.document_links` where a group carries one, as the governed snapshot's groups do, and counts `document_edges` otherwise. The schema is not widened, and the file keeps its line count.

What the fixtures project to:

| repository | documents | groups |
|---|---|---|
| T050's `plain-documents` | 8, all six stations | `barrel · rain` (the two rain-barrel notes), and the declared `Compost corner ideas, gathered in one place` |
| AT-R1's repository (b), no front matter | 3 sources | `budget · roadmap` (all three notes), `meeting · notes` (two) |
| T051's `malformed` | 2 (`EXPECTED_RULE` is not a document) | none |

## After T049: openDox's own scaffold carries the small neutral field set (`8e7da4a`)

**The holder's decision of 2026-09-28.** `render_scaffold()`'s output read as missing `title` and `summary` under `NEUTRAL_FIELDS`, for two reasons: the H1 comes first, so `leading_header()` stops at the blank line after it, and its field is the capitalized `Summary:`. So standalone `agent_capture` refused a document `create` had written, and the projection lost the supplied summary. Copilot raised it on #59 as r4126022820 and reproduced it there. It is fixed here.

**What changed.**
- `authoring.SCAFFOLD_LEAD_FIELDS = ("title", "summary")`. These are the fields a scaffold can lead with, filled from the create's own input. The neutral title drops the family suffix, which stays on the H1.
- `render_scaffold(..., lead_fields=())` writes those fields first, as `name: value` lines, then a blank line, then the governed block unchanged. It refuses a field it has no value for. With `()`, the default, its output is byte-identical to before.
- `create_scaffold()` passes `scaffold_lead_fields()`: the fields of `SCAFFOLD_LEAD_FIELDS` that `required_header_fields()` answers. Under openDox's own default adapter, that is both.

**Why it follows the corpus rather than always leading.** openxFactory's gated create and openXdox's authoring suite pin the governed layout with the H1 on the first line:
- `tests/ideation-dashboard/test_gate_routes.py::test_create_document_lands_the_scaffold_and_the_record` asserts `text.startswith("# Lens launch session — Brainstorm\n")`;
- `tests/test_authoring_agent.py` asserts the same for its own title.

openxFactory's adapter obliges only the governed block's own fields (`Status`, `Kind`, `Summary`, …), which it reads over a 15-line window (`STATUS_SCAN_LINES`). So there the answer is `()`, and the created bytes do not change. That adapter's readers (`classify`, `ideation_readiness._parse_header`, `families._h1`) would read a scaffold with the lead block correctly anyway, since they scan the window and `_FIELD_RE` needs a capital letter. The lead is still left out there, because those pins hold the exact bytes.

**One behaviour change.** `create_scaffold` asks the corpus as `agent_capture` does, so with no home registered it now refuses (`CorpusRefused`, `ADAPTER_NOT_REGISTERED`), naming the seam (4.2). Every create path runs after an entry point registers one. No running test in openDox-code, openXdox-code or openxFactory calls it in a bare process. openXdox's `tests/test_authoring_agent.py` does, but it is in openXdox-code's declared exclusion (`doc_health`), so it runs nowhere today. Its `agent_capture` cases already need a registered home, through `missing_required_headers`.

**Also in `8e7da4a`, the half of openDox-code#53's review that needs T054's rule.** T054's falsifier case now also asserts that `notes-toolshed-inventory.md`, the source outside the rain-barrel pair, lands in no group. T050's own test pins what the topics are derived from, and this pins the projection's reading of them.

**Tests** (`tests/test_neutral_projection.py`, 25 → 29 cases):
- `test_openDoxs_own_scaffold_carries_the_small_neutral_field_set`: under openDox's default, `leading_header()` of the created text is exactly `{title, summary}` and `missing_required_headers()` is `[]`. `agent_capture` accepts the same text, and the projection keeps both documents' title and summary.
- `test_a_scaffold_keeps_the_governed_layout_where_the_corpus_obliges_neither`: under a corpus that obliges the governed fields, `scaffold_lead_fields() == ()`, and the created bytes equal `render_scaffold()`'s default, H1 first.
- `test_the_lead_block_is_the_neutral_fields_in_order_then_a_blank_line`: the order is `SCAFFOLD_LEAD_FIELDS`' whatever the request's, the suffix is dropped, an unknown field is refused, and `NEUTRAL_FIELDS ⊆ SCAFFOLD_LEAD_FIELDS`.
- `test_a_scaffold_with_no_corpus_registered_refuses_and_writes_nothing`.

**Mutations: 8 of 8 killed.**

| mutant | cases red |
|---|---|
| `create_scaffold` passes no lead | 2 |
| `render_scaffold` always leads with both | 3 |
| the neutral title keeps the suffix | 1 |
| the lead is chosen without asking the corpus | 2 |
| an unregistered corpus is read as obliging nothing | 1 |
| the lead order follows the request | 1 |
| an unknown lead field is ignored | 1 |
| the projection keeps its stopwords (a group `the` then absorbs the toolshed note) | 1, the new no-group assertion; the pre-change case passes it |

**The whole suite at `8e7da4a`**, as CI runs it (`CI=true`, `LANG=C.UTF-8`, PostgreSQL 16, `-e ".[runtime,test]"` under the lock):
- `2587 passed, 11 skipped`, triple `selected=2598 passed=2587 skipped=11`;
- that is +9 over `5a6fe637`'s 2589: #54's review rounds after `4ca45d27` added 5 seam cases, and this change adds 4;
- F4.1's scan (`scan_deferred_reaches.py`, sha256 `fe116203…`) is 19 before and after, with the same reaches.

## The falsifier

From T054's entry in tasks.md:

> **Falsifier**: an in-process test that the projection over T050's fixture, with neither sibling importable, validates against T053's schema and carries none of F5.3's declared words; the topic-rule test over a copy of repository (b); and a test that a `stage:` value outside the six is reported and read as a source.

All three are in `tests/test_neutral_projection.py`, first, in that order:

- The first runs in a fresh process with `openxdox`, `ideation_dashboard`, `doc_health` and `corpus_adapter_openxfactory` blocked. The process asserts each one fails to import. `cli.build_parser()` registers openDox's own defaults, and the process generates through `generator_seam.generate()` over a fresh git repository of T050's fixture.
- The schema is `tests/fixtures/opendox-snapshot.schema.yaml`. It is a byte-identical copy of openDox-spec#16's file at `cd49eb25`, held to its sha256 `f9e3e111…584a`, until T057 ships the packaged copy.
- The evaluator ports openDox-spec's own: the keywords the contract uses and its seven reference rules. The leg installs no `jsonschema`.

Python 3.12.3, pytest 8.4.2, in a venv installed with `-c constraints-cpython312-linux.txt -e ".[runtime,test]"`:

```text
test_the_schema_copy_is_openDox_specs_contract_and_matches_the_product PASSED
test_the_projection_over_the_plain_documents_fixture_is_a_neutral_snapshot PASSED
test_the_topic_rule_groups_repository_b_which_has_no_front_matter PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[shelved] PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[Grouping] PASSED
test_a_stage_value_outside_the_six_is_reported_and_read_as_a_source[] PASSED
test_the_malformed_fixture_keeps_its_one_violation PASSED
test_title_and_summary_are_copied_exactly_and_null_only_when_absent PASSED
test_an_entry_the_adapter_cannot_classify_is_not_a_document PASSED
test_a_path_the_schema_cannot_carry_is_left_out_and_reported[back\\slash.md-backslash] PASSED
test_a_path_the_schema_cannot_carry_is_left_out_and_reported[tab\tin-name.md-control character] PASSED
test_declared_topics_replace_the_derived_ones PASSED
test_an_empty_topics_header_declares_no_topic PASSED
test_a_word_is_a_run_of_letters_even_beside_digits PASSED
test_a_declared_group_gathers_the_sources_that_share_its_topics PASSED
test_a_declared_group_with_no_topic_forms_no_group_and_is_reported PASSED
test_station_ids_are_unique_within_a_section PASSED
test_the_anchors_come_from_the_source_revision_and_the_bytes_repeat PASSED
test_a_repository_with_no_commit_needs_a_pinned_revision PASSED
test_the_default_adapter_obliges_the_small_neutral_field_set PASSED
test_required_header_fields_answers_the_neutral_set_through_the_entry_point PASSED
test_the_header_reader_keeps_an_empty_value_and_stops_at_a_blank_line PASSED
test_the_display_defaults_are_the_neutral_snapshots_values PASSED
test_the_wheel_counts_a_groups_edges_where_it_carries_no_tally PASSED
test_the_projection_imports_with_no_sibling_and_no_third_party_module PASSED
25 passed in 5.26s
```

The file also passes under `--noconftest`. F5.3 itself runs `python -m opendox.cli generate`, whose verb reaches the consumer's generator until T055 routes it (`cli.py:90`). So T056 and T063 quote F5.3, and T056 tests the verb's own report of a `stage:` value outside the six.

**Cross-checks.** The snapshots were checked outside this suite in two ways: with `jsonschema` 4.26.0 (Draft 2020-12, format checker and `rfc3339-validator` installed), and with openDox-spec's own `tests/test_opendox_snapshot_contract.py` evaluator. Both agree:
- T050's snapshot has no error, and neither does repository (b)'s;
- T051's has exactly one, `title-and-summary-are-text` at `/documents/1/title`.

## The repository's own checks

- **The whole suite, against a `postgres:16` container** (CI's service and DSN shape), so the database-backed cases run:

  | run | passed | skipped |
  |---|---|---|
  | base `b1946db` (the branch before T054's commits) | 2554 | 11 |
  | head `5a6fe637` | 2578 | 11 |

  The test-by-test JUnit diff has **25 added** (all of `tests/test_neutral_projection.py`, all passing) and **1 removed** (the retired `test_openDoxs_own_generator_refuses_until_its_projection_lands`). **0** outcomes changed.
- **The triple pin** reads: selected 2589 (floor 2476), passed 2578 (floor 2465), skipped 11 (pinned exactly 11).
- **F4.1's scan** (`scan_deferred_reaches.py` over `src/opendox`) finds 19 deferred reaches at `main` and 19 at head. The only difference is line numbers, so T054 adds no reach. The projection imports with every sibling blocked and pulls in no third-party module.
- **Mutations: 18 of 18 killed.**
  - Coerce an empty title to null.
  - Drop the out-of-six notice.
  - Admit any `stage:` value.
  - Map `organized` to `selection`.
  - Turn off mention scanning.
  - List unclassifiable entries.
  - Carry any path.
  - Miscount `keyword_index`.
  - Let a declared group gather non-sources.
  - Read `generated_at` from the clock.
  - Make the default adapter oblige nothing.
  - Count an empty field as present.
  - Make the wheel ignore edges.
  - Start candidates `selected`.
  - Let one source form a group.
  - Ignore the heading for a document's name.
  - Treat an empty `topics:` header as absent.
  - Drop a letter run that sits beside a digit.
- **`tests/test_display_facet.py`: four node-harness cases edited.** Their fixtures carried the governed snapshot values:
  - the partial-override collision;
  - the board's stripe classes;
  - the explorer's stage word;
  - the funnel's search haystack.

  Each now reads the value openDox ships (`SNAPSHOT_VALUES`), and each still tests what it tested. The canvas case's neutral assertion now compares against openDox's own word instead of a value the neutral install can never write.

The PR stays out of `conftest.py`, `pyproject.toml`, `validate.yml`, `README.md` and every pin, and it edits neither `cli.py` nor `serve.py` (T055's single-writer chains).

## Files (T054's own commits)

| file | change |
|---|---|
| `src/opendox/neutral_projection.py` | new: the projection |
| `src/opendox/default_generator.py` | `generate()` projects the home corpus; `NeutralProjectionNotBuilt` is retired |
| `src/opendox/display_profile.py` | `SNAPSHOT_VALUES`' defaults become the neutral values |
| `src/opendox/web/views/display.js` | the mirror of the same defaults (line count unchanged) |
| `src/opendox/web/views/wheel-model.js` | the grouping tile counts edges where no tally exists (line count unchanged) |
| `src/opendox/runtime/local_git_adapter.py` | `leading_header()` made public, `NEUTRAL_FIELDS` added, `WorkingTreeCorpus`'s default field set, missing fields reported in the suffix branch |
| `src/opendox/authoring.py` | `8e7da4a`: `SCAFFOLD_LEAD_FIELDS`, `render_scaffold(lead_fields=)`, `scaffold_lead_fields()`, and `create_scaffold` leading with what the corpus obliges |
| `tests/test_neutral_projection.py` | new: 25 cases, then 29 at `8e7da4a` |
| `tests/fixtures/opendox-snapshot.schema.yaml` | new: T053's schema, digest-pinned |
| `tests/test_generator_seam.py` | the refusal case retired, and its docstring point updated |
| `tests/test_display_facet.py` | four fixtures read the shipped values; one assertion made positive |
| `tests/test_plain_documents_fixture.py` | T050's docstring (merged from #53) says what is true once T054 and T036 are in |

## CI and review rounds

- **CI at `0f42f678` failed one case, and `b2f92226` repairs the test.** The case was `test_the_anchors_come_from_the_source_revision_and_the_bytes_repeat`.
  - CI's git prints `%cI` for a zero offset as `2026-09-27T12:00:00Z`, and git 2.43.0 prints `2026-09-27T12:00:00+00:00`.
  - The projection records the stamp exactly as git spells it, and the schema admits both spellings.
  - The test compared the stamp to the fixture's date as a string. It now compares them as instants. Its first assertion still holds `generated_at` to the checkout's own `git show` output.
- **Copilot at `0f42f678`: three threads, all taken in `c0747e96`, answered and resolved.**
  - `r4117298988`: an empty `topics:` header fell back to derived topics, which contradicted the rule the module states. It is now a declaration that carries no topic. The new case is `test_an_empty_topics_header_declares_no_topic`, and it fails under the old rule.
  - `r4117299013` and `r4117299033`: T050's test docstring said T054 had not landed, which T054 makes false. It also said the suite ran outside `validate`'s explicit list, which has been false since T036 (#52). It now says what is true. Only the docstring changes.
- **Copilot at `c0747e96`: one thread, answered and resolved, plus one overview remark taken in `5a6fe637`.**
  - `r4117331489` asked that a supplied `source_revision` be passed into the `CorpusRef`. That is not taken, on the product's own contract:
    - the seam and the CLI define the value as an anchor to pin, and openXdox's governed generator records it and scans the tree it is handed;
    - the holder ruled that content comes from the working tree, per Brett's T022 ruling.
    - `default_generator`'s docstring now states the rule in its own paragraph.
  - The overview's remark that digit-adjacent names were tokenized wrongly was right. Letter runs and digit runs are now separate tokens, as the docstring's "a run of three or more letters" says. The new case is `test_a_word_is_a_run_of_letters_even_beside_digits`, and it fails under the old tokenizer.
  - The same overview says the seam's "replacement-generator tracking can reject valid registrations". That is `generator_seam.py`, which is #54's (T052's) code, with no thread here. It is flagged to the holder, not changed here.
- **Copilot at `1a603677` (the merge of `main`): 1 thread, taken in `03e06ccd`.**
  - r4139383472: the lead block interpolated `title` and `summary` as given, so `summary="ok\nstage: completion"` wrote a line `leading_header()` reads as the document's own `stage:`.
  - `render_scaffold()` now refuses a lead value carrying a control character (`Cc`) or a line or paragraph separator (`Zl`, `Zp`), before anything is rendered, so `create_scaffold` writes nothing. With no lead block nothing new is refused.
  - `test_a_lead_value_that_is_not_one_header_line_is_refused`: 20 cases, all red against `1a603677`. Local whole suite: `selected=2618 passed=2607 skipped=11`.
- **Copilot at `03e06ccd`: 2 threads, both taken in `50b0d42b`.**
  - r4139523226: the `kind_field` vocabulary counted a field with an empty value as present. `_classify_by_header` now uses the suffix path's test, so an empty value is no field in both. `test_an_empty_field_is_missing_whichever_vocabulary_is_in_force`, red against `03e06ccd`.
  - r4139523258: `_commit_date` ran a bare `git`. `LocalGitCorpus` exposes its `executable`, and the date is read with the home corpus's own git. `test_the_commit_date_is_read_by_the_home_corpus_s_own_git`, red against `03e06ccd`.
- **Copilot at `50b0d42b`: 2 threads.**
  - r4139607560, taken in `d7954fc6`: a `DocumentId.key` is opaque to the adapter interface, and the projection read every key as a path. An adapter now declares `document_keys_are_paths = True` (`neutral_projection.PATH_KEYS`), `LocalGitCorpus` does, and `project()` refuses any other with `ProjectionRefused`. `test_an_adapter_whose_keys_are_not_declared_paths_is_refused`, red against `50b0d42b`.
  - r4139607585, not taken: it does not reproduce. A path reaches the invalid-stage notice only after `_unwritable()` refuses every control character, so such a path is named by its `repr` and left out first.
- **Copilot at `d7954fc6`: "Needs a closer look", no findings, 0 threads.** CI is green, with `selected=2621 passed=2610 skipped=11 failures=0 errors=0`.

## What the later tasks need

- **T055** (`cli.py`/`serve.py` single writer):
  - The scaffold mismatch #59 raised (r4126022820) is fixed here, in `8e7da4a`. #59 takes it with this branch's head.
  - Route the generate verbs through `generator_seam.generate()`.
  - `_default_home_factory`'s docstring in `cli.py` (around line 877) and `serve.py` (around line 1520) still says the default adapter has bare defaults and that "T054 sets the neutral fields". `WorkingTreeCorpus()` now carries `NEUTRAL_FIELDS`, so that sentence needs correcting.
  - `_report` prints `project=` from a field that the neutral kind does not have. It reads the field with `.get`, so it shows `<ungrouped>`.
- **T056**:
  - The verb's report of a `stage:` value outside the six is the `notice:` line that `default_generator.generate()` writes to standard error. Once T055 routes the verb, it needs no further plumbing.
  - The F5.3 sweep over T050's snapshot is clean in process.
- **T057**: this PR's schema copy is replaced by the packaged copy once T057 ships it.
- **T058**: the malformed fixture yields exactly one violation, `title-and-summary-are-text` at `/documents/1/title`, and `EXPECTED_RULE` is not a document.
- **T060**: the governed `values` block, as T053's writer listed it.

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) <[email protected]>
brettheap added a commit to opensoft/openDox-code that referenced this pull request Sep 30, 2026
…) (plan 034) (#58)

Plan 034 (`specs/034-opendox-standalone-operation/tasks.md`, read at openxFactory `main` `6b97c601`), phase-2 slice **P2-V**, its one task: **T057** (#1144's 7.1, 7.1a, 7.1b and 7.2, with 7.1 as T007's batch G amends it). Claimed on openxFactory#656 in `5873510118`.

**Authored ahead, as a phase-2 draft** (Brett 2026-09-27: "Start phase 2's independent tasks"). **T049 has landed** (openxFactory#1204 → `9d2e5bc3`), so phase 2 is open. Both steps it waited on are done:
- **T053 has landed**: openDox-spec#16 → `f7ee3c76`;
- **the openDox root pins that commit**: opensoft/openDox#14 (dox-v1.1) → `52005213`. `e94ab323` moves the record and `SPEC_COMMIT` to it (below).

#57 (T054) has landed too, as `a691e4e4`, and `main` is merged here. This PR stays a draft until the holder un-drafts it.

- **Ruled**: R1Q22 (a), `5817152735`; R1Q12 (a), `5850003126`.
- **After**: T049, T009, T053.

## The stack

This PR was **stacked on #57** (T054), and is now based on `main`: it was retargeted before #57 landed, and #57 landed as `a691e4e4`. The diff below is T057's alone. #57's head `8e7da4a2` was merged here as `27bcefc`, after T049 landed. #57 has since merged `main` `fa8862cc` as `1a603677`, which has `8e7da4a2`'s tree.

- #53 (T050), #56 (T051) and #54 (T052) have landed, as `dc3765dd`, `86647320` and `fa8862cc`. #57's branch carried their final heads' content before they landed.
- T057 needs the seam: the validator's neutral kind is held to T052's `generator_seam.NEUTRAL_SNAPSHOT_KIND`, and the in-process checks run openDox's own projection over T050's and T051's fixtures.
- **Before #57's branch is deleted at its landing, retarget this PR to `main`.** A `--delete-branch` on #57 would close this PR. Then merge `main` in.

## What it does

- **`src/opendox/contracts/`: the input set (7.1, 7.1b).** It holds the four packaged copies, which are openDox's own spec leg's four: `ideation-workbench`, `opendox-snapshot`, `xfactory-workbench-chat-turn` and `xfactory-workbench-model-catalog`.
  - Each copy is byte for byte openDox-spec's file at `f7ee3c76`, T053 as landed and the spec commit the openDox root pins. That commit carries all four. It has the tree of #16's last head, `cd49eb25`, where the copies were first taken. Its three older files are the blobs of the root's previous spec pin, `8fe8c4c7`.
  - `copies.yaml` is the record: the spec-leg commit, and each copy's path and sha256. A copy is read only after its sha256 is proved against the record. A changed, absent or unpinned copy is refused before a byte of it is parsed (`neutral-product-pin`'s rule for a vendored contract).
  - `gate-intent` and `ideation-possibles-register` are not in the set, and neither are the other four schemas of the family. A record that names any copy other than the four, or leaves one out, is refused (`COPY_IDS`), so no edit to the record lets one in.
  - The record and the four copies ship as package data, under a new `opendox.contracts` key in `pyproject.toml` (below).
- **`src/opendox/validator.py`: the validator, new surface at the code leg (7.2).**
  - It evaluates JSON Schema 2020-12, exactly the keywords the four copies use. `format: date-time` is asserted, as the consumer's validator asserts it.
  - A copy that uses a keyword, format, dialect or reference it does not evaluate is refused when its validator is built, never evaluated with that keyword left out.
  - So is a keyword holding a value of another shape, an embedded resource, a subschema that contains itself, and a reference cycle that never moves into the instance. A malformed copy is refused as unavailable, never a crash (below). An instance whose keys are not text, which YAML allows, is judged and never crashed on, and so is a value of any size or depth.
  - A refusal names its rule: `[<x-rule>] <where>: <detail>`.
  - It implements the neutral snapshot's seven reference rules. A snapshot validator is refused if the contract's catalog and the implemented rules differ.
  - `validators()` answers one validator per wire kind, with the jsonschema-shaped `iter_errors()` that the doxBench seam's readers use, built as openxFactory's `doxbench_contracts` builds its own (T085).
  - Its docstring records why the consumer's script cannot be reused (7.1a), measured at openXdox-code `4610bca5` (below).
- **`tests/test_validator_input_set.py`** is the falsifier (28 cases). **`tests/test_validator.py`** tests the evaluator (185 cases).
  - `tests/fixtures/spec-examples/` is its corpus, openDox-spec's own examples at `cd49eb25`. It holds 13 positives of three kinds (2 `opendox-snapshot`, 5 chat-turn and 6 model-catalog) and the neutral contract's 32 negatives, one per rule. All 45 are verified as the spec leg's exact blobs.
  - **The spec leg's two `ideation-workbench` examples are not carried.** This leg's committed-manifest guard (`workbench.committed_manifests`, held by `tests/test_workbench.py::test_no_workbench_manifest_is_tracked_in_this_repo`) refuses a workbench manifest tracked anywhere but the root's `examples/` and `contracts/schemas/`. CI went red on them at `97b314a` (run `36450791192`), and `69f2040` removes them.
  - The kind is held instead over the manifests openDox's own `workbench.Workbench` writes: one per seed kind, each with every member route, an exclusion, every action and a notebook binding. An override with no recorded reason is refused as `[required]` at its member. The cross-check below still covers the two examples, read from the spec leg's own tree.

No skip is added, since `EXPECT_SKIPPED` is exactly 11. It touches no `openspec/changes/` path, no `conftest.py`, no workflow, no `README.md` and no pin. Its one `pyproject.toml` change is the package-data key, on the holder's decision (below).

## The falsifier

T057's falsifier is *"the packaged-copy digest test and the 7.1b test"*. At `80b5f9e`:

```
tests/test_validator_input_set.py::test_each_packaged_copy_is_the_spec_legs_file_at_the_pinned_commit PASSED [ 50%]
tests/test_validator_input_set.py::test_gate_intent_and_the_possibles_register_are_not_in_the_set PASSED [100%]
============================== 2 passed in 0.16s ===============================
```

Both go red when they should. In a scratch clone of `ca52182` I changed one byte of the neutral copy (byte 10181, `i` to `I`) and planted a `gate-intent` copy beside the four:

```
E           AssertionError: src/opendox/contracts/schemas/opendox-snapshot.schema.yaml is b9f3074a6d7d7670289e2a6d048169550a8571820dd8dba72acf4cd52ee9b72b, and the record pins f9e3e111af1d4bd4c377c933027d81b582ae2b0a395b66f4e4621992454a584a. A copy is never edited in place
E           AssertionError: a copy of gate-intent is carried under src/opendox/contracts/schemas/, which 7.1b refuses: requirement 1 keeps it with openxFactory
FAILED tests/test_validator_input_set.py::test_each_packaged_copy_is_the_spec_legs_file_at_the_pinned_commit
FAILED tests/test_validator_input_set.py::test_gate_intent_and_the_possibles_register_are_not_in_the_set
2 failed in 0.46s
```

The two tests' assertions that went red there are unchanged since. `9d2cda1` adds one assertion to the 7.1b test: `COPY_IDS` names neither schema.

**The digest test holds each copy to the spec-leg commit the openDox root pins.** The test states the root's digests apart from the record, so a copy and its recorded digest cannot move together unseen.

- All four are the digests the root's `contracts/manifest.yaml` records at its spec pin `f7ee3c76` (the root's `main` at `52005213`, opensoft/openDox#14).
- The three older ones are unchanged from the previous spec pin, `8fe8c4c7` (the root's `main` at `663ac683`).

Read with `git show <commit>:contracts/schemas/<file> | sha256sum` in openDox-spec:

| copy | sha256 at `8fe8c4c7`, `cd49eb25` and `f7ee3c76` | the root's manifest at `52005213` |
|---|---|---|
| ideation-workbench | `d30438491119…faafc` | same |
| xfactory-workbench-chat-turn | `350bfedc0269…1dc1d` | same |
| xfactory-workbench-model-catalog | `e563cc9fc6ed…21635` | same |
| opendox-snapshot | absent at `8fe8c4c7`; `f9e3e111af1d…4a584a` at `cd49eb25` and `f7ee3c76` | same |

## The package-data line (on the holder's decision)

7.1 ships the four as **package data**. `pyproject.toml` used to package only `web/**`. On the holder's decision, this PR now carries the new key: openDox-code's phase-1 work has landed, so no phase-1 writer edits `pyproject.toml` any more. It is its own key beside the bundle's line, which `test_gate_loop_contributed` holds verbatim:

```toml
opendox = ["web/**"]
"opendox.contracts" = ["copies.yaml", "schemas/*.schema.yaml"]
```

`test_the_package_data_ships_the_record_and_every_copy` lands with it. It holds the table to the record: the patterns under `opendox.contracts` ship exactly the record and every copy the record pins. At `ca52182`, where the line landed (the test is unchanged since):

- It passes.
- With only the key line removed, it fails (`KeyError: 'opendox.contracts'`).
- With a stray schema planted under `schemas/`, it fails, because the patterns would ship a file the record does not pin.

The test parses `pyproject.toml` and builds no wheel. The install-level evidence is real wheels: each built with `pip wheel . --no-deps` from a clean clone, installed into a separate venv and probed from outside any source tree. The two module digests are the head's own files. The probe's `opendox from:` lines are left out; each showed the run importing from its venv's site-packages.

```
== wheel built from 80b5f9e
opendox/contracts/__init__.py  sha256 5b85edfe427e
opendox/contracts/copies.yaml
opendox/contracts/schemas/ideation-workbench.schema.yaml
opendox/contracts/schemas/opendox-snapshot.schema.yaml
opendox/contracts/schemas/xfactory-workbench-chat-turn.schema.yaml
opendox/contracts/schemas/xfactory-workbench-model-catalog.schema.yaml
opendox/validator.py  sha256 9e6fc2974398
kinds: ['ideation-workbench', 'opendox-snapshot', 'workbench-chat-turn-v2', 'workbench-chat-turn-v2-failure', 'workbench-chat-turn-v2-success', 'workbench-model-catalog']
six-stations: no violation
title negative: ["[title-and-summary-are-text] /documents/2/title: '' is shorter than 1"]
rc=0
```

Compared with a wheel built without the line, it adds exactly those five data files and removes nothing: 106 entries outside `dist-info` become 111, and the 41 `opendox/web/` entries are unchanged. Without the line, an installed validator refused. That was measured at `69f2040`, before the line landed:

```
== wheel without the held line
opendox/contracts/__init__.py  sha256 b264a03b6f5b
opendox/validator.py  sha256 f620194b0b4f
UNAVAILABLE: opendox.contracts has no copies.yaml: the package was built or installed without it (FileNotFoundError)
rc=3
```

Copilot's two findings, at `97b314a` and again at `69f2040`, were this line. Both threads were answered twice, with the held measurement and then with `ca52182`, and both are resolved.

## The fail-closed build (Copilot's findings at `ca52182`, `bc3470b`, `2b32cbf`, `9d2cda1` and `4474514`)

The module promises that a copy it cannot evaluate is refused when its validator is built, as `SchemaNotEvaluable` (a `ValidatorUnavailable`). Copilot's review at `ca52182` found a hole in that promise, in code unchanged since `d89f252a`: `type: {}` made `set(names)` raise `TypeError` during the build. I probed the same class with 40 malformed values. At `ca52182`:

- 5 crashed the build: `type: {}`, `type: [["string"]]`, `format: {}`, `allOf: 5`, and two non-text unknown keys (a mixed sort). A pattern with an unbounded repetition crashed it too (`OverflowError`).
- 30 built. Of those, 20 then crashed on an instance. The other 10 judged instances by a value draft 2020-12 does not allow: `uniqueItems: "yes"` read as true, `maxLength: -1` refused every string, and `maximum: nan` passed everything.
- 5 were refused.

`bc3470b`'s commit message says twenty-three of them built. The probe's count is thirty.

At `80b5f9e` all 40 are refused, and so are these:

- Every evaluated keyword's value is checked against the shape draft 2020-12's metaschema gives it (`_SHAPES`). A test holds `_SHAPES` to `KEYWORDS`, so no evaluated keyword goes unchecked.
- Every reference's target, and the kind's entry, is walked like the document. A reference can reach a node no walk of the subschemas passes, such as one inside an `enum`.
- An embedded resource (`$id` or `$schema` below the root) is refused, since it would move where its references resolve.
- A subschema that contains itself, which a YAML alias can build, is refused where it loops.
- A JSON-pointer index that is not a plain decimal (`-1`, `01`) names nothing. Python's `int()` would read another element.
- **From Copilot's review at `bc3470b`:** a reference cycle that never moves into the instance, such as `$ref: "#"` or two `$defs` that refer to each other, is refused, naming the cycle. jsonschema 4.26.0 recurses on those until Python's limit. A recursive schema that moves into the instance before it recurs, such as a tree whose children are items, is still evaluated. A copy nested deeper than Python's recursion limit is refused too.
- **From Copilot's review at `2b32cbf`:** a JSON-pointer token whose `~` is not `~0` or `~1` makes no pointer (RFC 6901). A `$ref` carrying `%` is refused as a percent-encoded fragment this module does not decode. At `2b32cbf`, `#/$defs/a%20b` read the literal key `a%20b` and passed `5`, where jsonschema decodes it to `a b` and fails `5`. The same review's record finding is under the input set above.
- **From Copilot's review at `9d2cda1`:** the record's key refusal ran `sorted()` over a record's keys, so a key that is not text raised `TypeError`. It now orders keys by their `repr`. An instance fuzz of the same class found worse at evaluation: under `additionalProperties: false`, the report ran `sorted()` over an instance's extra keys, and 115 of 3,000 odd instances crashed a validator. Those keys are ordered by `repr` too. YAML nested past Python's recursion limit escaped the three YAML reads (the record's, `contracts.load()` and `validator_for()`) as `RecursionError`, and each now refuses it.
- **From Copilot's review at `4474514`:** a bound past a float's range, such as a 400-digit YAML integer, crashed the build in `math.isfinite()`, and every int is now finite. A `const` or `enum` that contains itself is refused. On the instance side, equality was judged on nested tuples, which CPython compares recursively, so an instance value 5000 deep crashed its judgement. The canon is now text, built without recursing and compared as text, and it keeps JSON equality. A violation's detail always shows something, and PyYAML's `ValueError` (an integer past 4300 digits, an impossible date) is refused by all three YAML reads.
- `bc3470b`'s review also found that `enum: []` and `required: []` should be refused. Those two findings are not taken. Both are valid 2020-12 schemas. The metaschema gives `enum` no `minItems` and gives `required` `default: []`; the `minItems: 1` was draft-04's. jsonschema treats both as this validator does, and their threads carry the evidence.

The four copies use none of the refused forms: they have no anchors or aliases, no nested `$id` or `$schema`, only integer counts, and references only into `$defs`. All six kinds build as before. Of the 58 new cases through `2b32cbf`, 57 fail against `ca52182`'s validator and pass here. The 58th, the recursive tree, passes on both, as the guard against over-refusing. `9d2cda1`'s four new refusal cases fail against `2b32cbf`'s code, and its escape case passes on both, as the same kind of guard. `4474514`'s four new cases fail against `9d2cda1`'s code. `80b5f9e`'s six new refusal and depth cases fail against `4474514`'s code. Its canon-equality case passes on both, as the guard that JSON equality is unchanged.

## After T049: Copilot at `27bcefc0`, one thread, taken in `bf51a30a`

- **r4136329332: an instance deeper than the walk raised `RecursionError`.** A recursive schema that moves into the instance (a tree whose children are items of the node) recurs once per level of the instance, and the build accepts such a schema. Measured at `27bcefc0` with this module's own tree schema, at the default limit of 1000: 100 levels judged, and 200, 300, 400, 1000 and 5000 levels raised.
- **Now judged, not crashed on.** `KindValidator.iter_errors()` catches the `RecursionError` from the walk, once the walk's frames have unwound, and yields one violation, `[evaluation-depth] <root>: …`. Its rule, `DEPTH_RULE`, is exported. So the instance is never valid, which fails closed.
  - What the walk found before the limit stands, and the reference rules still run.
  - `violations()`, `is_valid()` and `validate()` all go through it.
  - The evaluator stays recursive, because rewriting it on an explicit stack would put the 0-disagreement cross-check at risk. A tree the walk reaches is judged as before.
- **The regression case** is `test_an_instance_deeper_than_the_walk_is_judged_not_crashed_on`.
  - A 50-level tree is valid.
  - A 5000-level one yields exactly the depth violation, at the root.
  - With a node near the top broken, both `("required", "/children/0")` and the depth violation are named.
  - Against `27bcefc0`'s validator the case raises `RecursionError`. A mutant that swallows the error silently fails it too.
- **The whole suite at `bf51a30a`:** `selected=2812 passed=2801 skipped=11`, which is +1. F4.1 reads 19.

## Copilot at `bf51a30a` ("Needs a closer look", no thread): taken in `6b68e32a`

- **"Previously missed": a bound of any size crashed the violation's detail.** `_is_bound()` admits an integer of any size, so a schema with `minimum: 10**5000` builds. But eight details (`minimum`, `maximum`, `minLength`, `maxLength`, `minItems`, `maxItems`, `minProperties`, `maxProperties`) put the bound into the text directly. So validating `0` against that schema raised `ValueError`, Python's 4300-digit limit on int-to-text, while the violation was being written.
  - Reproduced for `minimum`, `maximum` (at `-10**5000`), `minLength`, `minItems` and `minProperties`. The three max counts cannot fire at such a size.
- **Now each bound is shown through `_brief()`**, as the instance's value already was, so a huge one reads `<an int of 16610 bits>`. An ordinary bound reads exactly as before, since `_brief(5)` is `"5"`.
- **The regression case** is `test_a_violations_detail_shows_a_bound_of_any_size`, five cases, which all fail against `bf51a30a`'s validator, plus an ordinary-bound check.
- **CI at `6b68e32a`:** `validate` and SonarCloud are green, with `selected=2817 passed=2806 skipped=11 failures=0 errors=0`, which is +5.

## Copilot at `6b68e32a`: "Needs a closer look", no findings, 0 threads

- The overview's one line reads *"Require `audit_ref` whenever the `provider_retry` object is present."* It is **not taken, on the holder's ruling** (2026-09-29), and answered in [this comment](#58 (comment)). The note opened no thread.
  - `provider_retry` is in `xfactory-workbench-chat-turn.schema.yaml`, one of the four packaged copies. That copy must stay byte for byte the spec leg's file, now the file at `f7ee3c76`. Its sha256 (`350bfedc…`) is the one `copies.yaml` and the root's manifest record. Requiring `audit_ref` in the copy alone would break the falsifier this PR exists for.
  - `audit_ref` is optional by the contract (`required: [retried, at_most_once]`), and `serve_wire.py` writes it only when it has one. Making it required is a contract change for the spec leg and its owner, not for T057.

## After the root step: `e94ab323`

- **T053 landed** as openDox-spec `f7ee3c76`, a squash of #16 whose tree is `cd49eb25`'s (`7b00d19e`). **opensoft/openDox#14 moved the root's spec pin to it.** The root's `spec` gitlink and `contracts/spec-pin.yaml` name `f7ee3c76`, and its `contracts/manifest.yaml` records the four files at that commit, with the four digests above.
- **`e94ab323` moves `copies.yaml`'s `commit` and the falsifier's `SPEC_COMMIT` from `cd49eb25` to `f7ee3c76`, together**, on the holder's word. No digest moves. Each of the four copies is `cmp`-identical to the file at `f7ee3c76`. The comments that say what the root pins now say it, and `tests/test_validator.py`'s corpus note names the landed commit.
- Moving `SPEC_COMMIT` back alone fails 2 of the falsifier's 28 cases, so the two still move together or not at all.
- The whole suite at `e94ab323`: `selected=2817 passed=2806 skipped=11`, unchanged.

## After #57 landed: `1433234`, `cb40b977` and three review rounds

- **`1433234` merges #57's final head `d7954fc6`**, with no conflict. T057's own diff against it is byte-identical to its diff against `8e7da4a2`: 55 files, +6320. **`cb40b977` merges `main` `a691e4e4`**, whose tree is `d7954fc6`'s, so it adds no content.
- **Copilot at `cb40b977`: 2 threads.**
  - r4139739110, taken in `3351f6a7`: YAML builds values JSON has not (sets, bytes, dates, non-text keys, non-finite numbers), and `const`/`enum` were checked only for self-containment. `_first_non_json()` now refuses them at build. `test_a_const_or_enum_that_holds_a_value_json_has_not_is_refused`, 6 cases, red against `cb40b977`.
  - r4139739167, not taken: four documents in the six-stations example carry `water`, so its count of 4 is right, the validator finds no violation there, and the file is byte for byte openDox-spec's at `f7ee3c76`.
- **The T058 writer's measurement (openDox-code#68, r4139734412), taken in `2b8ad245`:** a packaged record or copy that is present but unreadable raised `PermissionError` out of `validator_for()`. Every `OSError` in `_read_package_file` is now a `CopyRefused`, and a missing file keeps its message. `test_a_present_file_that_cannot_be_read_is_refused_not_raised`, over the record and the snapshot copy at mode 000 (skipped as root), red against `3351f6a7`.
- **Copilot at `2b8ad245`: 3 threads.**
  - r4139823704 and r4139823779, taken in `753ffa19`: an instance key of `10**5000` has no decimal text, so a pointer beneath it, and the unexpected-properties report, raised `ValueError`. Pointer parts fall back to `_shown`, and extra keys are ordered and shown item by item (`_brief_items`). `test_an_instance_key_of_any_size_is_named_not_crashed_on`, red against `2b8ad245`.
  - r4139823750, not taken: a tuple key canonicalizes as an opaque value, and `enum` and `uniqueItems` judge it without crashing. `test_a_non_text_key_that_is_not_a_scalar_is_judged_as_itself` guards it.
- **Copilot at `753ffa19`: "Needs a closer look", no findings, 0 threads.** CI is green, with `selected=2850 passed=2839 skipped=11 failures=0 errors=0`.

## 7.1a, measured

The consumer's `scripts/validate-ideation-dashboard-contracts.py`, run at openXdox-code `4610bca5`:

```
== no CONTRACTS_DIR, one openDox snapshot example
ERROR harness failure: .../contracts/schemas carries none of the family's 10 schemas (this tree carries no contracts/ and CONTRACTS_DIR is not set; export it as the spec leg's contracts directory), so nothing can be validated and no mode may report success
rc=2
== CONTRACTS_DIR = openDox-spec's contracts (all four there), the same example
ERROR [kind] .../opendox-snapshot-six-stations.example.yaml: unrecognized document (no known kind, no 'possibles_register' section)
rc=1
```

The docstring's six reasons are: it finds its schemas from its own position; it names ten schemas of three owners; it is the consumer's file; it needs `jsonschema`, `referencing` and `rfc3339-validator`; it knows no `opendox-snapshot`; and it is a subprocess script, where openDox-code has no `scripts/`.

## Verification

- **CI at `80b5f9e`**: `validate` (run `36471401716`) and SonarCloud are green.
- **The whole suite**, locally, as CI runs it (`CI=true`, `LANG=C.UTF-8`, PostgreSQL 16, `-e ".[runtime,test]"`), at the committed head with a clean tree. The base is #57's head, `5a6fe637`: **2578 passed, 11 skipped**. At `80b5f9e` it is **2791 passed, 11 skipped**. At `27bcefc`, after #57's head `8e7da4a2` was merged in, it is **2800 passed, 11 skipped** (`selected=2811`). That is #57's own 2598 plus these 213.
  - The case-by-case junit diff shows **+213 added** (185 and 28), all passed and all in the two new files. It shows **0 removed and 0 changed outcomes**, and the same 11 skips.
  - `--noconftest` passes too (213).
  - CI was red at `97b314a` on one case: the committed-manifest guard, over the two workbench examples then carried (above). My earlier local whole-suite run had passed because it ran before those files were committed, so these runs are at the committed head.
  - `LANG=C.UTF-8` is set because CI's runner sets it. In a shell with no locale, `test_model_provider_broker::test_the_broker_child_inherits_no_credential_shaped_environment` fails at `ca52182` and here alike, because Python's C-locale coercion (PEP 538) puts `LC_CTYPE` in the broker child's environment. That is the shell, not this PR.
- The cross-check, both fuzzes, the scan and the mutation check below all ran on `80b5f9e`'s committed source.
- **Against jsonschema and the spec leg's own evaluator**, over every one of openDox-spec's 86 examples at `cd49eb25`, all kinds, positives and negatives: **0 disagreements**.
  - jsonschema 4.26.0 ran with its format checker, per kind as openxFactory builds its validators.
  - For the neutral kind, the rules found equal the spec leg's `tests/test_opendox_snapshot_contract.py` evaluator's (rule, place) exactly, and equal jsonschema's read through `error.schema`'s `x-rule`.
  - The two examples whose kind is not openDox's raise `UnknownKind`.
- **Mutation fuzz**: 12,000 seeded random edits of the positive examples, compared as (keyword, place) against jsonschema, gave **0 disagreements** beyond one deliberate divergence, met 26 times. `rfc3339-validator` anchors with `$`, so it admits `...Z` followed by a newline, and this validator refuses it. That divergence is documented in `_is_date_time`, and the snapshot contract's own patterns guard the same tail.
- **Instance fuzz**: 6,000 instances over two seeds, each a positive example with an odd value planted somewhere. The values are non-text keys, sets, timestamps, bytes, NaN and infinity, lists 5000 deep, self-containing lists and mappings, and 5000-digit ints. All six validators gave **0 crashes**, where 115 of the first seed's 3,000 crashed at `9d2cda1`.
- **Mutation check**: 77 mutations of the two new modules, each killed by the new tests (77/77), with the sources restored and verified by sha256. One mutant, the cycle search blind to its own trail, loops allocating. The run caps each mutant at 4 GiB, and that one failed there.
- **F4.1's deferred-reach scan**: 19 at the base and 19 here, with the same list. The two new modules reach nothing. With every sibling blocked, the validator imports and validates, and it adds no third-party module beyond PyYAML.

## For the later tasks

- **T058** (the post-render validator in the generate verbs):
  - call `opendox.validator.validate(snapshot, kind=<the generator's declared contract>)`, and print `validator.report(...)` on stderr;
  - `ValidatorUnavailable` is the "could not run" case, which `--strict` makes fatal;
  - T051's fixture reports `[title-and-summary-are-text] /documents/1/title`;
  - `tests/test_neutral_projection.py` should read this packaged copy (`opendox.contracts`) in place of T054's `tests/fixtures/opendox-snapshot.schema.yaml`.
- **T055** (`validate_manifest` for `ideation-workbench`):
  - This validator checks the manifest against its schema. It does not check the old script's two workbench rules (pinned ⊆ checked, the schema's own VALIDATOR RULE comment; `new_candidates` disjoint from members ∪ excluded), nor its committed-manifest guard. So routing `validate_manifest` here drops those rules unless T055 carries them.
  - `test_every_manifest_openDox_own_workbench_writes_validates` holds the manifests `workbench.Workbench` writes to pass here: every seed kind, every member route and every action, with an exclusion and a notebook binding.
- **T085** (doxBench defaults): register `opendox.validator.validators` at `serve_wire.register_doxbench_validators`. The semantic rules of the two wire kinds are still T085's.
- **T061**: nothing from T057 is needed. The consumer's three schemas stay out of this set.
- **The openDox root**:
  - its `contracts/manifest.yaml` says the code leg *"carries no `contracts/` path at all"*, which is no longer true of `src/opendox/contracts/`;
  - nothing at the root holds these copies to its spec pin, so T062's `make pins` could gain that check.

## Before READY (not this PR's act)

1. ~~T049 lands.~~ Done: openxFactory#1204 → `9d2e5bc3`.
2. ~~T053 lands, and its root step moves the openDox root's spec pin. Then `copies.yaml`'s `commit` and the test's `SPEC_COMMIT` move to that commit together.~~ Done: T053 → `f7ee3c76`, opensoft/openDox#14 → `52005213`, and `e94ab323` moves the two together, with no digest moved.
   - The holder's answer (2026-09-29) stood throughout: T057's falsifier says "the spec-leg commit the openDox root pins", so the record moved only once the root pinned T053's landed commit.
3. ~~#57 (T054) lands, with this PR retargeted to `main` first.~~ Done: retargeted, #57 → `a691e4e4`, and `main` merged in as `cb40b977`.

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) <[email protected]>
brettheap added a commit that referenced this pull request Oct 6, 2026
…ELOG draft) (plan 038 T060) (#20)

Lane: openxfactory-4 (openXfactory-4-openDox_extraction)
Arc: neutral-product-standalone-operability

**The `dox-v1.2` cut PR.** This is plan 038's **T060** (`opensoft/openxFactory`, `specs/038-opendox-document-tool-self-maintenance/tasks.md`): *"The openDox root's spec pin and the `dox-v1.2` minor, on Brett's cut word (R2Q22 (a))."* Its spec-leg half landed as `opensoft/openDox-spec#17` (T040, squash-merged `7db9438b`). This PR is the root half. It follows the shape of release 1's `dox-v1.1` cut PR, #14 (`5200521`).

- **Realizes**: 9.5 (part).
- **Falsifier**: the root's `make validate` and `make pins`, quoted; openDox-spec's own `validate`.
- **Ruled**: R2Q22; Brett's cut word, recorded on `#656`. **Decisions**: CF-2 (batch Q item 10's addendum).

The authority:
- **R2Q22 (a).** Brett Heap, 2026-10-05, `opensoft/openXfactory#656` comment `6003486656`: *"Accept all 25 recommended (Recommended)"*. openDox-spec owns three schemas, and the openDox root cuts one more `dox-v1.y` minor.
- **Batch Q's 9.5 addendum** (`opensoft/openXfactory#1248` → `91e961a0`): *"The cut is made on Brett Heap's cut word, as `dox-v1.1`'s was (RULED `5894235642`)."*
- **The plan ruling** (`6013547504`) names the `dox-v1.2` cut as still Brett's word, at the act.

**This PR does not create or push a tag.**

## What moved, in the one lockstep commit

| file | change |
|---|---|
| `spec` (gitlink) | `f7ee3c76` → `7db9438b4cc4446ab4e6ab5b552c220312deccc9` |
| `contracts/spec-pin.yaml` | `commit:` → the same commit; `digests.tree_sha256` `e81f8530…` → `d9f976c5b279b24b80387dad1deb0e8438d95f11ce183540bca93f86a5cd7363`. No `.github/workflows/*.yml` names the spec leg, so there is no third fact to move. |
| `contracts/manifest.yaml` | `contract_bundle_version` `dox-v1.1` → `dox-v1.2`. The four existing rows' `commit:` fields advance with the leg; no `sha256` changes. Three rows are added in `opendox-snapshot`'s form: `opendox-health-finding`, `opendox-health-packs` and `opendox-health-dispositions`, each with `type: release-schema`, `contract_schema_version: 1` and `release_member: false`. |
| `contracts/CHANGELOG.md` | A new `## dox-v1.2` section. The `Status:` header reads `draft` again, and the Unreleased line names the new pins. |

These are the same four paths #14 changed. `contracts/code-pin.yaml` and the `code` gitlink stay at `dede32b4`.

## Verification

From a fresh `--recurse-submodules` clone, at this branch's head `bb4249d5`:

```
$ make validate
python3 scripts/validate-repository-naming.py --project project.yaml
  openDox                          neutral-product/assembly   also_matches project-leg/assembly
  openDox-spec                     project-leg/spec
  openDox-code                     project-leg/code
python3 scripts/validate-manifest.py
manifest ok: openDox (opendox), 3 legs
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 7db9438b4cc4
  ok  spec: tree digest recomputes (d9f976c5b279…)
  ok  code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3
  ok  code: tree digest recomputes (c2672463b4d8…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
make validate rc=0
$ make pins
python3 scripts/validate-pins.py
  ok  spec: gitlink == contracts/spec-pin.yaml commit 7db9438b4cc4
  ok  spec: tree digest recomputes (d9f976c5b279…)
  ok  code: gitlink == contracts/code-pin.yaml commit dede32b4b6f3
  ok  code: tree digest recomputes (c2672463b4d8…)
  ok  contracts/shape-pin.yaml: 10 copied shape file(s) match their digests
pins ok
make pins rc=0
```

**Red first.** With only the `spec` gitlink staged, before the pin file moved, `make pins` refused with exit 2:

```
FINDING pin-gitlink-mismatch: spec: gitlink 7db9438b4cc4446ab4e6ab5b552c220312deccc9 != contracts/spec-pin.yaml commit f7ee3c763b3af4581daf1cd54406e5111e9358e6
```

A mutant of the new digest (`tree_sha256` `d9f976c5…` → `d9f976c6…`) was also refused, with `pin-digest-mismatch` and exit 1. With the digest restored, the run exited 0.

**Every digest was recomputed here, not copied.**
- **The spec leg's `tree_sha256`.** Computed twice at `7db9438b`: with `repo_shape.tree_digest`, and by hand (`git ls-tree -r -z`, sorted, sha256). Both give `d9f976c5…5cd7363`. openDox-spec#17 squash-merged to the same tree (`f143e7dc`) as its branch head `58383189`, where its `validate` ran green.
- **Each row's `sha256`.** Computed over `git show 7db9438b:<path>`, and all seven match the manifest. The four existing digests are unchanged. The seven rows are exactly the seven files under `contracts/schemas/` at the pin, and the CHANGELOG's `dox-v1.2` table equals the manifest's rows.
- **`release_member: false` is a measurement.** None of the three new ids is among the 51 `contract_id` rows of openxFactory's `contracts/hermes-runtime/contract-index.yaml`, read at openxFactory `main` `51456835`.

**openDox-spec's own `validate`.** I ran its CI steps locally at `7db9438b`, with pytest `>=8,<9` and OpenSpec CLI 1.2.0:

```
602 passed, 5 skipped in 2.13s
PYTEST_RC=0
Totals: 4 passed, 0 failed (4 items)
OPENSPEC_RC=0
```

The 5 skipped tests need the optional imports `yaml` and `jsonschema`. The leg's CI install line installs pytest only, so CI skips the same five.

## Why the CHANGELOG's `Status:` header moves to `draft`

The rule is the same as in #14. A bundle is four coordinated values: `contract_bundle_version`, the entries, the annotated tag and the changelog entry. This PR moves three of them. The `dox-v1.2` tag does not exist yet, so the header reads `draft` until it does. `dox-v1.1`'s window paragraph moves into the past tense, as #14 did for `dox-v1.0`'s. `dox-v1.0` and `dox-v1.1` keep their own tags, entries and digests.

One cell is worded differently from #14 because the code leg has changed since then: the code leg's "contract bytes" cell. At `dede32b4`, openDox-code has no top-level `contracts/`. Its `src/opendox/contracts/` does hold plan 034 T057's packaged copies of four spec schemas, recorded at `f7ee3c76`, and the cell says so. Those copies move to this pin later, in T041, T047 and T054.

## What is NOT done

- **No tag.** After this PR lands, the holder asks Brett for the cut word. On his word, the annotated tag `dox-v1.2` goes on the landed commit, and a second PR moves the CHANGELOG header to `standard`, as #15 did for `dox-v1.1`.
- Nothing under `code/` moves, and neither does `contracts/code-pin.yaml`. No workflow changes.
- openDox-code's copy record is not touched. That is T041.

🤖 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) <[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