跳转到内容
EN

Plan reconciliation

Code Mode: praxis.workforce.reconcile.retrievePlan

HTTP: GET /workforce/v1/reconcile/plan

Dry-runs the reconciler for one holder and returns what it would change: an action per block (hold, update, none, pending, blocked) with the value it would write, and the violations only the merged result shows. It changes nothing - no state, no agent and no memory. Give the holder as actor. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a query parameter is unknown; 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /workforce/v1/reconcile/plan?actor=agent:agent_123.

签名

praxis.workforce.reconcile.retrievePlan(args:{query:{actor:string}}):Promise<{/** Actor address the plan is for (agent:agent_... */ actor:string;/** The holder kind the merge was made for, derived from the actor address. */ holder_kind:"agent"|"human";/** One action per block the plan considered, in block order. */ actions:Array<{/** Name of the block this action is about, such as agent. */ block:string;/** What the reconciler would do with this block. */ action:"hold"|"update"|"none"|"pending"|"blocked";/** The value the action would write, or the reason it is blocked, verbatim. */ detail:unknown}>;/** Problems that only the merged result shows, such as too many skills after merging; empty when the merge is clean. */ violations:Array<string>}>;

参数

名称位置类型必填说明
actorquerystring是The holder whose seats are reconciled (agent:agent_… or human:usr_…); its every current seat is merged.

响应

状态码内容类型说明
200application/jsonThe actions the reconciler would take for this holder, and the merged-result violations.
400application/problem+jsonINVALID_PARAMS; actor is missing or is not an actor address (agent:… or human:…), or a query parameter is unknown.
401Missing or invalid credential; provide a valid organization API key or sign in to the Console.
403application/problem+jsonPERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent’s own session token.