Skip to content

receipt(OMN-13014): OCC contract + dod receipts for hot-patch ledger rebuild preflight gate - #2548

Merged
jonahgabriel merged 2 commits into
devfrom
jonah/omn-13014-occ-receipts
Jun 12, 2026
Merged

jonahgabriel merged 2 commits into
devfrom
jonah/omn-13014-occ-receipts

Conversation

@jonahgabriel

Copy link
Copy Markdown
Contributor

Summary

Central OMN-13014 ticket_contract + DoD receipts for omnibase_infra PR #1959 — the hot-patch ledger rebuild preflight gate (night-plan v3 §P0.3, retro B-1, NEVER-CUT).

Hot-patches on the .201 lanes (.prepatch sibling discipline) silently revert on rebuild/force-recreate; the 2026-06-11 20:58:53Z rebuild erased a live /api/generate patch once. PR #1959 adds scripts/preflight_hotpatch_ledger.py (per-row git merge-base --is-ancestor against per-repo build refs + .prepatch tripwire + --post-rebuild mode + Rule-10 bypass validation) wired into deploy-runtime.sh as guard_hotpatch_ledger.

Contents

  • contracts/OMN-13014.yaml — ticket_contract (validate-yaml OK; sha256:19f3c9dc…)
  • drift/dod_receipts/OMN-13014/dod-infra-pr/command.yaml — PASS (17 unit tests + mypy --strict on the gate script; probe_stdout embedded)
  • drift/dod_receipts/OMN-13014/dod-deploy-assessment/command.yaml — PASS (no live deploy in PR evidence(OMN-12521): SEA __main__ contract-native contract + receipts #1959; operational drop-in on .201 verified live: gate exit 1 vs pre-merge clone HEADs, exit 0 vs origin/dev refs with 5/5 ledgered .prepatch and zero unledgered)
  • drift/dod_receipts/OMN-13014/dod-occ-pr/command.yaml — follows in the next commit (needs this PR's number)

Operational anchors

  • Ledger: /data/omninode/hotpatch-ledger/ledger.yaml on .201 (sha256 50b28669…), mirrored at omni_home/docs/evidence/2026-06-12-dev-integration-pass/hotpatch-ledger.yaml
  • Standalone gate: /data/omninode/hotpatch-ledger/preflight.sh (sha256 4d558a42…)

Evidence-Ticket: OMN-13014

Part of OMN-13014.

…rebuild preflight gate

Central OMN-13014 ticket_contract + dod-infra-pr / dod-deploy-assessment
receipts for omnibase_infra PR #1959 (hot-patch ledger preflight: ancestor
gate + .prepatch tripwire wired into deploy-runtime.sh; standalone drop-in
verified live on .201 with FAIL-vs-pre-merge-clones / PASS-vs-origin-dev
demonstrations). dod-occ-pr receipt follows once this PR has a number.
@coderabbitai

coderabbitai Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@jonahgabriel, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 3 hours, 44 minutes, and 43 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 527c60a9-9ec5-4e1e-b30e-ba124ab7d3d9

📥 Commits

Reviewing files that changed from the base of the PR and between 33a5c1a and 068fe77.

📒 Files selected for processing (4)
  • contracts/OMN-13014.yaml
  • drift/dod_receipts/OMN-13014/dod-deploy-assessment/command.yaml
  • drift/dod_receipts/OMN-13014/dod-infra-pr/command.yaml
  • drift/dod_receipts/OMN-13014/dod-occ-pr/command.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-13014-occ-receipts

Comment @coderabbitai help to get the list of available commands and usage tips.

@jonahgabriel
jonahgabriel force-pushed the jonah/omn-13014-occ-receipts branch from 5879fce to 068fe77 Compare June 12, 2026 08:14
@jonahgabriel
jonahgabriel added this pull request to the merge queue Jun 12, 2026
Merged via the queue into dev with commit 792ff89 Jun 12, 2026
37 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-13014-occ-receipts branch June 12, 2026 08:21
jonahgabriel added a commit that referenced this pull request Aug 2, 2026
… corrections

Second half of the add-only honesty supersession.

1. occ-self-bind-pr-5945 (contract entry + receipt) — binds OMN-15418 to
   THIS PR so occ-preflight eligibility resolves a PASS receipt from the
   PR's own checkout (OCC in-repo invariant I3). Mirrors the
   occ-self-bind-pr-5937 precedent one PR upstream. Binding stamp only;
   adjudicates nothing, flips no Linear status.

2. Two net-new command.supersede.5945.yaml records — the only sanctioned
   add-only correction primitive for a merged receipt
   (validator_occ_append_only rejects M/D/R on any receipt file):

   - dod-deploy-assessment-falsifiable/command.supersede.5945.yaml
     withdraws that receipt's two false claims: "#2548 changed 130 files
     and none is a compose file" (#2548 ADDED two compose files), and
     "RED-proven ... the check therefore discriminates" read as
     falsifiability (an immutable-ref content grep exits 0 unconditionally
     at its pin; rc=1-at-parent proves discrimination, not falsifiability).

   - occ-self-bind-pr-5937/command.supersede.5945.yaml corrects the same
     compose-file framing and re-points "substantive evidence" at
     dod-deploy-assessment-merged-tree-attestation. Its probe was re-run
     live and now reads state MERGED where the base receipt recorded OPEN.

   Both replacements keep the superseded item's check_value UNCHANGED —
   the bar is not weakened, only the prose about it is made true. Both
   merged base receipts stay byte-for-byte intact.

Gates: validator_occ_append_only vs origin/dev -> ok:true (all four receipt
diffs are 'A'); OMN-15459 supersession corpus 2344 violations vs baseline
2344, exact match (no new S1/S2 violations); resolve_supersession returns
both records cleanly with no error and no tombstone; pre-commit green;
all five active checks execute PASS; uv run pytest tests/ -> 4345 passed,
47 skipped.
jonahgabriel added a commit that referenced this pull request Aug 2, 2026
… compose-file fact correction (#5945)

* fix(OMN-15418): add-only honesty supersession — attestation framing + compose-file fact correction

OCC #5937 merged at 622c78f (2026-08-02T05:43:46Z) with two false statements
in landed history, both about the appended dod-deploy-assessment-falsifiable
entry:

(a) FRAMING — the entry's id and prose claim its pinned-ref content probe
    escapes the OMN-14443 unfalsifiable class ("falsifiability was
    demonstrated rather than asserted"). False. A content grep at an
    immutable 40-hex commit pin exits 0 unconditionally at that pin; it is
    frozen-true forever. The rc=1-at-the-parent demo proves CONTENT
    DISCRIMINATION, a strictly weaker property, and the prose conflated
    the two.

(b) FACT — the entry states "#2548 changed 130 files and NOT ONE of them is
    a compose file". False: #2548 ADDED docker/application-acl-proof/compose.yml
    and docker/domain-adapter-proof/compose.yml (both status "added").
    The true, narrower, load-bearing half — docker/docker-compose.e2e.yml,
    the one path the dead generated probe greps for, is absent from those
    130 paths — stands.

Repaired ADD-ONLY, because the defective entry and its receipt are merged
and immutable under validator_occ_append_only: a new entry
dod-deploy-assessment-merged-tree-attestation carries
evidence_artifact: supersedes_dod_evidence:dod-deploy-assessment-falsifiable
with the corrected framing and the corrected fact. Its probe body is
BYTE-IDENTICAL to the superseded entry's — the defect was the claim about
the probe, never the probe. No existing contract entry or receipt line is
edited or deleted.

Gates: validator_occ_append_only vs origin/dev -> ok:true; all seven
pre-existing per-entry hashes unchanged; pre-commit (yamlfmt contamination
ratchet, yamlfmt, validate-yaml, lint_contract_check_values, receipt
honesty, substance floor, DoD-authoring hygiene, receipt hardening,
Evidence-Commit SHA gate) green; all four active (non-superseded) checks
execute PASS from the OCC repo root.

* evidence(OMN-15418): self-bind for OCC #5945 + add-only receipt-prose corrections

Second half of the add-only honesty supersession.

1. occ-self-bind-pr-5945 (contract entry + receipt) — binds OMN-15418 to
   THIS PR so occ-preflight eligibility resolves a PASS receipt from the
   PR's own checkout (OCC in-repo invariant I3). Mirrors the
   occ-self-bind-pr-5937 precedent one PR upstream. Binding stamp only;
   adjudicates nothing, flips no Linear status.

2. Two net-new command.supersede.5945.yaml records — the only sanctioned
   add-only correction primitive for a merged receipt
   (validator_occ_append_only rejects M/D/R on any receipt file):

   - dod-deploy-assessment-falsifiable/command.supersede.5945.yaml
     withdraws that receipt's two false claims: "#2548 changed 130 files
     and none is a compose file" (#2548 ADDED two compose files), and
     "RED-proven ... the check therefore discriminates" read as
     falsifiability (an immutable-ref content grep exits 0 unconditionally
     at its pin; rc=1-at-parent proves discrimination, not falsifiability).

   - occ-self-bind-pr-5937/command.supersede.5945.yaml corrects the same
     compose-file framing and re-points "substantive evidence" at
     dod-deploy-assessment-merged-tree-attestation. Its probe was re-run
     live and now reads state MERGED where the base receipt recorded OPEN.

   Both replacements keep the superseded item's check_value UNCHANGED —
   the bar is not weakened, only the prose about it is made true. Both
   merged base receipts stay byte-for-byte intact.

Gates: validator_occ_append_only vs origin/dev -> ok:true (all four receipt
diffs are 'A'); OMN-15459 supersession corpus 2344 violations vs baseline
2344, exact match (no new S1/S2 violations); resolve_supersession returns
both records cleanly with no error and no tombstone; pre-commit green;
all five active checks execute PASS; uv run pytest tests/ -> 4345 passed,
47 skipped.
jonahgabriel added a commit that referenced this pull request Aug 3, 2026
…nd-only supersession)

Evidence-shape repair only. No product source is touched and no substantive
check is weakened; two append-only supersession entries are added to
contracts/OMN-15355.yaml and nothing above them is edited, deleted, or
reordered.

NON-IMPLEMENTER EVIDENCE AUTHORSHIP: this lane
([fable-resume-0802/evrepair-15355]) is NOT the implementer of OMN-15355's
product work. That work landed in OmniNode-ai/omnibase_infra #2568 / #2571,
promoted to dev by #2548. This commit only repairs how the already-landed
proof is bound, per feedback_no_self_authored_evidence.

DEFECT (twice-reproduced; dod_verify correlation ids
8870151e-03d7-442e-a9b1-3d7d66cde84d and
98ea11fa-bb5f-4970-a326-c3991f0e7110, both 6 total / 4 verified / 2 failed):
the auto-appended live-state checks
`dod-OmniNode-ai-omnibase_infra-pr-2571::pr-live-state` and
`dod-occ-evidence-admissibility-validator::pr-live-state` both bind to
omnibase_infra#2571. #2571 IS merged (7228ce0c) — but into the stacked
feature branch `jonah/omn-15418-p0-...`, not dev. A feature-branch base has
an empty required-status-check set, and `_fetch_pr_checks_green` fails closed
on an empty set, so both checks report "no required checks reported on the
jonah/omn-15355-acl-proof-dsn branch" and can never clear. Sibling #2568 has
the identical shape.

REPAIR: bind to omnibase_infra#2548 — base `dev`, MERGED 2026-07-31T06:09:46Z,
merge commit 3863623e4844dc9b0db69ceb4e77942737fbca32 (confirmed on
origin/dev), required set `CI Summary` = pass. Carriage is proven by content
identity rather than ancestry, because squash merges discard lineage: the
exact symbol the landed #2571 receipt greps (`def _admin_dsn_for_database`)
is present at 3863623e and at origin/dev head, and #2548's file set is a
strict superset of #2571's and #2568's.

Falsifiability, executed both directions before commit:
  GREEN  all five new check_values exit 0 as written (gh pr view/checks 2548;
         `?ref=3863623e...` carriage grep returns 1; admissibility suite 76
         passed in 0.47s).
  RED    same ref with an absent symbol -> grep -c 0, exit 1; the pre-ACL dev
         ref -> file absent, exit 1.

The admissibility suite is re-declared VERBATIM by its replacement, so family
binding is preserved. Supersession is non-vacuous by construction: under
OMN-15390 an appended marker retires its target only when the appended item is
itself VERIFIED, so if these checks go red the original entries execute and
carry their own verdicts.

Known residual, NOT addressed here: contracts/OMN-15355.yaml is on OCC
origin/dev but absent from origin/main, so a DurableEvidenceGate
CONTRACT_ON_OCC_MAIN assertion still cannot pass. That leg clears only via a
dev->main promotion PR; no main-targeting PR is opened by this lane.

Refs: OMN-15355
jonahgabriel added a commit that referenced this pull request Aug 3, 2026
…nd-only supersession) (#5989)

* fix(OMN-15355): rebind evidence to dev-merged parent infra#2548 (append-only supersession)

Evidence-shape repair only. No product source is touched and no substantive
check is weakened; two append-only supersession entries are added to
contracts/OMN-15355.yaml and nothing above them is edited, deleted, or
reordered.

NON-IMPLEMENTER EVIDENCE AUTHORSHIP: this lane
([fable-resume-0802/evrepair-15355]) is NOT the implementer of OMN-15355's
product work. That work landed in OmniNode-ai/omnibase_infra #2568 / #2571,
promoted to dev by #2548. This commit only repairs how the already-landed
proof is bound, per feedback_no_self_authored_evidence.

DEFECT (twice-reproduced; dod_verify correlation ids
8870151e-03d7-442e-a9b1-3d7d66cde84d and
98ea11fa-bb5f-4970-a326-c3991f0e7110, both 6 total / 4 verified / 2 failed):
the auto-appended live-state checks
`dod-OmniNode-ai-omnibase_infra-pr-2571::pr-live-state` and
`dod-occ-evidence-admissibility-validator::pr-live-state` both bind to
omnibase_infra#2571. #2571 IS merged (7228ce0c) — but into the stacked
feature branch `jonah/omn-15418-p0-...`, not dev. A feature-branch base has
an empty required-status-check set, and `_fetch_pr_checks_green` fails closed
on an empty set, so both checks report "no required checks reported on the
jonah/omn-15355-acl-proof-dsn branch" and can never clear. Sibling #2568 has
the identical shape.

REPAIR: bind to omnibase_infra#2548 — base `dev`, MERGED 2026-07-31T06:09:46Z,
merge commit 3863623e4844dc9b0db69ceb4e77942737fbca32 (confirmed on
origin/dev), required set `CI Summary` = pass. Carriage is proven by content
identity rather than ancestry, because squash merges discard lineage: the
exact symbol the landed #2571 receipt greps (`def _admin_dsn_for_database`)
is present at 3863623e and at origin/dev head, and #2548's file set is a
strict superset of #2571's and #2568's.

Falsifiability, executed both directions before commit:
  GREEN  all five new check_values exit 0 as written (gh pr view/checks 2548;
         `?ref=3863623e...` carriage grep returns 1; admissibility suite 76
         passed in 0.47s).
  RED    same ref with an absent symbol -> grep -c 0, exit 1; the pre-ACL dev
         ref -> file absent, exit 1.

The admissibility suite is re-declared VERBATIM by its replacement, so family
binding is preserved. Supersession is non-vacuous by construction: under
OMN-15390 an appended marker retires its target only when the appended item is
itself VERIFIED, so if these checks go red the original entries execute and
carry their own verdicts.

Known residual, NOT addressed here: contracts/OMN-15355.yaml is on OCC
origin/dev but absent from origin/main, so a DurableEvidenceGate
CONTRACT_ON_OCC_MAIN assertion still cannot pass. That leg clears only via a
dev->main promotion PR; no main-targeting PR is opened by this lane.

Refs: OMN-15355

* fix(OMN-15355): add durable receipts + carrier self-bind for the rebind amendment

Closes the `occ-preflight / eligibility` red on OCC#5989, which failed
`reason=missing_receipt` then `reason=pr_ticket_mismatch`. Both are the OCC
in-repo invariant (I3): an OCC PR carries its own contract AND its own
receipts.

Adds three net-new receipt files (no existing receipt is edited, deleted, or
renamed) and one net-new self-bind evidence item:

  drift/dod_receipts/OMN-15355/dod-OmniNode-ai-omnibase_infra-pr-2548/command.yaml
  drift/dod_receipts/OMN-15355/dod-OmniNode-ai-omnibase_infra-pr-2548-admiss/command.yaml
  drift/dod_receipts/OMN-15355/occ-self-bind-pr-5989/command.yaml

Every receipt was TOOL-GENERATED by executing its check for real and recording
the actual exit code and output — never hand-asserted:

  carriage grep at ?ref=3863623e...      -> rc 0, stdout "1"
  uv run pytest tests/test_evidence_admissibility.py -q -> rc 0, 76 passed in 0.47s
  gh pr view 5989 ... --json number,state -> rc 0, {"number":5989,"state":"OPEN"}

`occ-self-bind-pr-5989` is a NET-NEW self-bind, not a supersession:
`occ-self-bind-pr-5632` binds the ORIGINAL autobind companion and remains true
and untouched; this one binds the repair companion that carries the amendment.

Hash binding: appending the self-bind item moved the whole-file
contract_sha256 to
sha256:6e755409b66ed8208cb2b4686abc9b4d73af4d2b57356fc320422e97ac24bd7d, so
the three new receipts carry that value. The per-entry
contract_entry_sha256 values of the two rebind items are UNCHANGED by the
append (041ddf8d... and 16cb2858...), which is the OMN-13888 property that
makes appending non-destructive. The three pre-existing receipts still carry
the older whole-file hash and are correctly accepted through the entry-hash
dual-accept path — they are immutable and were not rebound.

Verified locally before push:
  pre-commit (contract + 3 receipts)                    -> exit 0
  validator_occ_append_only --ticket-id OMN-15355       -> ok: true, violations: []
  validator_occ_merge_eligibility --pr-number 5989      -> eligible: true,
      reason "eligible", detail "OCC evidence is present, PASS, hash-bound,
      and PR-bound", missing_or_nonpass_receipts: []

Refs: OMN-15355
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.

1 participant