Skip to content

docs: test-time-compute design (verify tool + sub-agent reasoning)#4201

Merged
Hmbown merged 1 commit into
mainfrom
codex/v0869-ttc-design
Jul 8, 2026
Merged

docs: test-time-compute design (verify tool + sub-agent reasoning)#4201
Hmbown merged 1 commit into
mainfrom
codex/v0869-ttc-design

Conversation

@Hmbown

@Hmbown Hmbown commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Adds docs/TTC_DESIGN.md — the approved design for agent-decided test-time compute. Design only, no code, no crates/config changes. Implementation is v0.8.69, behind the green v0.8.68 stopship.

3-way consensus (verify-tool contributor + GLM 5.2 + internal analysis):

Refs #4196 #4137 #3982 #4013

Approved TTC design: one shared CriticEngine behind three triggers — the
agent-invoked verify tool (#4196, MVP #4199), advisor watcher (#3982), and
post-turn verification gates (#4013) — plus clamp->floor sub-agent reasoning
(#4137). Synthesized from three independent reviews (verify-tool contributor,
GLM 5.2, internal analysis). Design only, no code; v0.8.69, behind stopship.

Drafted with agent assistance.
Copilot AI review requested due to automatic review settings July 8, 2026 05:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@claude

claude Bot commented Jul 8, 2026

Copy link
Copy Markdown

Claude finished @Hmbown's task in 1m 32s —— View job


Review: docs/TTC_DESIGN.md

  • Gather context (docs-only PR, single file, +75/-0)
  • Read the design doc in full
  • Cross-check claims against the actual codebase and guardrails
  • Post review feedback

Summary: This is a design doc only — no code, no crates/config changes, confirmed by the diff (docs/TTC_DESIGN.md is the sole changed file). I verified the technical claims it makes against the current tree rather than taking them on faith:

  • crates/tui/src/auto_reasoning.rs:12,21-33is_subagent == true unconditionally returns ReasoningEffort::Low today, confirming the doc's diagnosis that Low currently acts as a hard clamp, and the proposed "floor, not ceiling" fix is a real, scoped change to that function.
  • crates/tui/src/tools/review.rs, crates/tui/src/tools/registry.rs, crates/tui/src/tools/spec.rs — the review tool and ToolRegistryBuilder/ToolSpec machinery the doc proposes reusing for verify do exist, so "structurally isomorphic to review" is a grounded claim, not aspirational.
  • crates/tui/src/features.rsFeature gating exists, matching the doc's plan to gate verify behind a Feature flag.
  • crates/tui/src/tools/subagent/mod.rs:1340SubAgentRuntime exists as the place reasoning_effort would be forwarded.
  • AGENTS.md "Where to work right now" explicitly says the model-facing sub-agent surface is agent-only and that capacity/coherence/lifecycle machinery was removed — the doc's anti-pattern Simplify UI and improve footer display (v0.3.14) #2 (no second runtime/policy surface for a critic sub-agent) and its choice of "tool, not sub-agent" for verify align with that constraint rather than reintroducing removed machinery.
  • PR feat(tools): agent-callable verify/critique tool (#4196) #4199 ("agent-callable verify/critique tool (feat(tools): agent-callable verify/critique tool (agent decides to spend test-time compute on self-review) #4196)") is open and matches the doc's description of the MVP it's meant to be refactored onto the shared CriticEngine.

Design-level observations (non-blocking, since this is a docs PR):

No correctness bugs, provider/model-routing concerns, or security issues — there's no runtime code in this diff to check against the v0.8.65 provider-prefix invariant. Nothing to fix here; good to merge as a design record.

@Hmbown Hmbown merged commit 04d6ebb into main Jul 8, 2026
19 checks passed
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