Skip to content

feat(serve): server sessions get the default prompt, skills, review guidance and routing #945

Closed

Description

@ajianaz

What problem does this solve?

Step 4 of #941, the capabilities that need no new trust boundary. A session created by tole serve, tole acp or the MCP-over-HTTP host builds its system prompt from TOLE_SYSTEM_PROMPT, a profile or the config only (session/host.rs). It never gets the default tool-discipline prompt, the skill sections, the cora review guidance (#536 was closed after mission only) or model routing (#586). The desktop client and the chat gateway therefore talk to a differently behaving agent than tole chat in the same repository.

Proposed solution

After the assembly move, switch session/host.rs to it, one capability per PR, each a CHANGELOG Behavior Change:

  1. Default prompt and the review guidance (finishes feat(serve): give serve, ACP, MCP and mission sessions the cora review guidance #536: ACP, serve and MCP sessions; pinned in the session header so resume keeps it).
  2. Model routing (feat: model routing by task weight — RuleRouter baseline, LayaRouter via systemone #586) for server sessions, honoring the model the client set through the routes of feat(serve): list the models a client may pick, set the session model and the thinking level #574.
  3. Skills: approved skills only (feat(skills): load only owner-approved skill content hashes #591), discovered in the session workspace, load_skill registered as today.

Order matters: 1 is guidance text only; 3 loads content and needs the owner's explicit go.

Alternatives considered

  • Keep server sessions deliberately narrower: possible, but then it has to be a documented row in the face-policy table with a reason, not an accident. The owner decides per capability.

Acceptance criteria

  • Per capability: a test per face (serve, acp, mcp) that the pinned prompt and registry match the CLI for the same inputs.
  • resume of a session created before the change keeps its pinned prompt (append-only rule).
  • Skills only load when approved; a revoked skill is not loaded on a server face either.
  • CHANGELOG entry per capability.

Parent: #941. Related: #536, #574, #586, #591.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions