Skip to content

model-guard: ACP drivers name their reasoning option by their own id, which the guard does not count #601

Closed

Description

@scuttletoby

Follow-up from the round-2 review of #589 (lens B, minor 3). Found by reading, not run.

The guard reads the effort of a T3 pick only under the option ids effort, reasoningEffort, reasoning_effort, reasoning, thinking_level (EFFORT_OPTION_IDS, the same list as apps/server/src/usage/UsagePacingGate.ts). But ACP drivers mark their reasoning control with role: "reasoning" under the agent's own option id (packages/provider-acp/src/server/sessionConfig.ts, the isThoughtLevel select). UsagePacingGate.ts counts those through descriptor.role === "reasoning"; the guard cannot, because the hook does not see the descriptors.

So on t3_thread_launch (which keeps option ids T3 does not know), a pick of an ACP row could name an allowed effort and also set the agent's own reasoning id higher. It does not touch Claude rows.

Options:

  • On non-Claude rows, refuse any option id the guard cannot classify (simple, may refuse harmless options).
  • Or let a policy row name its driver's reasoning option id(s) (effortOptionIds), and count those as efforts.
  • Either way: a test with an ACP-style row, and the README's "What v0 does not check" updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions