Skip to content

Model policy: follow-ups from the #793 reviews (Settings marks across machines, sender-side catalog, merged catalogs, agent options) #802

Closed

Description

@scuttletoby

Follow-ups left from the #793 reviews (lens A, lens B). None of them lets a pick through in enforce on a machine running #793; they are usability or reach gaps.

  1. Settings pick marks can read another machine's catalog (lens B minor 2). personModelPickMarks (apps/web/src/components/settings/fork/modelPolicySettings.logic.ts) finds the provider by instanceId alone. With several machines selected, two machines that share an instance id (the default claudeAgent) give the primary's catalog effort ids. Settings marks only; the server is not affected. Fix: match by machine and instance.
  2. The sending side knows only its own catalog (lens A minor 1). Since Model policy: an effort must be under the id the row's driver reads, on both sides of a link (#780) #793 a pick sent to a linked machine may name only options some list here describes, or effort ids the policy reads. But:
    • an ACP control that only the receiving machine's agent has is refused here (fails closed; the agent must be started here once);
    • a model whose ultracode default is on only on the receiving machine is read as ultracode only there (ultracodeByDefault reads local lists).
      The receiver checks again with its own catalog in enforce; a receiver whose policy is in advise or off runs it. The Model policy: an effort must be under the id the row's driver reads, on both sides of a link (#780) #793 PR body's "an older receiver never gets these picks from a new sender" holds only for what this machine's catalog knows.
  3. Same-driver catalogs are merged, and every id is required (lens A minor 2). pickOfRemote joins the effort ids of every instance of one driver, and checkModelPolicyPick requires all of them. Two acpRegistry agents that list the same model slug with different controls refuse every remote pick of it. Fails closed; say so in the refusal or the docs, or check per instance.
  4. Options the catalog describes that pick an agent. The server's option rule (Model policy: an effort must be under the id the row's driver reads, on both sides of a link (#780) #793) allows any option the instance's catalog describes. OpenCode's agent is described (an OpenCode agent can carry its own model), and so is an ACP _t3/session-mode whose modes are not an exact copy of the thought levels. The model guard refuses agent-picking options (DRIVER_MODEL_OPTION_IDS: Kiro mode, OpenCode agent). Kiro mode is not in Kiro's catalog, so the server refuses it already. Decide whether the server should refuse OpenCode agent too while a policy is on.

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