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
41 changes: 20 additions & 21 deletions contracts/OMN-12473.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ schema_version: "1.0.0"
ticket_id: "OMN-12473"
title: "Contract-owned generation/eval/agent prompts (SEA prompts-contract carve-out)"
summary: >
SEA prompts-contract follow-on under epic OMN-12468. Moves the three inline SEA system-prompt
literals (generation_system, eval_system, agent_system) out of consumer.py / eval_runner.py / agent.py
and into a typed SEA-local prompts contract. Adds src/contracts/prompts.py (frozen Pydantic
ModelRoutingPrompts with contract_type + schema_version, EnumPromptRef StrEnum, load_routing_prompts /
load_default_routing_prompts) and src/contracts/prompts.yaml (the three prompts as literal block
scalars, byte-identical to the prior inline strings). A model_validator pins each prompt's sha256 so a
YAML edit cannot silently drift the bytes; the loader is fail-closed on missing refs, empty prompts,
and unknown fields (extra="forbid"). Config-in-contract, not inline literals; no new routing node — this
is a SEA-local config surface mirroring mcp_service / model_registry. Zero httpx.post added; no routing,
ladder, escalation, or route-evidence surface added (SEA consumes routing, never owns it). Reapplied
manually onto onex-self-extending-agent origin/dev (no cherry-pick from the abandoned OMN-12468 stack
branches, to avoid importing the dropped httpx/routing surfaces).
SEA prompts-contract follow-on under epic OMN-12468. Moves the three inline SEA system-prompt literals
(generation_system, eval_system, agent_system) out of consumer.py / eval_runner.py / agent.py and into
a typed SEA-local prompts contract. Adds src/contracts/prompts.py (frozen Pydantic ModelRoutingPrompts
with contract_type + schema_version, EnumPromptRef StrEnum, load_routing_prompts / load_default_routing_prompts)
and src/contracts/prompts.yaml (the three prompts as literal block scalars, byte-identical to the prior
inline strings). A model_validator pins each prompt's sha256 so a YAML edit cannot silently drift the
bytes; the loader is fail-closed on missing refs, empty prompts, and unknown fields (extra="forbid").
Config-in-contract, not inline literals; no new routing node — this is a SEA-local config surface mirroring
mcp_service / model_registry. Zero httpx.post added; no routing, ladder, escalation, or route-evidence
surface added (SEA consumes routing, never owns it). Reapplied manually onto onex-self-extending-agent
origin/dev (no cherry-pick from the abandoned OMN-12468 stack branches, to avoid importing the dropped
httpx/routing surfaces).
is_seam_ticket: false
interface_change: false
interfaces_touched: []
Expand All @@ -25,15 +25,14 @@ emergency_bypass:
dod_evidence:
- id: "dod-sea-pr-187"
description: >
onex-self-extending-agent PR #187 moves the three inline SEA system prompts into the typed,
sha256-pinned src/contracts/prompts.py + src/contracts/prompts.yaml surface (ModelRoutingPrompts,
EnumPromptRef, extra=forbid loader), rewires consumer.py / eval_runner.py / agent.py to resolve
EnumPromptRef.* at module load, and ships tests/unit/test_prompts_contract.py (prompt bytes pinned
against captured sha256, every ref resolves, fail-closed on missing/empty/unknown). Prompts are
byte-identical to the prior inline strings; zero httpx.post added; no routing/ladder surface added.
Full suite green: uv run pytest tests/ -v (1201 passed, 15 skipped) + mypy --strict (157 files
clean) + ruff format/check clean + pre-commit run --all-files (all hooks pass, no skip tokens,
no --no-verify).
onex-self-extending-agent PR #187 moves the three inline SEA system prompts into the typed, sha256-pinned
src/contracts/prompts.py + src/contracts/prompts.yaml surface (ModelRoutingPrompts, EnumPromptRef,
extra=forbid loader), rewires consumer.py / eval_runner.py / agent.py to resolve EnumPromptRef.*
at module load, and ships tests/unit/test_prompts_contract.py (prompt bytes pinned against captured
sha256, every ref resolves, fail-closed on missing/empty/unknown). Prompts are byte-identical to
the prior inline strings; zero httpx.post added; no routing/ladder surface added. Full suite green:
uv run pytest tests/ -v (1201 passed, 15 skipped) + mypy --strict (157 files clean) + ruff format/check
clean + pre-commit run --all-files (all hooks pass, no skip tokens, no --no-verify).
source: "manual"
status: "verified"
checks:
Expand Down
55 changes: 55 additions & 0 deletions contracts/OMN-12552.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12552"
title: "Bind SEA stack reconciliation evidence"
summary: >-
Bind central evidence for onex-self-extending-agent PR #191, which imports the full SEA stack-vs-dev
reconciliation report so OMN-12468 children can be re-scoped or marked superseded without force-merging
stale stack branches.
is_seam_ticket: false
interface_change: false
interfaces_touched: []
emergency_bypass:
enabled: false
justification: ""
follow_up_ticket_id: ""
dod_evidence:
- id: "dod-sea-pr-191"
description: "Bind onex-self-extending-agent PR #191 head and evidence import."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-sea-pr-191/command.yaml"
&& grep -q '^pr_number: 191$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-sea-pr-191/command.yaml"
&& grep -q '^commit_sha: "b77c63f26f77e4e84b2a8627bba2e99b72f97aec"$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-sea-pr-191/command.yaml"
- id: "dod-local-validation"
description: "Local docs-only validation and commit hooks passed."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-local-validation/command.yaml"
&& grep -q 'diff --check passed' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-local-validation/command.yaml"
&& grep -q 'Reject skip-gate bypass tokens.*Passed' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-local-validation/command.yaml"
- id: "dod-stale-pr-comments"
description: "Stale SEA stack PRs #167 and #172 were marked with reconciliation guidance."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-stale-pr-comments/command.yaml"
&& grep -q 'pull/167#issuecomment-4586721819' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-stale-pr-comments/command.yaml"
&& grep -q 'pull/172#issuecomment-4586721817' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-stale-pr-comments/command.yaml"
- id: "dod-occ-pr-self"
description: "Self-binding receipt for the OCC PR carrying OMN-12552 central evidence."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-occ-pr-self/command.yaml"
&& grep -q '^pr_number: 1997$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12552/dod-occ-pr-self/command.yaml"
15 changes: 11 additions & 4 deletions drift/dod_receipts/OMN-12473/dod-sea-pr-187/command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@ schema_version: "1.0.0"
ticket_id: "OMN-12473"
evidence_item_id: "dod-sea-pr-187"
check_type: "command"
check_value: "gh pr view 187 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,title,state,baseRefName --jq ."
contract_sha256: "sha256:1c1cae2676aa0a3d171b7e8b0927e080e3da850bf485e39acbba80d9db25866c"
check_value: "gh pr view 187 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,title,state,baseRefName
--jq ."
contract_sha256: "sha256:ffd62c083a9867276fa193bf170437b47b991674a87a7d60467a02837958a7ae"
status: PASS
run_timestamp: "2026-05-31T12:10:00Z"
commit_sha: "b2bb08f716f025358f537ec9c711b5f6bf728755"
runner: "claude-sea-prompts-worker"
verifier: "manual-occ-pairing"
probe_command: "gh pr view 187 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,title,state,baseRefName --jq ."
probe_command: "gh pr view 187 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,title,state,baseRefName
--jq ."
probe_stdout: |
{"baseRefName":"dev","headRefName":"jonah/sea-canon-prompts-contract","headRefOid":"b2bb08f716f025358f537ec9c711b5f6bf728755","number":187,"state":"OPEN","title":"feat(OMN-12473a): contract-owned generation/eval/agent prompts","url":"https://github.com/OmniNode-ai/onex-self-extending-agent/pull/187"}
actual_output: "PASS: onex-self-extending-agent PR #187 carries the OMN-12473 prompts-contract carve-out — the three inline SEA system prompts moved into the typed sha256-pinned src/contracts/prompts.py + prompts.yaml surface (ModelRoutingPrompts, EnumPromptRef, extra=forbid), consumer.py/eval_runner.py/agent.py rewired to EnumPromptRef.*, tests/unit/test_prompts_contract.py pins prompt bytes and fail-closed paths. Full suite green (1201 passed, 15 skipped), mypy --strict clean, ruff clean, pre-commit clean. Zero httpx.post added; no routing/ladder surface added."
actual_output: "PASS: onex-self-extending-agent PR #187 carries the OMN-12473 prompts-contract carve-out
— the three inline SEA system prompts moved into the typed sha256-pinned src/contracts/prompts.py +
prompts.yaml surface (ModelRoutingPrompts, EnumPromptRef, extra=forbid), consumer.py/eval_runner.py/agent.py
rewired to EnumPromptRef.*, tests/unit/test_prompts_contract.py pins prompt bytes and fail-closed paths.
Full suite green (1201 passed, 15 skipped), mypy --strict clean, ruff clean, pre-commit clean. Zero
httpx.post added; no routing/ladder surface added."
exit_code: 0
pr_number: 187
branch: "jonah/sea-canon-prompts-contract"
Expand Down
29 changes: 29 additions & 0 deletions drift/dod_receipts/OMN-12552/dod-local-validation/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12552"
evidence_item_id: "dod-local-validation"
check_type: "command"
check_value: >-
git diff --check; commit-time pre-commit hooks for docs-only evidence import.
status: PASS
run_timestamp: "2026-05-31T12:49:20Z"
commit_sha: "b77c63f26f77e4e84b2a8627bba2e99b72f97aec"
contract_sha256: "sha256:a785a067e6d7b153310d0cb87960e235465817685b784416e296a353a2298e38"
branch: "jonah/omn-12552-sea-reconciliation-evidence"
pr_number: 191
runner: "codex"
verifier: "jonah"
probe_command: "git diff --check && git commit"
probe_stdout: |
diff --check passed
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check for merge conflicts................................................Passed
check for added large files..............................................Passed
ruff format..........................................(no files to check)Skipped
ruff (legacy alias)..................................(no files to check)Skipped
Reject skip-gate bypass tokens (OMN-10414)...............................Passed
actual_output: >-
PASS: docs-only evidence import passed whitespace validation and commit hooks.
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12552/onex-self-extending-agent"
20 changes: 20 additions & 0 deletions drift/dod_receipts/OMN-12552/dod-occ-pr-self/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12552"
evidence_item_id: "dod-occ-pr-self"
check_type: "command"
check_value: "gh pr view 1997 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid"
status: PASS
run_timestamp: "2026-05-31T12:49:20Z"
commit_sha: "6ff204614cb254ff3ab01c6d004b6cc62270d124"
contract_sha256: "sha256:a785a067e6d7b153310d0cb87960e235465817685b784416e296a353a2298e38"
branch: "jonah/omn-12552-sea-reconciliation-evidence"
pr_number: 1997
runner: "codex"
verifier: "jonah"
probe_command: "gh pr view 1997 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid"
probe_stdout: |
{"headRefName":"jonah/omn-12552-sea-reconciliation-evidence","headRefOid":"6ff204614cb254ff3ab01c6d004b6cc62270d124","number":1997,"state":"OPEN"}
actual_output: "PASS: OCC PR #1997 carries the OMN-12552 central contract and receipts."
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12552/onex_change_control"
21 changes: 21 additions & 0 deletions drift/dod_receipts/OMN-12552/dod-sea-pr-191/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12552"
evidence_item_id: "dod-sea-pr-191"
check_type: "command"
check_value: "gh pr view 191 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,baseRefName,title,state"
status: PASS
run_timestamp: "2026-05-31T12:49:20Z"
commit_sha: "b77c63f26f77e4e84b2a8627bba2e99b72f97aec"
contract_sha256: "sha256:a785a067e6d7b153310d0cb87960e235465817685b784416e296a353a2298e38"
branch: "jonah/omn-12552-sea-reconciliation-evidence"
pr_number: 191
runner: "codex"
verifier: "jonah"
probe_command: "gh pr view 191 --repo OmniNode-ai/onex-self-extending-agent --json number,url,headRefOid,headRefName,baseRefName,title,state"
probe_stdout: |
{"baseRefName":"dev","headRefName":"jonah/omn-12552-sea-reconciliation-evidence","headRefOid":"b77c63f26f77e4e84b2a8627bba2e99b72f97aec","number":191,"state":"OPEN","title":"docs(OMN-12552): bind SEA stack reconciliation evidence","url":"https://github.com/OmniNode-ai/onex-self-extending-agent/pull/191"}
actual_output: >-
PASS: onex-self-extending-agent PR #191 binds the OMN-12552 reconciliation evidence import at head b77c63f26f77e4e84b2a8627bba2e99b72f97aec.
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12552/onex-self-extending-agent"
24 changes: 24 additions & 0 deletions drift/dod_receipts/OMN-12552/dod-stale-pr-comments/command.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12552"
evidence_item_id: "dod-stale-pr-comments"
check_type: "command"
check_value: "gh pr comment 167/172 --repo OmniNode-ai/onex-self-extending-agent --body <reconciliation
guidance>"
status: PASS
run_timestamp: "2026-05-31T12:49:20Z"
commit_sha: "b77c63f26f77e4e84b2a8627bba2e99b72f97aec"
contract_sha256: "sha256:a785a067e6d7b153310d0cb87960e235465817685b784416e296a353a2298e38"
branch: "jonah/omn-12552-sea-reconciliation-evidence"
pr_number: 191
runner: "codex"
verifier: "jonah"
probe_command: "gh pr comment 167 && gh pr comment 172"
probe_stdout: |
https://github.com/OmniNode-ai/onex-self-extending-agent/pull/167#issuecomment-4586721819
https://github.com/OmniNode-ai/onex-self-extending-agent/pull/172#issuecomment-4586721817
actual_output: >-
PASS: stale SEA stack PRs #167 and #172 now point reviewers to the reconciliation path and warn against
force-merging superseded stack surfaces.
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home"
Loading