Repository navigation
GATED (runbook Phase 1 COMPLETE, step 1.6 INCLUDED) — slice B1: the decision-core pin, the workflows, the operator tools (42/15) - #801
Conversation
…flows, the operator tools Lane: provenance-autonomous-merge Realizes: adopt-codexfactory-repository-identity tasks 3.5, 3.6, 3.7, 3.12, 4.5 41 occurrences across 15 files. GATED. DO NOT MERGE BEFORE THE TRANSFER. Every file here is resolved by a machine or pasted by an operator at run time: - .github/workflows/pytest-suite.yml:396 is a literal actions/checkout@v4 with repository: opensoft/codexFactory, and merge-master-approval.yml checks out the same at the commit contracts/review-lane-pin.yaml pins. Both are REQUIRED checks on every openxFactory pull request, including other lanes'. - scripts/review_lane_repin.py's SOURCE_REPOSITORY is passed to gh api repos/<x>. - docs/factory-origin-key-mint-runbook.md and docs/review-lane-repin-runbook.md carry gh api lines an operator pastes; four of them are executable. Task 3.5's one-commit rule held: the pin, the binding template, the re-pin workflow, review_lane_repin.py, pin_class.py's note text and all three review_lane_pin tests move together. Task 3.6's twelve merge-master-approval.yml occurrences move together, diagnostics included - a half-respelled diagnostic sends a human to the wrong organization. python3 -m pytest tests/review_lane_pin tests/factory_identity/test_mint_script.py -> 156 passed, 38 skipped, 48 subtests passed. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
🟡 Changes recommended
The workflows now target codeXfactory/codexFactory but still mint GitHub App tokens against ${{ github.repository_owner }}, which won’t locate the correct installation once codexFactory is in a different org and will keep the decision-core checkout unreadable.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the “decision core” / codexFactory repository identity references from opensoft/codexFactory to codeXfactory/codexFactory across the pin contract, CI workflows, operator runbooks, and supporting scripts/tests, aligning openxFactory’s gated workflows and operator tooling with the post-transfer repository address.
Changes:
- Repoint the decision-core pin and all pin-asserting tests to
codeXfactory/codexFactory. - Update GitHub Actions workflows (
pytest-suite,merge-master-approval,review-lane-repin) to check out the decision core from the new repo. - Update operator runbooks and origin-key mint tooling/templates to target the new codexFactory address.
File summaries
| File | Description |
|---|---|
| tests/review_lane_pin/test_review_lane_caller.py | Updates the pinned repository string used by lane pin tests. |
| tests/review_lane_pin/test_repin_lane.py | Updates assertions for the workflow checkout repository and binding repository. |
| tests/review_lane_pin/test_floor_snapshot.py | Updates pinned repository constant used by snapshot freshness verifier tests. |
| tests/factory_identity/test_mint_script.py | Updates expected operator merge command repo target for codexFactory. |
| scripts/review_lane_repin.py | Updates the repin lane’s SOURCE_REPOSITORY constant to the new org. |
| scripts/mint-factory-origin-key.py | Updates TARGET_REPO and record template content to the new org. |
| scripts/doc_health/pin_class.py | Updates doc-health pin classification note text to the new repo spelling. |
| docs/review-lane-repin-runbook.md | Updates executable gh api commands and permission table to new org/repo. |
| docs/factory-origin-key-mint-runbook.md | Updates prerequisites, preflight references, and template text to new org/repo. |
| contracts/review-lane-repin-binding.template.yaml | Updates source repository privilege declaration to new org/repo. |
| contracts/review-lane-pin.yaml | Updates the pinned workflow contract repository field and explanatory comment. |
| .github/workflows/review-lane-repin.yml | Updates lane env/checkout target repository to new org/repo. |
| .github/workflows/pytest-suite.yml | Updates decision-core checkout repository to new org/repo. |
| .github/workflows/merge-master-approval.yml | Updates decision-core checkout repository and diagnostic text to new org/repo. |
| .github/merge-approval-envelope.yml | Updates the schema source repo reference in the envelope header comment. |
Review details
Suppressed comments (4)
.github/workflows/pytest-suite.yml:400
- The decision-core checkout now targets
codeXfactory/codexFactory, but the only non-github.tokencredential this job mints is the openxFactory App token (create-github-app-tokenowner: ${{ github.repository_owner }}), which will not be able to access codexFactory once it lives under thecodeXfactoryorg. This will make the requiredpytest-suitecheck deterministically fail even after the transfer unless the token mint is updated to target thecodeXfactoryinstallation (or a dedicated token is minted for that org/repo).
- name: Check out the pinned decision core (freshness verifier only)
id: core
continue-on-error: true
uses: actions/checkout@v4
with:
repository: codeXfactory/codexFactory
ref: "4b12ba83add713666a94129fc45552d8989f8488"
path: .merge-master-core
persist-credentials: false
token: ${{ steps.app-token.outputs.token || github.token }}
.github/workflows/review-lane-repin.yml:389
- This checkout is now against
codeXfactory/codexFactory, but the workflow’ssource-tokenmint is still scoped withowner: ${{ github.repository_owner }}(openxFactory’s org). After codexFactory moves tocodeXfactory, the App token mint will look up the wrong installation andsteps.source-token.outputs.tokenwon’t be able to read the repo, causing this checkout (and the lane) to fail.
- name: Check out the candidate core so the freshness verifier can run
if: steps.repin.outputs.action == 'advance'
uses: actions/checkout@v4
with:
repository: codeXfactory/codexFactory
ref: ${{ steps.source.outputs.sha }}
path: .merge-master-core
persist-credentials: false
token: ${{ steps.source-token.outputs.token }}
.github/workflows/merge-master-approval.yml:613
- The checkout now points at
codeXfactory/codexFactory, but bothactions/create-github-app-token@v2mints for the decision-core read token(s) still useowner: ${{ github.repository_owner }}(openxFactory’s owner). After transfer, codexFactory will not be under that owner, so the token mint will not find the correct installation and the checkout will remain unreadable even if the App is installed oncodeXfactory/codexFactory.
- name: Checkout decision core (codeXfactory/codexFactory, pinned)
id: core
continue-on-error: true
uses: actions/checkout@v4
with:
repository: codeXfactory/codexFactory
ref: "4b12ba83add713666a94129fc45552d8989f8488"
path: .merge-master-core
persist-credentials: false
token: ${{ steps.repo-token.outputs.token || steps.org-token.outputs.token || github.token }}
scripts/mint-factory-origin-key.py:853
- This table row hard-codes
codeXfactory/codexFactoryeven though the template already includes a{target_repo}placeholder later. Using{target_repo}here keeps the table consistent with the actual configuredTARGET_REPO.
| `codeXfactory/codexFactory` | `key-factory-codexfactory-0001` | `{public_key}` | `{key_fingerprint}` |
- Files reviewed: 15/15 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| ## What was minted | ||
|
|
||
| One Ed25519 key pair, the ORIGIN identity of `opensoft/codexFactory`. Exactly | ||
| One Ed25519 key pair, the ORIGIN identity of `codeXfactory/codexFactory`. Exactly |
…appened mid-sweep Lane: provenance-autonomous-merge The feature's tasks.md ledger now names the real pull requests: #799 slice A, safe now - the sweep evidence, the 8 safe-now renames, the freeze proof #801 slice B1, DRAFT gated - the decision-core pin, the workflows, the operator tools (41/15) #802 slice B2, DRAFT gated - the origin identity, HUMAN MERGE WORD ONLY (35/14) #805 slice B3, DRAFT gated - the eight contract-v3.4 inventoried members (12/9) #806 slice B4, DRAFT gated - the remaining prose and README.md per line (28/14) P6 the mapping row - NOT OPENED, blocked on medxsoft task 1.1 P7 the bundle cut - NOT OPENED, owed the moment #805 merges Evidence 13 records the drift that happened while the sweep was being filed: origin/main advanced nine commits to e7c5301 when Brett merged #783. It added no codexFactory occurrence to README.md - still exactly nine - but shifted the line numbers for the SECOND time since the packet was written, which is the whole argument for a rule over path classes instead of a hand enumeration. The per-line README rename is applied programmatically against the recorded verdict set and REFUSES on any occurrence it has no verdict for. Re-measured at the merged head: 372/164, every delta attributed - slice A's 8 left contracts-live, this feature's own specs/030 documents added 36 to the specs/** FROZEN class, and this evidence file added 17 to active-packets, the self-reference 11 predicted. Gates re-run: openspec --all --strict now 100 passed / 1 failed with the SAME single failure, and --ledger-diff green at 184 rows after #783's new row. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
Decision-core checkouts now target codeXfactory/codexFactory but at least two workflows still mint App tokens against the current org installation (owner: ${{ github.repository_owner }}), which will prevent reading the decision core post-transfer.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (3)
.github/workflows/pytest-suite.yml:400
actions/checkoutis now targetingcodeXfactory/codexFactory, but the token used here is minted from the workflow’s local App installation (owner: ${{ github.repository_owner }}earlier). After the transfer, that installation token will not be able to read a repo in a different org, so this checkout will fail and the required freshness verifier will permanently red.
repository: codeXfactory/codexFactory
ref: "4b12ba83add713666a94129fc45552d8989f8488"
path: .merge-master-core
persist-credentials: false
token: ${{ steps.app-token.outputs.token || github.token }}
.github/workflows/merge-master-approval.yml:613
- This checkout now targets
codeXfactory/codexFactory, but the read-token mints in this workflow still useowner: ${{ github.repository_owner }}withrepositories: codexFactory(i.e., they mint an installation token for the opensoft org). After the transfer, those tokens won’t be able to readcodeXfactory/codexFactory, so the decision-core checkout will fail even if the App is correctly installed on the new org.
repository: codeXfactory/codexFactory
ref: "4b12ba83add713666a94129fc45552d8989f8488"
path: .merge-master-core
persist-credentials: false
token: ${{ steps.repo-token.outputs.token || steps.org-token.outputs.token || github.token }}
.github/workflows/review-lane-repin.yml:389
- This workflow now checks out
codeXfactory/codexFactory, but itssource-tokenmint usesowner: ${{ github.repository_owner }}withrepositories: codexFactory(minting a token for the opensoft org installation). That token will not be able to read a repo that lives in a different org after the transfer, so the candidate-core checkout will fail.
repository: codeXfactory/codexFactory
ref: ${{ steps.source.outputs.sha }}
path: .merge-master-core
persist-credentials: false
token: ${{ steps.source-token.outputs.token }}
- Files reviewed: 15/15 changed files
- Comments generated: 1
- Review effort level: Lite
| # 1. Resolve the codexFactory commit and CONFIRM IT IS ON THE DEFAULT BRANCH. | ||
| gh api repos/opensoft/codexFactory --jq .default_branch | ||
| CORE=$(gh api repos/opensoft/codexFactory/commits/main --jq .sha) | ||
| gh api "repos/opensoft/codexFactory/compare/main...${CORE}" --jq .status # identical|behind | ||
| gh api repos/codeXfactory/codexFactory --jq .default_branch | ||
| CORE=$(gh api repos/codeXfactory/codexFactory/commits/main --jq .sha) | ||
| gh api "repos/codeXfactory/codexFactory/compare/main...${CORE}" --jq .status # identical|behind |
|
Lane: provenance-autonomous-merge
|
| step | what it does | why this slice needs it |
|---|---|---|
| 1.2 | confirms codeXfactory/codexFactory exists and is private |
the checkout has a target |
| 1.6 | reinstalls the GitHub Apps on codeXfactory and re-grants repository access |
the checkout authenticates with steps.app-token.outputs.token, minted by the openxFactory App. App installations are per organization and do NOT travel with a transfer (design.md § 7, item 6). Without 1.6 the repository exists and the token still cannot read it, so pytest-suite stays red for the same three assertions |
Runbook step 1.3 (access_level=enterprise) governs cross-organization reusable-workflow uses: resolution, which is what OQ-1 exists for; it is a precondition for the aggregation's uses: paths (Phase 2) rather than for this actions/checkout. Both are inside the Phase 1 window, so the practical instruction is unchanged in shape: merge this slice after Phase 1 completes, not at step 1.2.
The check to run at merge time, and the number that proves it
After the transfer and the App re-grant, pytest-suite on this branch must show skipped=21 and both named verifiers passed. EXPECT_SKIPPED: 21 is, in effect, a live probe for whether the cross-repository checkout resolved — a much better signal than reading the checkout step's own warning, because it is a required check and it fails closed.
Still not for merge without Brett's word.
…included Lane: provenance-autonomous-merge Slice B1 (#801) reds pytest-suite BEFORE the transfer, which is the (a)/(b) classification being proved rather than argued: selected=10333 passed=10310 skipped=23 failures=0 errors=0 floors: selected>=7090 (margin 3243) passed>=7070 (margin 3240) skipped==21 ZERO failures, zero errors, both floors clear by ~3,240 - no test regressed. The job fails on three assertions that are one fact: pytest-suite.yml's 'Check out the pinned decision core' step now names codeXfactory/codexFactory, which does not exist, and the step is continue-on-error, so the freshness verifier and the vector replay SKIP instead of passing and the skipped count moves 21 -> 23. EXPECT_SKIPPED: 21 is therefore a live, fail-closed probe for whether the cross-repository checkout resolved - better evidence than reading the checkout step's own warning, because it is a required check. REFINEMENT, and it is load-bearing for the transfer window: step 1.2 only confirms the repository exists. The checkout authenticates with the openxFactory App token, and App installations are PER ORGANIZATION and do NOT travel with a transfer (design.md 7, item 6). So the gated slices additionally need runbook step 1.6. Read 'lands at runbook step 1.2' as 'lands when Phase 1 is complete, 1.6 included'. Step 1.3 (access_level=enterprise) governs reusable-workflow uses: resolution - OQ-1's purpose - and gates the aggregation's Phase 2 paths rather than this actions/checkout. Recorded, not corrected in place: the runbook is the operator's document and this is a finding about it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: provenance-autonomous-merge — adversarial review (Opus), 2026-09-08 Convener-ordered review of all four gated slices. Read-only: no file changed, nothing pushed, draft status untouched. Checks were run in a throwaway worktree at Verdict: BLOCKER. The slice respells every target of the cross-repository read and leaves every credential scoped to BLOCKERB-1. The checkout moves to
|
| file:line | text, unchanged by this PR |
|---|---|
.github/workflows/pytest-suite.yml:324 |
owner: ${{ github.repository_owner }} — no repositories:, so the token is the whole opensoft installation |
.github/workflows/merge-master-approval.yml:553-554 |
owner: ${{ github.repository_owner }} + repositories: codexFactory (repo App) |
.github/workflows/merge-master-approval.yml:564-565 |
same (org App) |
.github/workflows/review-lane-repin.yml:192-193 |
same, permission-contents: read — and this step has no continue-on-error |
contracts/review-lane-repin-binding.template.yaml:103 |
identity_namespace: "github:opensoft", while :110 in this diff becomes codeXfactory/codexFactory |
The check I ran, over the 52 files the four drafts touch:
for f in $(cat slice_files.txt); do
grep -nE "owner:|repository_owner|identity_namespace" "$f" | sed "s|^|$f:|"
donereturns exactly those five sites, and gh pr diff 801 contains none of them.
Why this is not cosmetic. actions/create-github-app-token@v2 resolves the installation from the owner: input (GET /orgs/<owner>/installation) and the token it returns can reach only repositories of that installation. Runbook step 1.6 creates a second, separate installation on codeXfactory; it does not widen the opensoft one. This repository already states the rule in as many words, at contracts/review-lane-repin-binding.template.yaml:143:
owner:alone would yield a token good for every repository this App is installed on in the organization
So after Phase 1 completes with 1.6 done, pytest-suite on this branch still reads skipped=23 with TheFreshnessVerifier and TheVectorReplay both skipped — the same three assertions it fails today — and the merge-time proof your own comment names ("must show skipped=21 and both named verifiers passed") can never be produced. review-lane-repin is worse: its mint at :186 is not continue-on-error, so the lane hard-fails at the mint rather than at the checkout.
And no test can catch it. tests/review_lane_pin/test_repin_lane.py::test_the_token_is_scoped_to_the_bindings_two_repositories (line 1190) and ::test_each_mint_requests_exactly_its_repository_grants (line 1216) both key on
self.binding["privileges"][key]["repository"].split("/", 1)[1]— the bare name. They are owner-blind by construction and stay green across this respelling. That is why the divergence is silent.
One more reason the signal is thinner than it looks. merge-master-approval reports SUCCESS on this pull request. That is not evidence: the workflow is on: pull_request_target, so GitHub reads the workflow file from the base branch. The twelve respellings in merge-master-approval.yml are exercised by no check here at all — their first run is on main, on somebody else's pull request.
Recommended fix, in the same commit:
- Add a separate mint in
pytest-suite.ymlfor the cross-organization read,owner: codeXfactory+repositories: codexFactory+permission-contents: read, and point the pinned-core checkout'stoken:at it. Do not change the existingapp-tokenstep: line 331 uses it to rewrite theopensoft/openXwalletsubmodule URL (contracts/openxwallet-pin.yaml:35), so it must stay opensoft-scoped. - Set
owner: codeXfactoryon bothmerge-master-approval.ymlmints (553, 564) and onreview-lane-repin.yml:192. - Respell
identity_namespaceatcontracts/review-lane-repin-binding.template.yaml:103, or record on the row why one namespace still covers two organizations. - Add a test that ties each decision-core mint's
owner:to the owner segment ofcontracts/review-lane-pin.yaml'srepository:, so this cannot drift again. Today nothing does.
HIGH
H-2. Title and body gate at step 1.2. The true gate is Phase 1 complete, 1.6 included — and that lives only in a comment.
Title: "GATED (runbook 1.2)". Body: "GATED — lands at runbook step 1.2". The 1.6 refinement is correct and well argued, but it is in this pull request's single comment, not in the body or the title. A merger who reads the body at the window merges at 1.2 and gets the red. Amend both.
H-3. Neither operator runbook states the App-installation precondition, and one of them now describes a cross-organization install without saying so.
docs/review-lane-repin-runbook.md:142 still reads "The lane runs under the App already installed in both repositories". After this diff respells :150, those two repositories are in two organizations, and the runbook says nothing about a second installation (runbook 1.6) or about the owner-scoped mint of B-1. docs/factory-origin-key-mint-runbook.md:117 respells "the worker-credentials environment of codeXfactory/codexFactory resolves" with no note that this depends on transfer step 1.5 (environments and secrets survived the transfer); grep -niE "install|github app|1\.6|transfer" docs/factory-origin-key-mint-runbook.md returns nothing. These are documents an operator pastes from, which is the reason task 4.5 exists — add the preconditions.
MEDIUM
M-5. The EXPECT_SKIPPED ledger convention is not honoured.
.github/workflows/pytest-suite.yml:530-557 is a ledger with a recorded note for every consideration of that number — "MOVED 20 -> 21 on 2026-08-27…", "UNCHANGED AT 21 ON 2026-09-01, AND THAT IS THE DESIGN", "UNCHANGED AT 21 BY mirror-floor-addition-grace" — and the file's own rule at :474 is "a real change to the suite moves it, and the fix is to update these three with the reason in the commit message — never to relax the comparison." This slice changes the resolvability of the very checkout the ledger's last two entries are about and adds no entry. Add one: unchanged at 21; red at 23 until Phase 1 (1.6 included) completes; 21 with both named verifiers passed is the merge-time proof. An operator reading the workflow finds the explanation where they are already looking, rather than only in a pull-request comment.
M-4. No merge order is written anywhere, and two things do depend on one.
git merge-tree --write-tree origin/main <each branch> is conflict-free for all four, and the four file sets are provably disjoint, so the merges themselves are order-free. But packet task 7.1 requires tests/review_lane_pin, tests/clearing, tests/factory_identity and tests/hermes_runtime_contracts green on the renamed tree before the cut, and task 6.5's zero-residual check is over the whole corpus — so both are strictly after all four slices. Nothing on any body says so. State the sequence (#801 + #802 + #805 + #806 → 6.5 → 7.2–7.4) here and in the runbook's Phase 10.
LOW
L-1. merge-master-approval is advisory, not required.
The body's table says an early merge means "the merge-master-approval required check fails". The workflow declares the opposite about itself in the very text this diff edits: "This check is ADVISORY and blocks no merge." Accurate for pytest-suite; overstated for merge-master-approval.
L-3. The branch is 34 commits behind main, so every line number in the body is stale.
git merge-base origin/main for this branch is e7c53012; git rev-list --count e7c53012..origin/main = 34. No textual conflict, so this is not a merge risk — but the numbers a reviewer checks against are measured at a tree that no longer exists. Re-measure at the window or mark them historical.
NOTE — what I verified and found correct
- Case is exact. 41 occurrences added, 41 removed, counted with
grep -o; every added spelling is preciselycodeXfactory/codexFactory. No lowercase or mixed variant, no GHCR or image reference, no.gitmodules-shaped URL — so OQ-6's derived-lowercase question does not arise in this slice. - Nothing frozen or not-swept is touched.
git diff --name-only e7c53012 <head> -- contracts/signed-execution-chain/ openspec/changes/ specs/ docs/decisions/ ideation/is empty, and all 15 files are in a RENAME pathspec, so no non-inventoried line is respelled. - No inventoried member is touched. None of the 15 files appears as a
path:incontracts/releases/contract-v3.4.digests.yaml(283 entries) — so this slice owes no bundle cut, exactly as the body says. - The mint script has no git-remote handling.
TARGET_REPOappears only ingh api/gh secret/gh prinvocations;grep -niE "remote|get-url|git@github|https://github" scripts/mint-factory-origin-key.pyreturns nothing. So nothing here depends on a NEW→old redirect, which does not exist, and a stale localoriginon a codexFactory clone still pushes through the old→new redirect that does. pytest-suitefails closed, robustly. Thecontinue-on-errorcheckout is watched twice: by the aggregateEXPECT_SKIPPEDpin and, since the Codex P2 finding on Activate the OpenSpec floor: the pin advances, the lane refuses what the enumeration names, and the required suite watches the snapshot #569, byFRESHNESS_CLASSNAME— the verifier looked up by name in the JUnit report and required to have run and passed. A canceling pair of skips cannot hide the loss. That design is why B-1 is a blocker rather than a silent degradation: the failure will be loud, and it will be loud forever.- No test pins the
pin_class.pynote text, so respelling it at:793breaks nothing.
… core is scoped to codeXfactory Review finding B-1 (BLOCKER, PR #801). This slice respelled every TARGET of the cross-repository read — the `actions/checkout` `repository:`, the pin, the `SOURCE_REPOSITORY`, the binding's `privileges` — and left every CREDENTIAL naming the organization the repository left. `create-github-app-token@v2` resolves the installation from its `owner:` input (`GET /orgs/<owner>/installation`) and the token it returns reaches only THAT installation's repositories; transfer step 1.6 creates a SECOND, SEPARATE installation on `codeXfactory` and does not widen the `opensoft` one. So the post-transfer green this pull request names as its own merge gate — `skipped=21` with both named verifiers `passed` — could not have been produced at all, however completely Phase 1 ran. Three workflows, four mints: * `merge-master-approval.yml` — both mints (the repository App and the org App) take `owner: codeXfactory`. They keep their `continue-on-error`, for the reason already written above them: the NAMED checkout diagnostic in step 4 is what a human must read, not an opaque action failure. * `review-lane-repin.yml` — the source-read mint takes `owner: codeXfactory` and has NO `continue-on-error`, deliberately and stated as such in the file. It fails CLOSED at the mint, with `create-github-app-token`'s own message naming the owner it could not resolve. * `pytest-suite.yml` — a SECOND mint, `owner: codeXfactory` + `repositories: codexFactory` + `permission-contents: read`, feeding the pinned-core checkout's `token:`. The existing `app-token` step is DELIBERATELY UNCHANGED: the URL rewrite beneath it authenticates the `opensoft/openXwallet` gitlink, which did not move. Two targets in two organizations need two tokens; one token cannot be both. And a test, because nothing could have caught this. The two mint assertions in `test_repin_lane.py` key on `repository.split("/", 1)[1]` — the BARE NAME — so they are owner-blind by construction and stayed green across the whole respelling. `test_review_lane_caller.py` gains the rule from both directions: from the checkouts (every `actions/checkout` of the pin's repository, through every mint its `token:` expression names) and from the mints (every `create-github-app-token` narrowed to the pin's bare repository name). Either alone can be evaded; together they leave no way to respell a target without moving its credential. Lane: provenance-autonomous-merge
|
Note SUPERSEDED 2026-09-08 by #801 (comment). Lane: provenance-autonomous-merge — fix round, interrupted by a machine restart. Head is now Answering #801 (comment) finding by finding, so the next session picks up from a known line. FIXED
Freeze still holds at this head: Still open on this pull request — the next session starts here
|
There was a problem hiding this comment.
🟡 Changes recommended
The new workflow-scan test currently ignores job scoping for steps.* resolution (can mis-validate real workflows), and the repin runbook still hardcodes main despite querying the default branch.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
Suppressed comments (1)
docs/review-lane-repin-runbook.md:111
- The runbook says to confirm the repository's default branch, but then hard-codes
mainfor the commit resolution and compare. If the default branch is notmain, the commands will resolve/compare the wrong ref and can mislead the operator. Capture the default branch into a variable and use it consistently.
# 1. Resolve the codexFactory commit and CONFIRM IT IS ON THE DEFAULT BRANCH.
gh api repos/codeXfactory/codexFactory --jq .default_branch
CORE=$(gh api repos/codeXfactory/codexFactory/commits/main --jq .sha)
gh api "repos/codeXfactory/codexFactory/compare/main...${CORE}" --jq .status # identical|behind
- Files reviewed: 15/15 changed files
- Comments generated: 1
- Review effort level: Lite
| steps = [step | ||
| for job in (document.get("jobs") or {}).values() | ||
| if isinstance(job, dict) | ||
| for step in (job.get("steps") or []) | ||
| if isinstance(step, dict)] | ||
| mints = {step["id"]: step for step in steps | ||
| if "id" in step |
… the transfer Fix round on the adversarial review of #801 — H-3, M-5 and the record owed for B-1 recommendation 3. No respelling changes: the 41/15 set is untouched. H-3. Both operator runbooks in this slice now STATE the precondition the respelling created, because these are documents somebody pastes from: * `docs/review-lane-repin-runbook.md` — "the App already installed in both repositories" was true when both were in one organization and is now a half-truth. It says outright that two organizations is TWO installations, that a GitHub App installation is per-organization so installing on one does not widen the other, that the source-read mint therefore names `owner: codeXfactory` LITERALLY rather than `${{ github.repository_owner }}`, and that the mint fails CLOSED. The remedy for a refusal is the installation, never a wider token. * `docs/factory-origin-key-mint-runbook.md` — a PRECONDITION block under "Before you start" naming the two transfer steps every `codeXfactory/...` line in the file depends on: 1.2 (the address resolves at all) and 1.5 (the `worker-credentials` environment and `FACTORY_ORIGIN_SIGNING_KEY` survived the transfer), with the read-only command to confirm the second. And the refusal that matters: do not "fix" a preflight failure by minting into the old address — a secret written through a redirect lands wherever the redirect resolves and the register would then name a custody location nobody can audit. If either precondition is unmet the ceremony does not start. M-5. The `EXPECT_SKIPPED` ledger gets its entry, in the form the file's own rule at the header demands. UNCHANGED AT 21, and on this branch that number is a gate rather than a report: 23 with both named verifiers `skipped` BEFORE the transfer (the only red this branch is allowed to carry, and the reason the pull request is a draft no early green can clear), 21 with both verifiers `passed` AFTER step 1.6 — which is the merge-time proof, and the only check that performs the cross-organization read at all. The entry also says what a 23 seen AFTER the transfer means: the installation, the App's repository access or the reusable-workflow access policy is wrong, and moving the pin to 23 would make exactly the failure this design exists to surface into the expected state, permanently. B-1 recommendation 3 is NOT applied and needs Brett's word. The record is `openspec/changes/adopt-codexfactory-repository-identity/review/addendum-2026-09-08-token-namespace.md`. `identity_namespace` at `contracts/review-lane-repin-binding.template.yaml:103` is a governed contract member that task 3.5 does not name — 3.5 enumerates lines 46 and 110 of that file and no other — and it carries no `opensoft/codexFactory` literal, so the sweep arithmetic is unaffected in either direction. Canon defines the member by what issued the FETCH IDENTITY, and the fetch identity is an Actions secret in `opensoft/openxFactory`, which does not move; nothing executable turns on the value either, because the pair comparison it feeds fires only where TWO bindings share a secret and this repository has no such pair. The addendum states both readings, what reads the field, and a proposed ruling: keep the value, add a comment, record the field as deliberately not respelled. One line either way at the window. Lane: provenance-autonomous-merge
|
Lane: provenance-autonomous-merge — fix round COMPLETE on this pull request. Head Answering #801 (comment) finding by finding.
B-1 rec 3, the one declined itemRecorded in
Proposed ruling in the record: keep Validators at this head
The expected red, stated so it is not mistaken for a defect: |
There was a problem hiding this comment.
🔵 Needs a closer look
A couple of small but operator- and test-correctness issues were found (workflow scanning misses .yaml, and the runbook confirms default branch but hard-codes main for subsequent commands).
Review details
Suppressed comments (3)
Previously missed (1) — in code that hasn't changed since the last review.
tests/review_lane_pin/test_review_lane_caller.py:376
- These tests say they walk “every workflow in the repository”, but the glob only includes
*.ymland will silently ignore any workflow added as*.yaml. This makes the coverage claim in the docstring incorrect and can let future drift slip through untested.
This issue also appears on line 448 of the same file.
tests/review_lane_pin/test_review_lane_caller.py:452
- Same issue as above: the scan only includes
*.yml, so a*.yamlworkflow would be skipped even though the docstring claims this checks “every workflow in the repository”.
owner, bare = pinned.split("/", 1)
checked = []
for workflow in sorted((REPO_ROOT / ".github/workflows").glob("*.yml")):
document = yaml.safe_load(workflow.read_text(encoding="utf-8"))
docs/review-lane-repin-runbook.md:112
- The runbook asks the operator to confirm the default branch, but then hard-codes
mainfor both the commit lookup and the compare. If the default branch is notmain, the snippet will fetch/compare the wrong ref (and the confirmation step becomes misleading).
# 1. Resolve the codexFactory commit and CONFIRM IT IS ON THE DEFAULT BRANCH.
gh api repos/codeXfactory/codexFactory --jq .default_branch
CORE=$(gh api repos/codeXfactory/codexFactory/commits/main --jq .sha)
gh api "repos/codeXfactory/codexFactory/compare/main...${CORE}" --jq .status # identical|behind
- Files reviewed: 16/16 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
LANDING — lane provenance-autonomous-merge, session 21d83a@Eagle, 2026-09-09T15:40:45Z, PR #801 into openxFactory main Brett Heap (convener), verbatim "merge 801", 2026-09-09T15:40:45Z. Ceremony merge 1 of 4 (runbook Phase 10 order); 6.5 precondition satisfied (B1b assignment, #279); 1.6/1.6a proven. Registered-green: 11/11 pass, skipped=21, 0 pending at c8d047e. Lane: provenance-autonomous-merge |
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
Fresh merge ref so pytest-suite runs the repointed pinned-core checkout; no content change to the PR's own diff. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…a-moved-path Fresh merge ref so pytest-suite runs the repointed pinned-core checkout; no content change to the PR's own diff. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…porting Fresh merge ref so pytest-suite runs the repointed pinned-core checkout; no content change to the PR's own diff. Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…oor-regeneration-merge-authority Lane: openxfactory-2 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…codeXfactory) into change/archive-bump-openspec-cli-pin-to-1.12 Lane: codexfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VazHnCSe7mh4WUj7E97h8y
…le: union of § addenda from B1 (landed as #801) and B2 Lane: provenance-autonomous-merge Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ntent_apply_lane reaches sessions through the openXdox surface (split-opendox § 3.1) (#843) OQ-B pre-carve re-plumb, part 1 of 2 (B-1 + B-3), realizing Brett Heap's ruling "rule all OQs as recommended" (2026-09-09), on his word "merge 843 when green". Mechanical, inside openxFactory; no behaviour, signature or public-name change. - B-1: the slug family (`MAX_SLUG_CHARS`, `_SLUG_KEY_SEPARATOR`, `_SLUG_KEY_DIGEST_CHARS`, `_slug_key_digest`, `slug` — 66 lines, byte-identical, sha256 ac32a122…) moves from `scripts/ideation_dashboard/workbench.py` to the new neutral module `scripts/path_slug.py` beside `output_boundary.py` (`not_moved / replicated_at_destination` at the carve, RULED OQ-A/OQ-C); `workbench.py` re-exports the same objects; `human_seen.py` (adapter column) reads `slug` from the neutral module — the ruled edge is gone. - B-3: new `scripts/ideation_dashboard/openxdox_surface.py` (openXdox column) is a named re-export of `branch_session.bootstrap_sessions` and nothing else; `intent_apply_lane.py` reaches sessions through it — at the carve the lane's import becomes a package-path rewrite. - Edges (AST, five spellings): openxFactory→openDox 8 → 6; no new forbidden-direction edge. Remaining six are the `boundary` shim reaches, B-2 (`serve_openxfactory_lanes → serve_wire`, its own PR), and `lens_submission`'s two (OQ-B's fourth item, `import rewrites` at the carve). - `tests/notebooklm/` DEFERRED by measurement (22 distinct names / 65 reaches over four openDox modules, all as namespace imports, one private): recommended `import rewrites at the carve`, like `lens_submission` — recorded on #656. - Tests: new `tests/ideation-dashboard/test_oqb_replumb.py` (7) + a `path_slug` neutrality test in `tests/doc-health/test_import_direction.py`; Copilot round 1 taken; independent verification PASS WITH NOTES (10/10) on the PR, its one should-fix taken in a second round (a source-level assertion that workbench re-exports rather than redefines the slug family). Landed after the estate freeze lifted: the required `pytest-suite` had been red on every openxFactory PR since the codexFactory org transfer (pinned-core token) until #801 repointed it; the advisory `merge-master-approval` red of the same cause is disclosed, not a finding against this change. Refs #656 (stays OPEN). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…S-1/S-3, and true-up lens_submission's docstring after B-1; B-2's relocation measured and held for a ruling (split-opendox § 3.1) (#848) The owed line-citation refresh after the § 3.1 pre-carve splits, sequenced before the carve manifest because every manifest row carries a sha256 — on Brett Heap's word "merge 848 when green" (2026-09-09). Prose only; every changed file's AST (docstrings stripped) is identical to main. - Eight citation numbers across four files (`scripts/ideation_dashboard/serve_wire.py`, `tests/ideation-dashboard/test_doxbench_abstract_route.py`, `test_doxbench_scope.py`, `test_doxbench_turns.py`) refreshed to the symbols' locations after S-1 (#837, −71 lines in `doxbench_scope.py`) and S-3 (#835); one historical S-3 citation and three archived-change hits correctly left; the `staging-workbench-model.js` citation family is out of scope. - `lens_submission.py:36-38`'s docstring trued up after OQ-B B-1 (#843: `human_seen` reads `slug` from the neutral `scripts/path_slug.py`). - B-2's relocation was measured and HELD for a ruling, not performed: `hosted_ref_refused` reaches `snapshot_registry` (openXdox) and cannot be neutral; the recommended home (i′) is `serve_projection.py` beside `hosted_index`, which keeps the serve-surface location pin green with no test edits (verified). The three string constants take the neutral module when B-2 is ruled. - Independent verification PASS WITH NOTES (8/8 citations exact by three instruments); body corrections taken. Landed after the estate freeze lifted (required `pytest-suite` red on every openxFactory PR since the codexFactory org transfer until #801 repointed the pinned-core token); the advisory `merge-master-approval` red of the same cause is disclosed, not a finding against this change. Refs #656 (stays OPEN). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…pinned-core token fix, so the required pytest-suite is judged on its own result None of this branch's seven files is touched by the move (`git diff --name-only 6df2173..origin/main` names none of them), so the re-plumb is unchanged; the edge scan and the suites are re-run at this merged head. Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ve manifest, with its pytest driver (split-opendox § 3.1, part 1) (#839) split-opendox-two-layer-product § 3.1, part 1 — the validator of the carve manifest, on Brett Heap's word "merge 839 when green" (2026-09-09). New files only; no existing file, contract, workflow or openspec document changes; the manifest itself (`docs/opendox-carve-manifest.yaml`, RULED OQ-E) does not exist yet and is authored at the carve commit. - `scripts/validate-carve-manifest.py`: the memo § 1.3 checks in order — shape, revision (HEAD == carve_commit, or `--at`), digest (raw git blob at carve_commit + git_mode), surface completeness over `moved_paths:` (every file in exactly one row), closed vocabularies (the three dispositions; `edit_classes` asserted EQUAL to RULING OQ-1's three; `destinations` a closed map; `not_moved_reasons` ⊆ the five, incl. `replicated_at_destination` — RULED OQ-C), disposition consistency (the sixth check), plus path order and readability. Closed `REFUSAL_CODES`; exit 0 clean / 2 any refusal; an absent manifest exits 0 with `NO MANIFEST` so the suite stays green until the carve PR. - `tests/carve_manifest/test_carve_manifest.py`: subprocess driver over throwaway git fixtures; every refusal code asserted by name; collected by `pytest tests/` on every PR. - Copilot round 1: two factual findings taken (surrogateescape path-order key; non-UTF-8 manifest refuses `carve-unreadable` instead of crashing). Copilot round 3: destination entries are a closed `{repository, leg}` map; a relative `--manifest` resolves against `--repo`. - Independent adversarial verification (81 attacks, 0 blocking) → fix round 1 took its seven should-fixes (a named missing manifest refuses; strict row and top-level grammar; integer `schema_version`; dead or leaky surface prefixes refuse — new `carve-surface-vacuous`; YAML errors are shape defects; `carve-unreadable` in the closed tuple with a completeness test; a real bytewise-order test; `edits[].lines` bounded by the blob; duplicate destination paths refuse). Re-verification (134 attacks, 0 blocking) → fix round 3: duplicate arrivals are keyed on the real (repository, leg, destination_path), not the destination alias; Copilot's surrogate-path crash claim answered as unreachable in a docstring. Copilot round 4 (on the merge commit): destination keys must be label strings (an int key had crashed to exit 1); the closure test reads CarveRefusal calls by AST, not by quote style. Eleven refusal codes; 77 tests; exit codes 0/2 only. Landed after the estate freeze lifted: the required `pytest-suite` had been red on every openxFactory PR since the codexFactory org transfer (pinned-core token) until #801 repointed it; the advisory `merge-master-approval` red of the same cause is disclosed, not a finding against this change. Refs #656 (stays OPEN). Lane: openxfactory-4-opendox-extraction Co-Authored-By: Claude Fable 5.1 <[email protected]>
RATIFIED 2026-09-09 by Brett Heap (openxFactory operator authority), in session, verbatim: "merge 842 and 846 when green, then ratify the 729 packet" (2026-09-09T13:13:41Z, recorded on openxFactory issue #729). THE WORD IS ONE UTTERANCE OF THREE CLAUSES IN ORDER, AND THE ORDER WAS KEPT: PR #842 merged 4cdadd5 at 16:11:57Z (closing #840) and PR #846 merged 183d1b4 at 16:12:40Z (closing #833), both green after #801 cured the codexFactory org-move red; this is the third clause. The earlier "author the 729 packet" (2026-09-09T12:32:46Z) stays recorded as the ORIGIN of the authoring. THE VETO POINT WAS PUT AND WAS NOT TAKEN. design.md D1 — option A (a reason-quoted code span reported only where it matches EXACTLY a unit of the requirement's basis that the block does not carry and that no marker declares removed) against option B (any code span standing inside a reason, the remedy shape issue #729's own body proposed) — was carried in the pull request body, in tasks.md § 1.2, in the README row and on issue #729, with B written out beside A and its four costs MEASURED. A is RATIFIED AS DESIGNED, ground two included, and so is the narrowing D5 adds to the ruling's literal wording ("and that no marker declares removed", narrower in the SILENT direction), which was disclosed on #729 at 14:22Z — before the act the word made conditional on #842 and #846 landing green. A veto of A would have been a veto of GROUND TWO ONLY; ground three rested on no predicate choice. WHAT MOVES. proposal.md, design.md and tasks.md carry Status: ratified with EXACTLY ONE citation line each (Ratified: in the proposal's front matter, Ratified by: in the other two), which is what ratified-provenance counts. .openspec.yaml gains approved_by + approved_on BESIDE the drafting provenance it was authored with — kind and id unmoved, the addition-not-rewrite shape add-drafted-proposal-origin defined, and the shape the archive gate's origin-retention arm reads, which is why the status flip and the approval pair move in ONE commit. The README OpenSpec Records row flips. Two records are captured beside the packet: review/ratification-2026-09-09.md and review/verification-2026-09-09.md. TWO DISCLOSURES CARRIED INTO THE RECORD RATHER THAN LEFT TO BE FOUND. (a) families.FAMILY_RESOLUTION line 117 has carried modified-block-currency as CONTESTED since the flip of 2026-08-31 (#357) and that table has no per-class grain, so issue #729's "not contested" premise was stale; the packet claims NO exemption and states the inheritance plainly (design.md D7), and the MODIFIED block carries canon's now-false "deliberately absent from FAMILY_RESOLUTION" paragraph BYTE-FAITHFULLY BY NECESSITY — a MODIFIED block restates canon as canon states it and this packet replaces exactly one sentence — recorded as residue at tasks.md § 5.3. (b) #719's promoted Removed from canon marker names a sentence canon no longer carries, so ground three would fire on it; it is deliberately NOT restated, on this requirement's own rule that a marker is not a carriage unit in either direction, and the AMENDED BY note says so in terms. WHAT DOES NOT MOVE. No promoted canon is touched, no code and no test moves, no ledger row moves (a row's derived keys read no lifecycle status), and § 5.2–§ 5.7 stay UNTICKED — the archive is a separate act on merged-plus-green realization evidence and on a separate word, so #729 closes at archive and not at this landing, which is why this pull request carries no closing keyword. VERIFIED ON THE RATIFIED TREE, every number re-derived after the encode and with both records in the lifecycle scan set: openspec validate amend-marker-defect-reporting --strict valid; --all --strict 100 passed / 3 failed with the failure SET byte-identical to origin/main 183d1b4's same three (disposition-codexfactory-declared-renames, pin-openspec-cli-dependency-closure, spec/repo-boundary-governance) and none of them this packet's; the pinned 1.12 entrypoint 1 passed / 0 failed clean; proposal-support verify ok; sequenced_after passed (42 active, 9 declaring) with the ledger consistent (190 rows) and ZERO rows moved; scope_globs passed; doc-health --family modified-block-currency 0/0/0/8+1 = 9 info, finding lines IDENTICAL to the origin/main control; doc-health --single-repo 10 critical / 8 error / 57 warning / 16 info with the finding-line diff against the PRE-RATIFICATION branch EMPTY and the only line differing from origin/main's being another change's pre-existing "missing status header" that #847 archived out of the active scan set on main after this branch's last merge; the family names this change ZERO times; pytest tests/doc-health 1646 passed (test_modified_block_currency.py 139, the two touched files 178). A MERGE FROM MAIN AND A RE-MEASURE ARE OWED AT LANDING. The branch's last merge took e86eca3 (#801) at 15:44Z and #842/#846/#847 landed after it, so this tree does not carry them; verification-2026-09-09.md § 9 states in advance which figures move when the merge is taken. Refs #729 Lane: openxfactory-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…le: union of § addenda from B1 (#801), B2 (#802) and B3 B3's branch never modified the evidence file (openspec/changes/adopt-codexfactory-repository-identity/evidence/codexfactory-identity-sweep-2026-09-08.md), so the merge produced no conflict there: main's § 16 (B2's addendum, #802) and § 17 (B1's addendum, #801) land unchanged, separated by the existing --- rules, no TOC/index to update, zero conflict markers anywhere in the tree. Lane: provenance-autonomous-merge Co-Authored-By: Claude Fable 5.1 <[email protected]> Co-Authored-By: Claude Sonnet 5 <[email protected]>
…le: union of § addenda from B1 (#801), B2 (#802), B3 (#805) and B4 Lane: provenance-autonomous-merge Co-Authored-By: Claude Fable 5.1 <[email protected]>
Lane: provenance-autonomous-merge
GATED — lands only when runbook Phase 1 is COMPLETE, step 1.6 INCLUDED. DO NOT MERGE BEFORE THAT.
Not for merge without Brett's word.
RECONCILED WITH
main— 2026-09-09, headc8d047e9, base7681e409This pull request was CONFLICTING/DIRTY, so GitHub ran NO
pull_requestchecks on it at all. It is nowMERGEABLEand the checks run. Nothing about the gate changed: it still lands only when runbook Phase 1 is COMPLETE, step 1.6 included, on Brett's word.mainmoved FIVE times during the reconciliation —ca4a1558→86651a58(#827, #828) →9a67d42c(#826, #824) →82c9f059(#829) →7681e409(#830, #176) — so this branch took three merges, two of them conflicting, becauserelocate-review-authority-floor-mirrorwas rewriting the exact lines this slice edits.Two conflicts, one resolution rule: the relocating lane's structure VERBATIM, this slice's spelling re-applied inside it.
.github/workflows/review-lane-repin.ymlenv:(twice — #818 opened the migration window, #829 closed it)FLOOR_IN_SOURCE_CANDIDATES:and its entire rationale, the status-classifying fetch loop, thecandidate N of Mwitness, the note thatcontracts/review-lane-pin.yamlstill names the OLD path becausecore_commitpredates the relocationSOURCE_REPOSITORY: codeXfactory/codexFactory— and nothing else. The fetch loop reads the moved repository ONLY through${SOURCE_REPOSITORY}, so the loop and its refusal messages inherit the rename with no further editdocs/review-lane-repin-runbook.mdstep 2 (#829)mktemp-then-prove re-copy,FLOOR=floor/…, and the deliberate no-fallback notegh api "repos/…/contents/${FLOOR}"owner segmentTwo occurrences
mainadded in files this slice owns are now respelled here, both RENAME class by rules already published in the sweep evidence:docs/review-lane-repin-runbook.md:354(#829's new fetch command) andtests/review_lane_pin/test_review_lane_caller.py:90(#830's comment naming where thepath_allowlistglob authority lives — four lines from the same file'sPINNED_REPOSITORY = "codeXfactory/codexFactory"). This slice therefore respells 42 occurrences across 15 files, not 41.Checked, not assumed, after the final merge:
git grep -i 'opensoft/codexFactory'over EVERY B1-owned surface —.github/,scripts/,tests/review_lane_pin/,tests/factory_identity/test_mint_script.py,contracts/review-lane-pin.yaml,contracts/review-lane-repin-binding.template.yaml, both operator runbooks — is EMPTY. The source mint keepsowner: codeXfactory+repositories: codexFactory, fail-closed with nocontinue-on-error; the decision-core checkout keepsrepository: codeXfactory/codexFactory; openxFactory's own mint keepsowner: ${{ github.repository_owner }}+repositories: openxFactory, which is right because openxFactory does not move. The env values were read back through a YAML parser, not by eye.Validators at
c8d047e9, each measured againstorigin/main@7681e409in a throwaway worktree at that commit:pytest tests/review_lane_pin tests/clearing tests/credential_contracts -q→ 626 passed, 2 skipped, 48 subtests passedopenspec validate --all --strict→ 101 passed / 3 failed, and all three are pre-existing onmain—disposition-codexfactory-declared-renames(the one this branch expected), pluspin-openspec-cli-dependency-closureandspec/repo-boundary-governance, which arrived with Pin the OpenSpec CLI's dependency closure: vendor a lockfile beside the pin, install through it #813/A pin's registration is checked: the manifest row's path, its consumer entrypoint and its consumption rule must agree #828. The number to compare against is now 3, not 1; a FOURTH failure would be a real defect. Recorded, not fixed: a rename slice must not edit another packet's requirement text to make a shared gate read green.validate-sequenced-after.py . --ledger-diff→ consistent, 189 rows--single-repo .→ critical+error set BYTE-IDENTICAL tomain(10 critical / 9 error / 57 warning)The expected red is unchanged, and is still the only permitted one:
pytest-suitereportsskipped=23against the pinnedEXPECT_SKIPPED: 21, withTheFreshnessVerifierandTheVectorReplaybothskipped, becauseGET /orgs/codeXfactory/installation404s until runbook step 1.6. Anything else failing onpytest-suiteis a real defect in this diff.The reconciled arithmetic for all four slices is recorded in § 18 of
openspec/changes/adopt-codexfactory-repository-identity/evidence/codexfactory-identity-sweep-2026-09-08.md, which lands on #806 (this branch carries § 17; #802 carries § 16 — the numbers are deliberately non-colliding).Realizes
adopt-codexfactory-repository-identitytasks 3.5, 3.6, 3.7, 3.12, 4.5 — 42 occurrences across 15 files (was 41; #829 and #830 each added one occurrence to a file this slice owns after the branch was cut — see RECONCILED WITHmainbelow). Runbook step 10.2, slice B1. Speckit featurespecs/030-realize-codexfactory-identity/(landed in #799).The gate is Phase 1 COMPLETE, and 1.6 is the step that decides it
An earlier revision of this body gated at step 1.2 — "confirm the destination and the visibility". That was too early, and it is corrected here because a merger reads the body at the window, not the comments.
Step 1.2 proves the ADDRESS exists. It does not prove the CREDENTIAL can reach it. A GitHub App installation is per-organization:
actions/create-github-app-token@v2resolves the installation from itsowner:input (GET /orgs/<owner>/installation) and the token it returns reaches only that installation's repositories. Runbook step 1.6 creates the second, separate installation oncodeXfactory; it does not widen theopensoftone. Between 1.2 and 1.6 the address resolves and the read still fails.The merge-time proof, stated as a reading rather than as a check name:
pytest-suiteon this branch must reportskipped=21alone is not enough andpassedon the two named verifiers alone is not enough: the pin is a sum that a canceling pair can hold at 21 while the verifier is gone (Codex P2, #569), and the named verdicts say nothing about the general skip discipline. Both, or the window is not open. This is now written into the workflow's ownEXPECT_SKIPPEDledger, where an operator is already looking, rather than only here.pytest-suiteis RED on this branch right now, and exactly one red is permittedBefore the transfer the mint and the checkout both fail,
locate_pinned_core()stands both watched tests down, and the job reportsskipped=23withTheFreshnessVerifierandTheVectorReplaybothskipped. That is the design and it is the ONLY red this branch may carry. Any other failing assertion onpytest-suiteis a real defect in this diff and blocks the merge.What breaks if it is merged early
git grep -o -i 'opensoft/codexFactory'per file, re-measured atorigin/main67405838— this branch is merged up to date withmain, so these are today's numbers and not a stale tree's. The load-bearing claim is the per-file COUNT; line numbers move with every commit tomainand are given only where one is the whole point..github/workflows/pytest-suite.yml(1, at:396)uses: actions/checkout@v4withrepository: opensoft/codexFactorypytest-suiterequired check cannot fetch the pinned decision core.github/workflows/merge-master-approval.yml(12)contracts/review-lane-pin.yamlpins, plus the App-installation diagnostics and two summary rowsmerge-master-approvalcheck reports failure, and the diagnostics tell a human to grant access on an organization that has nothing in itcontracts/review-lane-pin.yaml(2) +review-lane-repin-binding.template.yaml(2).github/workflows/review-lane-repin.yml(2),scripts/review_lane_repin.py(1)SOURCE_REPOSITORY, passed togh api repos/<x>/…docs/review-lane-repin-runbook.md(5)gh apilines and a permissions-table rowdocs/factory-origin-key-mint-runbook.md(6)worker-credentialsreference and the mint record's tablescripts/mint-factory-origin-key.py(3)TARGET_REPOand the two record templates.github/merge-approval-envelope.yml(1),scripts/doc_health/pin_class.py(1)tests/review_lane_pin/*(4),tests/factory_identity/test_mint_script.py(1)merge-master-approvalis ADVISORY, not required. An earlier revision of this table called it required; the workflow declares the opposite about itself in the very text this diff edits — "This check is ADVISORY and blocks no merge." Accurate forpytest-suite, which is required; overstated formerge-master-approval. What an early merge costs there is the diagnostic's truthfulness, not a block — which is worse than a block in one way, because nothing stops it.GitHub redirects OLD→NEW after a transfer and never NEW→OLD before it, so respelling early gets no grace period at all. And per
proposal.md§ Why, a cross-organizationuses:to a private repository is not covered by any redirect even after the move — which is what OQ-1's Enterprise membership exists for (verifiedplan=enterprise, 2026-09-07T16:41:04Z).Two things about the signal on THIS pull request, both worth knowing at the window:
merge-master-approval's SUCCESS here is not evidence. The workflow ison: pull_request_target, so GitHub reads the workflow file from the base branch. The twelve respellings inmerge-master-approval.ymlare exercised by no check on this pull request; their first run is onmain, on somebody else's.owner: codeXfactoryand checks outcodeXfactory/codexFactoryproves the installation end to end without putting a respelledmainat risk. That is step 0 of the ceremony order below.The credential follows the target (fix round,
22125ea1)The review's BLOCKER was correct and is fixed: this slice originally respelled every cross-repository target and left every credential scoped to
opensoft, which would have madeskipped=21unreachable even with Phase 1 complete.merge-master-approval.yml— both mints (repository App, org App) takeowner: codeXfactory. They keep theircontinue-on-error, for the reason written above them: the NAMED checkout diagnostic in step 4 is what a human must read.review-lane-repin.yml— the source-read mint takesowner: codeXfactoryand has nocontinue-on-error, deliberately, and the file now says so. It fails closed at the mint, with the action's own message naming the owner it could not resolve.pytest-suite.yml— a second mint (owner: codeXfactory,repositories: codexFactory,permission-contents: read) feeds the pinned-core checkout'stoken:. The existingapp-tokenstep is deliberately unchanged: the URL rewrite beneath it authenticates theopensoft/openXwalletgitlink, which did not move. Two targets in two organizations need two tokens.tests/review_lane_pin/test_review_lane_caller.py— the rule asserted from both directions, because the two existing mint tests key onrepository.split("/", 1)[1], the bare name, and are owner-blind by construction. From the checkouts: everyactions/checkoutof the pin'srepository:, through every mint itstoken:names, must be minted at the pin's owner segment — a literal, nevergithub.repository_owner. From the mints: everycreate-github-app-tokennarrowed to the pin's bare repository name must carry that same owner. Either direction alone can be evaded; together they cannot.B-1 recommendation 3 — FIXED
8c7a1fcaby Brett Heap's ruling, 2026-09-09.identity_namespaceatcontracts/review-lane-repin-binding.template.yaml:103is respelledgithub:opensoft->github:codeXfactory(the source-repository reading). Task 3.5 is amended to cover this line — seereview/amendment-2026-09-09-task-3-5.md. The full ruling, both readings that were presented, and why the earlier "byte-identical tomain" state has ended are recorded inopenspec/changes/adopt-codexfactory-repository-identity/review/addendum-2026-09-08-token-namespace.md§ RULED 2026-09-09. The sweep evidence file's § 17 records the reclassification and its (lack of) effect on the grep-measured arithmetic.The operator preconditions, in the runbooks (fix round,
245eac63)Task 4.5 exists because these are documents somebody pastes from, so the respelling's preconditions are now IN them:
docs/review-lane-repin-runbook.md— "the App already installed in both repositories" was true when both were in one organization. It now says outright that two organizations is TWO installations, that installing on one does not widen the other, that the source-read mint namesowner: codeXfactoryliterally, and that it fails closed. The remedy for a refusal is the installation, never a wider token.docs/factory-origin-key-mint-runbook.md— a PRECONDITION block naming the two transfer steps everycodeXfactory/…line in the file depends on: 1.2 (the address resolves at all) and 1.5 (theworker-credentialsenvironment andFACTORY_ORIGIN_SIGNING_KEYsurvived the transfer), with the read-only command to confirm the second. And the refusal that matters: do not "fix" a preflight failure by minting into the old address — a secret written through a redirect lands wherever the redirect resolves, and the register would then name a custody location nobody can audit.Ceremony merge order
The four slices' file sets are provably disjoint and
git merge-tree --write-tree origin/main <branch>is conflict-free for all four, so the merges themselves are order-free. Two things downstream are not, and this is the sequence:owner: codeXfactoryand checks outcodeXfactory/codexFactory.main. The BLOCKER above cannot be executed before the transfer exists, so it is proved here rather than on the first merge.pytest-suiteskipped=21with both verifierspassed, which only exists after step 0 passes.scripts/merge_master/openxfactory-review-authority-floor.yaml:153-156names three of this slice's files. It also carries the grant lines the review found assigned to no slice, on which task 6.5 depends.contract-v3.4members (12/9)tests/review_lane_pin,tests/clearing,tests/factory_identity,tests/hermes_runtime_contractsgreen on the renamed tree — is MET at this point: #806 touches no test and no inventoried member, so the cut's inputs are complete once #805 lands.verify-promotionand the annotated tag are release surfaces and the runbook's legend does not cover them; treat them as operator acts.main; 6.5 is strictly last because it is a whole-corpus zero-residual check and cannot be true while any slice or the newly assigned grant lines are outstanding.opensoft/xFactoryholds nine reference groups that must never disagree about where the decision core is, and they move in ONE commit.validateruns on PULL REQUESTS only, somainnever reports a break and it surfaces on somebody else's.A stricter reading is available and is recorded rather than silently overruled. The review's position is that the cut is after all FOUR slices, on the letter of 7.1 and 6.5. The order above puts it after three, on the ground that #806 touches no test and no inventoried member so neither the cut's inputs nor 7.1's condition can change across it. If the convener prefers the letter, move row 4 below row 5; nothing else in the sequence moves.
The one-commit rules held
review_lane_repin.py,pin_class.py's note text and all threetests/review_lane_pin/files. A split commit here is red by construction, which is the mechanism working.merge-master-approval.ymloccurrences together. The diagnostic text is not decoration: it is the instruction a human follows when the lane refuses, so a half-respelled message sends them to the wrong organization.mint-factory-origin-key.pywithtest_mint_script.py, which pins thegh pr merge … --repoline the script emits.Recorded result
openspec validate --all --strictis 100 passed / 1 failed — the pre-existingdisposition-codexfactory-declared-renames, unchanged.validate-sequenced-after.py --ledger-diffis consistent at 185 rows.doc-health --single-repo .reports 9 ERRORs, all pre-existing and none in any file this diff touches. The freeze holds:git diff --name-only origin/main HEAD -- contracts/signed-execution-chain/ openspec/changes/archive/ specs/ docs/decisions/ ideation/is empty.Every occurrence in the respelling set was verified to be a live assertion or an executable command, not a dated record — the arbitration question is does this string assert what IS, or record what WAS READ, and all 41 assert. The fix round adds new
codeXfactoryprose (the two preconditions, the ledger entry) that is new text rather than respelling, so the 41/41 respelling arithmetic is unchanged; and it adds threeopensoft/codexFactorymentions inside this change's ownreview/record, which is a not-swept class — a record about the old identity has to be able to name it.Not in this pull request
governance/factory-identity/) — a separate, human-only slice (GATED (runbook 1.2) + HUMAN-ONLY — slice B2: re-issue the factory-origin identity, and the occurrence no slice owned (37/15) #802).contract-v3.4inventoried members — a separate slice (GATED (runbook 1.2) — slice B3: the eight contract-v3.4 inventoried members, denominator re-sorted (12/9) #805), because moving a subset redsverify-commitwith no cut available to repair it..gitmodules, no aggregation lockstep, no GHCR, no SonarCloud.Ticks
Nothing in the packet's
tasks.mdis ticked by this pull request. Tasks 3.5, 3.6, 3.7, 3.12 and 4.5 tick on its merge, which is Brett's act at the transfer window.