Skip to content

Propose add-project-repo-schema: the elective three-repo shape, openRepoShape pinned, MedxScribe as evidence - #605

Merged
brettheap merged 6 commits into
mainfrom
change/add-project-repo-schema
Sep 3, 2026
Merged

brettheap merged 6 commits into
mainfrom
change/add-project-repo-schema

Conversation

@brettheap

@brettheap brettheap commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What is proposed

add-project-repo-schema — the full promotion of the staged topic
project-repo-schema, raised on Brett Heap's in-session instruction of
2026-09-02, "start the add-project-repo-schema exit change". That instruction
is admission into the proposal queue, not a ratification; the packet is
Status: draft and the .openspec.yaml origin says so in those words.

The forcing finding. add-wallet-carried-review-authority (ratified
2026-08-23) RECOMMENDS a SPEC/CODE/ASSEMBLY shape at proposal.md:600-617,
rules who elects it — a PA decision, CA-constrained, PM-sequenced — and
rules that "Electing the schema changes no gate, no floor, no grant, and no
clearance eligibility"
. Then it stops. Re-measured at this branch's tip: that
change's own specs/ deltas are exactly two, no project-repo-schema capability
exists under openspec/specs/, and greps for the recommendation resolve only to
that one proposal plus its tasks.md:811-814. A PA who says yes has nothing
to say yes to
, so the delta is ADDED and not MODIFIED.

ADDS project-repo-schema — eleven requirements, 28 scenarios: the shape is
ELECTIVE and CONFERS NOTHING and a one-repository project is reviewed
identically; the ASSEMBLY leg IS the per-project ROOT an engineer clones (Brett
Heap, 2026-09-02, "yes, assembly is per project") and MAY pin shared
review-team code as an OVERLAY; <Project> / <Project>-spec /
<Project>-code, one CamelCase token, suffixes lowercase and hyphenated, topic
xf-project-<id>; the four naming families governed as DATA in the pinned
standard, with a <Domainx><Product> form read as a CLAIM that needs a
DECLARED open<Product> pin
(Brett Heap, 2026-09-02, "Descendant only if it
pins open<Product>"
) — declared role wins otherwise, the manifest records
also_matches, and the check stays OFFLINE; each leg pinned TWICE with the
gitlink, the pin file and every workflow @<sha> moving in ONE commit; the
assembly root's manifest as the SOURCE with a register row DERIVED from it; ONE
bootstrap command that is SCHEMA-NEUTRAL and DEGRADES with the exact line
authority is not wallet-carried in this org; review lanes and wallet authority
as OPT-IN OVERLAYS; the standard living in the PUBLIC Apache-2.0
opensoft/openRepoShape, consumed by FORK and pinned by openxFactory; the
four-way ownership split; and the pre-ratification election rule.

MODIFIES ideation-dashboard — "Project grouping hierarchy", carried
VERBATIM with all five original scenarios retained and six added. The register
gains an optional per-project schema, an optional reference, and an optional
repository_roles list of spec|code|assembly — all additive, repositories
unchanged as the single membership answer, the existing confers-nothing posture
governing the new fields unchanged.

NOT MODIFIED, each checked requirement by requirement rather than assumed:
neutral-product-pin (enumerates no products; the new pin satisfies its first
requirement as written), domain-descendant-boundary, repo-boundary-governance
and shared-contract-ownership. The reading is recorded in design.md § D9.

This NARROWS ratified prose, and says so. "codexFactory may recommend — and
scaffold"
is narrowed in exactly one respect — where the mechanics LIVE —
because a new organisation with no codexFactory cannot be served by a scaffold
that is a directory of an engineering-domain repository. codexFactory keeps the
recommending role in full and keeps its engineering overlay; task 8.4 is
satisfied by overlay-plus-offer.

Every authority question is DEFERRED by name to the sibling staged topic
wallet-carried-work-authority. This packet declares no grant, no clearance and
no gate standing, and the layout confers nothing.

Realized in this PR

Four artifacts land, and they are the only ticked tasks:

  1. docs/project-repo-schema.md — the doctrine, Status: draft, linked from
    the README doc index.
  2. contracts/openreposhape-pin.yaml — openRepoShape at
    deacbdcce4f52af427bcb4edd075fcc992e3dabe, revision_kind: commit, SIXTEEN
    per-file sha256 digests computed from the real bytes at that commit
    plus
    EIGHTEEN pinned_by_commit_only: members. The two lists name all 34 files
    present at the commit, because neutral-product-pin's own scenario calls an
    artifact in neither "an undeclared consumption, not a permitted omission".
  3. scripts/validate-openreposhape-pin.py + .github/workflows/openreposhape-pin-gate.yml
    — standard-library only, fail-closed, six refusal codes, one fixed remediation
    trailer, five ordered checks including a surface-completeness check the
    sibling wallet verifier has no counterpart to
    . No gitlink comparison, because
    openxFactory CITES the standard rather than mounting it.
  4. The register schema delta, its four cross-field validator rules, and 34
    tests.

Pending, named rather than implied

  • The codexFactory engineering overlay (successor change, slice 7).
  • OpsxFactory organisation naming and topic administration (slice 8).
  • Making openreposhape-pin a required check — an operator act, and a check
    is not selectable until a workflow has reported under it once, which is why the
    workflow lands first.
  • Moving docs/project-repo-schema.md to Status: ratified — the convener's
    act.

Realization evidence — and the pilot is TEMPORARY

MedxSoft/MedxScribe is a temporary pilot and not a real project. Brett
Heap, 2026-09-02: "MedxScribe is only a temp pilot project right? it is not a
real project. make sure it noted as pilot to test the openRepoShape"
. It was
scaffolded on 2026-09-02 solely to run opensoft/openRepoShape end to end, is
not a MedxSoft product, is not "the first project", and may be deleted once
this standard is ratified
.

The evidence is the RUN, and the run is recorded in the packet, so it
survives the pilot's deletion: three repositories created (07060d4, 52c96cb,
023a27f), the topic set on all three, the legs mounted, the shape pin written,
the election recorded with the staged fragment as its reference, both legs left
on main at their pins after git clone --recurse-submodules and bootstrap, the
naming / manifest / lockstep-pin validators green, the shape copy pin green, and
authority is not wallet-carried in this org printed verbatim.

The FIRST pilot run found two defects — an org misdetection preferring upstream
over origin, and a descendant-shaped name read as a fact rather than a claim.
Both were fixed upstream the same day (7edd6bb, deacbdc). The pin here is
at deacbdc, the commit carrying both fixes
, so the standard openxFactory
ratifies is the one the pilot proved.

One CI round-trip, and what it caught

The first pytest-suite run went red on three counted-corpus invariants — all
three mine, all three working as designed, and one of them caught a real error in
this proposal's own front matter. Fixed in f40291dd:

  1. The new pin was uncovered. contracts/openreposhape-pin.yaml's commit
    sits under a key the vocabulary already knew (from the wallet pin) at a path no
    member declared — the intended failure shape for a new pin artifact. Declared
    as openreposhape-pin-product-commit, CROSS_REPOSITORY. One member, not
    two:
    the wallet pin needs a second REPO_LOCAL member for its carve_commit;
    this pin has no such value and cannot, because openxFactory authored none of
    openRepoShape's bytes.
  2. Two count ledgers moved, each entry saying why. Pin census 67 → 69 sites
    / 23 → 24 members (two sites, two routes: the promotion manifest and the new
    pin). sequenced_after sweep → 108 co-modified / 21 active / 157
    change ids — up by one, not two, because the earlier writers of the shared
    requirement key are two archived changes already co-modified with each
    other, so nothing flips and the sole sets hold at 49/12.
  3. target_release was wrong, and the drift family said so. It read
    implemented on a measurement that checked the two contract artifacts and never
    checked the validator — and scripts/validate-ideation-dashboard-contracts.py
    is a registered row (contract-v3.0.digests.yaml:1417). Corrected to the next
    additive bundle, unnumbered per the versioning policy, with the additive class
    argued: the validator only gains rules over new optional fields.

Validators

OPENSPEC_TELEMETRY=0 openspec validate add-project-repo-schema --strict
    Change 'add-project-repo-schema' is valid

OPENSPEC_TELEMETRY=0 openspec validate --all --strict
    Totals: 86 passed, 0 failed (86 items)

python3 scripts/doc-health.py --single-repo .        (baseline taken BEFORE the change)
    exit 0 — the ONE new finding is the expected release-inventory-drift on
    scripts/validate-ideation-dashboard-contracts.py, which resolves at the
    next bundle cut and must never be silenced by editing the inventory

python3 scripts/validate-ideation-routing.py
    validate-ideation-routing: 0 error(s), 0 warning(s)

python3 scripts/validate-ideation-dashboard-contracts.py
    validate-ideation-dashboard-contracts: 0 error(s), 0 warning(s)
    (42 valid + 80 negative examples confirmed)

python3 scripts/proposal-support.py . verify add-project-repo-schema
    proposal support verification ok

python3 scripts/validate-openreposhape-pin.py --checkout <clone at deacbdc>
    OK openreposhape-pin verified: opensoft/openRepoShape@deacbdcce4f52af427bcb4edd075fcc992e3dabe
    from checkout …, 16 digest(s) recomputed, 18 member(s) present,
    34 file(s) declared with none undeclared                       (exit 0)

python3 scripts/validate-openreposhape-pin.py --from-gh
    OK … same, via the host API                                     (exit 0)

python3 scripts/validate-openreposhape-pin.py            (no source)
    REFUSE pin-unresolvable                                         (exit 2)

python3 -m pytest tests/openreposhape_pin tests/ideation_dashboard \
        tests/proposal-support tests/conformance-gate tests/ideation_routing \
        -q -m "not postgres"
    202 passed, 2 skipped, 2 subtests passed

python3 -m pytest tests/doc-health tests/sequenced_after tests/openreposhape_pin \
        tests/ideation_dashboard tests/review_lane_pin -q -m "not postgres"
    1679 passed, 1 skipped, 18 subtests passed

Ratification is the convener's

This packet is Status: draft. Nothing in it may be read as having decided that.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

brettheap and others added 4 commits September 2, 2026 21:10
openxFactory ratifies the project repository schema's DOCTRINE and CONSUMES its
mechanics. `contracts/openreposhape-pin.yaml` is the whole of that consumption —
`kind: pinned_contract_manifest` reused unchanged, `revision_kind: commit`,
opensoft/openRepoShape at deacbdcce4f52af427bcb4edd075fcc992e3dabe — and
`scripts/validate-openreposhape-pin.py` is the running code that checks it.

EVERY DIGEST IS COMPUTED FROM THE REAL BYTES at that commit, from a clone
checked out there, never transcribed: sixteen per-file sha256 rows over the
standard's normative surface, plus eighteen `pinned_by_commit_only:` members.
Together they name all 34 files present at the commit, because
`neutral-product-pin`'s own scenario says an artifact in neither list "is an
undeclared consumption, not a permitted omission" — and check 5 of the verifier
asserts exactly that, which is the one failure mode per-file digests cannot see:
they say nothing about a file nobody listed.

TWO DEPARTURES FROM THE SIBLING WALLET VERIFIER, each a fact about the product.
There is no gitlink comparison, because openxFactory CITES this standard rather
than mounting it — nothing here runs out of an openRepoShape checkout, so a
gitlink would put a working-tree obligation on every clone in exchange for
nothing. And it is standard-library only, because the standard it checks insists
on running where nothing can be installed; a verifier needing a package to check
a package-free standard would carry the assumption the standard exists to refuse.

Verified against the real bytes through both resolvers:

  --checkout  OK … 16 digest(s) recomputed, 18 member(s) present,
              34 file(s) declared with none undeclared   (exit 0)
  --from-gh   OK … same                                   (exit 0)
  no source   REFUSE pin-unresolvable                     (exit 2)

The gate reads the commit OUT OF THE PIN rather than hard-coding it: a workflow
holding its own copy of the sha would be the very lockstep defect this whole
capability exists to write down. It is not a required check — making one required
is an operator act, and a check is not selectable until a workflow has reported
under it once, which is why the reporting lands first.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
…nothing

The ratified prose says the register is "where it is recorded" and leaves the
field undesigned. This designs it: an optional per-project `schema`, an optional
`reference` naming the document the election followed, and an optional
`repository_roles` list assigning repositories a `role` of spec|code|assembly.

`repositories` IS UNCHANGED and stays an array of STRINGS. Retyping its items to
`{id, role}` objects was the obvious move and is rejected as consumer-breaking:
`scripts/ideation_dashboard/register.py` and every renderer downstream of the
snapshot read those items as strings, and widening a schema does not widen its
readers. Roles are therefore added BESIDE membership rather than by retyping it,
and `repositories` remains the single membership answer.

THE POSTURE IS RESTATED, IN FOUR PLACES, ON PURPOSE. `schema` and `role` are
exactly the fields a later consumer reads as permission, and the moment a tool
reads `role: spec` as "spec authority lives here" the register has quietly
become a governance boundary — which the ratified doctrine forbids. So the
sentence stands in the capability's first requirement, in the register
requirement's own text, in this schema's description, and in the assembly-root
manifest template. A posture stated once is a posture the second reader does not
meet.

Four rules the shape cannot express, because all four RELATE one field to
another: a role naming a repository the project does not list; the same
repository given a role twice; more than one `role: assembly`, an electing
project having exactly one per-project root; and a `reference` with no `schema`,
which records which document an election nobody declared followed.

None of them is an authority rule. They check that a row is internally coherent;
a consumer deriving a permission is defective however well they pass.

  python3 -m pytest tests/ideation_dashboard/test_project_schema_election.py -q
      13 passed
  python3 scripts/validate-ideation-dashboard-contracts.py
      0 error(s), 0 warning(s) — 42 valid, 80 negative examples confirmed

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
`docs/project-repo-schema.md` is openxFactory's home for what the shape MEANS.
It is deliberately not the home for how it WORKS: the mechanics live in
opensoft/openRepoShape, which this repository pins by commit and digest, because
a directory inside openxFactory cannot be forked into an organisation that has
no openxFactory — the convener's own operating constraint and the whole reason
the standard is a separate product.

What the document carries: the one sentence that governs the rest and the four
places it is restated; the three legs, with the ASSEMBLY leg as the per-project
ROOT an engineer clones (Brett Heap, 2026-09-02, "yes, assembly is per project")
which MAY pin shared review-team code as an overlay, so the ratified sentence
about shared assembly code and this reading both hold; the naming families with
a descendant form read as a CLAIM that needs a declared open<Product> pin (Brett
Heap, 2026-09-02) and the check kept OFFLINE; the double pin and the lockstep
invariant, with the aggregation's own measured defect as the reason it ships as
machinery rather than as a rule somebody remembers; the manifest as SOURCE with a
register row DERIVED from it, which is the only construction under which an
organisation with no register is conformant; the schema-neutral bootstrap and its
verbatim degrade line; overlays that attach to a shape and never the reverse; the
four-way ownership split and the narrowing it states out loud; and the
pre-ratification election rule.

THE NARROWING IS STATED RATHER THAN ASSUMED. "codexFactory may recommend — and
scaffold" is narrowed in exactly one respect, where the mechanics LIVE.
codexFactory keeps the recommending role in full and keeps its engineering
overlay, and task 8.4 of the ratified change is satisfied by overlay-plus-offer.

`Status: draft`. Ratification is the convener's, and the document says so.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
The ratified `add-wallet-carried-review-authority` RECOMMENDS a three-repository
shape, rules who elects it and rules that electing it changes no gate, no floor,
no grant and no clearance eligibility — and then stops. Re-measured at this tip:
that change's own specs/ deltas are exactly two, no `project-repo-schema`
capability exists under openspec/specs/, and greps for the recommendation
resolve only to that one proposal plus its tasks.md:811-814. A PA who says yes
has nothing to say yes to, so the delta is ADDED and not MODIFIED.

ADDS `project-repo-schema`, eleven requirements — the shape is elective and
confers nothing; the ASSEMBLY leg IS the per-project root and may pin shared
assembly code as an overlay; the leg naming and the topic; the four families as
pinned DATA with a descendant form read as a CLAIM needing a declared pin; the
double pin and its one-commit lockstep; the manifest as SOURCE with a register
row DERIVED; the schema-neutral bootstrap and its verbatim degrade line;
overlays that attach to a shape and never the reverse; the standard's home,
consumption by fork and openxFactory's pin; the four-way ownership split and the
narrowing it states; and the pre-ratification election rule.

MODIFIES `ideation-dashboard`'s "Project grouping hierarchy", carried verbatim
with every original scenario retained. No ACTIVE change writes that requirement,
so no `Modified over` marker is owed and no archive ordering is raised — checked
rather than assumed.

FOUR CAPABILITIES WERE READ REQUIREMENT BY REQUIREMENT AND NONE IS MODIFIED, and
design.md D9 records the reading because "we checked" is only a claim if it names
what was checked. neutral-product-pin enumerates no products and the new pin
satisfies it as written — a general rule absorbing a new instance without
amendment is the rule working.

FULL PROMOTION: the fragment moves to supporting-docs/ with its history, its row
AND its detail section leave staging/INDEX.md, and the pointer goes into
ideation/README.md's promoted list.

`Status: draft`. The convener's "start the add-project-repo-schema exit change"
is admission into the proposal queue, and the .openspec.yaml origin says so in
those words. RATIFICATION IS THE CONVENER'S and nothing here anticipates it.
MedxScribe is cited as realization evidence and is recorded throughout as a
TEMPORARY PILOT that exists only to test openRepoShape — not a real project — so
the evidence is the RECORDED RUN and survives the pilot's deletion.

  OPENSPEC_TELEMETRY=0 openspec validate add-project-repo-schema --strict
      Change 'add-project-repo-schema' is valid
  OPENSPEC_TELEMETRY=0 openspec validate --all --strict
      Totals: 86 passed, 0 failed (86 items)
  python3 scripts/proposal-support.py . verify add-project-repo-schema
      proposal support verification ok
  python3 scripts/doc-health.py --single-repo .
      exit 0, zero new findings in any family against the pre-change baseline
  python3 scripts/validate-ideation-routing.py
      0 error(s), 0 warning(s)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
Copilot AI lite review requested due to automatic review settings September 3, 2026 01:12

@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.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

The ADDED delta carries 28 scenarios, not 31; the rulings recorded in design.md
are the convener's rather than a count that disagrees with the proposal's table
of seven; and task 2.5's pointer to the pilot framing names slice 6, where the
realization evidence actually lives, rather than slice 5.

Small, and worth its own commit rather than a quiet amend: a task list whose
numbers do not match the artifacts is the same class of defect as a pin whose
digest does not match the bytes, and this packet spends several hundred lines
arguing that class matters.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

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.

🟡 Changes recommended

There is at least one correctness/robustness issue in the new project-register election validator logic plus a verified proposal text mismatch that should be corrected.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR proposes and realizes the openxFactory-side artifacts for the draft OpenSpec change add-project-repo-schema, introducing an elective three-repository project layout doctrine and pinning/verifying the external opensoft/openRepoShape mechanics that implement it.

Changes:

  • Adds the draft doctrine document (docs/project-repo-schema.md) and indexes it from README.
  • Introduces an openRepoShape pin (contracts/openreposhape-pin.yaml), a standard-library verifier (scripts/validate-openreposhape-pin.py), CI gate workflow, and a dedicated test suite for verifier behavior/ordering.
  • Extends the project register schema and validator with optional schema-election fields (schema, reference, repository_roles) plus targeted tests.
File summaries
File Description
tests/openreposhape_pin/test_pin_verifier.py Adds hermetic tests covering verifier refusal codes and check ordering.
tests/ideation_dashboard/test_project_schema_election.py Adds tests for new optional project-register election fields and cross-field rules.
scripts/validate-openreposhape-pin.py Implements pin verification for opensoft/openRepoShape from checkout or GitHub API, fail-closed.
scripts/validate-ideation-dashboard-contracts.py Adds check_project_schema_election() and wires it into project-register validation.
README.md Links the new doctrine doc and adds the change to the “Active changes” index.
openspec/changes/add-project-repo-schema/tasks.md Adds the change task ledger and marks realized artifacts as completed.
openspec/changes/add-project-repo-schema/supporting-docs/source-snapshots/project-repo-schema.md Stores a promoted snapshot of the staged fragment for provenance.
openspec/changes/add-project-repo-schema/supporting-docs/project-repo-schema.md Stores the promoted staged fragment in supporting-docs with updated header.
openspec/changes/add-project-repo-schema/supporting-docs/manifest.yaml Adds supporting-docs manifest for deterministic packaging/verification.
openspec/changes/add-project-repo-schema/specs/project-repo-schema/spec.md Adds the new capability spec (requirements + scenarios) for the schema doctrine.
openspec/changes/add-project-repo-schema/specs/ideation-dashboard/spec.md Modifies ideation-dashboard spec text to include the new optional election fields.
openspec/changes/add-project-repo-schema/proposal.md Adds the draft proposal packet describing rationale, scope, and realized artifacts.
openspec/changes/add-project-repo-schema/design.md Adds the design decision record supporting the change’s key choices and rulings.
openspec/changes/add-project-repo-schema/.openspec.yaml Declares proposal origin metadata, staged provenance, and approval record.
ideation/staging/INDEX.md Removes the staged topic row/detail section now that it’s promoted into a change.
ideation/README.md Adds a pointer under “Active proposals promoted from staging”.
docs/project-repo-schema.md Adds the doctrine “Project Repository Schema” standard document (draft).
contracts/schemas/project-register.schema.yaml Extends schema with optional schema/reference/repository_roles while keeping repositories[] as strings.
contracts/openreposhape-pin.yaml Adds the content-addressed pin for opensoft/openRepoShape commit + digests + surface completeness.
.github/workflows/openreposhape-pin-gate.yml Adds a PR workflow that checks out openRepoShape at the pinned commit and runs the verifier.
Review details
  • Files reviewed: 19/20 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 on lines +761 to +763
pid = p.get("id")
members = {r for r in (p.get("repositories") or []) if isinstance(r, str)}

@@ -0,0 +1,243 @@
---
code_surface: openxFactory — FIVE artifacts, all NEW or ADDITIVE, and four of them land in this pull request. (1) `docs/project-repo-schema.md`, the ratifying home of the doctrine (`Status: draft` now; `ratified` when this packet is). (2) `contracts/openreposhape-pin.yaml`, openxFactory's consumption of `opensoft/openRepoShape` at commit `deacbdcce4f52af427bcb4edd075fcc992e3dabe`, in the `neutral-product-pin` shape and the `kind: pinned_contract_manifest` grammar reused unchanged. (3) `scripts/validate-openreposhape-pin.py`, the running code that checks that claim — standard library only, fail-closed, five named refusal codes and one fixed remediation trailer — wired into a new `.github/workflows/openreposhape-pin-gate.yml` on the `openxwallet-consumer-gate.yml` pattern. (4) `contracts/schemas/project-register.schema.yaml` gains an optional per-project `schema`/`reference` election and an optional `repository_roles` list, with the cross-field rules in `scripts/validate-ideation-dashboard-contracts.py` and tests in `tests/ideation-dashboard/` and `tests/openreposhape_pin/`. (5) NOT in this pull request and not owed by it: the codexFactory ENGINEERING OVERLAY and the OpsxFactory org-naming/topic administration, each a successor change in its own repository. The standard's own mechanics are NOT openxFactory's code surface at all — they live in `opensoft/openRepoShape`, which openxFactory consumes and does not author.
Copilot AI review requested due to automatic review settings September 3, 2026 01:17

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.

🔵 Needs a closer look

There are a couple of verified internal documentation inconsistencies in new/changed code comments/docstrings that should be corrected before merge to keep the verifier/validator behavior accurately described.

Review details

Suppressed comments (2)

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

scripts/validate-openreposhape-pin.py:100

  • The comment above REFUSAL_CODES says “the five describe a SOURCE…”, but REFUSAL_CODES contains 6 codes and several of them are about pin shape/environment, not only “SOURCE disagrees”. This makes the inline documentation inconsistent with the actual refusal vocabulary.
    tests/ideation_dashboard/test_project_schema_election.py:8
  • This module docstring says the RELATION half is “four rules the shape cannot express”, but the tests and the validator also assert fail-closed handling for malformed repository_roles (e.g., not-a-list). Updating the docstring avoids readers missing that additional behavior.
  • Files reviewed: 19/20 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

…rget_release

CI caught three things this branch owed and I had not paid. All three are the
corpus's counted invariants working exactly as designed — they are meant to go
red when a change moves them, so the mover states WHY — and one of them caught a
real error in the proposal's own front matter.

1. THE NEW PIN WAS UNCOVERED. `contracts/openreposhape-pin.yaml`'s `commit` sat
   under a key `PIN_KEY_VOCABULARY` already knew (from the wallet pin) at a path
   no member declared, so the scanner FOUND it and nothing covered it — the
   intended failure shape for a new pin artifact. Declared as
   `openreposhape-pin-product-commit`, CROSS_REPOSITORY: `deacbdc` is a commit
   in another repository and can never resolve against this one's `main`.
   ONE member, not two, and the asymmetry with the wallet pin is the point —
   that file needed a second, REPO_LOCAL member for its `carve_commit`, the
   openxFactory commit the wallet bytes were carved out of here. This pin has no
   such value and cannot: openxFactory authored none of openRepoShape's bytes.

2. TWO COUNT LEDGERS MOVED, and each entry says why rather than just what.
   The pin census goes 67 -> 69 sites and 23 -> 24 members: TWO sites from one
   change, by the two routes the census distinguishes — the promotion's
   `supporting-docs/manifest.yaml` `source_revision`, and the new pin. The
   `sequenced_after` sweep goes 108 co-modified / 21 active / 157 change ids.
   IT RISES BY ONE AND NOT BY TWO, and that is the whole content of the new
   ledger entry: PR #560 rose by two because the earlier writer of its keys was
   SOLE and flipped. The earlier writers here are two ARCHIVED changes that
   already shared the key with each other, so nothing flips and the sole sets
   hold at 49/12. A rise of two always comes with a sole set falling; a rise of
   one never does — which makes the two readings a check on each other.

3. `target_release` WAS WRONG, and the drift family is what said so. It read
   `implemented` on a measurement that checked the two CONTRACT artifacts and
   never checked the VALIDATOR.
   `scripts/validate-ideation-dashboard-contracts.py` IS a registered row
   (`contract-v3.0.digests.yaml:1417`), so a registered artifact does move and
   this change owes the next additive bundle. Corrected, unnumbered, with the
   ADDITIVE class argued: the validator only GAINS rules over new OPTIONAL
   fields. Until that cut, `release-inventory-drift` reporting it is the
   EXPECTED between-cuts state its own action string describes, and hand-editing
   the inventory to silence it is what that string forbids.

  python3 -m pytest tests/doc-health tests/sequenced_after tests/openreposhape_pin \
      tests/ideation_dashboard tests/review_lane_pin -q -m "not postgres"
      1679 passed, 1 skipped, 18 subtests passed
  OPENSPEC_TELEMETRY=0 openspec validate --all --strict   86 passed, 0 failed
  scripts/doc-health.py --single-repo .                   exit 0; the one new
      finding is the expected release-inventory-drift on the validator above
  scripts/validate-ideation-routing.py                    0 error(s), 0 warning(s)
  scripts/proposal-support.py . verify                    ok

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ
Copilot AI review requested due to automatic review settings September 3, 2026 01:51

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.

🔵 Needs a closer look

The new verifier includes a host-absolute path in its remediation text and can incorrectly verify green against a dirty --checkout for pinned_by_commit_only members.

Review details

Suppressed comments (2)

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

scripts/validate-openreposhape-pin.py:514

  • Check 4 treats pinned_by_commit_only members as identity-safe “because the revision is pinned”, but with --checkout the verifier reads from the working tree and does not currently reject local modifications to these path-only files, so a dirty checkout can incorrectly verify green for those members.
    scripts/validate-openreposhape-pin.py:86
  • The remediation string hard-codes /tmp/ors (a host-absolute path), but the repository constitution forbids committed host-absolute paths; use a repo-relative/example relative directory name instead so the message is portable.
  • Files reviewed: 22/23 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap merged commit 642ac14 into main Sep 3, 2026
6 checks passed
brettheap added a commit that referenced this pull request Sep 3, 2026
brettheap added a commit that referenced this pull request Sep 3, 2026
…oes not archive (#606)

RATIFIED 2026-09-02 by Brett Heap, the convener, in the working session,
verbatim "ratify it", read on the packet as it landed on main at squash
`642ac147` (#605) with five checks green (merge-master-approval,
openreposhape-pin, wallet-validation, pytest-suite,
signed-execution-chain-gate).

The origin pair and the ratification are TWO acts and the record keeps them
apart. `.openspec.yaml`'s `approved_by`/`approved_on` carry his earlier
instruction "start the add-project-repo-schema exit change" — permission to
AUTHOR, and the packet says so in as many words: "ADMISSION INTO THE PROPOSAL
QUEUE AND NOT A RATIFICATION OF CONTENT". `Status:` therefore stayed `draft`
through the proposing pull request and moves only here.

What moves:

- `proposal.md` — `Status: ratified` in BOTH the front matter and the body
  header, and exactly ONE `Ratified:` citation line, the record-citing spelling
  `document-lifecycle` reserves for a document with no approving change other
  than itself to name. The now-false clause "this packet carries no
  ratification citation and none is owed" is amended rather than deleted, so
  the record still says what was true when the origin instruction was given.
  § Ratification is rewritten to record the act, the separation of the two
  acts, and the archive decision.
- `review/ratification-2026-09-02.md` — the record `tasks.md` 9.1 asks for, on
  the `add-cpc-clearing-boundary` / `add-signed-execution-chain` form: what is
  ratified, what ratification does NOT do, the evidence table, and the archive
  decision with its quoted rule.
- `docs/project-repo-schema.md` — `Status: ratified` + `Ratified by:
  add-project-repo-schema`, the PRIMARY spelling (an approving change exists to
  name), replacing `Proposed by:` rather than sitting beside it. `standard` is
  NOT claimed: that needs a promoted spec.
- `tasks.md` — 3.3 and 9.1 ticked with the date and their evidence; 9.2, 9.3
  and 9.4 marked STILL OPEN with 9.3 named as the archive blocker.
- `README.md` (doc index + OpenSpec Records) and `ideation/README.md` — the
  status annotations follow.

ARCHIVE DECISION: DO NOT ARCHIVE. `release-realization` § Realization archive
gate — "A change with a non-empty code surface SHALL NOT archive until
realization evidence exists: its code merged on the implemented target through
the owning domain's engineering gates, and — where the surface is runnable — a
green run of that surface. … Until then the change remains active as
approved-but-unrealized intent, preserving the invariant that promoted specs
describe what the code does."

Merged: yes (#605, `642ac147`). Green run: yes — `openreposhape-pin` green on
that PR, `validate-openreposhape-pin.py --from-gh` green against the real
opensoft/openRepoShape bytes at `deacbdc`, 21 + 13 tests green, the register
validator 0/0 over 42 valid and 80 negative examples, and the MedxSoft/MedxScribe
run RECORDED (and deletion-proof: the evidence is the run, not the repositories).
Not met: `target_release` names the next additive contract bundle after
`contract-v3.0` and that bundle is NOT cut. The repository's own check says so —
doc-health reports `release-inventory-drift` at ERROR on
`scripts/validate-ideation-dashboard-contracts.py`, "bytes differ from the digest
'contract-v3.0' records", action "cut a release through the bundle realization
order". `tasks.md` 9.3 owns that cut, is UNTICKED, and is this packet's own act
rather than a deferral by design — unlike 4.6 (an operator ruleset act), 6.2
(the convener's option) and 7.x/8.x (successor changes in codexFactory and
OpsxFactory), each of which names its owner elsewhere. 9.2 and 9.4 are the
remaining archive preflight.

Precedent, and recent: `add-signed-execution-chain` was ratified 2026-08-29 and
archived only on 2026-08-31, after task 4.7 took the `contract-v2.5` cut;
`add-binding-consumer-identity`'s own ratified text says the change "stays
ACTIVE until merged code, green evidence and the contract cut exist, per
release-realization". `docs/document-lifecycle.md` reads the same sequence:
`proposed -> ratified -> implemented`, and only `implemented -> promoted` is
the archive.

Validation at this head: `openspec validate --all --strict` 86 passed, 0 failed;
doc-health single-repo 6 critical, 6 error, 29 warning, 14 info — IDENTICAL to
the pre-edit baseline, zero new findings, the only delta being the draft-age
sample dropping 74 -> 73 as the doctrine doc leaves `draft`;
`validate-ideation-routing.py` 0 error(s), 0 warning(s); `proposal-support.py
verify add-project-repo-schema` ok; pytest over openreposhape_pin,
ideation_dashboard and proposal-support 131 passed; pytest over sequenced_after
and doc-health 1529 passed.


Claude-Session: https://claude.ai/code/session_01HGKwdQsmvRZx4fGQESdFGZ

Co-authored-by: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 3, 2026
…tHub skipped, and re-measure the sweep pin over the merged corpus

The push of the ratification commit produced check suites for
`merge-master-approval` (a `pull_request_target` workflow) and Copilot ONLY:
no run was created for `pytest-suite`, `signed-execution-chain-gate` or
`wallet-validation`, and `mergeable` read UNKNOWN. GitHub skips `pull_request`
workflows when it cannot build the PR's test-merge commit, so the missing runs
were a symptom and the unbuildable merge was the cause. THIS MERGE IS THE FIX
AND NOT A FEATURE CHANGE: it takes `origin/main` at `ee294f9f` into the branch
so the test-merge commit exists again and the three skipped workflows have
something to run on.

TWO FILES CONFLICTED, both of them files `add-project-repo-schema` (#605/#606)
also touched:

README.md — the "OpenSpec Records" block, where each side appended its own
entry at the head of the active list. BOTH ARE KEPT, in date order: this
change's 2026-09-03 entry, then `add-project-repo-schema`'s 2026-09-02 entry,
then `add-cpc-clearing-boundary`'s. Nothing else in the block moved.

tests/sequenced_after/test_sweep.py — the live sweep pin, which both branches
moved because both added an ACTIVE change. THE PINS ARE RE-MEASURED OVER THE
MERGED TREE, per this test's own maintenance rule, and never carried over from
either side: `python3 scripts/validate-sequenced-after.py . --sweep` reads
`34 active + 124 archived` = 158 change ids, 108 co-modified, 50 sole
modifiers, 21 / 13 active co-modified/sole.

THE TWO PACKETS MOVE DISJOINT PINS, which is why exactly one assertion changes
here. `add-project-repo-schema` carries a `## MODIFIED Requirements` block, so
it moves the CO-modified readings alone (`co_modified` 107 -> 108,
`active_co_modified` 20 -> 21) and leaves the sole readings untouched.
`update-standards-body-current-publications` is ADDED-only over a NEW
capability with novel requirement titles, so it moves the SOLE readings alone
(`sole_modifiers - 1` 48 -> 49, `active_sole - 1` 11 -> 12) and leaves the
co-modified readings untouched. Git's own auto-merge therefore landed four of
the five pins correctly, each side's move being the only edit to its line.
Only `change_ids` is moved by BOTH -- one more active change each -- so only it
compounds: `assert sweep.change_ids - 1 == 156` becomes `== 157`. No pin here
is the net of two OPPOSED moves, unlike the 2026-09-02 `active_co_modified`
reconciliation this log already records.

MEASURED ON ALL THREE TREES AND BY EXCLUSION, not inferred from the arithmetic.
`origin/main` at `ee294f9f` reads 157 / 108 / 49, 21 / 12; this branch at
`1d9ae04c` reads 157 / 107 / 50, 20 / 13. Dropping `add-project-repo-schema`
from the MERGED corpus reproduces this branch's own reading exactly, and
dropping `update-standards-body-current-publications` reproduces main's
exactly -- so the whole movement is those two packets' contribution and no
third change moved in the window. A dated MOVEMENT LOG entry records it, and
`main`'s own entry is kept verbatim with this branch's re-labelled as the
SIBLING reading it is: both are taken from the merge-base `c0270d28`, neither
is a step after the other.

The README entry's own bookkeeping sentence is corrected in the same commit for
the same reason. It still carried the pin's FIRST derivation (`change_ids - 1`
154 -> 155 with `co_modified` 105), which the branch's later catch-up merge with
#560 had already superseded in the test but not in the prose; it now states the
measured merged reading and says which of the two packets moves which pin.

`ideation/README.md` merged clean -- this branch never touched it -- and is
byte-identical to `origin/main`.

The ratification edits are untouched: `Status: ratified` plus the single
`Ratified:` line in `proposal.md` (grep for `^(Ratified by:|Ratified:)` still
prints exactly 1), `tasks.md` 5.4, and the `.openspec.yaml` `approved_by`
record.

Validated on the merged tree: `openspec validate
update-standards-body-current-publications --strict` valid; `openspec validate
--all --strict` 87 passed, 0 failed; `pytest tests/test_standards_body_registry.py
tests/sequenced_after` 135 passed; `scripts/validate-omnigent-contracts.py` all
checks passed.

Lane: openxfactory-f2
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BMMXGREN4rQDUsUYgwRiXm
brettheap added a commit that referenced this pull request Sep 3, 2026
…ived pre-capture (86/86), the sibling citation put in the future tense, the STANDING clause and the archive→ratification trigger named in the delta, and Copilot's two findings taken

The governance substance of c39d29b is unchanged and is not re-litigated here.
This commit repairs the EVIDENTIARY layer, which had defects that would have
been captured at merge if left. CAPTURE IS MERGE: `record-immutability` forbids
editing a `Status: record` document AFTER capture, nothing is merged yet, so
editing the two records on the branch is lawful — and saying plainly what was
edited, and why, is the price of doing it.

THE REBASE RESET RECORD-IMMUTABILITY'S BASELINE, AND THE HONEST STATEMENT IS
THAT THE RECORDS WERE RE-DERIVED PRE-CAPTURE. #607's closing comment and this
PR's body said the record was "captured exactly once, with the numbers it was
measured at". That is false: `git diff edae4c6 c39d29b -- .../review/` is 22
changed lines (15 insertions, 7 deletions), the corpus-pin readings re-derived
after the rebase onto main at 642ac14. The claim is struck from the PR body, a
correcting comment is posted on #607, and both records now say CAPTURED AT
MERGE and list what changed and why. The full list is
`review/verification-2026-09-03.md` § 9, which is new.

THE NUMBERS. `openspec validate --all --strict` reads 86, not the 85 the
records carried: `add-project-repo-schema` (PR #605) landed mid-flight and
promoted one more item into the count. Corrected at
`verification-2026-09-03.md` § 2 and in `ratification-2026-09-03.md`'s Ratified
baseline line. The `Captured:` header named the pre-rebase branch
`ratify/create-medxchart-overlay-boundary`; it now names
`change/ratify-create-medxchart-overlay-boundary` and states that the numbers
were re-derived on the rebased tree at c39d29b and corrected pre-capture here.

THE HOST-ABSOLUTE-PATH SWEEP WAS FALSIFIED BY THE FILE IT WAS WRITTEN INTO.
§ 5 printed `(no matches)` for `git grep -n '/home/' -- <the packet>`, but the
record itself quotes the pattern, so the command matches its own two command
lines. Re-run as `git grep -n '/home/' -- <the packet> ':!*/review/*'` with the
exit status shown (`1`, no output), and the exclusion is explained rather than
hidden: once the record exists the unexcluded form can never return nothing.
The governed artifacts carry no host-absolute path. This is Copilot round 1,
finding 1 — taken.

TASK 1.1's NOTE CONTRADICTED THE PACKET'S OWN § 8. It said the landing commits
"carry only the paths this packet names"; § 8 discloses that bed2a69 also moved
the `openxFactory` and `xFactories/MedxFactory` gitlinks. The note now reads
"…plus two ordinary submodule pin-syncs, disclosed at
review/verification-2026-09-03.md § 8", with the correction appended as a
second dated note rather than by editing a closed task. Copilot round 1,
finding 2 — taken.

THE SIBLING CITATION IS AN OBLIGATION, NOT A FACT, AND IS NOW WRITTEN AS ONE.
Four places said `create-medxpractice-overlay-boundary` "cites this delta". At
this head no sibling pull request has merged and that packet carries zero
references to it. All four now read that the sibling carries none of its own
and its ratification packet IS TO CITE this delta: the delta's preamble, README
§ OpenSpec Records, `tasks.md` 5.5, and `ratification-2026-09-03.md` § 7. The
sibling is being authored stacked on this branch and will carry it.

THE DELTA. The requirement's first sentence retained "whose STANDING differs
and SHALL be stated rather than blended" while both placements are now
RATIFIED; it reads "each with a stated standing and a stated ratifying act",
which keeps the obligation to STATE standing and drops the claim that the two
differ. The replaced sentence is added VERBATIM to the `Removed from canon by`
marker as a fourth named unit, so canon's own text is declared rather than
dropped — verified: the marker parses, names four units, suppresses all four,
and leaves ZERO missing units and ZERO marker defects. The marker also now
NAMES THE SUBSTITUTION it was performing silently: "the trigger canon set at
ARCHIVE is moved to RATIFICATION on the ruling of 2026-09-03; archive still
waits on tasks §5". And the "draft establishing act archives" scenario, which
promoted as a self-referential tautology, is reworded to a live obligation —
the promoted requirement carries this block, AND `tasks.md` § 5's realization
evidence exists, because that evidence is what opens the archive gate.

EVIDENCE HYGIENE. § 8's two console blocks were reformatted several files to a
line and ran `git show --stat bed2a69` and `git -C xFactories/MedxChart log`
without naming the aggregation they address; both are re-read through the
GitHub API, verbatim and runnable from any checkout, and every command in the
record was executed off the page and its output compared before capture. § 4's
`.gitmodules` read printed two submodule entries under a command that returns
thirteen; it now carries the grep that makes two the whole of its output.
`tasks.md` § 6.1 was a NEW checkbox authored already ticked — an agent
certifying its own act — and is now a plain report carrying no box. `design.md`
inserts " / " for the subject/body break of 386e7ee2's message; it is marked as
`[subject] / [body]`. Line-number pointers inside the ratification record were
re-derived to match the moved files.

THE COMMIT MESSAGE OF c39d29b IS SUPERSEDED BY THIS ONE. It carries the
pre-rebase block: `--all --strict 85/85` and doc-health 6 critical, 5 error,
29 warning, 13 info. Both are stale, and it cannot be amended — force-pushing
is forbidden here (GH013) — so it stands in history unedited and is corrected
here, in the PR body, and at `verification-2026-09-03.md` § 9 rather than by
rewriting it.

STANDING RACE, disclosed and not acted on: openxFactory #599 carries a
`## MODIFIED Requirements` block. If it merges before this PR the live corpus
pin in `tests/sequenced_after/test_sweep.py` moves again and this branch's
readings re-break. Nothing is done about it here; the merge order is the
convener's.

Validation, measured on this commit's tree:
  openspec validate create-medxchart-overlay-boundary --strict
    -> Change 'create-medxchart-overlay-boundary' is valid
  openspec validate --all --strict
    -> Totals: 86 passed, 0 failed (86 items)
  scripts/validate-sequenced-after.py . --sweep
    -> 157 change ids / 109 co-modified / 48 sole / 22 active co-modified /
       11 active sole  (UNCHANGED from c39d29b)
  scripts/doc-health.py --single-repo .
    -> Findings: 6 critical, 6 error, 29 warning, 14 info. New regressions: 0.
       Finding lines BYTE-IDENTICAL to the c39d29b baseline; ZERO findings
       name this change.
  pytest tests/sequenced_after -q  -> 118 passed

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_012RQo21NbWtnTVsb6JU67at
Lane: openxfactory-max001
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