Hosted-agent scope contract#

A deployed agent’s authority is a typed scope document that the agent service injects. The MCP bridge (command geonemo-tools) reads it from the typed client, and the packaged image runs geonemo-runtime first: a missing, stale or malformed scope keeps the server from becoming healthy.

Scope

Holds

AgentScopeV1

Interactive scope

AgentScopeV2

Historical workflow scope; only read

AgentScopeV3

Durable execution: immutable instance, release, project, collection, tool and publication authority, with no workflow identity

The JSON schemas are in contracts/schemas/agent-scope/; Regenerate contracts says how they are regenerated.

With a v3 scope, the assigned task token and fenced lease authorize context reads, domain operations and atomic checkpoint and outcome commits. The agent’s procedures decide what a checkpoint holds and how work is sequenced. An image advertises v3 support, and the agent service requires compatible provenance before a durable launch.

Direct-invocation helpers serialize the same typed models. Portable agent roots contain no provider credentials or endpoint bindings, and a run cannot widen the scope it is deployed with.