Skip to content

File admit-code-leg-under-pinned-root: admit a code leg nested under a pinned assembly root to the estate inventory - #1156

Merged
brettheap merged 5 commits into
mainfrom
change/admit-code-leg-under-pinned-root
Sep 25, 2026
Merged

brettheap merged 5 commits into
mainfrom
change/admit-code-leg-under-pinned-root

Conversation

@brettheap

@brettheap brettheap commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Lane: openxfactory-5 (openXfactory-5)

Refs #1150

What this proposes

OpenSpec packet admit-code-leg-under-pinned-root, PACKET ONLY (no script, no inventory row, no test). The estate inventory's five closed admission kinds cannot admit opensoft/openDox-code or opensoft/openXdox-code, the code legs carried as gitlinks by the assembly roots openxFactory pins by commit and digest; measured on 1d14fee6, a scratch inventory carrying the leg as a gitlink in its root makes validate-estate-inventory.py --inventory <scratch> exit 2 at scripts/estate_inventory.py:966. Shape (a), RULED by Brett Heap 2026-09-24 ~16:52Z, verbatim "(a) recommended for both, ratify when the draft is green" (RULED entry against #1150 in opensoft/brett-wip lanes/log/openXfactory-5.md at 536b7ecf): a gitlink row's carrier may be a pinned row admitted by exactly one pin, and the evidence is that root's .gitmodules at the commit the pin names, read from the supplied tree's own object store with no network call. The act of admission is openxFactory's pin, not the root's tree; the reach is one hop; a row so admitted never declares governed; no kind is added; no leg is pinned or mounted by openxFactory. One ## MODIFIED block over release-realization's The estate's repositories are enumerated in a governed inventory, generated from canon's bytes (one sentence added to the gitlink bullet, the old bullet named in a Removed from canon by marker; two paragraphs and three scenarios added; eleven scenarios). The membership requirement is not modified.

Alternatives costed

design.md D1: (b) a sixth admission kind (restates the carrier's class in the admitted row, owes the same pinned-commit read under a second name, reopens the closed set for an act that is a gitlink) and (c) reading run: git submodule update lines (rejected: reverses a deliberate reading rule, makes shell text an admission, and names a path that still needs the root's .gitmodules). D4 (the leg's class) and D6 (MODIFIED over the enumeration requirement alone) are put with their alternatives costed. D0.6 records the one new hazard (a partial clone's lazy fetch) and its measured guard.

Front matter

code_surface: openxFactory — the realization is a LATER pull request editing four existing files (scripts/estate_inventory.py, scripts/validate-estate-inventory.py, scripts/estate-repository-inventory.yaml with four new rows, tests/estate_inventory/test_estate_inventory.py). target_release: implemented. The code surface is non-empty, so the packet archives only on merged-plus-green realization evidence, and #1150 closes there.

Gates

All at head 7db1c2a7395f56f9de27c68356f51334ae27ef73 (the ratification commit; re-run against the exact tree it commits):

  • OPENSPEC_TELEMETRY=0 openspec validate admit-code-leg-under-pinned-root --strict — "Change 'admit-code-leg-under-pinned-root' is valid", rc 0.
  • python3 scripts/validate-openspec-cli-pin.py --all — pinned @fission-ai/[email protected] verified against its content address; "0 UNDISPOSITIONED failures … 1 finding(s) are ACCEPTED EXCEPTIONS" (add-chain-attestation, dispositioned by Brett Heap 2026-09-05); rc 0. --change admit-code-leg-under-pinned-root — "Totals: 1 passed, 0 failed (1 items)"; rc 0.
  • python3 scripts/validate-sequenced-after.py . — "sequenced_after validation passed (46 active changes, 19 declaring the field)"; archive-date and archive-date-vs-commit agreement both pass; rc 0.
  • python3 scripts/validate-sequenced-after.py . --ledger-diff — "per-change sweep ledger consistent with the corpus (229 rows)"; rc 0 (unaffected by the ratification edit).
  • python3 scripts/doc-health.py --single-repo . --family modified-block-currency — "0 critical, 0 error, 0 warning, 13 info"; the gate-bearing scenario-title-completeness arm is 0; all 13 info findings name other changes (0 mentions of this packet); rc 0.
  • python3 scripts/doc-health.py --single-repo . --family proposal-origin — "0 critical, 0 error, 1 warning, 0 info"; the one warning names add-worker-input-budget (pre-contract legacy); 0 mentions of this packet — the new approved_by/approved_on pair (added beside the unmoved proposed_by/proposed_on) satisfies the ad-hoc origin's approval-pair completeness check; rc 0.
  • python3 scripts/doc-health.py --single-repo . --family ratified-provenance — "27 critical" findings, all pre-existing on other legacy proposals/review records; 0 mentions of this packet: proposal.md's single Ratified: citation line (within the first 15 real lines) names both an approver and a date on that one physical line, and .openspec.yaml's approval pair landed in the SAME commit as Status: ratified, so unapproved-origin-at-ratification does not fire; rc 0.

Full local suite at this tree: nohup python3 -m pytest tests/ -q -m "not postgres" -p no:cacheprovider — 8434 passed, 7 skipped, 8 failed in 1984.52s (33m04s). Diagnosed, not a regression: 7 of the 8 (tests/ideation-dashboard/test_doxbench_routes.py) are thread-exhaustion artifacts of this 33-minute run — RuntimeError: can't start new thread appears in the log, and all 7 pass standalone in isolation. The 8th, tests/doc-health/test_tag_hygiene_pinned_targets.py::test_a_lexically_malformed_value_builds_no_path_and_reads_nothing, fails only because this clone's own working-directory name clone-1150 contains the substring "one" ("clone-1150"), colliding with the test's own assertion that no spy-call argument contains that substring — a path artifact of this checkout, reproduced standalone too, and unrelated to any file this pull request touches. CI is the gate and has shown 0 pytest failures at every prior head of this pull request (b72bc795, ff466212, f9e3d011).

CI at 7db1c2a7: all 15 check-runs completed/success, including pytest-suite (run 36061959750: selected=8862 passed=8856 skipped=6 failures=0 errors=0) and copilot-pull-request-reviewer. Copilot reviewed at this exact commit (21:35:05Z; its one finding is the stale-description read, replied to and resolved — see ## Ratified below). 0 unresolved review threads (2 total, both resolved).

Ratified

RATIFIED 2026-09-24, approximately 16:52Z, by Brett Heap, verbatim "(a) recommended for both, ratify when the draft is green", given in the lane's terminal to lane openxfactory-5 (session d7c51922) BEFORE this pull request existed; recorded as a RULED entry against opensoft/openxFactory#1150 in opensoft/brett-wip lanes/log/openXfactory-5.md at commit 536b7ecf. The word RULES D1 = option (a) (design.md D1) and is otherwise bare, so D4 and D6 take their recommended options. The ratifying clause was CONDITIONAL on the draft head being green; that condition was MET at head f9e3d01124ccdc35dc5686b68ea54cfba25aade3, 2026-09-24 at 20:16:59Z (the moment the last of 14 check-runs, pytest-suite run 36051629236, completed success; Copilot had already reviewed at that exact commit with 0 new findings, and the sole review thread was already resolved). No merge word is quoted anywhere in this packet: the landing of this pull request is a separate act performed by whoever holds it.

ALL THREE POST-ROUND-A COPILOT REVIEW OVERVIEWS, DISCLOSED. Copilot reviewed this pull request four times in total; the three after Round A's original blocking review (b72bc795, tasks.md:104, the ledger-row finding Round A fixed) each carried overview prose worth recording:

  • At ff4662128f27d018e294dde3fc429f050057a828 (19:29:09Z): "🔵 Needs a closer look — The one-hop rule remains underspecified, and gate evidence is incomplete." This is the finding Round A2 folded (verifier NIT N1: the one-hop premise in tasks.md § 3.1(i), design.md D3 and proposal.md § 2 was corrected to say the hop is checked DIRECTLY, matching the realization's own test).
  • At f9e3d01124ccdc35dc5686b68ea54cfba25aade3 (20:01:12Z): "🔵 Needs a closer look — Unresolved specification wording contradictions require human review before approval." Findings: None — no item is listed as open, and the one prior finding (the missing ledger row) is listed as Resolved since last review.
  • At 7db1c2a7395f56f9de27c68356f51334ae27ef73 (21:35:04Z): "🟡 Changes recommended — Reconcile the lifecycle state and clarify the normative authority and one-hop rules." Findings: 1 (low severity) — "Reconcile PR description with ratified packet status" — read from the PR description as it stood BEFORE the reconciliation at 21:33:21Z, saying it still called the packet a DRAFT held for ratification; the review opened thread PRRT_kwDOTAvnrs6lxv-i on README.md:543. STALE: the live body already carried this ## Ratified section (naming the condition-met head f9e3d01124ccdc35dc5686b68ea54cfba25aade3) by the time this review ran. Replied citing the reconciliation timestamp and the live ## Ratified heading, and resolved, approximately 21:37Z.

The ff4662128f27d018e294dde3fc429f050057a828 and f9e3d01124ccdc35dc5686b68ea54cfba25aade3 reviews carry no inline comment and opened no thread. The 7db1c2a7 review's ONE finding is the stale-description read above, now resolved; its overview phrase "clarify the normative authority and one-hop rules" is read as pointing at the same one-hop ambiguity Round A2 already corrected non-normatively, and separately at the spec delta's own two-way-readable parenthetical named below (R1) — Copilot names no other specific text, and no review at any head has left an unresolved thread.

R1 (spec.md:79-81) IS NOT RESOLVED BY THIS RATIFICATION AND IS GOING TO BRETT HEAP SEPARATELY. The verifier's RULING ITEM R1 found the spec delta's parenthetical — "A pinned row that is not itself admitted by a pin — every row this clause admits among them — SHALL carry no row's gitlink" — reads two ways: a (false, for a leg that also carries a pin of its own) factual premise, or an inclusion. This ratification takes R1's RECOMMENDED option (a): no normative edit — the scenario at spec.md ~204 already states the strict bound unambiguously and the realization's own test enforces it, so nothing here depends on the reading. Reworded the parenthetical (option (b)) would be a requirement-text change made AFTER a ratifying word, which the lane's post-word-corrections rule sends to Brett Heap as RULING NEEDED, never folded silently. That RULING NEEDED request is being raised to Brett Heap separately (not resolved by this commit) and is owed before the § 5 archive, so the realization pull request can carry either his word to reword the parenthetical or his confirmation that (a) stands. Not one byte of specs/release-realization/spec.md moves in this pull request either way.

NOTHING ELSE IS PROMOTED, REALIZED OR ARCHIVED BY THIS RATIFICATION: no file under openspec/specs/ is edited, the realization (§ 3) is a LATER pull request the word now authorizes to be authored, and the archive (§ 5) is a separate act on a separate word and on merged-plus-green realization evidence.

🤖 Generated with Claude Code

Summary by Sourcery

Ratify a packet-only change that extends estate inventory admission to code legs nested under pinned assembly roots without adding a new admission kind or implementing the realization.

New Features:

  • Define a ratified OpenSpec change to admit code and specification legs nested beneath pin-admitted assembly roots through existing gitlink evidence.

Enhancements:

  • Constrain nested-leg admission to pinned carriers admitted by exactly one pin, one hop, and pinned-commit evidence read locally without network access.
  • Document the design alternatives, measured inventory gap, validation rules, realization plan, and future archive requirements.

Documentation:

  • Add the ratified change to the active OpenSpec records and provide its proposal, design, task plan, and release-realization specification delta.

Tests:

  • Record the change in the sequenced-after corpus ledger and document the validation and realization test obligations.

…a pinned assembly root to the estate inventory

PACKET ONLY. No script, no inventory row and no test is added here; the
realization is a LATER pull request, and the archive a separate act on
merged-plus-green evidence.

Answers #1150 (filed by lane openxfactory-4, claimed by this lane): the
estate inventory's five closed admission kinds cannot admit
opensoft/openDox-code or opensoft/openXdox-code, the code legs carried as
gitlinks by the assembly roots openxFactory pins by commit and digest. A
scratch inventory carrying the leg as a gitlink in its root is refused at
load (validate-estate-inventory.py exits 2 at estate_inventory.py:966).

Shape (a), RULED by Brett Heap 2026-09-24 ~16:52Z, verbatim "(a)
recommended for both, ratify when the draft is green" (RULED entry against
#1150 in opensoft/brett-wip lanes/log/openXfactory-5.md at 536b7ecf): a
gitlink whose carrier may be a pinned row admitted by exactly one pin, read
at the commit that pin names. No kind is added and no leg is pinned or
mounted by openxFactory. The ratifying clause is conditional on this
draft's head being green, so every lifecycle document stays Status: draft.

ONE ## MODIFIED block over release-realization's enumeration requirement,
generated from canon's bytes: one sentence added to the gitlink bullet (the
old bullet named in a Removed from canon by marker), two paragraphs and
three scenarios added, eleven scenarios in all. The membership requirement
is not modified. No active change writes the key, so sequenced_after: [] is
a corroborated root claim.

Measured before the design: of the four pin-admitted pinned rows, only
openDox (dc7aa08f) and openXdox (2f3f857d) carry submodules at their pinned
commits, naming four legs; and an unguarded object-store read in a
blob:none partial clone fetched from its promisor on git 2.43.0 while
GIT_ALLOW_PROTOCOL=none refused it, which design.md D5 makes a realization
obligation.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 24, 2026 17:00
@sourcery-ai

sourcery-ai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This packet-only PR ratifies a specification change that extends gitlink admission to code and spec legs nested one hop under pin-admitted pinned assembly roots, using the root’s pinned commit as local, network-free evidence while preserving the five admission kinds. It does not implement the validator, inventory rows, or tests; those remain explicitly deferred to a later realization PR, followed by separate merged-and-green archival work.

Sequence diagram for pinned-root gitlink admission evidence

sequenceDiagram
    participant Validator
    participant Inventory
    participant Pin
    participant RootTree
    participant Gitmodules

    Validator->>Inventory: load_inventory()
    Inventory->>Pin: read pinned commit
    Pin-->>Inventory: commit
    Inventory->>RootTree: verify carrier identity
    RootTree->>Gitmodules: git show commit:.gitmodules
    Gitmodules-->>RootTree: local submodule declarations
    RootTree-->>Inventory: gitlink evidence
    Inventory-->>Validator: admit one-hop leg or report finding

    Note over RootTree,Gitmodules: GIT_ALLOW_PROTOCOL=none, no network fetch
Loading

Entity relationship diagram for pinned assembly-root legs

erDiagram
    PINNED_ROOT {
        string repository
        string pin_commit
        string digest
    }
    LEG_REPOSITORY {
        string repository
        string governance_pinned
        string admitted_by_gitlink
    }

    PINNED_ROOT ||--o{ LEG_REPOSITORY : names_at_pinned_commit
Loading

File-Level Changes

Change Details Files
Adds and ratifies an OpenSpec packet defining a one-hop admission path for legs nested under pinned assembly roots without adding a sixth admission kind.
  • Allows a gitlink carrier to be a pinned row admitted by exactly one pin, with evidence read from the carrier’s pinned commit.
  • Keeps legs non-governed and unpinned/unmounted by openxFactory; rejects external, ambiguously pinned, and multi-hop carriers.
  • Defines network-free pinned-commit .gitmodules reads, explicit tree verification, and NOT RE-CHECKED behavior for unavailable objects.
  • Documents the alternatives, measurements, partial-clone lazy-fetch hazard, four realization rows, and deferred implementation/archival tasks.
openspec/changes/admit-code-leg-under-pinned-root/.openspec.yaml
openspec/changes/admit-code-leg-under-pinned-root/design.md
openspec/changes/admit-code-leg-under-pinned-root/proposal.md
openspec/changes/admit-code-leg-under-pinned-root/specs/release-realization/spec.md
openspec/changes/admit-code-leg-under-pinned-root/tasks.md
Registers the ratified active change and its sequencing metadata.
  • Adds the packet to the README active-changes list with ratification, scope, and deferred-realization details.
  • Seeds the per-change corpus-ledger row.
README.md
tests/sequenced_after/corpus-ledger.yaml

Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Add the missing tests/sequenced_after/corpus-ledger.yaml row before completing the corresponding task checks.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

This PR adds an OpenSpec draft for admitting gitlink legs nested under pinned assembly roots; implementation is deferred.

Changes:

  • Adds proposal, design, specification, metadata, and task documents.
  • Defines pinned-commit, one-hop, network-free admission requirements.
  • Registers the draft change in README.md.
File Summary
README.md Adds the active change entry.
openspec/​changes/​admit-code-leg-under-pinned-root/​tasks.md Tracks ratification, realization, verification, and archival tasks.
openspec/​changes/​admit-code-leg-under-pinned-root/​specs/​release-realization/​spec.md Defines the proposed inventory requirement delta.
openspec/​changes/​admit-code-leg-under-pinned-root/​proposal.md Documents scope, rationale, and alternatives.
openspec/​changes/​admit-code-leg-under-pinned-root/​design.md Records measurements and design decisions.
openspec/​changes/​admit-code-leg-under-pinned-root/​.openspec.yaml Records lifecycle and provenance metadata.

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

brettheap and others added 2 commits September 24, 2026 18:55
…root

Lane: openxfactory-5 (openXfactory-5)

Machine-seeded from the live corpus through the sanctioned command, never
hand-written. The row was seeded before this branch merged origin/main
(2 commits, 1edbb3d and 138a472); re-run from the merged tree so the row
reflects it:

  python3 scripts/validate-sequenced-after.py . --seed-ledger --moved-by '#1156' --moved-on 2026-09-24
  wrote tests/sequenced_after/corpus-ledger.yaml (229 rows, 0 moved by #1156).

ZERO IS THE RIGHT NUMBER FOR THIS INVOCATION, NOT A FAILURE TO SEED: the row
already carried moved_by "#1156" from before the merge, so re-running from
the merged tree is idempotent and reports no NEWLY moved rows. `git diff`
against the merged base shows exactly the one row this change owns:

  admit-code-leg-under-pinned-root: {state: active, class: co-modifier, declares: [], depth: 0, prose: false, moved_by: "#1156", moved_on: "2026-09-24"}

No second row flips class, and merging origin/main touched no other ledger
row.

  python3 scripts/validate-sequenced-after.py .
  sequenced_after validation passed (46 active changes, 19 declaring the field).
  archive-date agreement passed (no archived row's moved_on predates its directory).
  archive-date-vs-commit agreement passed (every archived directory is named for the UTC date of the commit that added it, or is dispositioned in place; 13 disposition(s) in force, enforcement error).

  python3 scripts/validate-sequenced-after.py . --ledger-diff
  per-change sweep ledger consistent with the corpus (229 rows).

Refs #1150

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 24, 2026 19:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The one-hop rule remains underspecified, and gate evidence is incomplete.

Review effort: Lite
Findings: 1 High severity

Open (1)

brettheap added a commit that referenced this pull request Sep 24, 2026
…ed commit

The ninth pinned-root case asserted only that the pinned commit is absent
from the report, which a realization reading the impostor's object store and
printing nothing would also pass (the verifier's N5 on the packet, #1156:
"the pinned-commit read must not be attempted"). The validator's own git
calls are now traced (`GIT_TRACE`, which the module's sanitized environment
passes through): the unverified run's trace holds the binding's reads and no
object read at all, and the verified run's trace holds `cat-file -t` of
exactly the pinned commit, so the trace cannot pass by recording nothing.

Measured in a scratch worktree at 06651cb: a validator that ATTEMPTS the
pinned read on the unverified tree and discards the result passes the case
as it stood and fails it now; one that SKIPS the binding for a pinned
carrier fails both, while all eight earlier pinned-root cases pass under it.
Test file only; no script moves.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…er-pinned-root (N1-N4, N6)

No byte of specs/release-realization/spec.md moves, and nothing under
openspec/specs/ moves. R1 takes option (a): no normative edit — the
scenario at spec.md ~204 already states the strict bound and the
realization's own test enforces it; only the packet's non-normative
restatements were wrong.

- N1 (tasks.md S 3.1(i), design.md D3, proposal.md S2): the one-hop
  premise "a row a pinned root admits is `pinned` and not `pin`-admitted"
  is false for a leg that also carries a pin of its own (the realization
  test's self_pinned_leg case). Reworded all three to say the hop is
  checked DIRECTLY: a row already carried by this shape's gitlink is
  refused as a further carrier whether or not it also carries a pin.
- N2 (design.md D0.6, D5.4, tasks.md S 2.6): GIT_NO_LAZY_FETCH=1 does not
  reproduce as "ignored, fetches anyway" on this build (Ubuntu git
  1:2.43.0-1ubuntu7.3, independently reproduced: exit 128 "lazy fetching
  disabled", blob stays absent). Named the build measured and reworded
  GIT_NO_LAZY_FETCH as a build-dependent extra; GIT_ALLOW_PROTOCOL=none
  (refused on both clones, both builds) is the guard actually relied on.
- N3 (design.md D8): the sibling-grep transcript's "(nothing)" now
  matches this packet's own delta when run at this head; noted that.
- N4 (design.md D0.2): main re-pinned openXdox after the measurement
  (#1157, 2f3f857d -> 069fe471, already merged in by Round A). Added a
  one-line re-measurement at 069fe471: same two legs, same URLs, new code
  leg carries 0 gitlinks, pin == gitlink; conclusion holds at main.
  contracts/openxdox-pin.yaml `reason:` is untouched (drafting provenance
  kept as authored).
- N6 (README.md): added the "— " continuation-line prefix every other
  Active-changes bullet in the current list carries; this packet's bullet
  was the sole outlier among non-archived entries.

Gates re-run clean after the edits: openspec strict validate, pip
sequenced-after (plain + --ledger-diff, unaffected), doc-health
modified-block-currency and proposal-origin (both unchanged: 0
critical/error naming this packet).

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Copilot AI review requested due to automatic review settings September 24, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Unresolved specification wording contradictions require human review before approval.

Review effort: Lite
Findings: None

Resolved since last review (1)

brettheap added a commit that referenced this pull request Sep 24, 2026
…build-dependent extra

The `_NO_TRANSPORT` comment still carried the old reading of the packet's
D0.6, "a 2.43.0 that fetched anyway". The packet's A2 head (f9e3d01, on
#1156) corrects it: on the Ubuntu 1:2.43.0-1ubuntu7.3 build of git,
GIT_NO_LAZY_FETCH=1 ALSO refuses the fetch (exit 128, "lazy fetching
disabled", the blob still absent), but whether a git honours it is
build-dependent, so GIT_ALLOW_PROTOCOL=none is the guard relied on. The
comment now says exactly that. Comment only; no behaviour moves.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…09-24 ~16:52Z

Brett Heap (openxFactory repository owner), 2026-09-24, approximately
16:52Z, verbatim "(a) recommended for both, ratify when the draft is
green", given in the lane's terminal to lane openxfactory-5 (session
d7c51922) BEFORE this pull request existed, recorded as a RULED entry
against #1150 in opensoft/brett-wip
lanes/log/openXfactory-5.md at commit 536b7ecf. The word RULES D1 =
option (a) (design.md D1) and is otherwise bare, so D4 and D6 take
their recommended options.

The word's ratifying clause was CONDITIONAL on the draft head being
green: every check-run completed with no failure, Copilot's review
present at that head, and zero unresolved review threads (tasks.md
S 1.4). That condition was MET at head
f9e3d01, 2026-09-24 at 20:16:59Z (the
moment the last check-run, pytest-suite run 36051629236, completed
success -- selected=8862 passed=8856 skipped=6 failures=0 errors=0);
Copilot reviewed at that exact commit.oid at 20:01:12Z with 0 new
findings; the one thread from Round A (PRRT_kwDOTAvnrs6lr36I) stayed
resolved and no new thread opened.

Applied in this commit, and nothing else:
- proposal.md: Status: ratified (line 9) plus a single Ratified: citation
  line within the first 15 physical lines (naming the approver and the
  date on that one line); the "CONDITION IS NOT YET MET" paragraph
  replaced with a RATIFIED paragraph naming the condition-met head and
  UTC, keeping the NOTHING IS PROMOTED/REALIZED/ARCHIVED sentence.
- design.md, tasks.md: Status: ratified plus a Ratified by: line in the
  precedent's form (archive/2026-09-23-add-estate-repository-inventory).
- tasks.md S 1: 1.1, 1.2 and 1.4 ticked; 1.3 ticked NOT TRIGGERED (D6 was
  not vetoed); 1.4 names the condition-met head and its evidence.
- .openspec.yaml: approved_by (folded >- block: the verbatim word, the
  channel, the RULED record with commit, the word RULES D1 = option (a)
  and is otherwise bare so D4/D6 take their recommended options, the
  named condition-met head and UTC, and that no merge word is quoted)
  and approved_on: 2026-09-24, ADDED inside origin: after proposed_on
  and before related: (git diff --numstat on this file alone: 33 0,
  additions only). kind, id, reason, proposed_by and proposed_on are
  byte-identical to before, read as of their drafting.
- README.md: the Active-changes bullet reworded to Status: ratified in
  the same-day precedent's compact form (add-neutral-product-standalone-
  operability's bullet), naming the condition-met head.

Not one byte of specs/release-realization/spec.md moves, and nothing
under openspec/specs/ moves. R1 (the spec.md:79-81 parenthetical's two
readings) takes option (a): ratify as authored, no normative edit here;
the ambiguity goes to Brett Heap separately as RULING NEEDED for a
possible amendment before the S 5 archive, disclosed in the pull
request body.

Gates at this tree (identical to the committed content): openspec
strict validate, cli-pin --all and --change (0 UNDISPOSITIONED
failures), sequenced-after plain + --ledger-diff (229 rows consistent,
unaffected by this commit), doc-health proposal-origin and
ratified-provenance (0 critical/error naming this packet; the pre-
existing 27 critical / 1 warning are unrelated legacy findings, 0 new
regressions), doc-health modified-block-currency (0 critical/error,
unaffected). Full local suite: 8434 passed, 7 skipped, 8 failed --
7 of the 8 (tests/ideation-dashboard/test_doxbench_routes.py) are
thread-exhaustion artifacts of this 33-minute run and pass standalone
in isolation; the 8th
(tests/doc-health/test_tag_hygiene_pinned_targets.py::test_a_lexically_malformed_value_builds_no_path_and_reads_nothing)
fails only because this clone's own directory name "clone-1150"
contains the substring "one" ("cl-one-1150"), colliding with the
test's own substring assertion -- a path artifact of this checkout,
unrelated to any file this commit touches. CI is the gate and has
shown 0 pytest failures at every prior head of this pull request.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Sonnet 5 <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Reconcile the lifecycle state and clarify the normative authority and one-hop rules.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Low severity

Open (1)

Comment thread README.md Resolved
@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review September 25, 2026 13: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.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="openspec/changes/admit-code-leg-under-pinned-root/specs/release-realization/spec.md" line_range="79-81" />
<code_context>
+the one revision the evidence is read at, and two pins of one root would make
+that revision a pick. An `external` repository's `.gitmodules` SHALL admit
+nothing, whatever openxFactory pins of it, an `external` repository being no
+part of this estate. A `pinned` row that is not itself admitted by a `pin` —
+every row this clause admits among them — SHALL carry no row's `gitlink`, so the
+reach ends one hop from an openxFactory pin and never runs down a chain of roots.
+A row admitted by a pinned root's `gitlink` SHALL NOT declare
+`governance: governed`: openxFactory reaches it only through its pin of the
</code_context>
<issue_to_address>
**issue (bug_risk):** The normative rule says every row admitted through this shape is not itself pin-admitted, but the realization explicitly permits a carried leg to also have its own pin. The requirement therefore has two incompatible readings and does not define whether a self-pinned leg is a valid one-hop leg or an invalid further carrier.

**Triggers:** When a pinned-root gitlink points to a repository that also has its own `pin` admission.

**Suggested fix:** Replace the parenthetical with the direct hop rule already used in `design.md` and `tasks.md`: refuse a row as a further carrier when it is already reached by this shape's gitlink, regardless of whether that row also has a pin.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: openspec/changes/admit-code-leg-under-pinned-root/specs/release-realization/spec.md:81


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDING — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-25T13:21:48Z, PR #1156 into opensoft/openxFactory main

@brettheap
brettheap merged commit daca0b8 into main Sep 25, 2026
19 checks passed
@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-5 (openXfactory-5)

LANDED — lane openXfactory-5, session b254fdd5-0bdf-44e0-bb45-5a780234009f@Eagle, 2026-09-25T13:22:05Z, PR #1156 into opensoft/openxFactory main → merge daca0b8; File admit-code-leg-under-pinned-root: admit a code leg nested under a pinned assembly root to the estate inventory

brettheap added a commit that referenced this pull request Sep 25, 2026
Brings in the packet this pull request realizes, now landed by squash as
daca0b8 (#1156, ratified): openspec/changes/admit-code-leg-under-pinned-root/.
Also brings in the refresh lane's validator seal (#1162, 57af692). Neither
touches the four files this realization edits.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
…s PR's own evidence

The packet landed by squash as daca0b8 (#1156, ratified) and was merged
into this branch at c230f4c. On the #1119 precedent (2858747, a
tasks.md-only commit inside that realization pull request, after its
packet had landed), § 3.1-3.4 are ticked here. Each is cited by the
commit or commits that did it and by the evidence taken at c230f4c:
327 passed on § 4.1's three directories; the ten pinned-root cases FAIL
against main daca0b8's scripts/ (64 pass) and all 74 pass at the head;
validate-estate-inventory.py exits 0 plain (37 rows, 34 NOT RE-CHECKED)
and with --estate-tree over the two root submodules (the four legs NAMED
at dc7aa08f and 069fe471).

§ 3.5 and § 4 are left unticked for the lane to decide. Nothing else in
the packet directory moves: no header, no Status line, no other section.

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 25, 2026
…rier, its pinned-commit re-check, and the four legs (#1163)

Realizes admit-code-leg-under-pinned-root section 3 on Brett Heap's word of 2026-09-25, verbatim "land #1163 when the verifier clears it", after the packet landed as daca0b8 (#1156): the widened gitlink carrier bound (a pinned row admitted by exactly one pin, re-checked at the commit that pin names from the supplied tree's own object store with every transport refused, NOT RE-CHECKED where the tree cannot produce the blob), the class bound on a leg row, the four legs (opensoft/openDox-spec, opensoft/openDox-code, opensoft/openXdox-spec, opensoft/openXdox-code) in the estate inventory with the header re-measured, nine fails-then-passes test cases plus a strict UTF-8 decode regression case, and the tasks.md section 3.1-3.4 ticks per the #1119 precedent. Refs #1150, Refs #1156. Sections 3.5, 4 (re-measure at realization) and 5 (archive) stay open on their own words, and #1150 stays OPEN.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 26, 2026
…o the direct hop rule (R1) (#1165)

Amends admit-code-leg-under-pinned-root's one-hop parenthetical to the direct hop rule on Brett Heap's word of 2026-09-26, verbatim "(a) recommended, land #1165 when green", ruling R1 of the lane's verifier on its recommended path: a pinned row that is not itself admitted by a pin, and every row a pinned root's gitlink admits whether or not it also carries a pin of its own, SHALL carry no row's gitlink, so the reach ends one hop from an openxFactory pin. One sentence in the packet's spec delta plus a non-normative amendment record in proposal.md; the ratified packet (daca0b8, #1156) and its realization (1c6662e, #1163), which already enforces the strict reading, are otherwise unchanged. Refs #1150. The section 5 archive follows on its own word.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
…d of 2026-09-27

On Brett Heap's archive word, verbatim "archive it when the draft is up"
(2026-09-27, approximately 00:32Z, in the lane's terminal to lane
openXfactory-5, session b254fdd5; RULED in opensoft/brett-wip
lanes/log/openXfactory-5.md at 2026-09-27T00:32:46Z against #1150,
brett-wip commit 7bbff3ab).

tasks.md § 5.1 records the merged-plus-green realization evidence the
non-empty code_surface requires, each leg cited: the packet #1156 ->
daca0b8, the realization #1163 -> 1c6662e (squash from 65565ee), the R1
amendment #1165 -> b5ec389, and pytest-suite SUCCESS on main at 1c6662e
itself (run 36149875028) and at b5ec389 (run 36274413446), with the
ancestry chain checked by git merge-base --is-ancestor.

§ 5.2 is ticked BEFORE the run because the governed wrapper refuses an open
box ("change has incomplete tasks"); the promotion itself is the wrapper's
act in the next commit, which moves this directory and records the
wrapper's decisive lines and the two-sided hash under § 5.2.

§ 5.3 records that the one keyword that shuts #1150 is placed in the
archive pull request's body and in no commit message, scanned: 0 matches
over this branch, over the 18 commits of #1156, #1163, #1165 and #1168,
and over their squash commits.

§ 5's heading records the word. §§ 1-4 and § 6 are untouched; § 6's six
- [~] boxes stay - [~].

Refs #1150

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
… carrier onto release-realization

On Brett Heap's archive word, verbatim "archive it when the draft is up"
(2026-09-27, approximately 00:32Z, in the lane's terminal to lane
openXfactory-5, session b254fdd5; RULED in opensoft/brett-wip
lanes/log/openXfactory-5.md at 2026-09-27T00:32:46Z against #1150,
brett-wip commit 7bbff3ab). code_surface is non-empty, so under
release-realization the packet archives on merged-plus-green realization
evidence, which is in hand: the packet landed as #1156 -> daca0b8 and its
R1 amendment as #1165 -> b5ec389; the realization landed as #1163 ->
1c6662e (squash from 65565ee); and pytest-suite decided SUCCESS on main
at 1c6662e itself, run 36149875028, and at b5ec389, run 36274413446
(https://github.com/opensoft/openxFactory/actions/runs/36149875028).

Performed through the governed wrapper, never a bare openspec archive:

    TZ=UTC python3 scripts/proposal-support.py . archive \
        admit-code-leg-under-pinned-root --yes

exit 0: "ORIGIN RETAINED admit-code-leg-under-pinned-root (declaration
unchanged since the ratifying commit daca0b8)", "Totals: 1 passed, 0
failed (1 items)", "Task status: Complete", "Applying changes to
openspec/specs/release-realization/spec.md: ~ 1 modified", "Totals: + 0,
~ 1, - 0, -> 0", "Change 'admit-code-leg-under-pinned-root' archived as
'2026-09-27-admit-code-leg-under-pinned-root'", "NO SUPPORTING DOCS ...
(origin retained, nothing to package)", over the content-addressed
@fission-ai/[email protected] pin and not the 1.13.1 on PATH. THE DATE IS
THE WRAPPER'S CLOCK RULE AND NOT A CHOICE: --date was not passed, so the
wrapper took utc_today() (datetime.now(timezone.utc)), 2026-09-27, ran the
pinned CLI (which has no date option) under TZ=UTC, and asserted after the
run that the directory the CLI named carries that date. The run started
at 2026-09-27T00:42:19Z; this commit is the directory's adding commit and
carries the same UTC day, which is what archive-date-vs-commit measures.

ORIGIN RETAINED WITH NO RECORD OWED: the origin block has not moved since
the ratifying commit daca0b8 (the only commit that ever touched
.openspec.yaml), so openspec/origin-dispositions.yaml is not edited.

THE PROMOTION IS THE DELTA AS WRITTEN, measured on both sides: the block
extracted by its heading from the archived delta and from canon, and
hashed. release-realization is the only capability the delta touches. The
MODIFIED block "The estate's repositories are enumerated in a governed
inventory" was 12,297 bytes / 160 lines / 8 scenarios in canon (sha256
3020c2c916df22bb...) and is now 19,044 bytes / 230 lines / 11 scenarios,
sha256 0bbd1aa2d631e8cf... on BOTH the archived delta and canon. It carries
the R1 amendment's direct hop sentence (#1165) and not the pre-amendment
parenthetical, which appears nowhere in canon. Requirements 21 -> 21,
scenarios 122 -> 125; canon's preamble and the other twenty requirement
blocks are raw byte-identical, hashed one by one, every hunk lying inside
the promoted block; --numstat +71 -1, and -w the same. The CLI diverged
from the delta nowhere.

The five packet files move as R100 pure renames. Also in this commit: the
README OpenSpec Records bullet moves from Active to the head of Archived,
its pull-request link the ARCHIVE-PR-NUMBER-PENDING marker that a later
commit replaces once the pull request exists. No modified-block-currency
_LEDGER_SUBJECTS row names this block, so no self-gate row retires. The
record of this run under tasks.md § 5.2 follows in the next commit, so
this one carries exactly the wrapper's moves plus the README record.

The one keyword that shuts #1150 sits in the archive pull request's body
and in no commit message.

Refs #1150
Refs #1156
Refs #1163
Refs #1165
Refs #1168

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Sep 27, 2026
… carrier onto release-realization (#1174)

Archives admit-code-leg-under-pinned-root on Brett Heap's word of 2026-09-27, verbatim "archive it when the draft is up": the ratified packet (daca0b8, #1156) with its section 3 realization merged and green (1c6662e, #1163) and the R1 amendment (b5ec389, #1165) is promoted onto release-realization through the governed archive wrapper, carrying the section 3.5 and 4 evidence ticks (#1168) and the section 5 ticks; the estate inventory's gitlink admission now reaches a code leg nested under a pinned assembly root, one hop, re-checked at the pinned commit with every transport refused. Refs #1156, #1163, #1165, #1168.

Lane: openxfactory-5 (openXfactory-5)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@brettheap
brettheap deleted the change/admit-code-leg-under-pinned-root branch September 27, 2026 03:06
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