Skip to content

feat(routing): apply opt-in effort knobs and fail-close measured status - #677

Closed
cursor[bot] wants to merge 5 commits into
mainfrom
cursor/bc-8b83c698-e8cc-45b4-86da-9ed22c12bc2e-ac72
Closed

feat(routing): apply opt-in effort knobs and fail-close measured status#677
cursor[bot] wants to merge 5 commits into
mainfrom
cursor/bc-8b83c698-e8cc-45b4-86da-9ed22c12bc2e-ac72

Conversation

@cursor

@cursor cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Buyer next action

Run python tests/test_reasoning_effort_profile.py. Prefer this PR over #631 and #650. Keep live route/conduct defaults unchanged while production_default_change_allowed is false. Do not raise temperature to stand in for reasoning effort.

Why this PR

Issue #568 honesty on #650 still fail-opened the production-default gate when measurement_status was omitted or junk, accepted boolean true-θ, dropped streamed snapshots on --state-db restart, and never reached ablation from the fuzz target. ModelClient also still sent a single max_tokens and no reasoning_effort even when the operator opted into the catalog.

What landed

  • production_default_change_allowed stays locked unless measurement_status is the explicit value measured.
  • Boolean true-θ fails closed before float().
  • stream_route writes the same snapshot to --state-db as run and batch_route.
  • The Hypothesis/Atheris target strips true_theta before parse so ablation invariants run.
  • Opt-in role_effort_catalog sends that role's reasoning_effort and max_tokens on ModelClient chat, stream, and batch. Omit the catalog to keep today's request body.
  • OrchestrationPolicy defaults are unchanged.

Doctoring (APA 7th)

  • Sakana AI. (2026). Sakana Fugu Technical Report.
  • Xu, J., Sun, Q., Schwendeman, P., Nielsen, S., Cetin, E., & Tang, Y. (2025). Trinity: An evolved LLM coordinator (arXiv:2512.04695).
  • Nielsen, S., Cetin, E., Schwendeman, P., Sun, Q., Xu, J., & Tang, Y. (2025). Learning to orchestrate agents in natural language with the Conductor (arXiv:2512.04388).
  • Baker, F. B. (2001). The basics of item response theory (2nd ed.). https://eric.ed.gov/?id=ED458219

Out of scope (do not fold in)

Verify

python tests/test_reasoning_effort_profile.py
python tests/test_paper_contracts.py
python tests/test_conventions.py
Open in Web View Automation 

cursoragent and others added 5 commits August 16, 2026 16:14
…lation

Issue #568 first slice: versioned per-role reasoning_effort_profile,
fail-closed parse, replayable snapshot, and true-θ RMSE ablation.
Temperature is not effort. Production route/conduct defaults stay locked.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
…onduct

Same snapshot_hash on both paths when the operator passes a catalog.
Default constructor still omits the key so production payloads stay put.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Buyer next action: pass role_effort_catalog to attach the same
snapshot on route and conduct, or omit it to keep today's payload.

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Issue #568 honesty slice: θ̂ is (1-λ)θ and RMSE uses θ̂-θ, not a
rank constant. Parse/hash fail closed on missing profiles, blank
versions, fractional seeds, and extra roles. The same snapshot
survives run, stream_route, and batch_route. Production defaults
stay locked while measurement_status is estimated.

Buyer next action: python tests/test_reasoning_effort_profile.py

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
Issue #568 successor to #650: the production-default gate stays locked
unless measurement_status is measured. Boolean true-θ fails closed.
stream_route persists the snapshot to --state-db. The fuzz target
strips true_theta before parse so ablation invariants run. An opt-in
catalog sends reasoning_effort and max_tokens on ModelClient chat,
stream, and batch without changing OrchestrationPolicy defaults.

Buyer next action: python tests/test_reasoning_effort_profile.py

Co-authored-by: Seongho Bae <seonghobae@users.noreply.github.com>
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@seonghobae
seonghobae enabled auto-merge (squash) August 16, 2026 17:06
@seonghobae seonghobae closed this Aug 16, 2026
auto-merge was automatically disabled August 16, 2026 18:23

Pull request was closed

@seonghobae

Copy link
Copy Markdown
Contributor

Superseded by tip #691 (cumulative honesty substrate ≥ #689). Closing to free Full unit + Semgrep runners.

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.

2 participants