Skip to content
中文

Read reconcile status

Code Mode: praxis.workforce.reconcile.status.list

HTTP: GET /workforce/v1/reconcile/status

Reads the reconciler’s last result for one holder: whether the sweep is paused, the seats and layer revisions of the last applied run, each block’s state (ready, pending, failed, waiting_human, paused or not_applicable), the drift between what is applied and what the specs want, and when it last applied. Read-only; it changes nothing. 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/status?actor=agent:agent_123.

Signature

praxis.workforce.reconcile.status.list(args:{query:{actor:string}}):Promise<{/** Actor address this status is for (agent:agent_... */ actor:string;/** Whether the sweep is paused for this holder. */ paused:boolean;/** The seats and layer revisions the last run applied; empty before the first run. */ observed:Array<{/** Position id (pos_...) of this seat. */ position_id:string;/** Assignment id (asg_...) holding the seat; null while the seat is vacant. */ assignment_id:string|null;/** Whether this is the actor's primary seat, whose values win a clash. */ primary:boolean;/** The spec layers merged for this seat, least specific first. */ layers:Array<{kind:"organization"|"department"|"level"|"job"|"position"|"assignment";/** The layer subject's own id (org_..., dept_..., lvl_..., jpr_..., pos_... */ id:string;/** Revision of that layer's spec at the time it was merged. */ revision:number}>}>;/** One row per capability block and the state it is in. */ items:Array<{/** Name of the capability block this row is about, such as agent or computer. */ block:string;/** What the reconciler last did with this block. */ state:"ready"|"pending"|"failed"|"waiting_human"|"paused"|"not_applicable";/** The resource the block was applied to, such as agent:agent_... */ binding:string|null;/** Why the block is not ready, for the failed, waiting_human and not_applicable states; null when there is nothing to say. */ message:string|null}>;/** Where what is applied differs from what the specs want; empty when nothing has drifted. */ drift:Array<{/** Name of the block the drifted value belongs to, such as agent. */ block:string;/** Path of the value inside the block, such as model. */ field:string;/** The value currently applied, verbatim; null when nothing is applied there yet. */ found:unknown;/** The value the specs resolved to, verbatim. */ want:unknown;/** UTC instant (RFC 3339) from which the drift has been observed. */ since:string}>;/** UTC instant (RFC 3339) of the last run that applied changes; null when the holder was never reconciled. */ applied_at:string|null}>;

Parameters

NameInTypeRequiredDescription
actorquerystringyesThe holder whose reconcile status to read (agent:agent_… or human:usr_…).

Responses

StatusContent typesDescription
200application/jsonThe last reconcile result for this holder; an empty result, applied_at null, when it was never reconciled.
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.