Saltar al contenido principal

Agent Plans — /api/agent/:zid/plans*

A plan is the contract between SKILL (Workbench Step 5) and BUILD (Step 7). The planning agent and the user collaborate on a spec + plan plus five typed arrays — files, queries, apis, engines, pages. Locking promotes the working draft to a new immutable version and advances the agent's protocol state.

Concept: Pulse Workbench · Agents. Source: shared/api-core/src/routes/agentPlans.ts.

Endpoints

MethodPathAuthNotes
GET/api/agent/:zid/plans/currentZID-boundLatest locked plan.
GET/api/agent/:zid/plans/draftZID-boundThe single working draft.
GET/api/agent/:zid/plans/historyZID-boundVersion list.
GET/api/agent/:zid/plans/:planIdZID-boundOne specific version.
POST/api/agent/:zid/plans/draftZID-boundWrite / update the draft.
POST/api/agent/:zid/plans/lockZID-boundPromote the draft to a new locked version.

ZID-bound = authenticated via authenticateZeqAuth; the caller must be the agent's own ZID or the owner of the machine whose agent it is.