Skip to content

Register the sibling consumption pin R1 actually reaches, and record the measured non-reach for the other - #1026

Merged
brettheap merged 5 commits into
mainfrom
fix/register-sibling-consumption-pins
Sep 13, 2026
Merged

brettheap merged 5 commits into
mainfrom
fix/register-sibling-consumption-pins

Conversation

@brettheap

@brettheap brettheap commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

What issue #775 actually asked for

Issue #775's own text warns against the reading this PR's title summary
might suggest: "WHY THIS IS NOT SIMPLY 'ADD TWO MORE ROWS'." neutral-product-pin's
promoted requirement ("A consumption pin that another repository reads is a
PUBLISHED contract member") obliges registration "wherever any repository
other than openxFactory is expected to read it"
— a predicate the issue
says is per pin and unmeasured, not a foregone conclusion for both
contracts/openxwallet-pin.yaml and contracts/openreposhape-pin.yaml.

This PR measures both, and they answer differently.

The measurement

contracts/openxwallet-pin.yaml — R1's predicate HOLDS

The xFactory aggregation repository (opensoft/xFactory) carries openXwallet
as a root-level submodule alongside its openxFactory submodule.
neutral-product-pin's "consuming repository's pin is authoritative among
reachable checkouts" requirement obliges those two gitlinks to agree
(root-equals-nested). openxFactory's own tree cannot see the aggregation's
root gitlink, so the check runs the other way:

  • openxFactory's scripts/verify-openxwallet-pin.py carries a
    verify_aggregation() function and a --aggregation-root PATH CLI flag
    (design D11, split-openxwallet-repo task 9.4) — already realized, not
    planned.
  • It is invoked as the "Verify openXwallet root-gitlink parity" step of
    the prepare job in the REUSABLE workflow
    .github/workflows/doc-health-reusable.yml, which this repository
    publishes.
  • opensoft/xFactory's own .github/workflows/doc-health-nightly.yml is the
    actual caller (uses: opensoft/openxFactory/.github/workflows/doc-health-reusable.yml@main
    — confirmed by reading that file directly via the GitHub API).
  • tests/openxwallet_pin/test_aggregation_lane_wiring.py (already on main)
    pins that exact command, job and ordering in the REQUIRED pytest-suite
    job — this is not a proposal, it is already running.

This is unambiguously "another repository reads contracts/openxwallet-pin.yaml"
in the sense R1 means. Registered — one type: pin row in
contracts/manifest.yaml, one index row in contracts/README.md.

contracts/openreposhape-pin.yaml — R1's predicate does NOT hold

  • The pin's own header already states openxFactory CITES, never MOUNTS
    the standard — no gitlink, no submodule_path: at all, so there is nothing
    for another checkout to compare against the way openxwallet-pin.yaml is
    compared.
  • The ratified project-repo-schema requirement "The standard lives in
    opensoft/openRepoShape, is consumed by fork, and openxFactory pins it by
    commit and digest"
    states in its own scenario that an organisation electing
    the schema "depends on no artifact of this family at run time" — every
    adopter forks opensoft/openRepoShape directly. Confirmed live: an org-wide
    GitHub code search turns up exactly one other pin of this product,
    opensoft/openRepoTools' own contracts/openreposhape-pin.yaml, whose
    header states explicitly it is an independent consumer, "NOT COMPARED
    TO ANYTHING UPSTREAM" (openxFactory's included).
  • openreposhape-pin-gate.yml triggers on pull_request only (no
    workflow_call), is explicitly NOT a required check, and is invoked by
    no other repository.
  • scripts/validate-openreposhape-pin.py has no aggregation-comparison
    mode analogous to its sibling's verify_aggregation() — grepped for
    aggregation, zero hits.

Not registered. Per the issue's own instruction 3 ("Where the predicate
does NOT hold: record the finding … rather than leaving the absence
silent"), this PR instead records the negative finding in two places:
an ADDENDUM appended to the pin file's own header (contracts/openreposhape-pin.yaml),
and a documentation-only row in contracts/README.md explaining why no
manifest row exists. Neither the pin file's substantive content nor its
verifier was touched.

I also confirmed the third sibling the issue flagged as "beside them, beyond
scope" — contracts/review-lane-pin.yaml — is untouched by this PR, exactly
as scoped.

The two rows, verbatim

contracts/manifest.yaml (new)

  - id: openxwallet-pin
    path: contracts/openxwallet-pin.yaml
    source_path: openxFactory/contracts/openxwallet-pin.yaml
    type: pin
    schema_version: 1
    intended_consumers:
      - the xFactory aggregation's doc-health nightly lane (`opensoft/xFactory` `.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`)
      - openxFactory's own `openxwallet-consumer-gate.yml` (required check `wallet-validation`)
    compatibility: canonical_openxfactory_contract
    adapter_owner: openxFactory
    consumption_rule: >-
      READ FROM THE CHECKOUT THE REUSABLE WORKFLOW ALREADY HOLDS, NEVER
      COPIED. The aggregation's doc-health lane is a reusable workflow this
      repository publishes at `.github/workflows/doc-health-reusable.yml`;
      `opensoft/xFactory`'s `.github/workflows/doc-health-nightly.yml` calls
      it, and its `prepare` job initializes both the aggregation's own
      `openXwallet` gitlink and this repository's `openxFactory` submodule
      before invoking `python3 openxFactory/scripts/verify-openxwallet-pin.py
      --aggregation-root .` from that checkout. `verify()` runs first and
      recomputes this pin's eight digests against the NESTED `openXwallet`
      checkout; `verify_aggregation()` then requires the aggregation's OWN
      root gitlink for `openXwallet` to record the SAME commit this pin's
      `commit:` field names, refusing `pin-member-missing` where the
      aggregation declares no gitlink at all and `pin-gitlink-mismatch` where
      the two commits disagree. This is the root-gitlink-equals-nested-gitlink
      invariant `neutral-product-pin`'s "The consuming repository's pin is
      authoritative among reachable checkouts" requirement obliges, checked
      from the aggregation because openxFactory's own tree cannot see the
      aggregation's root gitlink. A copy of this pin taken into the
      aggregation instead of reading it live from the checkout would be a
      second pin that moves separately, which is the defect this pin grammar
      exists to end.

(Preceded by a full comment block explaining the measurement, the D2-style
no sha256 reasoning, and the #828-checker caveat below — see the diff.)

contracts/README.md (two new rows, in the "Native Contract Index" table,

right after the existing opendox-pin.yaml row)

One row for the new registration (mirrors the manifest row's reasoning), one
documentation-only row recording openreposhape-pin.yaml's negative finding.
Full text in the diff — both are long, in the corpus's own house style.

How this satisfies (and doesn't fully trigger) the #828 checker

PR #828's scripts/validate-pin-registrations.py cross-checks a row's
consumption_rule against the pin file's own consumer_entrypoint: field.
I read that checker in full. Both contracts/openxwallet-pin.yaml and
contracts/openreposhape-pin.yaml name their verifier under verify_pin:
instead of consumer_entrypoint: — a naming choice that predates this fix and
is shared by both siblings (each pin's own header says so explicitly: "matching
the sibling pin's own verify_pin: key"). So for my new row, the checker's
entrypoint = pin.get("consumer_entrypoint") resolves to None, and it
reports:

OK openxwallet-pin: `contracts/openxwallet-pin.yaml` is registered and present; it names no `consumer_entrypoint:`, so the entrypoint assertions do not apply

That is an honest "does not apply", not an affirmed agreement — I did not
want to leave that silent. I manually verified the path named in my
consumption_rule (scripts/verify-openxwallet-pin.py) against the pin's
real verify_pin: field and against the actual reusable-workflow YAML.
I deliberately did not add a consumer_entrypoint: field to the pin file
to force the automated check to fire — that would be editing a governed pin
file's own schema as a side effect of a registration PR, which is out of this
fix's scope; reconciling the checker's hardcoded field name with the
verify_pin: convention both sibling pins share is named in my manifest
comment as work for a successor.

The row does fully satisfy the checker's other assertions (path resolves,
citations — none present — don't apply) and the overall sweep exits 0.

R2 (release-membership) measurement

Per neutral-product-pin's "Registering a pin in the consumption register is
not a bundle cut unless it moves the release membership" requirement, whose
own text states "the measurement is the author's to take, in the change
that registers."

scripts/validate-manifest-digests.py (which counts every manifest entry
carrying both path and sha256 — the derived release membership):

  • Before this diff (on origin/main at 9378eca5, unedited): OK contracts/manifest.yaml: 184 per-file digest(s) verify
  • After this diff: OK contracts/manifest.yaml: 184 per-file digest(s) verify

Unchanged. The new row carries no sha256 (same D2 reasoning
openspec-cli-pin used), so it is an editorial member. No bundle cut, no
release tag is owed by this PR.

The CHANGELOG finding (asked for explicitly)

No contracts/CHANGELOG.md edit in this PR, and I verified this against
what the openspec-cli-pin registration actually did rather than assuming
the brief's guess was right:

So this PR matches that exact precedent: no changelog edit now. I did not
file a follow-up issue
analogous to #778 recording "CHANGELOG line owed at
next cut for contracts/openxwallet-pin.yaml" — that would complete the
precedent's pattern, but opening a new tracked obligation wasn't something my
brief asked for, and it reads as an orchestration-level decision rather than
something to do unilaterally inside a direct-fix PR. Flagging it here for
Brett/the lane to decide.

Validation (all run from a fresh clone, branch rebased onto origin/main @ 9378eca5, no conflicts)

scripts/validate-pin-registrations.py (the #828 checker):

OK openspec-cli-pin: `contracts/openspec-cli-pin.yaml` is present, its `consumer_entrypoint: scripts/validate-openspec-cli-pin.py` resolves, and the row's `consumption_rule` names that same path
OK openxwallet-pin: `contracts/openxwallet-pin.yaml` carries no `dispositions:`, so the citation assertion does not apply
OK openxwallet-pin: `contracts/openxwallet-pin.yaml` is registered and present; it names no `consumer_entrypoint:`, so the entrypoint assertions do not apply
OK contracts/manifest.yaml: 2 pin registration(s) cohere

Exit 0.

python3 scripts/validate-target-release.py .:

target_release: 45 active proposals, 45 declaring — 21 `implemented`, 3 a named release, 0 `deferred-allocation`, 21 named by the register, 0 outside the vocabulary.
  archive (read, never judged): 167 proposals, 61 of them outside the vocabulary.
target_release validation passed (every active declaration is admitted).

Exit 0.

Every scripts/validate-*.py that reads contracts/manifest.yaml (13 found by grep), each run and green: validate-avatar-first-ui.py, validate-carve-manifest.py, validate-clearing-dispatch.py (after git submodule update --init openXwallet), validate-manifest-digests.py, validate-release-tag-gate.py, validate-avatar-client.py, validate-signed-execution-chain.py, validate-hermes-domain-overlay.py, validate-credential-contracts.py, validate-pin-registrations.py, validate-chain-anchoring.py, validate-openspec-cli-pin.py (see below). One more, validate-domain-ontology.py, fails identically on a pristine, unmodified clone of origin/main (FINDING ONT-ADOPTION contracts/domain-ontology/core/package.yaml: … gate-action-record.schema.yaml does not resolve) — confirmed pre-existing and unrelated to this diff before relying on it.

OPENSPEC_TELEMETRY=0 python3 scripts/validate-openspec-cli-pin.py --all (the pinned entrypoint — R1's own sibling requirement forbids a bare openspec binary for a governed act, so this is the canon-compliant way to run strict validation, not a substitute):

Totals: 105 passed, 2 failed (107 items)
openspec-cli-pin: DISPOSITIONED FINDINGS in openxFactory (2 applied) — this run is NOT a clean tree:
  ✗→D add-chain-attestation / signed-execution-chain/spec.md  (accepted by: Brett Heap, 2026-09-05, "take exit 2")
  ✗→D add-composed-view-authoring / ideation-dashboard/spec.md  (accepted by: Brett Heap, 2026-09-05, "take exit 2")
OK openspec-cli-pin: @fission-ai/[email protected] verified against its content address; every target validated --strict with 0 UNDISPOSITIONED failures.

Exit 0. Note on the brief's expectation: the brief anticipated "only the
three pre-existing disposition-codexfactory-* failures". I found three
ACTIVE change folders matching that name
(disposition-codexfactory-declared-renames,
disposition-codexfactory-floor-relocation-retitle,
disposition-codexfactory-regular-pr-council-clearance-archive), but none of
them appear among the run's failures — the two actual dispositioned findings
are named add-chain-attestation and add-composed-view-authoring instead,
both pre-existing, cited and accepted well before this PR (2026-09-05).
Reporting the measured Totals rather than forcing them to match the
anticipated shape.

Targeted pytest (tests/pin_registrations/test_pin_registration_sweep.py tests/manifest_digests/test_manifest_digest_sweep.py tests/openxwallet_pin/test_verify_pin.py tests/openxwallet_pin/test_aggregation_lane_wiring.py tests/openreposhape_pin/test_pin_verifier.py):

125 passed in 5.22s

What I could not / did not do

  • Did not file a follow-up issue for the CHANGELOG-line-owed-at-next-cut
    bookkeeping (see above) — flagged for a human decision instead.
  • Did not run the full required pytest-suite (20–27 minutes per prior
    measurement in this estate) — only the targeted files the brief named, plus
    every validate-*.py that reads the manifest.
  • Did not touch contracts/review-lane-pin.yaml (out of scope, per the issue)
    or contracts/opendox-pin.yaml/contracts/openxdox-pin.yaml (unrelated,
    pre-existing gaps the issue explicitly leaves alone).

Refs #775

🤖 Generated with Claude Code

Summary by Sourcery

Register the sibling consumption pin that is read by the xFactory aggregation while documenting why the other sibling does not meet the registration predicate.

New Features:

  • Register the openXwallet consumption pin as a published contract member with its intended consumers and consumption rule.
  • Record the measured negative finding that the openRepoShape pin is not read by another repository and therefore does not require registration.

Enhancements:

  • Document the per-pin registration rationale, release-membership measurement, and verifier/workflow relationship for both sibling pins.
  • Strengthen registration tests to protect the new manifest row, its required metadata, verifier, and consuming workflow references.

Documentation:

  • Add contract index entries describing the openXwallet registration and the measured non-registration of the openRepoShape pin.
  • Add an explanatory addendum to the openRepoShape pin documenting why it remains unregistered.

Tests:

  • Extend the pin registration sweep with coverage for the openXwallet manifest membership and consumption wiring.

…the measured non-reach for the other (Refs #775)

Issue #775 named two unregistered consumption pins, `contracts/
openxwallet-pin.yaml` and `contracts/openreposhape-pin.yaml`, and required
`neutral-product-pin`'s predicate ("wherever any repository other than
openxFactory is expected to read it") to be MEASURED per pin rather than
assumed for both — the issue's own words: "why this is not simply 'add
two more rows'".

Measured, not assumed:

- `openxwallet-pin.yaml`: R1's predicate HOLDS. The xFactory aggregation
  repository (`opensoft/xFactory`) carries `openXwallet` as a root-level
  submodule beside its `openxFactory` one; its doc-health nightly lane
  (`.github/workflows/doc-health-nightly.yml`, calling this repository's
  reusable `.github/workflows/doc-health-reusable.yml`) invokes `python3
  openxFactory/scripts/verify-openxwallet-pin.py --aggregation-root .`
  from a checkout of openxFactory, enforcing the root-gitlink-equals-
  nested-gitlink invariant (design D11, `split-openxwallet-repo` task
  9.4), pinned by `tests/openxwallet_pin/test_aggregation_lane_wiring.py`
  in the required `pytest-suite` job. Registered in `contracts/
  manifest.yaml` (`type: pin`, no `sha256` on `openspec-cli-pin`'s D2
  precedent) and indexed in `contracts/README.md`.

- `openreposhape-pin.yaml`: R1's predicate does NOT hold. openxFactory
  cites the standard rather than mounting it (no gitlink at all); the
  ratified `project-repo-schema` requirement states other adopters fork
  `opensoft/openRepoShape` directly and depend on no artifact of this
  family at run time (confirmed live: `opensoft/openRepoTools` carries
  its own independent pin, explicitly not compared to openxFactory's);
  the pin's own gate is non-required, non-reusable, and carries no
  aggregation-comparison mode analogous to its sibling's. This is a
  measured absence, recorded as an addendum in the pin's own header and
  as a documentation-only row in `contracts/README.md`, rather than left
  silent or registered on the strength of the sibling's answer.

R2 measured: `scripts/validate-manifest-digests.py`'s per-file `sha256`
count reads 184 before and after this diff — the new row is an editorial
member and no bundle cut is owed.

No `contracts/CHANGELOG.md` edit, matching the `openspec-cli-pin`
registration's own precedent (issue #778): this repository writes no
`Unreleased` block, allocating a version merely to record one is itself
a cut, and the changelog line is owed at the next contract cut rather
than at registration.

The `#828` checker's entrypoint-agreement assertion does not mechanically
fire for the new row: both sibling pins name their verifier under
`verify_pin:` rather than `consumer_entrypoint:`, a naming that predates
this fix. `scripts/validate-pin-registrations.py` reports the entrypoint
assertions "do not apply" rather than affirming agreement; the named
path was manually verified against the pin's own `verify_pin:` field and
the actual reusable-workflow wiring.

Refs #775

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 13, 2026 03:16
@sourcery-ai

sourcery-ai Bot commented Sep 13, 2026

Copy link
Copy Markdown

Reviewer's Guide

The PR measures the two sibling consumption pins independently: it registers openxwallet because xFactory’s aggregation repository reads and enforces its pin through the reusable workflow, while documenting—but not registering—openRepoShape because no external repository reads it through an aggregation path. The changes preserve release membership and avoid a changelog or contract cut.

Sequence diagram for xFactory openXwallet pin parity verification

sequenceDiagram
    participant AGG as xFactory aggregation
    participant WF as doc-health-reusable.yml
    participant SCRIPT as verify-openxwallet-pin.py
    participant NESTED as nested openXwallet gitlink
    participant ROOT as aggregation root gitlink

    AGG->>WF: call reusable workflow
    WF->>SCRIPT: verify --aggregation-root .
    SCRIPT->>NESTED: verify()
    NESTED-->>SCRIPT: pin commit and digests
    SCRIPT->>ROOT: verify_aggregation()
    ROOT-->>SCRIPT: root gitlink commit
    SCRIPT-->>AGG: accept matching commits or refuse mismatch
Loading

Flow diagram for per-pin registration decision

flowchart TD
    START[Measure whether another repository reads the pin]
    START --> XWQ{Aggregation repository reads and compares it?}
    XWQ -->|Yes| XWR[Register openxwallet-pin in manifest]
    XWQ -->|No| ORSR[Record measured negative finding]
    ORSR --> README[Document openreposhape-pin in README only]
    XWR --> RELEASE[Keep release membership unchanged]
    README --> RELEASE
Loading

File-Level Changes

Change Details Files
Register the openXwallet consumption pin after measuring that an external aggregation repository actually reads and validates it.
  • Add an editorial type: pin manifest entry with consumer, compatibility, ownership, and live-checkout consumption metadata.
  • Document the registration, root-gitlink parity invariant, digest rationale, and checker-field caveat in the manifest comments and contract index.
  • Record the existing reusable-workflow and aggregation-lane wiring as the enforcement path rather than introducing a copied pin.
contracts/manifest.yaml
contracts/README.md
Record why the openRepoShape sibling does not meet the cross-repository consumption predicate and therefore remains unregistered.
  • Append a measured negative finding to the pin header covering citation-only use, independent consumers, non-required local gating, and absent aggregation comparison.
  • Add a documentation-only README index row explaining why no manifest registration exists.
contracts/openreposhape-pin.yaml
contracts/README.md
Validate that the registration is editorial and does not alter release membership or require a contract cut.
  • Confirm the manifest digest count remains 184 before and after the change because the new row has no sha256.
  • Run registration, release-target, manifest-consuming validator, and targeted pin/digest test suites; document pre-existing unrelated failures and the omitted full pytest suite.
  • Leave changelog and the out-of-scope review-lane pin unchanged.
contracts/manifest.yaml
contracts/README.md
contracts/openreposhape-pin.yaml

Possibly linked issues


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

@brettheap
brettheap marked this pull request as ready for review September 13, 2026 03:17

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 1 day and 14 hours by commenting @sourcery-ai review. Upgrade to get a review now.

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

Unresolved critical and moderate findings affect verification behavior, registration coverage, consumer instructions, and the openRepoShape measurement.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR registers the externally consumed openxwallet pin and documents the openRepoShape registration decision.

Changes:

  • Adds the openxwallet registration to the manifest and contract index.
  • Records the openRepoShape non-registration finding.
  • Adds supporting measurement and provenance documentation.
File summaries
File Summary
contracts/README.md Updates the index; its negative finding is inaccurate because openRepoTools mounts and verifies openRepoShape (moderate, 2 votes).
contracts/manifest.yaml Adds the registration and rule. Findings: guarded verification can skip the fail-closed check (critical, 1 vote); tests do not protect this row (moderate, 2 votes); the rule omits the own-gate commands (moderate, 1 vote).
contracts/openreposhape-pin.yaml Adds the non-registration addendum; its measurement conflicts with openRepoTools’ mounted upstream checkout (moderate, 2 votes).
Review details

Suppressed comments (1)

contracts/manifest.yaml:3656

  • This row advertises openxFactory's own openxwallet-consumer-gate.yml as an intended consumer, but the published consumption_rule only describes the aggregation invocation. That required gate actually starts with python3 scripts/verify-openxwallet-pin.py and then runs the pinned syntax/conformance commands (.github/workflows/openxwallet-consumer-gate.yml:109-127), so a reader of the register has no recipe for one of the listed consumers. Name the own-gate command(s) in the rule, or remove that consumer from intended_consumers.
    intended_consumers:
      - the xFactory aggregation's doc-health nightly lane (`opensoft/xFactory` `.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`)
      - openxFactory's own `openxwallet-consumer-gate.yml` (required check `wallet-validation`)
  • Files reviewed: 3/3 changed files
  • Comments generated: 4
  • Review effort level: Lite

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

Comment thread contracts/manifest.yaml Resolved
Comment thread contracts/README.md Resolved
Comment thread contracts/manifest.yaml Resolved
Comment thread contracts/openreposhape-pin.yaml Resolved
…enRepoTools refutes, and pin the new row against deletion

Four Copilot threads on PR #1026. Three confirmed against the real trees,
one confirmed only in part; every claim re-measured before it was believed.

THREAD A — the guard is real and the row did not describe it (CONFIRMED IN
PART). `.github/workflows/doc-health-reusable.yml`'s "Verify openXwallet
root-gitlink parity" step (lines 510-560) wraps both the nested init and the
parity invocation in `if git -C openxFactory config --file .gitmodules --get
submodule.openXwallet.path`, and the row said nothing about it. The row also
claimed the `prepare` job initializes the AGGREGATION's own `openXwallet`
gitlink; it does not, and the workflow says so in terms ("NO EXTRA SUBMODULE
INIT IS NEEDED and that is a property of the check") because
`verify_aggregation()` reads the recorded gitlink through `git ls-tree HEAD`
/ `git ls-files -s`. Both are now described accurately.

The thread's further inference — that the guard leaves `pin-member-missing`
unenforced — does NOT hold, and the corrected text says why rather than
repeating it: the guard's condition is whether OPENXFACTORY declares the
NESTED gitlink, while `pin-member-missing` fires on the AGGREGATION ROOT
recording none. Those are different conditions, so wherever openxFactory
carries the nested gitlink the step runs and the refusal is fail-closed. The
one case the skip really does leave unmeasured — openxFactory carrying this
pin while having dropped its own `.gitmodules` declaration — is now named
rather than claimed away, together with what closes it: `verify()`'s own
`pin-submodule-uninitialized` / `pin-gitlink-mismatch`, run by
`openxwallet-consumer-gate.yml` as the REQUIRED `wallet-validation` check.
The workflow itself is untouched, as a registration PR should leave it.

THREADS B and D — the fork generalisation is false and is withdrawn
(CONFIRMED). Read directly from `opensoft/openRepoTools`: its `.gitmodules`
declares `[submodule "upstream/openRepoShape"]`, `git ls-tree HEAD` records
the gitlink `32450eb5c5d18fbb0747dc5ad420cf67742cfa99`, its own
`contracts/openreposhape-pin.yaml` declares `submodule_path:
upstream/openRepoShape`, `materialization: mounted` and `verify_pin:
tests/test_upstream_pin.py`, and the repository is not a fork at all
(`fork: false`, no parent). So "every other adopter forks
`opensoft/openRepoShape` directly" was an inaccurate measurement, and citing
openRepoTools as its confirmation cited the counterexample. The claim that
its header "states it is NOT compared to openxFactory's" was also
unsupported: that phrase appears in none of the three revisions of that file
— what the header says is "THE DEPENDENCY RUNS ONE WAY ... openRepoShape
pins this repository nowhere", a claim about openRepoShape.

THE REGISTRATION DECISION IS UNCHANGED; only its stated grounds are. R1's
predicate is "another repository READS openxFactory's pin", and that was
re-measured and still fails: the string `openxFactory` does not occur
anywhere in `opensoft/openRepoTools`, and an org-wide code search for
`openreposhape-pin` outside openxFactory returns that repository and no
other. Two repositories pinning the same upstream separately is not one
reading the other's pin. Both the README row and the pin's ADDENDUM now
distinguish the measured predicate from the broader "nobody consumes
openRepoShape" claim, quote openRepoTools' actual facts, and note that the
ratified fork clause governs "An organisation OUTSIDE this family" and so is
not contradicted by an in-family sibling that mounts. The pin's substantive
content and its verifier remain untouched: `yaml.safe_load` of this file is
byte-for-byte identical to `origin/main`'s, and the diff carries no
non-comment line.

THREAD C — the new row was unprotected (CONFIRMED).
`tests/pin_registrations/test_pin_registration_sweep.py` named only
`openspec-cli-pin`, and its anti-vacuity test asks for "at least one" pin
row — which the OTHER row satisfies. Two live assertions now name this row:
one pins its presence, `type`, registered `path` and that the path resolves;
the other makes the entrypoint agreement the checker cannot make for this
pin (it names its verifier under `verify_pin:`, so
`validate-pin-registrations.py` reports "do not apply") and requires the
`consumption_rule` to still name both the verifier and the reusable
workflow. The agreement assertion reads `consumer_entrypoint:` first and
falls back to `verify_pin:`, so reconciling that naming later is not a red.

Proven non-vacuous by four scratch mutations, each reverted: deleting the
row, repointing its `path`, gutting the `consumption_rule`, and removing
only the workflow name each red exactly one new test.

Validation, from a fresh clone of this branch:
  scripts/validate-pin-registrations.py     exit 0, "2 pin registration(s)
                                            cohere" (19 pre-existing
                                            openspec-cli-pin citation WARNs,
                                            identical on pristine origin/main)
  scripts/validate-manifest-digests.py      184 per-file digests, unchanged
                                            from origin/main - R2 still
                                            editorial, no cut owed
  pytest tests/pin_registrations tests/manifest_digests
         tests/openxwallet_pin tests/openreposhape_pin   127 passed
  pytest (the three suites that read contracts/README.md)  123 passed

Refs #775

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 21: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.

🟡 Changes recommended

Moderate test coverage gaps and the manifest documentation update remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

contracts/manifest.yaml:3663

  • The published neutral-product-pin recipe also has to name the earliest openxFactory commit that contains the entrypoint and direct consumers on older xfactory.contract_ref values to advance their pin. This rule only describes the current invocation, so an older consumer cannot distinguish a missing script from a valid checkout or know the required pin-sync action; add the measured first-carrier commit and refusal/advance guidance here, and mirror it in the README entry.
    consumption_rule: >-
      READ FROM THE CHECKOUT THE REUSABLE WORKFLOW ALREADY HOLDS, NEVER
      COPIED. The aggregation's doc-health lane is a reusable workflow this
      repository publishes at `.github/workflows/doc-health-reusable.yml`;
      `opensoft/xFactory`'s `.github/workflows/doc-health-nightly.yml` calls

tests/pin_registrations/test_pin_registration_sweep.py:224

  • R1 requires an index row in contracts/README.md as well as the manifest row, but this new live-corpus protection only reads manifest.yaml. Removing the wallet index row (or the new negative-finding row for openreposhape) would leave the required suite green, so add a hermetic assertion for both README records to prevent the published index from silently drifting.
def test_the_live_register_carries_the_openxwallet_pin_row() -> None:
    """The anti-deletion pin for the SECOND registration.

    `test_the_live_register_carries_at_least_one_pin_row` above cannot do this
    job any more and says so in its own name: with two rows present, "at least
    one" is satisfied by the other one. This names THIS row, asserts the path it
    registers is the path in the tree, and asserts that path resolves — so
    deleting the row, renaming its `id`, or pointing it at a pin that is not
    there each reds in the required `pytest-suite` job rather than passing
    quietly.

tests/pin_registrations/test_pin_registration_sweep.py:263

  • Using or here does not match the checker’s entrypoint is None semantics: a present but empty consumer_entrypoint: "" is treated by validate-pin-registrations.py as an invalid path, while this test silently falls back to verify_pin and remains green. Fall back only when the key is absent so this required test catches that drift.
    named = pin.get("consumer_entrypoint") or pin.get("verify_pin")
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

Second Copilot round on PR #1026, both threads on the test file the first
round added. Both confirmed against the real tree before being believed.

THREAD E — the row's canon member list was only half asserted (CONFIRMED).
`openspec/specs/neutral-product-pin/spec.md:264-272` obliges a registered
consumption pin to carry "an `id`, its `path`, a `type`, its
`intended_consumers`, `adapter_owner: openxFactory`, and a
`consumption_rule`". `scripts/validate-pin-registrations.py` reads only `id`,
`path`, `type` and `consumption_rule` — its own docstring quotes the full
sentence at lines 29-30 and then says "the three assertions below are those
sentences and no further rule", so the last two members are quoted as canon
and checked by nothing.

Measured rather than assumed: dropping `adapter_owner` from the row leaves
the checker at exit 0 and `tests/pin_registrations` at 62 passed; dropping
`intended_consumers` does the same. Both are now asserted — the owner against
the literal value canon fixes, the consumers as a non-empty list of non-empty
strings — with the finding text naming the requirement each rests on.

Scoped to THIS row, and the docstring says why: `openspec-cli-pin` carries
the same two fields and the same absence of any check on them, but widening
this file to grade every registered row is a rule about the register rather
than a pin on the member this PR introduces. That belongs with the successor
work the manifest comment already names.

Proven non-vacuous by four more scratch mutations, each reverted and the
manifest restored byte-identical: `adapter_owner` deleted, `adapter_owner`
set to the wrong owner, `intended_consumers` deleted, and
`intended_consumers` emptied to `[]` each red with their own message.

THREAD F — "reding" (CONFIRMED). Not a word, and a coinage this corpus does
not carry: it occurred exactly once across every `.py`, `.md` and `.yaml` in
the tree, in the docstring the previous commit added. The corpus does use
"reds" as a verb widely, so the gerund is the only novelty. Now "going red",
and the same wording is used in the sibling docstring for consistency.

Validation, unchanged by this commit:
  scripts/validate-pin-registrations.py    exit 0, "2 pin registration(s)
                                           cohere"
  scripts/validate-manifest-digests.py     184 per-file digests, unchanged
  pytest tests/pin_registrations tests/manifest_digests
         tests/openxwallet_pin tests/openreposhape_pin    127 passed

Only the test file moves here; `contracts/manifest.yaml` is byte-identical to
the previous commit.

Refs #775

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22:05

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

Moderate issues remain in the manifest and regression-test assertions.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (3)

contracts/manifest.yaml:3656

  • The row advertises openxFactory's own wallet-validation gate as an intended consumer, but the consumption_rule below documents only the xFactory aggregation parity invocation. That gate actually reaches this pin and then runs openXwallet/scripts/wallet-yaml-syntax-gate.py . and openXwallet/scripts/validate-openxwallet.py . | tee wallet-gate.log (.github/workflows/openxwallet-consumer-gate.yml:109-127); the neutral-product-pin requirement says published instructions must name each command for the governed acts they cover. As written, a reader cannot reproduce the listed wallet gate from this rule. Either remove the own gate from intended_consumers if it is out of scope, or document those commands and assert them in the registration test.
    intended_consumers:
      - the xFactory aggregation's doc-health nightly lane (`opensoft/xFactory` `.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`)
      - openxFactory's own `openxwallet-consumer-gate.yml` (required check `wallet-validation`)

contracts/manifest.yaml:3664

  • The published consumption_rule does not state the required checkout recipe. neutral-product-pin requires a consumer to resolve stack.yaml's xfactory.contract_ref, check out openxFactory at that ref, and name the earliest commit carrying the entrypoint; this only says the workflow already holds a submodule and then invokes it. Add the pinned-ref/earliest-commit guidance (or explicitly document the governed no-stack direct-submodule exception), otherwise consumers have no published boundary for which checkout may run this command.
      READ FROM THE CHECKOUT THE REUSABLE WORKFLOW ALREADY HOLDS, NEVER
      COPIED. The aggregation's doc-health lane is a reusable workflow this
      repository publishes at `.github/workflows/doc-health-reusable.yml`;
      `opensoft/xFactory`'s `.github/workflows/doc-health-nightly.yml` calls
      it, and its `prepare` job initializes this repository's `openxFactory`

tests/pin_registrations/test_pin_registration_sweep.py:275

  • The new assertion only requires a non-empty list of non-empty strings, so replacing the actual xFactory aggregation and wallet-validation consumers with arbitrary text still leaves the required suite green. That allows the published intended_consumers contract to lose its real readers without detection; assert that the known consumers are named (while allowing future additions).
    consumers = row.get("intended_consumers")
    assert isinstance(consumers, list) and consumers, (
        f"the {WALLET_PIN_ID} row declares `intended_consumers: "
        f"{consumers!r}`; `neutral-product-pin` obliges a registered "
        "consumption pin to name who is expected to read it, and a register "
        "that does not say that is the state registration exists to end")
    assert all(isinstance(entry, str) and entry.strip() for entry in consumers), (
        f"the {WALLET_PIN_ID} row's `intended_consumers` carries an empty or "
        f"non-string entry: {consumers!r}")
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

… `in`

Third Copilot round on PR #1026, one thread, confirmed and measured before
it was believed.

THE FINDING IS RIGHT AND IT IS ABOUT CODE THIS PR ADDED. The two rule
assertions the first fix round introduced used a bare `in`, which is the
exact shape `scripts/validate-pin-registrations.py` was written to refuse:
`rule_names_entrypoint()` (line 270) exists because "a stale rule saying
`scripts/tool.py.old` CONTAINS `scripts/tool.py`, so the rename that
produced it would be reported coherent", and it counts an occurrence only
where the text does not continue the token.

Measured on the live row rather than argued: with the rule's verifier
rewritten to `scripts/verify-openxwallet-pin.py.old`,
`WALLET_VERIFIER in rule` was still True while
`rule_names_entrypoint(rule, WALLET_VERIFIER)` was False — identical on
`.github/workflows/doc-health-reusable.yml`. So the assertion published to
protect the registration carried the weakness the checker closes.

Both assertions now call the checker's own helper through the module this
file already loads by path for its negative tests. The predicate is not
restated: one rule, in one place, so a later change to the delimiter
semantics moves this test with the checker instead of past it.

Proven by two more scratch mutations, each reverted and the manifest
restored byte-identical: the rule naming `…verify-openxwallet-pin.py.old`
and the rule naming `…doc-health-reusable.yml.old` each now go red, where
before this commit both stayed green.

Also fixed in passing: a `{WALLET_VERIFIER}` placeholder in one finding
message sat in a non-f-string segment of the concatenation and would have
printed literally.

Validation, unchanged by this commit:
  scripts/validate-pin-registrations.py    exit 0, "2 pin registration(s)
                                           cohere"
  scripts/validate-manifest-digests.py     184 per-file digests, unchanged
  pytest tests/pin_registrations tests/manifest_digests
         tests/openxwallet_pin tests/openreposhape_pin    127 passed

Only the test file moves here; `contracts/manifest.yaml` is byte-identical
to the previous commit.

Refs #775

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22: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.

🟡 Changes recommended

A critical workflow dependency-ordering issue and additional registration, evidence, and test-coverage gaps remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review details

Suppressed comments (4)

contracts/README.md:110

  • The promoted requirement also says the registered pin must be indexed in contracts/README.md, but the new required tests only load manifest.yaml and the verifier/workflow; no test reads this index. Removing this row would therefore leave pytest-suite green while the published index is missing the member. Add a live assertion for this row, distinct from the historical row at line 108.
| `openxwallet-pin.yaml` (THE PIN AS A PUBLISHED CONTRACT MEMBER — distinct from the historical schema-publishing row above, which records the REMOVAL of openxFactory's own wallet schemas and not this registration) | Registered in `contracts/manifest.yaml` as `type: pin` (`id: openxwallet-pin`) by the direct fix for issue #775, on `openspec-cli-pin.yaml`'s own precedent: the row publishes openxFactory's CLAIM about which openXwallet revision it consumes, not a second product. **MEASURED, PER PIN, RATHER THAN ASSUMED FOR BOTH SIBLINGS #775 NAMES**: `neutral-product-pin`'s "A consumption pin that another repository reads is a PUBLISHED contract member" holds for this pin because the xFactory AGGREGATION repository (`opensoft/xFactory`) carries `openXwallet` as a root-level submodule alongside its `openxFactory` one, and its own doc-health nightly lane (`.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`) invokes `scripts/verify-openxwallet-pin.py --aggregation-root .` from a checkout of openxFactory to enforce the root-gitlink-equals-nested-gitlink invariant (design D11, `split-openxwallet-repo` task 9.4), pinned by `tests/openxwallet_pin/test_aggregation_lane_wiring.py` in the REQUIRED `pytest-suite` job. The row carries no per-file `sha256`, on `openspec-cli-pin`'s own precedent: the pin's own `files:` digest list already moves on every openXwallet release bump, and a manifest-row digest over the pin's own bytes would be a third copy of that same movement. R2 measured: `scripts/validate-manifest-digests.py`'s per-file `sha256` count read 184 before this diff and 184 after — the row is an EDITORIAL member and no cut is owed. The sibling pin `openreposhape-pin.yaml` was measured the same way and answers DIFFERENTLY: see its own header and the row below for the negative finding | `register-sibling-consumption-pins` (issue #775) |

contracts/README.md:110

  • The R2 evidence here measures the wrong artifact: validate-manifest-digests.py only counts manifest rows carrying sha256 and explicitly treats rows without one as out of scope, whereas neutral-product-pin defines release membership as the closed contracts/releases/*.digests.yaml inventory computed separately by validate-contract-release.py. Adding a no-sha256 row will therefore leave 184 unchanged by construction and cannot establish that the release membership did not move. Please record the before/after closed-inventory membership (or explicitly relabel this as only a manifest-digest count) before concluding that no cut is owed.
| `openxwallet-pin.yaml` (THE PIN AS A PUBLISHED CONTRACT MEMBER — distinct from the historical schema-publishing row above, which records the REMOVAL of openxFactory's own wallet schemas and not this registration) | Registered in `contracts/manifest.yaml` as `type: pin` (`id: openxwallet-pin`) by the direct fix for issue #775, on `openspec-cli-pin.yaml`'s own precedent: the row publishes openxFactory's CLAIM about which openXwallet revision it consumes, not a second product. **MEASURED, PER PIN, RATHER THAN ASSUMED FOR BOTH SIBLINGS #775 NAMES**: `neutral-product-pin`'s "A consumption pin that another repository reads is a PUBLISHED contract member" holds for this pin because the xFactory AGGREGATION repository (`opensoft/xFactory`) carries `openXwallet` as a root-level submodule alongside its `openxFactory` one, and its own doc-health nightly lane (`.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`) invokes `scripts/verify-openxwallet-pin.py --aggregation-root .` from a checkout of openxFactory to enforce the root-gitlink-equals-nested-gitlink invariant (design D11, `split-openxwallet-repo` task 9.4), pinned by `tests/openxwallet_pin/test_aggregation_lane_wiring.py` in the REQUIRED `pytest-suite` job. The row carries no per-file `sha256`, on `openspec-cli-pin`'s own precedent: the pin's own `files:` digest list already moves on every openXwallet release bump, and a manifest-row digest over the pin's own bytes would be a third copy of that same movement. R2 measured: `scripts/validate-manifest-digests.py`'s per-file `sha256` count read 184 before this diff and 184 after — the row is an EDITORIAL member and no cut is owed. The sibling pin `openreposhape-pin.yaml` was measured the same way and answers DIFFERENTLY: see its own header and the row below for the negative finding | `register-sibling-consumption-pins` (issue #775) |

contracts/manifest.yaml:3663

  • This row advertises openxFactory's required openxwallet-consumer-gate.yml as an intended consumer, but its consumption_rule only names the aggregation invocation (... --aggregation-root .). That gate reaches the other governed act with python3 scripts/verify-openxwallet-pin.py (without the flag) at .github/workflows/openxwallet-consumer-gate.yml:109-110; neutral-product-pin requires the register to name both commands when the acts differ. Add the local command and checkout recipe to this rule, and protect it in the registration test.
    consumption_rule: >-
      READ FROM THE CHECKOUT THE REUSABLE WORKFLOW ALREADY HOLDS, NEVER
      COPIED. The aggregation's doc-health lane is a reusable workflow this
      repository publishes at `.github/workflows/doc-health-reusable.yml`;
      `opensoft/xFactory`'s `.github/workflows/doc-health-nightly.yml` calls

tests/pin_registrations/test_pin_registration_sweep.py:328

  • This anti-vacuity test protects only the verifier path and workflow path, not the --aggregation-root . mode that makes the aggregation registration enforce root-gitlink parity. If the rule is reduced to python3 openxFactory/scripts/verify-openxwallet-pin.py without that flag, both rule_names_entrypoint assertions still pass and the required suite can publish a nested-only recipe. Assert the complete command (including the mode and argument), not just its script token.
    rule = row["consumption_rule"]
    assert module.rule_names_entrypoint(rule, WALLET_VERIFIER), (
        f"the {WALLET_PIN_ID} row's `consumption_rule` no longer names "
        f"{WALLET_VERIFIER} as a delimited path token, so the registration "
        "stops saying how the pin is consumed — a rule that only CONTAINS the "
        f"path (`{WALLET_VERIFIER}.old`) names a different file")
    assert module.rule_names_entrypoint(rule, WALLET_REUSABLE_WORKFLOW), (
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread contracts/manifest.yaml Resolved
Fourth Copilot round on PR #1026, one thread, split disposition: the
mechanism is real and is now documented; the conclusion drawn from it is
overstated and the reply says so with the live evidence.

CONFIRMED, and the reason the row now carries a paragraph about it. The
ordering is exactly as described, verified against a real run rather than
the YAML alone (opensoft/xFactory run 34733307293, `doc-health / prepare`):
step 13 is "Verify openXwallet root-gitlink parity", step 14 is
`actions/setup-python@v5` and step 15 is "Install suite dependencies"
(`pip install pyyaml`). So the verifier runs on whatever `python3` the
runner image already carries, before the job installs anything. And the
`yaml` import IS at module load — `scripts/verify-openxwallet-pin.py:125-130`,
inside a module-level `try`, which an AST walk over `tree.body` alone misses
and a reading of the source does not. A cross-repository consumer wiring
this pin into a lane of its own needs to know that, and the registration
did not say it.

NOT CONFIRMED, and not written as though it were. The claim that this "can
exit 2 when the runner image lacks PyYAML" is a statement about a
hypothetical image, and the failure it describes is neither silent nor
undiagnosable: the module-level `try` turns a missing PyYAML into a named
refusal, proven by blocking the import on a shadowed `yaml` module —
`ERROR PyYAML is required to read contracts/openxwallet-pin.yaml`, exit 2 —
which fails the step, the job and the whole reusable call, the same
fail-closed shape every other refusal in this rule has. On the live lane the
step has been GREEN: `prepare` succeeds in every recent nightly, including
the runs whose `finalize` job fails for unrelated reasons.

The remedy taken is the second of the two offered. Moving `setup-python`
ahead of the parity step is a WORKFLOW edit, out of scope for a registration
PR and a real ordering decision besides — the step sits early in `prepare`
on purpose, so its failure fails the call before anything else runs. What is
in scope is making the dependency explicit, and the `consumption_rule` now
names it, names the refusal an image without PyYAML gets, and tells a
consumer on a leaner runner to install it or order its own install ahead of
the call.

Validation:
  scripts/validate-pin-registrations.py    exit 0, "2 pin registration(s)
                                           cohere"
  scripts/validate-manifest-digests.py     184 per-file digests, unchanged
  pytest tests/pin_registrations tests/manifest_digests
         tests/openxwallet_pin tests/openreposhape_pin    127 passed

Refs #775

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI review requested due to automatic review settings September 13, 2026 22:29
@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.

🔵 Needs a closer look

Unresolved manifest documentation and registration test-coverage issues remain.

Review details

Suppressed comments (6)

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

contracts/manifest.yaml:3668

  • Because intended_consumers explicitly includes the required wallet-validation gate, this rule covers more than the aggregation parity invocation. That gate executes the pinned openXwallet/scripts/wallet-yaml-syntax-gate.py . and openXwallet/scripts/validate-openxwallet.py . after scripts/verify-openxwallet-pin.py; the published rule names only the verifier and workflow, so a consumer following it cannot reproduce the actual wallet validation sequence. Name those downstream commands as well, or narrow intended_consumers and the rule to the parity-only consumer.

contracts/README.md:110

  • The new registration requirement is only protected in the manifest: removing this index row leaves validate-pin-registrations.py and the added tests green (the older historical openxwallet-pin.yaml row is a different entry). Since neutral-product-pin also requires README indexing, add a live assertion for this registration-specific row or marker.
| `openxwallet-pin.yaml` (THE PIN AS A PUBLISHED CONTRACT MEMBER — distinct from the historical schema-publishing row above, which records the REMOVAL of openxFactory's own wallet schemas and not this registration) | Registered in `contracts/manifest.yaml` as `type: pin` (`id: openxwallet-pin`) by the direct fix for issue #775, on `openspec-cli-pin.yaml`'s own precedent: the row publishes openxFactory's CLAIM about which openXwallet revision it consumes, not a second product. **MEASURED, PER PIN, RATHER THAN ASSUMED FOR BOTH SIBLINGS #775 NAMES**: `neutral-product-pin`'s "A consumption pin that another repository reads is a PUBLISHED contract member" holds for this pin because the xFactory AGGREGATION repository (`opensoft/xFactory`) carries `openXwallet` as a root-level submodule alongside its `openxFactory` one, and its own doc-health nightly lane (`.github/workflows/doc-health-nightly.yml`, calling this repository's reusable `.github/workflows/doc-health-reusable.yml`) invokes `scripts/verify-openxwallet-pin.py --aggregation-root .` from a checkout of openxFactory to enforce the root-gitlink-equals-nested-gitlink invariant (design D11, `split-openxwallet-repo` task 9.4), pinned by `tests/openxwallet_pin/test_aggregation_lane_wiring.py` in the REQUIRED `pytest-suite` job. The row carries no per-file `sha256`, on `openspec-cli-pin`'s own precedent: the pin's own `files:` digest list already moves on every openXwallet release bump, and a manifest-row digest over the pin's own bytes would be a third copy of that same movement. R2 measured: `scripts/validate-manifest-digests.py`'s per-file `sha256` count read 184 before this diff and 184 after — the row is an EDITORIAL member and no cut is owed. The sibling pin `openreposhape-pin.yaml` was measured the same way and answers DIFFERENTLY: see its own header and the row below for the negative finding | `register-sibling-consumption-pins` (issue #775) |

contracts/manifest.yaml:3668

  • The promoted pin contract requires published adoption instructions to name the earliest openxFactory ref that carries the invoked entrypoint and to tell a stale consumer to advance its pin. This rule only says to use whatever checkout the workflow already holds; it gives no minimum ref for verify-openxwallet-pin.py/--aggregation-root and no pin-sync remediation, so a checkout predating the command is left with a missing-file failure and no prescribed resolution. Add the minimum carrying commit and the required advance-pin instruction.
    consumption_rule: >-
      READ FROM THE CHECKOUT THE REUSABLE WORKFLOW ALREADY HOLDS, NEVER
      COPIED. The aggregation's doc-health lane is a reusable workflow this
      repository publishes at `.github/workflows/doc-health-reusable.yml`;
      `opensoft/xFactory`'s `.github/workflows/doc-health-nightly.yml` calls
      it, and its `prepare` job initializes this repository's `openxFactory`
      submodule and then, under the guard described below, the NESTED
      `openXwallet` gitlink inside it (`git -C openxFactory submodule update
      --init openXwallet`), before invoking `python3
      openxFactory/scripts/verify-openxwallet-pin.py --aggregation-root .`

tests/pin_registrations/test_pin_registration_sweep.py:249

  • The production checker deliberately measures nested type: pin rows via iter_pin_rows(), but this anti-vacuity test only scans top-level doc['contracts']. Moving this valid row under a future grouping key would make the required suite fail; use the same walker here.
    pin_rows = [row for row in doc["contracts"] if row.get("type") == "pin"]

tests/pin_registrations/test_pin_registration_sweep.py:332

  • The new live assertion only checks that the rule contains the verifier and workflow path tokens. It does not protect the required checkout-at-the-pinned-ref and never-copy semantics, while validate-pin-registrations.py deliberately does not inspect those parts; replacing this rule with ambient/copying instructions that retain both paths would therefore leave the required suite green. Add assertions for the checkout/no-copy contract (and the minimum-ref guidance if it is encoded in this rule).
    rule = row["consumption_rule"]
    assert module.rule_names_entrypoint(rule, WALLET_VERIFIER), (
        f"the {WALLET_PIN_ID} row's `consumption_rule` no longer names "
        f"{WALLET_VERIFIER} as a delimited path token, so the registration "
        "stops saying how the pin is consumed — a rule that only CONTAINS the "
        f"path (`{WALLET_VERIFIER}.old`) names a different file")
    assert module.rule_names_entrypoint(rule, WALLET_REUSABLE_WORKFLOW), (
        f"the {WALLET_PIN_ID} row's `consumption_rule` no longer names "
        f"{WALLET_REUSABLE_WORKFLOW} as a delimited path token, and that is "
        "the workflow carrying the consuming invocation")
    assert (REPO_ROOT / WALLET_REUSABLE_WORKFLOW).is_file()

tests/pin_registrations/test_pin_registration_sweep.py:226

  • The new anti-vacuity coverage protects only the manifest row; it never checks the second half of neutral-product-pin, which requires the pin to be indexed in contracts/README.md. Removing the new index row (or the negative-finding row for openreposhape-pin.yaml) would leave validate-pin-registrations.py and these tests green while consumers lose the published index entry. Add live assertions for the required README entries, or document why that mandatory index is intentionally untested.
def test_the_live_register_carries_the_openxwallet_pin_row() -> None:
    """The anti-deletion pin for the SECOND registration.

    `test_the_live_register_carries_at_least_one_pin_row` above cannot do this
    job any more and says so in its own name: with two rows present, "at least
    one" is satisfied by the other one. This names THIS row, so deleting it,
    renaming its `id`, or pointing it at a pin that is not there each goes red
    in the required `pytest-suite` job rather than passing quietly.
  • Files reviewed: 4/4 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING WORD RECEIVED — Brett Heap, verbatim "land it", 2026-09-13T22:43:07Z, to lane openXfactory-5 (session 651195c7).

Landing gate at 2026-09-13T22:43:07Z on head 8d6ff119:

Next: LANDING pair, admin squash merge on green, LANDED pair.

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openxfactory-5 (openXfactory-5), session 651195c7-1854-491e-894a-e6542ef5e9f4, 2026-09-13T22:48:31Z, PR #1026 into opensoft/openxFactory main (register the openxwallet-pin consumption member and record openreposhape-pin's measured non-reach, Refs #775; head 8d6ff11, all checks green incl. pytest-suite run 34786963292, 0/8 threads open, closing refs 0, independent gate verification NO BLOCKER; Brett Heap's word 'land it' 22:42Z)

@brettheap
brettheap merged commit a80f0e3 into main Sep 13, 2026
13 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openxfactory-5 (openXfactory-5), 2026-09-13T22:48:45Z, PR #1026 → a80f0e3 (opensoft/openxFactory main; openxwallet-pin registered as a consumption member, openreposhape-pin's non-reach recorded; #775 stays OPEN — closes only on its own word; Rule 6 window closed)

brettheap added a commit that referenced this pull request Sep 14, 2026
Brings #1026 (a80f0e3) forward. No overlap with the carve manifest.

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Oct 9, 2026
) (change task 2.6)

#1284 landed on main after the first candidate (38c7881, cut from
93d13d6) and moved two release-inventory members, contracts/manifest.yaml
(the signed-execution-chain-digest-construction row's sha256, 0dfc2e8e ->
ef157d88: two digest subjects added) and contracts/README.md (the
council-convening native-index rows). Main was merged in (24699ca, never a
rebase); this commit rebuilds contracts/releases/contract-v4.1.digests.yaml
with scripts/validate-contract-release.py build from the merged bytes and
re-attributes the contract-v4.1 CHANGELOG entry by inventory diff and by a
manifest row diff against the contract-v4.0 tag:

- inventory vs contract-v4.0: 283 -> 342, 59 added (clearing family at its
  floor, byte-unchanged), 0 removed, 8 digests moved, each attributed;
- manifest rows vs contract-v4.0: 202 -> 204 (factory-mcp-declaration, this
  cut; openxwallet-pin, #1026), one changed (digest-construction, #1284);
- the number stays contract-v4.1 (claimed on #630, 6086467830).

No tag is published.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[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