feat(torghut): add consumer evidence contract canaries#6727
Open
gregkonush wants to merge 1 commit into
Open
Conversation
Member
Author
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Member
Author
|
Current status: PR #6727 is open, mergeable, non-draft, and green for What changed:
Runtime evidence:
Local validation after rebasing onto
GitHub CI:
Next action: deployer handoff after merge; rollout verification must prove image promotion, Argo sync, live service health, and |
fa9f515 to
102f820
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
torghut.consumer-evidence-contract-canary.v1compact refs to/trading/consumer-evidence?view=summaryforroute_warrant_exchangeandrepair_bid_settlement_ledger, while keeping full contract bodies on the full route.torghut_contract_transport_unavailableinstead of false missing-contract blockers when that fallback fails.docs/torghut/rollouts/2026-05-15-consumer-evidence-contract-canary.md.Design provenance:
docs/torghut/design-system/v6/213-torghut-consumer-evidence-contract-canary-and-alpha-reentry-transport-2026-05-15.mddocs/agents/designs/207-jangar-consumer-evidence-transport-split-and-source-serving-contract-canary-2026-05-15.mdRuntime evidence:
/trading/revenue-repairreportedbusiness_state=repair_only,revenue_ready=false, top queue itemrepair_alpha_readiness, affected value gaterouteable_candidate_count,accepted_routeable_candidate_count=0, andmax_notional=0./trading/revenue-repairstill reportsbusiness_state=repair_only,revenue_ready=false, top queue itemrepair_alpha_readiness, affected value gaterouteable_candidate_count,accepted_routeable_candidate_count=0, andmax_notional=0.Related Issues
None
Testing
uv sync --frozen --extra devuv run --frozen ruff check app/main.py app/trading/consumer_evidence.py tests/test_consumer_evidence.py tests/test_trading_api.pyuv run --frozen ruff format --check app/main.py app/trading/consumer_evidence.py tests/test_consumer_evidence.py tests/test_trading_api.pyuv run --frozen pytest tests/test_consumer_evidence.pyuv run --frozen pytest tests/test_trading_api.py -k consumer_evidenceuv run --frozen pytest tests/test_consumer_evidence.py tests/test_trading_api.py -k consumer_evidenceuv run --frozen pytest tests/test_no_delta_repair_reentry_auction.pyuv run --frozen pyright --project pyrightconfig.jsonuv run --frozen pyright --project pyrightconfig.alpha.jsonuv run --frozen pyright --project pyrightconfig.scripts.jsonbunx oxfmt --check services/jangar/README.md services/torghut/README.md docs/torghut/rollouts/2026-05-15-consumer-evidence-contract-canary.md services/jangar/src/routes/ready.test.ts services/jangar/src/server/control-plane-torghut-consumer-evidence.ts services/jangar/src/server/control-plane-source-serving-contract-verdict.ts services/jangar/src/server/__tests__/control-plane-torghut-consumer-evidence.test.ts services/jangar/src/server/__tests__/control-plane-source-serving-contract-verdict.test.tsbunx oxfmt --check services/jangar packages/scripts/src/jangar argocd/applications/jangarbunx oxlint --config .oxlintrc.json services/jangar/src/routes/ready.test.ts services/jangar/src/server/control-plane-torghut-consumer-evidence.ts services/jangar/src/server/control-plane-source-serving-contract-verdict.ts services/jangar/src/server/__tests__/control-plane-torghut-consumer-evidence.test.ts services/jangar/src/server/__tests__/control-plane-source-serving-contract-verdict.test.tsbun run --cwd services/jangar lint:oxlintbun run --cwd services/jangar lint:oxlint:typebun run --cwd services/jangar docs:inventory:checkbun run --cwd services/jangar check:module-sizesbun run --filter @proompteng/otel buildbun run --filter @proompteng/temporal-bun-sdk buildbun run --filter @proompteng/jangar tscbunx tsc --noEmit --project tsconfig.paths.jsonbunx vitest run --config vitest.config.ts src/server/__tests__/control-plane-torghut-consumer-evidence.test.ts src/server/__tests__/control-plane-source-serving-contract-verdict.test.tsbun run --filter @proompteng/jangar testbun run --cwd services/jangar buildgit diff --checkcurl -fsS http://torghut.torghut.svc.cluster.local/trading/revenue-repair | jq '{business_state, revenue_ready, max_notional, top_repair_queue_item: .repair_queue[0], selected_value_gate, accepted_routeable_candidate_count, zero_notional_or_stale_evidence_rate}'gh pr checks 6727 --repo proompteng/labScreenshots (if applicable)
N/A
Breaking Changes
None. The summary canary is additive, full consumer evidence remains authoritative for complete contract bodies, and Jangar falls back to full evidence when compact refs are missing.
Rollback path: revert this PR or have Jangar ignore
contract_canary_refsand return source-serving verdicts to full-payload authority. Torghutmax_notional=0, repair-only state, and live-submit gates remain unchanged.Checklist
N/Awith justification).