Skip to content

[contracts] Add PlanRequest.mode field (operator-toggle frontier vs local) #36

Description

@jdev-02

Surfaced during #4 design + deferred from #5.

Why: Jon's SAR/comms-denied design — the operator should be able to override the device profile's default mode per request. SAR person on satellite -> request mode=frontier; same person in comms-denied terrain -> request mode=local.

Currently: mode is server-side (env var TERA_DEVICE_PROFILE + TERA_FRONTIER_PROVIDER). Not exposed on PlanRequest.

To add:

  • Add mode: Literal['auto','frontier','local'] = 'auto' field to PlanRequest in agent/schemas.py
  • Update docs/contracts/agent_routing.schema.json
  • Pass req.mode through to get_registry().get(req.mode) in orchestrator
  • Profile gating still applies: requesting 'frontier' in austere profile -> 403

Owners: @jdev-02 + @benschwierking (cross-lane contract change).

Metadata

Metadata

Assignees

No one assigned

    Labels

    lane:agentAgent / orchestrator (P1)lane:atakATAK / CoT bridge (P4)phase:stretchStretch: mesh + PQC rejectpriority:P2Medium / stretch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions