Repository navigation
feat(OMN-10063): add contract YAML for EnumContractCompleteness task - #457
Conversation
Skeleton contract for OMN-10063 (Task 1.5 of OMN-9582). Satisfies the receipt gate requirement on omnibase_core PR #951. Includes dod_evidence for enum creation, package export, 8 unit tests, mypy strict, and CI.
📝 WalkthroughWalkthroughA new contract manifest YAML file ( Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 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 |
yamlfmt reformatted the long check_value line after prior commit. Re-stage to ensure committed YAML matches the formatted version.
There was a problem hiding this comment.
🧹 Nitpick comments (1)
contracts/OMN-10063.yaml (1)
38-43: Consider a more precise CI check pattern.The current command
gh pr checks ... | grep -c 'pass' | grep -qv '^0$'works but could match "pass" in check names or other contexts. A more precise pattern might check for specific status indicators (e.g.,✓or column-based parsing ofgh pr checksoutput).However, the current approach is functional for basic validation.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@contracts/OMN-10063.yaml` around lines 38 - 43, The CI check under id dod-004 uses a loose grep for 'pass' that may match unrelated text; update the check_value command to match the check-status symbol or explicit status field instead (e.g., match lines that start with the checkmark or the exact success token). Replace the current check_value value in dod-004 with a more precise pipeline such as using gh pr checks ... | grep -E '^[[:space:]]*✓' | wc -l and asserting non-zero, or use gh pr checks --json/--format to read the check conclusion (e.g., filter for "conclusion":"SUCCESS"), so the check only counts actual successful checks rather than any occurrence of the word "pass".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@contracts/OMN-10063.yaml`:
- Around line 38-43: The CI check under id dod-004 uses a loose grep for 'pass'
that may match unrelated text; update the check_value command to match the
check-status symbol or explicit status field instead (e.g., match lines that
start with the checkmark or the exact success token). Replace the current
check_value value in dod-004 with a more precise pipeline such as using gh pr
checks ... | grep -E '^[[:space:]]*✓' | wc -l and asserting non-zero, or use gh
pr checks --json/--format to read the check conclusion (e.g., filter for
"conclusion":"SUCCESS"), so the check only counts actual successful checks
rather than any occurrence of the word "pass".
, #452 (#1455) * contracts(OMN-11854): add OCC evidence for omninode_infra PRs #449, #451, #452 - contracts/OMN-11770.yaml — CI gate wiring (PR #449) - contracts/OMN-11854.yaml — prod deploy tag fix (PR #451) - contracts/OMN-10278.yaml — adds dod-omninode-infra-pr-452 for tag-based TF discovery (PR #452) - Receipt files for all three PRs * contracts(OMN-11854): update self-bound receipts with OCC PR #1455 number * contracts(OMN-11854): add missing commit_sha + contract_sha256 to self-bound receipts * contracts(OMN-11854): update OMN-10278 receipt from pr-452 to pr-456 (renamed branch) * contracts(OMN-11854): add PR #456 evidence to OMN-11854 contract Add dod-omninode-infra-pr-456 receipt and evidence item to OMN-11854 contract for omninode_infra PR #456 (tag-based network discovery). Update dod-occ-pr receipt with new contract_sha256. * contracts(OMN-11854): rename PR evidence from #456 to #457 (branch identity fix) PR #456 had wrong branch name (omn-10278 prefix); closed in favor of #457 with correct jonah/omn-11854-* branch for identity binding. Update contract, receipt dir, and contract_sha256 throughout. * contracts(OMN-11854): rename PR #451→#458 evidence (branch identity fix) PR #451 had branch jonah/fix-prod-deploy-tag (no OMN ticket); closed in favor of #458 with jonah/omn-11854-fix-prod-deploy-tag. Update contract, receipt dir, and contract_sha256 throughout. * contracts(OMN-11854): fix yamlfmt + unquote ticket_id in receipts yamlfmt reformats probe_stdout literal blocks; strip YAML quotes from ticket_id fields so the contract grep checks (^ticket_id: OMN-XXXX$) match the actual file content. * contracts(OMN-11854): apply yamlfmt to all branch-modified YAML files * contracts(OMN-11854): update contract_sha256 after yamlfmt reformat yamlfmt reformatted OMN-11854.yaml, changing its hash. Update all three OMN-11854 receipts with the new sha256:2848b28f... hash.
Summary
contracts/OMN-10063.yaml— ticket contract for OMN-10063 (Task 1.5 of OMN-9582: createEnumContractCompletenessin omnibase_core)Ticket
OMN-10063
dod_evidence
Test plan
uv run validate-yaml contracts/OMN-10063.yaml— passesRequire dod_evidence on ticket contractshook — passesgh pr checks --watch[skip-receipt-gate: contract-only PR adding a new YAML artifact, no code changes]
Summary by CodeRabbit