Repository navigation
adopt-codexfactory-repository-identity: amend task 1.1 and author the repository-identity mapping file + row (T069) - #815
Conversation
…(T069)
Lane: provenance-autonomous-merge
Realizes: adopt-codexfactory-repository-identity tasks 1.1 (AMENDED), 1.2, 1.3,
1.4 (RE-DERIVED), and re-verifies group 6.
AMENDMENT. Brett Heap (convener), 2026-09-08, interactive walkthrough, verbatim
'Amend task 1.1: this change creates the file (Recommended)'. Task 1.1 as
ratified said 'Do not create the file here' on the premise that
adopt-medxsoft-repository-identity would author it first. The premise did not
hold in time: that change is active, Status: draft and UNREALIZED, so the file
did not exist and group 1 could not be realized at all. Task 0.2's conditional
covers only 'archived or withdrawn' and did not fire. Record:
review/amendment-2026-09-08-task-1-1.md; the ratified task body is retained with
an AMENDED 2026-09-08 blockquote, the corpus convention.
Task 1.4 is RE-DERIVED, not reversed: its premise was that the exemplar's task
1.3 creates the manifest entry. The registration is now owed HERE - entry,
consumption_rule and the COMPUTED per-file sha256 (04bc5fed...), which is the
one clause of the original wording that survives verbatim. The exemplar appends
its two rows and recomputes that digest; it re-authors nothing.
WHY THIS IS SAFE NOW even though the transfer is unperformed: transferred_on is
null with transfer_state: pending, and the file-level pending_row_rule forbids
resolving former -> current for any LIVE reference while a row is pending. The
row publishes the ruled canonical identity and the OQ-6 spellings without
instructing anything to resolve the new address. Nothing reads this file at CI
time.
TWO NEW OCCURRENCE CLASSES, both recorded in evidence 15:
* THE MAPPING'S OWN LOOKUP KEY. The new file adds 2 occurrences of
opensoft/codexFactory inside a contracts/** path. They are 'former:' and
the row comment, they are PERMANENTLY the former spelling by construction,
and task 6.5's zero-remaining check must exclude them - renaming them would
delete the entry that makes every frozen spelling resolvable.
* governance/review-authority/grants/grant-grc-0001.yaml (2 hits), absent at
e8021fe, added by 4719f07 - the register-gate-rules-council-seats
ceremony. RENAME by the published rule; both occurrences are
COUNTERFACTUAL, explaining why objects: is opensoft/openxFactory and NOT
opensoft/codexFactory. NOT EDITED HERE: another lane's live ceremony
artifact, mid-construction, unfilled @@..@@ operator placeholders, a
review-authority key-custody grant. Deferred to that lane; flagged on #279.
The RENAME subtotal rises 124 -> 126.
Group 6 re-verified: 6.1/6.3 empty diffs; 6.2 validate-signed-execution-chain
0 errors; 6.4 PASS - and the 6.4 CHECK ITSELF WAS WRONG and is fixed. The
count-equality form false-positived on this add-only diff, because the change id
adopt-codexfactory-repository-identity CONTAINS the bare string. The corrected
test: an add-only diff cannot have edited anything; a diff with removals is
compared on the multiset of bare occurrences removed vs added. quickstart 6.
sequenced_after is DELIBERATELY not edited: the amendment inverts the
file-creation half of the dependency, but --archive-gate is a
parent-declaration RETENTION gate that reports a mutation as exit 1. Re-deriving
it is the separate governed question task 0.2 anticipated (amendment record 5).
Gates: openspec --all --strict 100 passed / 1 failed (the same pre-existing
deltaless packet); this change --strict valid; sequenced-after --ledger-diff
green at 185 rows; doc-health --single-repo error+critical 19 on the branch and
19 on origin/main 131adf1 with the two sets IDENTICAL - this slice introduces
no finding; release-inventory-drift still 1 pre-existing ERROR; pytest over
manifest_digests + release inventory + manifest row digest + clearing manifest
rows + release boundary + sequenced_after: 320 passed.
Rule 6: LANDING/LANDED posted by the lane at merge.
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
It introduces a host-specific path into a committed YAML artifact and the updated quickstart snippet can silently skip renamed files, undermining the documented verification step.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR amends the adopt-codexfactory-repository-identity realization plan to unblock and complete group 1 by authoring the repository-identity mapping policy file in openxFactory, registering it in the contracts manifest, and recording the amendment + re-derivation rationale in the OpenSpec packet evidence/tracking artifacts.
Changes:
- Create
contracts/policies/repository-identity.yaml(schema + codexFactory row withtransfer_state: pending) and document file-level rules for safe pre-transfer publication. - Register the new policy in
contracts/manifest.yamlwith a computed SHA-256 and add contract index/docs pointers (README + contracts README). - Update Speckit/OpenSpec tracking artifacts (tasks, quickstart, evidence, and a new amendment record) to reflect the amended task 1.1 and re-derived task 1.4.
File summaries
| File | Description |
|---|---|
| specs/030-realize-codexfactory-identity/tasks.md | Updates the realization ledger and marks T069 as completed under the amended task 1.1. |
| specs/030-realize-codexfactory-identity/quickstart.md | Updates the “no bare name edited” check procedure and script snippet. |
| README.md | Adds a top-level pointer/explanation for the repository-identity mapping policy. |
| openspec/changes/adopt-codexfactory-repository-identity/tasks.md | Records the amendment and re-derivation rationale inline with the ratified task text. |
| openspec/changes/adopt-codexfactory-repository-identity/review/amendment-2026-09-08-task-1-1.md | New record documenting the convener’s amendment decision and its consequences. |
| openspec/changes/adopt-codexfactory-repository-identity/evidence/codexfactory-identity-sweep-2026-09-08.md | Adds an addendum recording group 1 realization and new occurrence classes. |
| contracts/README.md | Adds the new policy to the contract catalog table with a detailed description. |
| contracts/policies/repository-identity.yaml | New policy file defining repository transfer mapping rules and the codexFactory pending row. |
| contracts/manifest.yaml | Registers the new policy contract with SHA-256 and consumption rule text. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| path = row.split("\t")[-1] | ||
| if subprocess.run(["git","show",f"{BASE}:{path}"], | ||
| capture_output=True, text=True).returncode: | ||
| print(f" new file (edits nothing): {path}"); continue |
| # The transfer is an OPERATOR ceremony and is unperformed: it is confirmed | ||
| # at step 1.2 of ~/session-prompts/runbook-codexfactory-org-transfer.md | ||
| # (`gh api repos/codeXfactory/codexFactory --jq '{full_name,private,visibility}'`), | ||
| # and that step's date is what fills this field. |
|
LANDING — lane provenance-autonomous-merge, session f1356e27-665d-4119-b47e-a5e66efdce00, 2026-09-08T16:15:40Z, PR #815 into openxFactory main Brett Heap (convener), verbatim "Merge 815 when green", 2026-09-08 (interactive walkthrough; task 1.1 amendment ruled 'this change creates the file'). Registered-green: all checks pass, 0 pending at 170ca38. Lane: provenance-autonomous-merge |
Lane: provenance-autonomous-merge
SAFE NOW. Not for merge without Brett's word.
Rule 6: LANDING/LANDED posted by the lane at merge.
Realizes
adopt-codexfactory-repository-identitytasks 1.1 (AMENDED), 1.2, 1.3, 1.4 (RE-DERIVED), and re-verifies group 6. Runbook step 10.2, slice B5, Speckit featurespecs/030-realize-codexfactory-identity/task T069. Follows PR #799 (merged131adf11, 2026-09-08T14:32:34Z).The amendment
Brett Heap (convener), 2026-09-08, interactive walkthrough, verbatim:
Task 1.1 as ratified said "Do not create the file here", on the premise that
adopt-medxsoft-repository-identitywould authorcontracts/policies/repository-identity.yamlat ITS task 1.1. The premise did not hold in time. That change is active,Status: draft, and unrealized — no Speckit feature realizes it — so the file did not exist and group 1 could not be realized at all. Task 0.2's conditional fires only if the exemplar is "archived or withdrawn"; it is neither, so 0.2's premise held and 1.1's instruction stood. The blocker was escalated on codexFactory #279 with two exits; the convener took the second.Record:
openspec/changes/adopt-codexfactory-repository-identity/review/amendment-2026-09-08-task-1-1.md(Status: record), quoting the original and amended wording. The ratified task body is retained intasks.mdwith an> AMENDED 2026-09-08blockquote — the conventionadd-nightly-dashboard-refreshuses.No requirement moves. This amends an implementation task, not a ratified delta, so no re-ratification of
specs/repository-identity/spec.mdis owed.Task 1.4 is RE-DERIVED, not reversed
1.4 said "Confirm no second registration is owed … the exemplar's task 1.3 creates the entry." Since this change now creates the file, the registration is owed here: the
contracts/manifest.yamlentry, itsconsumption_rule, and the computed per-filesha256(04bc5fed…). "Recomputed, not hand-edited" is the one clause of the original wording that survives verbatim, and it is the reason 1.4 is re-derived rather than simply flipped.tests/manifest_digests/test_manifest_digest_sweep.pyis what proves it.Why this is SAFE NOW while the four rename slices are held
The transfer is unperformed —
gh api repos/codeXfactory/codexFactory→ HTTP 404. #801, #802, #805 and #806 are drafts for exactly that reason. The mapping row is not one of them, and the file makes that rigorous rather than asserting it:transferred_on: nullwithtransfer_state: pending. The field records a completed act; a date written before the act would be a falsehood in the one file whose whole purpose is that a frozen spelling stays trustworthy. It is filled from runbook step 1.2.pending_row_rule, a file-level clause: "A row whosetransfer_stateispendingDECLARES a ruled identity change that HAS NOT HAPPENED … A reader MUST NOT resolveformer→currentfor any LIVE reference while the row ispending."So the row publishes the ruled canonical identity and the OQ-6 spellings without instructing anything to resolve the new address. Nothing reads this file at CI time.
What the file carries
schema_version: 1,kind: repository_identity,policy_id: repository-identity-v1(root CLAUDE.md rule 4), sibling ofpolicies/layer-vocabulary.yamland in the same holding-area state it landed in.owner_segment_rulefield_rulestransferred_onmay benullpending_row_ruleformer/currentopensoft/codexFactory→codeXfactory/codexFactoryredirectopensoftreuses the name — which it may,opensoftstill holding the aggregation repository that names this repo in eightuses:pathsowner_casecodeXfactoryis canonical (OQ-6)derived_container_namespaceghcr.io/codexfactory/codexfactory— a DERIVED, TOOL-IMPOSED spelling of the same identity, never a second identity (OQ-6, ruled 2026-09-08T03:51Z)redirect_does_not_coveruses:paths, container package namespaces, federated-credential subject stringsThe exemplar re-authors nothing. It APPENDS its two 2026-08-26 MedxSoft rows; the schema accommodates them and the file-level rules are written to its task 1.2's wording. Its task 1.3 then recomputes the digest. Recorded in § 6 of the amendment record — that packet is not edited by this lane, because editing another lane's unmerged change is a lane collision.
Two NEW occurrence classes found while discharging task 2.3
Both recorded in
evidence/codexfactory-identity-sweep-2026-09-08.md§ 15.1. The mapping's own lookup key — never renamed, by construction
The new file adds 2 occurrences of
opensoft/codexFactoryinside acontracts/**path, i.e. the RENAME class by pathspec:former: opensoft/codexFactoryand the row's section comment. They must never be renamed — renaming them would delete the very entry that makes every frozen spelling resolvable. A class the packet's § 2 table has no row for, because at authoring time the file did not exist.Task 6.5's zero-remaining check must exclude the mapping file, exactly as it already excludes the frozen sets.
2.⚠️
governance/review-authority/grants/grant-grc-0001.yaml— RENAME, deferred, in no slice2 hits, absent at
e8021fed, added by4719f07f"Register act §3.3–3.7: commission agent:gate-rules-council (PLACEHOLDERS)" — theregister-gate-rules-council-seatsceremony.governance/**→ RENAME by the published rule. Both occurrences are counterfactual, in a header comment explaining whyobjects:isopensoft/openxFactoryand deliberately NOTopensoft/codexFactory; the sentence is present-tense, so it respells at the transfer to keep being true.Not edited here. It is another lane's live ceremony artifact mid-construction with unfilled
@@…@@operator placeholders and five Ed25519 keypairs Brett mints on his own host; it is a review-authority key-custody grant; and the four rename slices are already under review. Deferred to the owning lane's next touch or a fifth slice after that ceremony completes. The RENAME subtotal rises 124 → 126. Flagged on #279 and as feature task T074.Group 6 re-verified against the new file
validate-signed-execution-chain.py .0 error(s), 0 warning(s)ideation/)116 + 2 + 2 = 120 / 54, measuredThe 6.4 check itself was wrong, and is fixed
The form published with #799 compared bare-occurrence counts per file and demanded equality. On this slice it false-positived:
Nothing was edited. The counts rose because the added lines are prose about this work and the change id
adopt-codexfactory-repository-identitycontains the bare string itself. Corrected test (quickstart.md§ 6): an add-only diff cannot have edited anything; a diff with removals is compared on the multiset of bare occurrences removed vs added. The four rename slices still pass under it. Recorded rather than quietly swapped, since #799's body quoted the old output.Recorded gate results
openspec validate adopt-codexfactory-repository-identity --strictopenspec validate --all --strict100 passed, 1 failed— still exactlychange/disposition-codexfactory-declared-renames, the pre-existing deltaless packetvalidate-sequenced-after.py . --ledger-diffdoc-health --single-repoerror+criticalorigin/main131adf11, sets IDENTICAL — measured by diffing both runs. This slice introduces no doc-health finding, and the new file appears in nonerelease-inventory-driftERROR— the pre-existingdocs/contract-versioning-policy.md. Registering a new contract adds none:manifest.yamlandcontracts/README.mdare EDITORIAL members reporting atinfopytestmanifest_digests + release inventory ×2 + manifest row digest + clearing manifest rows + release boundary + sequenced_aftersequenced_afterpoints the other way now, and is deliberately NOT editedThe amendment inverts the file-creation half of
sequenced_after: [adopt-medxsoft-repository-identity]. The declaration is left exactly as ratified, becausevalidate-sequenced-after.py --archive-gateis a parent-declaration retention gate and reports a declaration mutation as exit 1 — the freeze exists so a realization cannot quietly re-point a ratified dependency. Re-deriving it is the separate governed question task 0.2 anticipated. Amendment record § 5.Ticks
Feature task T069 is ticked (the act is the diff in this pull request). Packet boxes 1.1–1.4 stay unticked and tick on this pull request's merge, per the ledger in
specs/030-realize-codexfactory-identity/tasks.md§ Packet ledger.