Repository navigation
contract(OMN-9126): bind omnibase_infra core source pin PR #1589 - #1001
Conversation
Adds OCC contract for OMN-9126 with downstream receipt bundle binding omnibase_infra PR #1589, which pins omnibase-core to main branch (0.40.2) in [tool.uv.sources] so the runtime image carries the multi-param handler injection extension. Core 0.40.1 (PyPI) only supports single-param handler injection (event_bus); core main extends Step 4 to multi-param injection covering event_bus, container, and ownership_query. This fixes TypeError on 10+ handlers declaring container: ModelONEXContainer in __init__ that caused three consecutive runtime boot failures on .201. Files: - contracts/OMN-9126.yaml - drift/dod_receipts/OMN-9126/dod-omnibase-infra-pr-1589/command.yaml - drift/dod_receipts/OMN-9126/dod-occ-pr-1001/command.yaml After merge, omnibase_infra#1589 body will be updated to cite this PR (Evidence-Source: OCC#<this-pr>), and its verify gate will re-evaluate green. OMN-9126 Evidence-Source: OCC#1001 Evidence-Ticket: OMN-9126
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughThis PR adds a new CI gate contract for OMN-9126 ("Runtime Startup is a First-Class CI Gate"), including a contract specification file that disables emergency bypass and declares evidence requirements, plus two command verification records confirming PR states and source changes. ChangesOMN-9126 CI Gate Contract and Evidence
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@drift/dod_receipts/OMN-9126/dod-occ-pr-1001/command.yaml`:
- Around line 9-15: The receipt currently uses placeholder SHAs ("commit_sha:
pending" and "headRefOid: \"pending\"") which must be replaced with the actual
commit SHA from the PR; update commit_sha and the probe_stdout's headRefOid to
the real 40-char commit hash for the PR branch referenced by probe_command (gh
pr view ... headRefOid), ensure probe_stdout JSON and commit_sha match exactly,
and only mark status PASS after these values reflect the real commit provenance
(fields to change: commit_sha, probe_stdout.headRefOid).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b262a111-93be-4f7a-a8c7-b7d91a9931c6
📒 Files selected for processing (3)
contracts/OMN-9126.yamldrift/dod_receipts/OMN-9126/dod-occ-pr-1001/command.yamldrift/dod_receipts/OMN-9126/dod-omnibase-infra-pr-1589/command.yaml
Receipt-gate ModelDodReceipt validator rejects commit_sha=pending (must be 7-40 hex chars). Update self-receipt to reference the real OCC commit SHA so the receipt validates successfully. OMN-9126
…c PRs (OmniNode-ai#579) * docs(OMN-10376): add DoD contracts and receipts for swarm pattern epic PRs Adds 11 missing ticket contracts + dod receipts for omnibase_core PRs blocked by the Receipt Gate verify/verify check: - OMN-10347 (PR OmniNode-ai#986): harden receipt gate skip tokens - OMN-10351 (PR OmniNode-ai#987): EnumFileZone - OMN-10357 (PR OmniNode-ai#991): ModelCompletionVerifyResult - OMN-10358 (PR OmniNode-ai#990): extract_identifiers - OMN-10363 (PR OmniNode-ai#1001): static import graph - OMN-10367 (PR OmniNode-ai#996): trajectory store - OMN-10368 (PR OmniNode-ai#1000): PRM detectors - OMN-10369 (PR OmniNode-ai#1002): PRM escalation - OMN-10371 (PR OmniNode-ai#1003): EnumDiffSeverity + AST diff models - OMN-10372 (PR OmniNode-ai#998): tree-sitter symbol extractor - OMN-10381 (PR OmniNode-ai#992): dispatch eval models All contracts validated against ModelTicketContract schema. * docs(OMN-10376): add contracts for newly opened swarm pattern PRs Adds 4 more missing ticket contracts + dod receipts for omnibase_core PRs opened after the initial batch: - OMN-10360 (PR OmniNode-ai#1005): verify() + receipt-gate hook - OMN-10356 (PR OmniNode-ai#1006): path-filtered CI matrix docs-only short-circuit - OMN-10375 (PR OmniNode-ai#1009): AST semantic diff CLI + PR risk labeler - OMN-10365 (PR OmniNode-ai#1010): co-change dark matter CLI + JSON output All contracts validated against ModelTicketContract schema. * docs(OMN-10376): add contract and receipts for proof-of-life integration tests * docs(OMN-10376): resolve OCC receipt review comments * ci: kick CI Summary runner (GHA queue stall)
#7150) * evidence(OMN-16574): OCC companion for OmniNode-ai/omninode_infra#1006 Hand-scaffolded via scripts/auto_scaffold_contract.py because the per-PR OCC autobind publisher (call-occ-autobind.yml) ran and published successfully but the .201 effects-runtime consumer (node_pr_lifecycle_fix_effect) had not minted a companion or PATCHed Evidence-Source onto omninode_infra#1006 after ~10 minutes -- well outside the ~30s turnaround observed on this same ticket family's other PRs tonight (#1001, #1002, #1004, #1005). Evidence-Ticket: OMN-16574 * fix(OMN-16574): fill real ModelDodReceipt fields, scope commands to what was actually run The scaffold-generated stub receipts were missing required ModelDodReceipt fields (run_timestamp, commit_sha, runner, verifier, probe_command, probe_stdout) -- occ-preflight rejected them as "nonpass_receipt" with 6 pydantic validation errors. Replaces the generic stub check_values (uv run pytest tests/ -v / pre-commit run --all-files) with the exact commands actually run against omninode_infra#1006's head commit, fills every required field with real captured output, and rebinds contract_entry_sha256 via the real compute_contract_entry_sha256() after the contract edit (verified: both receipts validate against ModelDodReceipt and hash-match their contract entries). commit_sha is a cross-repo (omninode_infra) SHA; embedded a real "gh pr view 1006 --repo OmniNode-ai/omninode_infra" probe into probe_command/probe_stdout so the Evidence-Commit SHA Existence Gate (OMN-15461/OMN-15111) can resolve it against the correct repo instead of defaulting to onex_change_control. Evidence-Ticket: OMN-16574 * fix(OMN-16574): add OCC self-bind entry for PR #7150 occ-preflight identified the specific remaining gap on its own: no receipt bound this OCC PR itself (#7150), so eligibility could not resolve a PASS receipt for the in-repo evidence PR carrying the OMN-16574 contract. Adds the occ-self-bind-pr-7150 dod_evidence entry and its receipt (real "gh pr view 7150" probe output), and recomputes contract_sha256 on the two existing dod-001/dod-002 receipts -- the whole-file hash moves when the contract gains an entry, per-entry contract_entry_sha256 does not (OMN-13888), and both are verified unchanged/consistent against the live contract file. Evidence-Ticket: OMN-16574
Summary
Adds OCC contract for OMN-9126 with downstream receipt bundle binding omnibase_infra PR #1589, which pins omnibase-core to main branch (0.40.2) in
[tool.uv.sources]so the runtime image carries the multi-param handler injection extension. Core 0.40.1 (PyPI) only supports single-param handler injection (event_bus); core main extends Step 4 to multi-param injection covering event_bus, container, and ownership_query. Restoreswire_from_manifestboot on .201 (previously TypeError on 10+ handlers declaringcontainer: ModelONEXContainerin__init__).Files
contracts/OMN-9126.yaml— ticket contract with 2 DoD evidence items (omnibase_infra PR chore(occ-deps): update rerun state after 7ce91f1a #1589 + this OCC PR)drift/dod_receipts/OMN-9126/dod-omnibase-infra-pr-1589/command.yaml— downstream binding receipt (status: PASS, pr_number: 1589)drift/dod_receipts/OMN-9126/dod-occ-pr-1001/command.yaml— OCC self-PR binding (number assumed 1001; will be reconciled if this PR opens at a different number)Why
omnibase_infra#1589is the deploy blocker. Itsverify / verify(Receipt Gate) check fails because the previously citedEvidence-Source: OMN-9126predates this contract — no OCC contract exists for OMN-9126 yet. Per OMN-10419 Finding 2, evidence binding must reference an OCC commit at or after the contract creation. This PR introduces that contract.After this PR merges, omnibase_infra#1589 body will be updated to cite this PR (
Evidence-Source: OCC#<this-pr>), and its Receipt Gate will pass.Test plan
Validate ticket contract YAML against ModelTicketContract (OMN-8808)pre-commit passesRequire dod_evidence on ticket contractspre-commit passesContract check_value fail-open pattern lint (OMN-9350)pre-commit passesEvidence-Source: OCC#1001
Evidence-Ticket: OMN-9126
Summary by CodeRabbit