Pause reconciliation
Code Mode: praxis.workforce.reconcile.pause
HTTP: POST /workforce/v1/reconcile/pause
Stops the sweep from reconciling one holder until it is resumed: the holder’s blocks keep their state and no further update is applied. Requires an organization owner or admin. Errors: 400 INVALID_PARAMS when actor is missing or is not an actor address, or a body field is unknown; 403 PERMISSION_DENIED. Example body: {“actor”:“agent:agent_123”}.
签名
praxis.workforce.reconcile.pause(args:{body:{/** Actor address to reconcile (agent:agent_... */ 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}>;请求体
| 必填 | 内容类型 | 说明 |
|---|---|---|
| 是 | application/json |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The status after pausing; paused is true. |
| 400 | application/problem+json | INVALID_PARAMS; actor is missing or is not an actor address (agent:… or human:…), or a body field is unknown. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_DENIED; only an organization owner or admin may pause the reconciler, and machine tokens are always refused (an agent’s session token may read the organization, never change it). |