发布

  • test(routing): trim scenario schema and align capability defaults with production

    frostbyte_neo 发布于 2026-06-19 01:21:17 +00:00 | 1618 次提交 在此版本后已推送到 main

    Make the routing-scenario oracle reflect production, where every planner tool
    is enabled by default (a plain ReplSession carries no capability constraints).
    available_capabilities is now a three-state knob: an omitted key inherits the
    production default (tool enabled), an explicit [] disables the surface, and a
    non-empty list is an allowlist. The oracle and live planning test omit None
    keys so a scenario with no block yields {} like production.

    Remove the dead, parsed-but-unasserted fields risk_level, tier,
    session.remote_connected, and input.surface from the loader and all fixtures,
    and drop the redundant all-empty available_capabilities blocks plus the
    decorative deterministic allowlists. Add a fixture-integrity guard that rejects
    re-introducing all-empty capability blocks, and document the trimmed schema and
    three-state semantics in routing/AGENTS.md.

    Co-authored-by: Cursor cursoragent@cursor.com

    下载附件