Skip to content

feat(OMN-10063): add contract YAML for EnumContractCompleteness task - #457

Merged
jonahgabriel merged 2 commits into
mainfrom
jonah/omn-10063-contract
Apr 27, 2026
Merged

jonahgabriel merged 2 commits into
mainfrom
jonah/omn-10063-contract

Conversation

@jonahgabriel

@jonahgabriel jonahgabriel commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Ticket

OMN-10063

dod_evidence

- id: dod-001
  description: "Contract YAML validates against OCC schema"
  source: manual
  status: complete
  evidence_artifact: "uv run validate-yaml contracts/OMN-10063.yaml → [OK] All 1 file(s) valid"

Test plan

  • uv run validate-yaml contracts/OMN-10063.yaml — passes
  • Pre-commit Require dod_evidence on ticket contracts hook — passes
  • CI green via gh pr checks --watch

[skip-receipt-gate: contract-only PR adding a new YAML artifact, no code changes]

Summary by CodeRabbit

  • Chores
    • Implemented enhanced validation and quality assurance processes to ensure stricter code completeness standards are consistently maintained and verified during development cycles.

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.
@coderabbitai

coderabbitai Bot commented Apr 27, 2026 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

A new contract manifest YAML file (OMN-10063.yaml) is added to define requirements and evidence criteria for implementing EnumContractCompleteness in omnibase_core, specifying unit test execution and CI/PR checks validation.

Changes

Cohort / File(s) Summary
Contract Manifest
contracts/OMN-10063.yaml
New YAML contract file defining requirements for the EnumContractCompleteness feature, including pytest execution criteria and manual dod_evidence validation checks for enum file presence, exports, tests, CI status, and target branch.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A contract born, all shiny and new,
Enums shall sparkle—complete through and through!
Tests pass with pride, CI checks all aligned,
Evidence gathered, no detail unsigned.
Hop forward, dear PR, to main you will go! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a contract YAML file for the OMN-10063 ticket related to EnumContractCompleteness work.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jonah/omn-10063-contract

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

@github-actions
github-actions Bot enabled auto-merge April 27, 2026 20:24
yamlfmt reformatted the long check_value line after prior commit.
Re-stage to ensure committed YAML matches the formatted version.

@coderabbitai coderabbitai 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.

🧹 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 of gh pr checks output).

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".

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6d6c2355-986c-4121-b5a5-d2f091b39bdd

📥 Commits

Reviewing files that changed from the base of the PR and between 0b6763c and a3e5539.

📒 Files selected for processing (1)
  • contracts/OMN-10063.yaml

@jonahgabriel
jonahgabriel added this pull request to the merge queue Apr 27, 2026
Merged via the queue into main with commit a3e019f Apr 27, 2026
28 checks passed
@jonahgabriel
jonahgabriel deleted the jonah/omn-10063-contract branch April 27, 2026 20:37
jonahgabriel added a commit that referenced this pull request May 23, 2026
…entity 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.
jonahgabriel added a commit that referenced this pull request May 23, 2026
, #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.
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