Skip to content

Routing evals: model specialist + Redgate composition and trajectories #88

Description

@JRichlen

Queue context

Addresses RQ-002 from the centralized scheduled-task review queue.

The current routing evaluator asks the model to choose a SINGLE skill. That cannot represent the intended architecture where a domain specialist owns the procedure while Redgate can wrap execution as a verification/gating envelope.

Goal

Make routing evaluation capable of grading composition, not just exclusive skill selection, and add a minimal trajectory layer for Redgate's stateful gate behavior.

Scope

1. Typed routing result

Introduce a deterministic, machine-parseable result shape equivalent to:

primary: <specialist | none>
envelopes: [<protocol layers>]
guards: [<cross-cutting safeguards>]
interaction_owner: <parent | none>

The exact names may differ if repository conventions suggest a better schema, but the representation must distinguish domain ownership from execution envelopes/guards.

2. Preserve simple routing

Existing ordinary single-skill and none cases must remain expressible and scoreable without forcing unnecessary composition.

3. Composition scenarios

Add behavioral scenarios that distinguish at least:

  • specialist primary + Redgate envelope when explicit evidence/verified rounds are warranted;
  • specialist alone when Redgate ceremony is not warranted;
  • T0/routine direct handling with no Redgate envelope;
  • a risky/irreversible workflow where the result preserves the appropriate specialist/guard responsibilities rather than collapsing everything into Redgate.

4. Minimal Redgate trajectory grading

Add a bounded trajectory/state eval that checks behavior across steps rather than one-shot prose. Cover at minimum:

  • ARM/criteria establishment before implementation;
  • explicit stop on a MAJOR gate;
  • declined/empty confirmation is not consent;
  • resume/continuation does not silently erase the gate or interaction owner.

Prefer a small, high-signal pack over a broad scenario explosion.

Non-goals

  • Do not redesign Redgate's prose or Agent OS architecture unless required to make the evaluator reflect already-intended semantics.
  • Do not fix general CI path-trigger coverage; that is tracked separately as RQ-001.
  • Do not merge or rewrite PR Make Redgate the default interactive workflow #82 as part of this issue.

Acceptance criteria

  • The old single-skill representation is demonstrably insufficient for at least one new composition scenario.
  • The new schema is deterministically parsed/validated and fails closed on malformed/ambiguous output.
  • Existing simple routing scenarios still work.
  • At least one scenario requires specialist + Redgate composition and is graded as such.
  • Trajectory tests distinguish a correct MAJOR stop from preauthorization, silence, or accidental continuation.
  • Transport/provider errors are reported separately from semantic route failures.
  • Relevant deterministic checks and bounded behavioral evals pass with evidence attached to the PR.

Delivery contract

Keep this roughly one PR in scope. Create a dedicated branch and PR against main, preserve existing spend/model conventions, provide exact test evidence, and do not merge automatically.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions