Skip to content

validate-carve-manifest: the revision check is ancestor-plus-digests, satisfiable on a merge ref and on main after the manifest lands (split-opendox § 3.1, part 1b) - #864

Merged
brettheap merged 2 commits into
mainfrom
change/opendox-carve-validator-revision-semantics
Sep 9, 2026
Merged

brettheap merged 2 commits into
mainfrom
change/opendox-carve-validator-revision-semantics

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

Lane: openxfactory-4-opendox-extraction

Refs #656 (split-opendox § 3.1, part 1b — the validator only; the manifest is not authored here)

The defect

scripts/validate-carve-manifest.py landed at #839 (6ef5d02d) with check 2 written as identity: the revision under test (HEAD, or --at <sha>) had to RESOLVE TO carve_commit. That is unsatisfiable in both runs this validator ever actually gets:

  1. On a pull request. CI checks out a synthetic merge ref — a commit created by GitHub for that run, which no manifest authored beforehand can name. Check 2 refuses it, always.
  2. On main after the manifest lands. main's tip is then the manifest's own squash — never carve_commit, and it moves again on the next merge.

And test_the_real_repository_answers_at_the_ruled_path (the § 8.2 seat) asserts exit 0 with OK from the moment docs/opendox-carve-manifest.yaml exists. So the manifest's own PR could never have gone green, and the required pytest-suite would have redded for every lane the moment it landed. Found by the orchestrator before the manifest was authored, so nothing has to be unwound.

Memo § 6 step 3's INTENT is not identity — it is "a file changed on main between manifest and move surfaces as carve-digest-mismatch on the next PR". Identity bought that by refusing every revision as well.

The new semantics

check as landed now
2 REVISION tested revision must resolve to carve_commit carve_commit must name a commit the repository carries AND be an ancestor of the tested revision (git merge-base --is-ancestor). Identity is the trivial ancestor case and still passes. --at keeps meaning "the revision under test".
3 DIGEST recompute sha256 + mode at carve_commit two passes. Pass 1 is that check, unchanged — the manifest must be true about its own referent. Pass 2 compares the tested revision's blob and mode against the referent's: carve-digest-mismatch worded CHANGED SINCE THE CARVE / MODE DRIFT SINCE THE CARVE, and carve-path-absent worded DELETED SINCE THE CARVE. Pass 2 is memo § 6 step 3 as running code. edits[].lines bounds stay on the referent blob.
4 SURFACE walk ls-tree -r at carve_commit that walk stays (a row set that never matched the referent still refuses, and carve-surface-vacuous stays keyed on the referent), plus the same completeness question at the tested revision: a file that has APPEARED under the surface since the carve is carve-file-undeclared ("re-cut the manifest"), and a row whose path was deleted since the carve is carve-path-absent — which is what catches a not_moved row, the one class check 3 never reads.

Two passes in check 3 rather than both comparisons in one row loop, because the order between the two kinds of finding is itself a finding: a manifest that lies about its own referent is a document defect its author fixes with one recomputed digest; a file that moved on main afterwards is a tree fact whose remedy is the § 6 re-cut. A single loop would report whichever row sorted first — choosing the reader's remedy by filename.

tree_at() now carries git's blob OID beside the mode (TreeEntry), so pass 2 compares one path at two revisions with no second cat-file per row; the bytes are read only for the row whose OIDs differ, so the refusal still prints the sha256 at the tested revision.

Output. The OK line and --json name both revisions when they differ (… @<carve12> (opendox-carve-0), verified at <rev12> — …; JSON gains verified_at beside carve_commit). Byte-identical to today's line when the two coincide.

Docstring. Checks 2/3/4 rewritten; the "LAST thing on that tree" prose corrected; two new sections — why ancestry and not identity, and that the manifest lives at docs/opendox-carve-manifest.yaml, outside every moved_paths: prefix, so its own landing can never trip check 4.

Refusal codes

Unchanged — the same eleven, in the same order. No code added, removed or renamed; test_the_refusal_vocabulary_is_the_ratified_list and the ast closure scan both hold as they are. Exit codes stay 0 / 2, with no exit 1. What changed is which code answers which tree, and the prose that names the file.

What still refuses, per memo § 6 step 3

  • a surface file changed on main after the carve → carve-digest-mismatch (CHANGED SINCE THE CARVE), naming the path and both sha256s
  • its mode flipped → carve-digest-mismatch (MODE DRIFT SINCE THE CARVE)
  • deleted → carve-path-absent (DELETED SINCE THE CARVE), moved rows in check 3 and not_moved rows in check 4
  • a file added under the surface → carve-file-undeclared (RULING OQ-1's "a file in no row")
  • a carve_commit the repository cannot resolve (a re-cut typo, or a checkout too shallow to reach it) → carve-revision-mismatch, saying so
  • a tested revision the carve commit is not in the history of → carve-revision-mismatch (NOT AN ANCESTOR)

What no longer refuses: a revision that merely descends from the carve commit with the surface untouched — the merge ref, and main after the manifest lands.

Tests

python3 -m pytest -q tests/carve_manifest → 87 passed (was 77).

Thirteen tests pin the new semantics and were each proven against the landed validator by swapping in git show origin/main:scripts/validate-carve-manifest.py and re-running this same file:

  • against origin/main's validator: 13 failed, 74 passed
  • against this branch: 87 passed, 0 failed

The thirteen: test_at_a_descendant_with_no_surface_change_verifies, test_at_a_revision_the_carve_commit_does_not_reach_refuses, test_a_head_that_has_moved_past_the_carve_commit_verifies, test_a_carve_commit_the_repository_does_not_carry_refuses, test_a_surface_file_changed_since_the_carve_refuses, test_a_moved_row_whose_file_is_deleted_since_the_carve_refuses, test_a_mode_flip_since_the_carve_refuses, test_a_lie_about_the_referent_outranks_a_change_since_the_carve, test_a_file_added_under_the_surface_since_the_carve_refuses, test_a_not_moved_row_whose_file_is_deleted_since_the_carve_refuses, test_a_file_added_outside_the_surface_since_the_carve_does_not_refuse, test_json_reports_the_summary, test_json_names_the_verified_revision_when_it_differs.

Three tests that pinned the identity semantics are rewritten rather than deleted: test_head_that_is_not_the_carve_commit_refuses → test_a_head_that_has_moved_past_the_carve_commit_verifies; test_an_at_that_resolves_elsewhere_still_refuses → the surface-ADD and NOT-AN-ANCESTOR cases; test_the_revision_check_runs_before_the_digests keeps its ordering claim on an unresolvable carve_commit. Every other test is untouched and green, including the § 8.2 seat (NO MANIFEST today, since the manifest is still unwritten).

Neighbour suites: tests/carve_manifest tests/manifest_digests tests/openreposhape_pin tests/openxwallet_pin tests/pin_registrations → 197 passed, 6 failed; the six are tests/openxwallet_pin/test_verify_pin.py and are pre-existing in a worktree — they need the openXwallet submodule, which CI initialises (git submodule update --init openXwallet) and a bare worktree does not. Verified by stashing this change and re-running: the same six fail on unmodified origin/main.

CI reaches the carve commit: pytest-suite.yml checks out with fetch-depth: 0, so merge-base --is-ancestor has the history it needs.

NOT DONE

Asking for Brett Heap's separate word to land this.

🤖 Generated with Claude Code

…te is satisfiable on a merge ref and on main after the manifest lands

As landed (#839, 6ef5d02), check 2 required the revision under test to
RESOLVE TO `carve_commit`. That is unsatisfiable in every run this
validator ever gets: a pull request's CI checks out a synthetic merge ref,
which is a commit no manifest can name, and after the manifest lands
`main`'s tip is the manifest's own squash. The § 8.2 seat
(`test_the_real_repository_answers_at_the_ruled_path`) asserts `OK` the
moment `docs/opendox-carve-manifest.yaml` exists — so the manifest's own
pull request could never have gone green, and the required suite would
have redded for every lane from the moment it landed.

The § 6 ceremony's intent is not identity: it is that a file which moves
between the manifest and the carve REFUSES, by name. This buys exactly
that and nothing else.

  2 REVISION   `carve_commit` must name a commit the repository carries
               AND be an ancestor of the tested revision (`HEAD` or
               `--at <sha>`), via `git merge-base --is-ancestor`.
               Identity is the trivial ancestor case and still passes.
  3 DIGEST     two passes. Pass 1 is today's check at `carve_commit` —
               the manifest must be true about its own referent. Pass 2
               compares the tested revision's blob and mode against the
               referent's: CHANGED SINCE THE CARVE / DELETED SINCE THE
               CARVE. Pass 2 is memo § 6 step 3 as running code. Two
               passes and not one loop, so a referent lie is reported
               even when another row also moved on main.
  4 SURFACE    the completeness walk runs at the tested revision too: a
               file that APPEARED under the surface since the carve is
               `carve-file-undeclared`, and a row (a `not_moved` row, the
               one check 3 never reads) whose path was deleted since the
               carve is `carve-path-absent`. `carve-surface-vacuous`
               stays keyed on the referent.

`REFUSAL_CODES` is unchanged, eleven codes; exit codes stay 0 and 2. The
`OK` line and `--json` now name both revisions (`verified_at`) when they
differ. `tree_at` carries git's blob OID beside the mode, so pass 2
compares two revisions without a second `cat-file` per row.

Tests: 87 pass (was 77). The thirteen that pin the new semantics were
proven against `git show origin/main:scripts/validate-carve-manifest.py`
— 13 failed / 74 passed there, 87 passed / 0 failed here.

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 9, 2026 19:51

@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

check_revision() currently verifies carve_commit^{commit} but still uses the original carve_commit string for later operations, which can allow non-commit object IDs (e.g. tag objects) and lead to confusing/incorrect behavior relative to the documented “commit id” contract.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the carve manifest validator to make the “revision” check satisfiable in real CI contexts (PR merge refs and main after the manifest lands) by switching from commit-identity to commit-ancestry, while also extending digest/surface validation to compare both the manifest’s referent commit and the tested revision.

Changes:

  • Change check 2 from “tested revision resolves to carve_commit” to “carve_commit is carried and is an ancestor of the tested revision”.
  • Add a second pass in check 3 (and a second walk in check 4) to detect surface/file drift since the carve at the tested revision, with updated messaging and JSON including verified_at.
  • Expand tests/carve_manifest to pin the new ancestry + two-revision semantics and new --json behavior.
File summaries
File Description
scripts/validate-carve-manifest.py Implements ancestry-based revision validation; adds two-revision digest/surface comparisons and reports verified_at in human/JSON output.
tests/carve_manifest/test_carve_manifest.py Adds/updates fixtures and tests to cover descendant revisions, non-ancestor refusal, drift since carve, and JSON verified_at.
Review details
  • Files reviewed: 2/2 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.

Comment thread scripts/validate-carve-manifest.py Resolved
Copilot review 3972445078: `check_revision` verified that
`<carve_commit>^{commit}` RESOLVES and then went on using the raw
`carve_commit`. An annotated tag's object id is also 40 lowercase hex, so
it passes check 1's grammar, `^{commit}` resolves it, and `merge-base`,
`ls-tree` and `cat-file` all peel it silently — the whole manifest would
have verified against a referent the § 6 ceremony forbids ("the tag is a
LABEL, never the referent"; `carve_tag:` is where a label belongs).

The landed identity check refused this as a side effect, since a tag
object id can never equal a `rev-parse HEAD^{commit}`. Ancestry has to
refuse it on purpose: the peeled sha is compared to `carve_commit` and a
difference is `carve-revision-mismatch`, naming the commit id to record
instead. No new refusal code.

Test: `test_an_annotated_tags_object_id_used_as_the_referent_refuses`
builds a real annotated tag and feeds its object id as `carve_commit`;
it fails against `origin/main`'s validator and passes here. 88 pass.

Lane: openxfactory-4-opendox-extraction

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings September 9, 2026 19:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

blob_at() read failures are currently surfaced as carve-path-absent / carve-digest-mismatch in check 3, but should refuse as carve-unreadable for accurate diagnostics and correct refusal categorization.

Review details

Suppressed comments (2)

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

scripts/validate-carve-manifest.py:922

  • blob_at() returns None when git cat-file fails; at this point we already proved ls-tree lists this path as a blob, so treating that as carve-path-absent is misleading. This is an environment/read failure and should surface as carve-unreadable (an existing refusal code) so callers can distinguish “path missing” from “could not read blob object”.

This issue also appears on line 967 of the same file.

        content = blob_at(repo, commit, path)
        if content is None:  # pragma: no cover - ls-tree already said blob
            raise CarveRefusal(
                "carve-path-absent",
                f"{path} could not be read as a blob at {commit[:12]}")

scripts/validate-carve-manifest.py:971

  • In digest pass 2, when the blob OID differs you call blob_at() and then treat a read failure as a digest mismatch with <unreadable>. If the object is missing (e.g., partial clone / promisor remote) or cat-file fails, this should be carve-unreadable, not carve-digest-mismatch, so the failure reason and remediation are accurate.
        content = blob_at(repo, verified_at, path)
        # `tested` came from `ls-tree`, which already said blob, so the
        # `<unreadable>` arm is unreachable outside a racing checkout.
        moved_to = (hashlib.sha256(content).hexdigest()
                    if content is not None
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap

Copy link
Copy Markdown
Contributor Author

Lane: openxfactory-4-opendox-extraction
INDEPENDENT VERIFICATION of head 1b5f64ec4a839ac45319c1fbd08a5bd100c35242 — PASS

I did not author this. I built my own throwaway git repos from scratch (a six-file surface in two directories, one 100755, one not_moved row) and wrote my own manifest from the shape rules in the module rather than from the PR's test file, then tried to get a wrong manifest accepted or a right one refused. 34 attacks, all RIGHT; 2 probes reported below; no BLOCKING and no SHOULD-FIX. Exit codes across all 38 runs: 0 and 2 only, no traceback.

# item verdict
1 Scope PASS — exactly scripts/validate-carve-manifest.py + tests/carve_manifest/test_carve_manifest.py, both modified, +595/−69. Nothing under openspec/, contracts/, .github/, docs/; no manifest created. Branch is two commits off 20298c64 (main at branch time); main is now 00d368a4, and git log 20298c64..00d368a4 -- <the two files> is EMPTY, so no merge is owed. MERGEABLE.
2 Semantics, by attack PASS — table below
3 Ordering + codes PASS — validate() is shape → revision → digest → surface → vocabularies → consistency, proven by three collision fixtures, not read off the source. REFUSAL_CODES is byte-identical to origin/main (eleven codes, same order); every code is asserted by name in the driver (2–24 sites each); the ast closure scan is intact.
4 The driver PASS — tests/carve_manifest 88 passed at head, 77 at base. Five neighbour suites: 198 passed / 6 failed at head, 187 passed / 6 failed at base — the same six tests/openxwallet_pin/test_verify_pin.py tests, which need the openXwallet submodule a bare worktree does not carry. Pre-existing, confirmed by running base myself. The § 8.2 seat test is byte-unchanged (diff against 20298c64) and its branch semantics stand (NO MANIFEST → exit 0 today).
5 Docstring truth PASS — §§ 2/3/4 rewritten; the ONLY surviving RESOLVE TO carve_commit is inside the "WHY CHECK 2 IS ANCESTRY AND NOT IDENTITY" section describing what was landed; the "LAST thing on that tree" prose is corrected in place; the docs/-outside-the-surface section is present, and I proved the claim rather than reading it (x1 below).
6 Hygiene PASS (one NOTE) — Lane first line; **Refs #656**; no closing keyword in the body OR in either commit message; closingIssuesReferences 0; autoMergeRequest null; no approving review; two-line trailers on both commits; one Copilot thread, resolved, FACTUAL reply with a real fix and a real test. All ten checks green at head, including all six required.

The before/after proof, reproduced independently

I copied the head's test file onto origin/main's validator (wt-verify-1b-base, whose scripts/validate-carve-manifest.py is e170f175, identical at 20298c64 and 00d368a4) and ran it:

14 failed, 74 passed against origin/main's validator — 88 passed, 0 failed at head. That is the body's thirteen plus test_an_annotated_tags_object_id_used_as_the_referent_refuses from the second commit. The body's "87 passed" / "197 passed" / "the thirteen" are stale by exactly that one test (NOTE 2).

The attack table

Every row is my own fixture. → 0 means accepted, → 2 <code> refused.

attack result RIGHT?
(a) HEAD == C → 0, OK … @<carve12> (opendox-carve-0) — … ✔
(b) HEAD = C + a commit OUTSIDE the surface (docs/x.md, README.md) → 0, OK …, verified at <head12> ✔ origin/main: → 2 carve-revision-mismatch. The case that was impossible before.
(c) a surface file CHANGED since C → 2 carve-digest-mismatch, CHANGED SINCE THE CARVE, names adapter.py and BOTH sha256s ✔
(d) a surface file ADDED since C → 2 carve-file-undeclared, APPEARED, names new_widget.py ✔
(e) a moved row's file DELETED since C → 2 carve-path-absent, DELETED SINCE THE CARVE ✔
(f) a surface file's MODE flipped (chmod +x) → 2 carve-digest-mismatch, MODE DRIFT SINCE THE CARVE ✔
(g) --at a SIBLING branch not descended from C → 2 carve-revision-mismatch, NOT AN ANCESTOR ✔
(h) carve_commit unknown to the repo → 2 carve-revision-mismatch, DOES NOT CARRY ✔
(i) the manifest lies about its referent, HEAD == C → 2 carve-digest-mismatch, DIGEST DRIFT (referent wording, not "since the carve") ✔
(i2) referent lie on a LATE-sorting row + a since-carve change on an EARLY-sorting row → 2 carve-digest-mismatch on run.sh with DIGEST DRIFT; the string CHANGED SINCE THE CARVE is absent ✔ the two-pass claim, proven
(j) HEAD is a --no-ff MERGE commit, surface untouched (GitHub's merge ref) → 0 ✔ origin/main: → 2. The CI case.
(j2) the same merge, but the branch CHANGED a surface file → 2 carve-digest-mismatch ✔
(k) a not_moved row's path DELETED since C → 2 carve-path-absent, answered by check 4's second walk with the "…this is what reports it for a not_moved row, which the digest loop never reads at all" wording ✔ correct, and the code says why
(l) --json carries carve_commit AND verified_at, result: ok; refusals carry code/detail. Exit codes 0/2 only across all runs ✔
(m) an ANNOTATED TAG's object id as carve_commit → 2 carve-revision-mismatch, names the commit id to record instead ✔ fails on origin/main
(n) --at a tag NAME peeling to a descendant → 0 (--at is a revision; peeling is right there) ✔
(t) --at C while HEAD is a sibling → 0 ✔
(w) --at a strict ANCESTOR of C → 2 carve-revision-mismatch ✔
(u) a since-carve CHANGE and a since-carve ADD → 2 carve-digest-mismatch (check 3 before check 4) ✔
(v) carve_commit is a real commit of ANOTHER repository → 2 carve-revision-mismatch ✔
(x1) the manifest's OWN landing commit, DEFAULT path, no --at → 0 ✔ origin/main: → 2 — the red-suite-for-every-lane case, confirmed real
(x2) main moves again AFTER the manifest landed → 0 ✔
(y) the digest "repaired" to TODAY's bytes instead of re-cutting → 2 carve-digest-mismatch, DIGEST DRIFT at the referent ✔ the likeliest real abuse, refused
(z) --at a 12-hex abbreviation of C (the tested is referent alias) → 0, and the OK line correctly omits verified at ✔
(aa) a moved_paths prefix with no trailing slash → 0 ✔
(bb) a SIBLING dir scripts/ideation_dashboard_old/ added since C → 0 (in_surface is segment-aware, not startswith) ✔
(cc) a row declaring a file that did not exist at C → 2 carve-path-absent ✔
(r) working tree modified while HEAD == C → 0 (the tree is the referent, not the checkout) ✔
(p) a SYMLINK added under the surface → 2 carve-file-undeclared ✔
(q) a surface file REPLACED BY a symlink → 2 carve-digest-mismatch, MODE DRIFT SINCE THE CARVE ✔
a SHALLOW clone that cannot reach C → 2 carve-revision-mismatch, message names both readings ("the commit is wrong or the checkout is too shallow") ✔
(ord/ord2) shape beats revision; revision beats digest → 2 carve-shape-invalid; → 2 carve-revision-mismatch ✔
env sweep: --repo not a git repo / bad --at / a NAMED missing manifest / unparseable YAML / top-level list / empty file / non-UTF-8 bytes all → 2 (carve-unreadable, carve-revision-mismatch, carve-unreadable, carve-shape-invalid ×3, carve-unreadable), no traceback, never exit 1 ✔

pytest-suite.yml checks out with fetch-depth: 0 (line 336) — I read it; merge-base --is-ancestor has the history it needs, and the shallow-clone row above is what happens if that ever regresses.

The three design choices — judged

  1. Two digest passes (referent lie outranks since-carve change) — SOUND, and load-bearing. (i2) proves it is not decoration: with the lie on a late-sorting row and the drift on an early one, a single row loop would have reported the drift and sent the author to the § 6 re-cut when the actual remedy was one recomputed digest. The stated reason — "a per-row loop would hand the reader a remedy chosen by filename" — is exactly what the fixture shows. The cost is one extra O(rows) loop with zero extra git calls in the passing case.
  2. TreeEntry(mode, oid) to avoid a per-row cat-file — SOUND. Within one repository git's own object id is content identity, so pass 2 answers "did this change since the carve" without reading a byte; the blob is read only for the row whose ids differ, so the refusal still prints the sha256 at the tested revision — I confirmed that in (c)'s output, which names both digests. The separate mode comparison is not redundant: a chmod leaves the blob oid untouched, which (f) proves, so oid equality alone would have missed the mode flip entirely.
  3. The peeled-tag refusal — CORRECT and necessary, not a nicety. Ancestry removed a protection identity was giving by accident. An annotated tag's object id is 40 lowercase hex, so it clears check 1's grammar, and merge-base, ls-tree and cat-file all peel it silently — a manifest naming opendox-carve-0's tag object would have verified in full against a referent the § 6 ceremony explicitly forbids ("the tag is a LABEL, never the referent"). (m) confirms it refuses on purpose, with no new refusal code, and names the commit id to record instead. It fails against origin/main's validator, so the test is real.

Defects

None BLOCKING. None SHOULD-FIX.

  • NOTE 1 — commit trailer. Both commits carry Co-Authored-By: Claude Opus 5 (1M context) rather than the lane's Claude Fable 5.1 line. Recorded, not a defect: the squash at landing carries the lane's trailers.
  • NOTE 2 — the body's counts are stale by one. It says 87 passed, 197 passed, and "the thirteen"; at head it is 88, 198, and fourteen — the annotated-tag test the second commit added. The commit message for 1b5f64ec says "88 pass" correctly. Cosmetic; the body could be refreshed at landing.
  • NOTE 3 — a gitlink under the surface is invisible to check 4. A git SUBMODULE added under moved_paths: since the carve is accepted (probe: exit 0), because tree_at keeps only kind == "blob". Pre-existing — origin/main filters identically (20298c64:…:381) — but the new tested-revision walk inherits it, so an undeclared movement of that one shape is not caught at either revision. Extremely unlikely under scripts/ideation_dashboard/ or tests/ideation-dashboard/; a follow-up could refuse any non-blob tree entry under the surface. Not for this PR.
  • NOTE 4 — a not_moved row's file may CHANGE since the carve and still pass (probe: exit 0). By design: a not_moved row carries no sha256 under the memo's § 1.2 grammar, so there is nothing to compare, and the carve does not ship those bytes. Its deletion is caught (k). Recorded so the ceremony knows the boundary: a replicated_at_destination row's source drifting after the carve is not visible to this gate.
  • NOTE 5 — the branch has not merged current main. It branched at 20298c64; main is now 00d368a4, three commits ahead, none of which touch either file. MERGEABLE; no merge-from-main is owed.

Shared checkout

/home/brett/projects/xFactory/openxFactory — start 6612d323 / 0 staged; end 6612d323 / 0 staged. Only fetch, worktree prune, worktree add --detach, worktree remove --force <mine> were run against it. My worktrees (wt-verify-1b, wt-verify-1b-base) and fixture dir are removed. Nothing merged, approved, pushed, dispatched or resolved; this is my one comment.

@brettheap
brettheap merged commit 09fef47 into main Sep 9, 2026
10 checks passed
brettheap added a commit that referenced this pull request Sep 9, 2026
…Xfactory/codexFactory

Tasks 7.2-7.3 of the ratified change adopt-codexfactory-repository-identity.
ONE candidate commit over ONE integration point, per
docs/contract-versioning-policy.md § Bundle Realization Order step 2.

THE CUT IS OWED, NOT ELECTIVE. Eight members of the declared contract-v3.4
inventory changed bytes when the org move landed, and § "What a red
verify-commit at HEAD means" calls a mismatch on a non-editorial member "a
defect ... the remedy is a release cut, never a hand-edit". Measured at
00d368a: verify-commit reported exactly ten HGR-RELEASE-DIGEST-MISMATCH
findings - these eight plus contracts/manifest.yaml and contracts/README.md,
the two editorial movers that section allows between cuts.

INTEGRATION POINT 95e67ab (#806, 2026-09-09T20:44:00Z), the LAST of the four
gated realization slices. The candidate was first derived at 00d368a (#805,
20:00:16Z) and RE-DERIVED here when main moved, per step 1's "fetch and rebase
onto the final integration point, then immediately recheck bundle/tag
availability". The branch was unpublished, so the integration is a rebase; the
resulting tree is what a merge would have produced. Re-measured across the
move: neither #806 nor #864 touches a release-inventory member (exact-path
check against the inventory's 283 entries), so the re-derivation moved no
digest the first derivation had not already moved.

NUMBER FRESH-COUNTED AT THE CANDIDATE, not assumed. manifest.yaml declared
contract-v3.4; contracts/releases/ held inventories through
contract-v3.4.digests.yaml; git ls-remote --tags origin publishes annotated tags
through contract-v3.4 (807a4f4) and refs/tags/contract-v3.5 is ABSENT; there is
no Unreleased block. So no earlier bundle owes a tag, contract-v3.5 is not a
reuse, and it is the next available additive minor. Task 7.2 reserved no number
and says so in terms.

CHANGE CLASS: ADDITIVE (minor), MEASURED. git diff --name-status contract-v3.4
HEAD -- contracts/ reports 4 additions and 27 modifications, every path
attributed in the changelog entry. No required field added, no shape removed, no
contract_schema_version moved, no vocabulary semantics changed: every edit to a
published member replaces one owner segment inside a value that was already a
free-form repository string. The ONE break in the release is a command line, not
a record shape - the --domain-repo key becomes
codeXfactory/codexFactory=<checkout>, and the changelog entry carries the
migration note.

INVENTORY. 283 entries, membership UNCHANGED, no git_mode change, TWELVE digests
re-baselined: the eight above; the three editorial members (manifest.yaml,
README.md, CHANGELOG.md); and tests/intent-compliance/test_release_boundary.py,
which is a release member and carries the by-hand boundary statement every cut
past the intent-compliance floor owes. FEATURE_SUCCESSOR_9 = "contract-v3.5" is
added to the enum and to both match arms, and the docstring records the
measurement: git diff --name-status contract-v3.4 HEAD over
contracts/intent-compliance/, scripts/intent_compliance/, tests/intent-compliance/
and scripts/validate-intent-compliance.py reports ZERO paths, so this cut moves
no intent-compliance member. Built LAST by the tool, never hand-edited;
contract-v3.4.digests.yaml is byte-unchanged and remains valid provenance.

7.4 IS AN OPERATOR ACT AND IS NOT PERFORMED HERE. verify-promotion and the
annotated tag are release surfaces that the ceremony runbook assigns to the
operator. The exact four-command sequence is written into the changelog entry
§ "The annotated tag is published at the LANDED commit, not from this branch".
No tag is created by this commit.

BOOKKEEPING IN THE SAME COMMIT, DELIBERATELY. tasks.md ticks 7.2 and 7.3 and
annotates 7.4 as the operator half. It rides the cut rather than following it
because release-tag-gate grades the DECLARING DISTANCE: the family emits no
finding only when the earliest first-parent commit declaring the bundle is the
TIP, and a bookkeeping commit stacked on top of the declaration puts it at
distance one and refuses the gate. Measured on this branch before the squash:
"1 first-parent landing(s) after the commit that declared it", REFUSED
gate-findings. One commit is also what 7.3 asks for. 7.1 and 6.5 are NOT ticked
here; they belong to the lane's own later pass.

Lane: provenance-autonomous-merge

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
brettheap added a commit that referenced this pull request Sep 9, 2026
…865)

split-opendox-two-layer-product § 3.1, part 2 — the openDox carve manifest at carve_commit b075fd9 (tag `opendox-carve-0`, a label beside the commit), on Brett Heap's word "merge 1b when green, then the manifest" (2026-09-09).

- `docs/opendox-carve-manifest.yaml` (RULED OQ-E path; the first machine-validated YAML under `docs/` here): 454 rows, one per file in the declared surface, none undeclared — 172 `moved_verbatim`, 146 `moved_with_declared_edit` (edit classes `import rewrites` / `path constants` / `adapter calls`, RULING OQ-1 verbatim; every edit's line numbers statement-anchored at the carve commit, 782 lines checked), 136 `not_moved` (`stays_openxfactory_adapter` 103, `replicated_at_destination` 18 incl. the Q4 corpus-adapter interface, `stays_openxfactory_governance` 14, `deleted_at_carve` 1). Destinations: openDox-code 123, openXdox-code 92, openDox-spec 56, openXdox-spec 47; the assembly root carries release identity only (§ 3.8).
- Rows follow the RULINGS: OQ-A..G as recommended, B-2 (i′), B-4 (a); mixed openDox+openXdox tests → openXdox (OQ-G), with the recorded refinement that a test importing the adapter column stays in openxFactory, applied transitively through test helpers. Ten memo-vs-tree disagreements plus the memo's omission of the Q4 interface are listed in the PR body; the tree at the carve commit wins.
- Validated by `scripts/validate-carve-manifest.py` (#839 + #864): `OK` at the carve commit, at this head via `--at`, and at this head plainly ("verified at"); 318 digests recomputed. Independent verification FAIL → one fix round (two test rows re-filed as adapter-column; the stays rule applied transitively; statement-anchored citations) → re-verification PASS. One Copilot round taken.

Refs #656 (stays OPEN).

Lane: openxfactory-4-opendox-extraction
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants