Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions contracts/OMN-10420.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
schema_version: '1.0.0'
ticket_id: OMN-10420
title: "feat(OMN-10420): ticket-identity binding in receipt_gate.py"
summary: >
Add ticket-identity binding to receipt_gate.py so that a code PR's evidence is provably about the same
ticket the PR claims to address. Enforces invariant I3 from the gate-collapse-fix plan.
is_seam_ticket: false
interface_change: true
interfaces_touched:
- public_api
evidence_requirements:
- kind: ci
description: All receipt_gate unit tests pass including the 5 required identity-binding cases
command: >
uv run pytest tests/unit/validation/test_receipt_gate_identity_binding.py -v --tb=short
emergency_bypass:
enabled: false
justification: ''
follow_up_ticket_id: ''
dod_evidence:
- id: dod-001
description: Five identity-binding failure cases pass (missing Evidence-Ticket, PR title mismatch,
branch mismatch, contract ticket_id mismatch, receipt ticket_id mismatch)
source: generated
checks:
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-10420/dod-001/command.yaml && grep -Fq 'status: PASS' drift/dod_receipts/OMN-10420/dod-001/command.yaml
&& grep -Fq 'commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006' drift/dod_receipts/OMN-10420/dod-001/command.yaml
&& grep -Fq 'pr_number: 1019' drift/dod_receipts/OMN-10420/dod-001/command.yaml && grep -Fq
'9 passed' drift/dod_receipts/OMN-10420/dod-001/command.yaml
- id: dod-002
description: No regressions in existing receipt_gate tests (adversarial, skip-token, workflow shape,
CLI)
source: generated
checks:
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-10420/dod-002/command.yaml && grep -Fq 'status: PASS' drift/dod_receipts/OMN-10420/dod-002/command.yaml
&& grep -Fq 'commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006' drift/dod_receipts/OMN-10420/dod-002/command.yaml
&& grep -Fq 'pr_number: 1019' drift/dod_receipts/OMN-10420/dod-002/command.yaml && grep -Fq
'68 passed' drift/dod_receipts/OMN-10420/dod-002/command.yaml
- id: dod-003
description: EVIDENCE_SOURCE_PATTERN and EVIDENCE_TICKET_PATTERN exported in __all__
source: generated
checks:
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-10420/dod-003/command.yaml && grep -Fq 'EVIDENCE_SOURCE_PATTERN'
drift/dod_receipts/OMN-10420/dod-003/command.yaml && grep -Fq 'EVIDENCE_TICKET_PATTERN' drift/dod_receipts/OMN-10420/dod-003/command.yaml
&& grep -Fq 'rg.__all__' drift/dod_receipts/OMN-10420/dod-003/command.yaml && grep -Fq 'probe_stdout:
|' drift/dod_receipts/OMN-10420/dod-003/command.yaml && grep -Fq 'ok' drift/dod_receipts/OMN-10420/dod-003/command.yaml
- id: dod-004
description: CLI accepts --evidence-ticket and --branch-name flags
source: generated
checks:
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-10420/dod-004/command.yaml && grep -Fq -- '--evidence-ticket'
drift/dod_receipts/OMN-10420/dod-004/command.yaml && grep -Fq -- '--branch-name' drift/dod_receipts/OMN-10420/dod-004/command.yaml
74 changes: 44 additions & 30 deletions contracts/OMN-7836.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,55 @@
---
schema_version: "1.0.0"
schema_version: '1.0.0'
ticket_id: OMN-7836
title: 'Fix delegation dashboard: add model names to charts + fix quality gate pass rate'
summary: "Fix delegation dashboard: add model names to charts + fix quality gate pass rate"
is_seam_ticket: true
title: "feat(omnidash): add model names to delegation charts + fix quality gate pass rate"
summary: 'Extend DelegationSummary with byModel breakdown and quality gate pass/total counts. Render model
names in chart legends and quality gate detail.'
is_seam_ticket: false
interface_change: false
interfaces_touched: []
evidence_requirements:
- kind: "ci"
description: "CI passes on merge PR"
command: "gh pr checks"
- kind: ci
description: All delegation tests pass (13/13), lint clean, typecheck clean
command: "cd omnidash && npm run test:run -- src/components/dashboard/delegation/ && npm run lint
&& npm run check"
- kind: manual
description: Model names visible in delegation chart legend/tooltip
command: "grep -q 'byModel' omnidash/src/components/dashboard/delegation/DelegationMetrics2D.tsx &&
grep -q 'byModel' omnidash/src/components/dashboard/delegation/DelegationMetrics3D.tsx"
emergency_bypass:
enabled: false
justification: ""
follow_up_ticket_id: ""
justification: ''
follow_up_ticket_id: ''
dod_evidence:
- id: "dod-001"
description: "PR opened against main branch"
source: "generated"
- id: dod-001
description: DelegationSummary type includes byModel and qualityGatePassed/qualityGateTotal fields
source: generated
checks:
- check_type: "command"
check_value: "gh pr view --json state -q .state"
- id: "dod-002"
description: "PR merged to main"
source: "generated"
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-7836/dod-001/command.yaml && grep -Fq 'status: PASS' drift/dod_receipts/OMN-7836/dod-001/command.yaml
&& grep -Fq 'commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e' drift/dod_receipts/OMN-7836/dod-001/command.yaml
&& grep -Fq 'pr_number: 61' drift/dod_receipts/OMN-7836/dod-001/command.yaml && grep -Fq 'byModel:'
drift/dod_receipts/OMN-7836/dod-001/command.yaml && grep -Fq 'qualityGatePassed:' drift/dod_receipts/OMN-7836/dod-001/command.yaml
&& grep -Fq 'qualityGateTotal:' drift/dod_receipts/OMN-7836/dod-001/command.yaml
- id: dod-002
description: All 13 delegation tests pass
source: generated
checks:
- check_type: "command"
check_value: "gh pr view --json mergedAt -q .mergedAt"
- id: "dod-003"
description: "Tests pass in CI"
source: "generated"
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-7836/dod-002/command.yaml && grep -Fq 'status: PASS' drift/dod_receipts/OMN-7836/dod-002/command.yaml
&& grep -Fq 'commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e' drift/dod_receipts/OMN-7836/dod-002/command.yaml
&& grep -Fq 'pr_number: 61' drift/dod_receipts/OMN-7836/dod-002/command.yaml && grep -Fq '13
passed' drift/dod_receipts/OMN-7836/dod-002/command.yaml
- id: dod-003
description: Lint and typecheck clean
source: generated
checks:
- check_type: "command"
check_value: "gh pr checks --watch"
- id: "dod-004"
description: "Pre-commit hooks clean"
source: "generated"
checks:
- check_type: "command"
check_value: "pre-commit run --all-files"
- check_type: command
check_value: >
test -f drift/dod_receipts/OMN-7836/dod-003/command.yaml && grep -Fq 'status: PASS' drift/dod_receipts/OMN-7836/dod-003/command.yaml
&& grep -Fq 'commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e' drift/dod_receipts/OMN-7836/dod-003/command.yaml
&& grep -Fq 'pr_number: 61' drift/dod_receipts/OMN-7836/dod-003/command.yaml && grep -Fq 'ESLint
passes with zero warnings' drift/dod_receipts/OMN-7836/dod-003/command.yaml && grep -Fq 'TypeScript
tsc --noEmit passes with no errors' drift/dod_receipts/OMN-7836/dod-003/command.yaml
31 changes: 31 additions & 0 deletions drift/dod_receipts/OMN-10420/dod-001/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
schema_version: '1.0.0'
ticket_id: OMN-10420
evidence_item_id: dod-001
check_type: command
check_value: >
PYTHONPATH=src uv run pytest tests/unit/validation/test_receipt_gate_identity_binding.py -v --tb=short
-m unit
status: PASS
run_timestamp: '2026-05-01T15:55:00+00:00'
commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006
runner: worker-10420
verifier: team-lead
pr_number: 1019
branch: jonah/omn-10420-ticket-identity-binding
working_dir: /Users/jonah/Code/omni_home/omni_worktrees/OMN-10420/omnibase_core
exit_code: 0
probe_command: >
PYTHONPATH=src uv run pytest tests/unit/validation/test_receipt_gate_identity_binding.py -v --tb=short
-m unit
probe_stdout: |
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_branch_mismatch_fails PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_contract_ticket_id_mismatch_fails PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_evidence_ticket_arg_overrides_body_detection PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_evidence_ticket_auto_detected_from_pr_body PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_missing_evidence_ticket_fails PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_no_evidence_source_skips_identity_binding PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_pr_title_mismatch_fails PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_receipt_ticket_id_mismatch_fails PASSED
tests/unit/validation/test_receipt_gate_identity_binding.py::TestTicketIdentityBinding::test_valid_identity_passes_gate PASSED
9 passed in 1.95s
29 changes: 29 additions & 0 deletions drift/dod_receipts/OMN-10420/dod-002/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
schema_version: '1.0.0'
ticket_id: OMN-10420
evidence_item_id: dod-002
check_type: command
check_value: >
PYTHONPATH=src uv run pytest tests/unit/validation/test_receipt_gate_adversarial.py tests/unit/validation/test_receipt_gate_skip_token_allowlist.py
tests/unit/validation/test_receipt_gate_skip_token_hardening.py tests/unit/validation/test_receipt_gate_workflow_shape.py
tests/unit/validation/test_receipt_gate_cli.py -v --tb=short
status: PASS
run_timestamp: '2026-05-01T15:56:00+00:00'
commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006
runner: worker-10420
verifier: team-lead
pr_number: 1019
branch: jonah/omn-10420-ticket-identity-binding
working_dir: /Users/jonah/Code/omni_home/omni_worktrees/OMN-10420/omnibase_core
exit_code: 0
probe_command: >
PYTHONPATH=src uv run pytest tests/unit/validation/test_receipt_gate_adversarial.py tests/unit/validation/test_receipt_gate_skip_token_allowlist.py
tests/unit/validation/test_receipt_gate_skip_token_hardening.py tests/unit/validation/test_receipt_gate_workflow_shape.py
tests/unit/validation/test_receipt_gate_cli.py -v --tb=short
probe_stdout: |
tests/unit/validation/test_receipt_gate_adversarial.py PASSED
tests/unit/validation/test_receipt_gate_skip_token_allowlist.py PASSED
tests/unit/validation/test_receipt_gate_skip_token_hardening.py PASSED
tests/unit/validation/test_receipt_gate_workflow_shape.py PASSED
tests/unit/validation/test_receipt_gate_cli.py PASSED
68 passed in 5.18s
22 changes: 22 additions & 0 deletions drift/dod_receipts/OMN-10420/dod-003/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
schema_version: '1.0.0'
ticket_id: OMN-10420
evidence_item_id: dod-003
check_type: command
check_value: >
PYTHONPATH=src uv run python -c "import omnibase_core.validation.receipt_gate as rg; assert 'EVIDENCE_SOURCE_PATTERN'
in rg.__all__ and 'EVIDENCE_TICKET_PATTERN' in rg.__all__; print('ok')"
status: PASS
run_timestamp: '2026-05-01T15:55:00+00:00'
commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006
runner: worker-10420
verifier: team-lead
pr_number: 1019
branch: jonah/omn-10420-ticket-identity-binding
working_dir: /Users/jonah/Code/omni_home/omni_worktrees/OMN-10420/omnibase_core
exit_code: 0
probe_command: >
PYTHONPATH=src uv run python -c "import omnibase_core.validation.receipt_gate as rg; assert 'EVIDENCE_SOURCE_PATTERN'
in rg.__all__ and 'EVIDENCE_TICKET_PATTERN' in rg.__all__; print('ok')"
probe_stdout: |
ok
25 changes: 25 additions & 0 deletions drift/dod_receipts/OMN-10420/dod-004/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
schema_version: '1.0.0'
ticket_id: OMN-10420
evidence_item_id: dod-004
check_type: command
check_value: >
PYTHONPATH=src uv run python -m omnibase_core.validation.receipt_gate_cli --help | grep -F -- '--evidence-ticket'
&& PYTHONPATH=src uv run python -m omnibase_core.validation.receipt_gate_cli --help | grep -F -- '--branch-name'
status: PASS
run_timestamp: '2026-05-01T15:55:00+00:00'
commit_sha: 2c7970c0b01c2984be961544ec0a129e17bc9006
runner: worker-10420
verifier: team-lead
pr_number: 1019
branch: jonah/omn-10420-ticket-identity-binding
working_dir: /Users/jonah/Code/omni_home/omni_worktrees/OMN-10420/omnibase_core
exit_code: 0
probe_command: >
PYTHONPATH=src uv run python -m omnibase_core.validation.receipt_gate_cli --help | grep -F -- '--evidence-ticket'
&& PYTHONPATH=src uv run python -m omnibase_core.validation.receipt_gate_cli --help | grep -F -- '--branch-name'
probe_stdout: |
[--evidence-ticket EVIDENCE_TICKET]
--evidence-ticket EVIDENCE_TICKET
[--branch-name BRANCH_NAME] [--reexecute-probes]
--branch-name BRANCH_NAME
23 changes: 23 additions & 0 deletions drift/dod_receipts/OMN-7836/dod-001/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
schema_version: "1.0.0"
ticket_id: OMN-7836
evidence_item_id: dod-001
check_type: command
check_value: >
grep -q 'byModel:' omnidash/src/components/dashboard/delegation/DelegationMetrics3D.tsx && grep -q 'qualityGatePassed:'
omnidash/src/components/dashboard/delegation/DelegationMetrics3D.tsx && grep -q 'qualityGateTotal:'
omnidash/src/components/dashboard/delegation/DelegationMetrics3D.tsx
status: PASS
run_timestamp: 2026-05-01T12:10:00+00:00
commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e
runner: omn-7836-local-runner
verifier: jonahgabriel
probe_command: "grep 'byModel:\\|qualityGatePassed:\\|qualityGateTotal:' omnidash/src/components/dashboard/delegation/DelegationMetrics3D.tsx"
probe_stdout: |
byModel: Array<{ model: string; count: number }>;
qualityGatePassed: number;
qualityGateTotal: number;
actual_output: >-
DelegationSummary type extended with byModel, qualityGatePassed, qualityGateTotal fields
exit_code: 0
pr_number: 61
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-7836/dod-002/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: OMN-7836
evidence_item_id: dod-002
check_type: command
check_value: "cd omnidash && npm run test:run -- src/components/dashboard/delegation/ 2>&1 | grep -q 'Tests.*13
passed'"
status: PASS
run_timestamp: 2026-05-01T12:05:00+00:00
commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e
runner: omn-7836-local-runner
verifier: jonahgabriel
probe_command: "cd omnidash && npm run test:run -- src/components/dashboard/delegation/ 2>&1 | tail -5"
probe_stdout: |
Test Files 3 passed (3)
Tests 13 passed (13)
actual_output: >-
All 13 delegation tests pass: DelegationMetrics router (3), DelegationMetrics2D (5), DelegationMetrics3D
(5)
exit_code: 0
pr_number: 61
19 changes: 19 additions & 0 deletions drift/dod_receipts/OMN-7836/dod-003/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
schema_version: "1.0.0"
ticket_id: OMN-7836
evidence_item_id: dod-003
check_type: command
check_value: "cd omnidash && npm run lint && npm run check"
status: PASS
run_timestamp: 2026-05-01T12:05:30+00:00
commit_sha: d60124a4491469750da1fdd592b2915daa12ec5e
runner: omn-7836-local-runner
verifier: jonahgabriel
probe_command: "cd omnidash && npm run lint 2>&1 && npm run check 2>&1; echo EXIT=$?"
probe_stdout: |
(lint: no output — clean)
(check: no output — clean)
actual_output: >-
ESLint passes with zero warnings. TypeScript tsc --noEmit passes with no errors.
exit_code: 0
pr_number: 61
Loading