Skip to content

adopt-codexfactory-repository-identity: amend task 1.1 and author the repository-identity mapping file + row (T069) - #815

Merged
brettheap merged 1 commit into
mainfrom
030-mapping-row-amendment
Sep 8, 2026
Merged

brettheap merged 1 commit into
mainfrom
030-mapping-row-amendment

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

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-identity tasks 1.1 (AMENDED), 1.2, 1.3, 1.4 (RE-DERIVED), and re-verifies group 6. Runbook step 10.2, slice B5, Speckit feature specs/030-realize-codexfactory-identity/ task T069. Follows PR #799 (merged 131adf11, 2026-09-08T14:32:34Z).

The 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 contracts/policies/repository-identity.yaml at 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 in tasks.md with an > AMENDED 2026-09-08 blockquote — the convention add-nightly-dashboard-refresh uses.

No requirement moves. This amends an implementation task, not a ratified delta, so no re-ratification of specs/repository-identity/spec.md is 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.yaml entry, its consumption_rule, and the computed per-file sha256 (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.py is 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: null with transfer_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 whose transfer_state is pending DECLARES a ruled identity change that HAS NOT HAPPENED … A reader MUST NOT resolve former → current for any LIVE reference while the row is pending."

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 of policies/layer-vocabulary.yaml and in the same holding-area state it landed in.

element task note
owner_segment_rule exemplar 1.2's wording a transfer moves the OWNER SEGMENT ONLY; bare names, commits, repo-relative paths, blob digests, wallet/grant ids and submodule paths are untouched. Task 6.4 rests on this
field_rules — how each row field is read, including why transferred_on may be null
pending_row_rule — the clause above
row former / current 1.1 opensoft/codexFactory → codeXfactory/codexFactory
row redirect 1.1 the redirect lapses if opensoft reuses the name — which it may, opensoft still holding the aggregation repository that names this repo in eight uses: paths
row owner_case 1.2 compared CASE-SENSITIVELY here though the provider does not; codeXfactory is canonical (OQ-6)
row derived_container_namespace 1.2 ghcr.io/codexfactory/codexfactory — a DERIVED, TOOL-IMPOSED spelling of the same identity, never a second identity (OQ-6, ruled 2026-09-08T03:51Z)
row redirect_does_not_cover 1.3 the three shapes that break outright: reusable-workflow uses: paths, container package namespaces, federated-credential subject strings

The 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/codexFactory inside a contracts/** path, i.e. the RENAME class by pathspec: former: opensoft/codexFactory and 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 slice

2 hits, absent at e8021fed, added by 4719f07f "Register act §3.3–3.7: commission agent:gate-rules-council (PLACEHOLDERS)" — the register-gate-rules-council-seats ceremony. governance/** → RENAME by the published rule. Both occurrences are counterfactual, in a header comment explaining why objects: is opensoft/openxFactory and deliberately NOT opensoft/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

check result
6.1 frozen classes byte-unchanged empty diff
6.2 validate-signed-execution-chain.py . 0 error(s), 0 warning(s)
6.3 not-swept (other lanes' packets, ideation/) empty diff
6.4 no bare name edited PASS — all four changed pre-existing files are ADD-ONLY
6.5 live occurrences outside frozen / not-swept / mapping key 118 = 116 held in the four gated slices + 2 from § 15.2. Arithmetic closes: 116 + 2 + 2 = 120 / 54, measured

The 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:

!!! BARE NAME EDITED:
  contracts/README.md: 3 -> 4
  contracts/manifest.yaml: 25 -> 27

Nothing was edited. The counts rose because the added lines are prose about this work and the change id adopt-codexfactory-repository-identity contains 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

check result
openspec validate adopt-codexfactory-repository-identity --strict valid
openspec validate --all --strict 100 passed, 1 failed — still exactly change/disposition-codexfactory-declared-renames, the pre-existing deltaless packet
validate-sequenced-after.py . --ledger-diff green, ledger consistent (185 rows), no cycle
doc-health --single-repo error+critical 19 on this branch, 19 on origin/main 131adf11, sets IDENTICAL — measured by diffing both runs. This slice introduces no doc-health finding, and the new file appears in none
release-inventory-drift 1 ERROR — the pre-existing docs/contract-versioning-policy.md. Registering a new contract adds none: manifest.yaml and contracts/README.md are EDITORIAL members reporting at info
pytest manifest_digests + release inventory ×2 + manifest row digest + clearing manifest rows + release boundary + sequenced_after 320 passed

sequenced_after points the other way now, and is deliberately NOT edited

The amendment inverts the file-creation half of sequenced_after: [adopt-medxsoft-repository-identity]. The declaration is left exactly as ratified, because validate-sequenced-after.py --archive-gate is 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.

…(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]>
Copilot AI lite review requested due to automatic review settings September 8, 2026 14:49

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

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 with transfer_state: pending) and document file-level rules for safe pre-transfer publication.
  • Register the new policy in contracts/manifest.yaml with 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.

Comment on lines +172 to +175
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
Comment on lines +109 to +112
# 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.
@brettheap

Copy link
Copy Markdown
Contributor Author

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

@brettheap
brettheap merged commit 6740583 into main Sep 8, 2026
10 checks passed
@brettheap
brettheap deleted the 030-mapping-row-amendment branch September 8, 2026 16:15
@brettheap

Copy link
Copy Markdown
Contributor Author

LANDED — lane provenance-autonomous-merge, 2026-09-08T16:15:46Z, PR #815 → 6740583

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