Repository navigation
fix(OMN-13408): OCC contract — extend to tokens dimension (tokens_input/tokens_output carry) - #2901
Conversation
…ut/tokens_output carry on canonical terminal/compat events) Additively extends the existing OMN-13408 OCC contract (cost_usd half landed via omnimarket #1332 / OCC #2890) to cover the sibling tokens dimension: - omnibase_core #1300 adds additive fields tokens_input/tokens_output (int, default=0, ge=0) on the canonical wire DTO ModelTaskDelegatedEvent - omnimarket #1336 populates them from served prompt/completion tokens on both terminal compat paths in HandlerDelegationWorkflow New dod-tokens evidence item + paired receipt bind the tokens regression test. Existing dod-001/dod-occ-pr receipts re-bound to the current contract sha256 (contract mutated; probes re-run, both still PASS). No new REST route, no bespoke endpoint, no direct DB write — additive event-bus carry only.
|
Warning Review limit reached
More reviews will be available in 34 minutes and 58 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
#7134) * evidence(OMN-16557): OCC contract for OmniNode-ai/omnibase_infra PR #2901 * evidence(OMN-16557): PASS receipts for OmniNode-ai/omnibase_infra PR #2901 * evidence(OMN-16557): add occ-self-bind for PR #7134 * evidence(OMN-16557): recompute contract_sha256 across receipts + self-bind receipt for PR #7134
OMN-13408 — OCC contract extension: tokens dimension
Sibling half of the already-landed
cost_usdfix (omnimarket #1332 / OCC contract #2890 + receipt #2894). This PR additively extends the existingcontracts/OMN-13408.yamlto cover thetokens_input/tokens_outputdimension — it does not duplicate the ticket or create a new contract.What changed
contracts/OMN-13408.yaml— title/summary now describe both dimensions; newdod-tokensevidence item binds the tokens regression test.drift/dod_receipts/OMN-13408/dod-tokens/command.yaml— new paired receipt for the tokens evidence item (verifier ≠ runner; probe_stdout captured).drift/dod_receipts/OMN-13408/dod-001/command.yaml+dod-occ-pr/command.yaml— re-boundcontract_sha256to the current contract hash (the contract mutated; both probes re-run, still PASS). Receipt Hardening Gate requires receipt sha to matchsha256(contracts/OMN-13408.yaml).Product PRs this contract governs (tokens dimension)
tokens_input/tokens_output(int,default=0,ge=0) on the canonical wire DTOModelTaskDelegatedEvent.HandlerDelegationWorkflow, with regression testtests/unit/delegation/test_compat_event_tokens_not_clobbered_omn13408.py(fails pre-fix attokens_input=0/tokens_output=0, passes post-fix).Both product PRs will pin
Evidence-Sourceto this PR's squash merge-commit (OCC squash invalidates a pre-squash Evidence-Source SHA).Honest scope note
The fix is the additive wire + compat carry only. An independent DEV-lane live projection readback (correlation_id
badf851a, terminal topiconex.evt.omnibase-infra.delegation-failed.v1) still readstokens_input=0/tokens_output=0because served Gemini usage is dropped upstream beforeresponse.prompt_tokens/workflow.inference_*_tokensare read on the escalated-failed path. Threading the served usage into the canonical terminal event on that path is a separate follow-on. No buyer-facing savings claim — measured DEV proof only (OMN-12296 Integration Lock in force).dod_evidence
dod-001(cost test, re-bound) — PASSdod-tokens(tokens regression test) — PASSdod-occ-pr(self-binding OCC receipt, re-bound) — PASSReceipt Honesty + Receipt Hardening gates pass locally (
pre-commit run --all).Epic: OMN-13471. Parent: OMN-12296.