Skip to content

Owner question: leave four model-policy routes to the Claude Code hook only? #769

Done

Description

@scuttletoby

My recommendation: accept it for now (no extra changes to upstream files), and look again if agents ever run on Codex.

What this is about. The model policy (#731, PR #747) makes the server check which model an agent picks when it starts or changes a thread, including on linked machines. Four routes are checked only by the model-guard hook inside Claude Code, not by the server:

  • the project's default model,
  • schedule_task and run_scheduled_task_now,
  • forking a thread with t3_thread_transfer.

A server check there would need more lines in upstream's own files, which we keep as few as possible.

What accepting costs:

  1. Codex agents are not covered on those four routes, because the hook only runs in Claude Code. Today all agents are Claude (Opus 5.5 / Fable 5.2), so nothing is open now.
  2. A scheduled task made from inside a thread runs on that thread's own model, not the project default. So a thread you started on a model outside the policy could schedule runs on that model. Agent-started threads are already checked, so this only follows your own picks, which Owner question: does the model policy bind only agents, or people too? #125 leaves free.

The other choice: a follow-up PR that adds a server check on those routes, with its own announced lines in upstream files (more upkeep at every upstream update).

Reply "accept" or "build the follow-up".

🤖 Generated with Claude Code

Activity

  1. added
    question
    on Nov 21, 2026
  2. scuttletoby commented on Nov 22, 2026

    @scuttletoby
    OwnerAuthor

    Owner decision (in chat, 2026-11-22): accept. The 4 rare routes stay checked by the Claude Code hook only; no server check for now.

    Posted by the orchestrator from the owner's chat answer.

    🤖 Generated with Claude Code

  3. scuttletoby commented on Nov 27, 2026

    @scuttletoby
    OwnerAuthor

    Decided: accept; the 4 rare routes stay checked by the Claude Code hook. Nothing left to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions