777 Forge · Execute Gate
arif_forgeExecute an action arif_judge has already SEALed — nothing runs without seal_verdict_id and approved_action_hash matching the judged action. Modes: engineer (default; plan and apply — requires manifest), dry_run (preview, no side effects; manifest or query), query (read-only), write (write files), generate (generate code/content), commit (commit prepared work), recall (retrieve past forge artifacts). Irreversible judged actions additionally require ack_irreversible=true. On missing seal or hash mismatch the call returns REFUSED with no change made. Outputs: execution receipt (receipt_id, status, actor_id, timestamp).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "arif_forge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'engineer' (default) — plan and apply the work; 'dry_run' — preview what would happen, nothing is applied; 'query' — read-only questions about the workspace; 'write' — write files; 'generate' — generate code or content; 'commit' — commit prepared work; 'recall' — retrieve past forge artifacts. | engineer |
| query | No | The task in plain language when no manifest is supplied, e.g. 'restart the gateway service'. | |
| plan_id | No | Plan id from arif_think's plan mode, when executing an approved plan. | |
| actor_id | No | Your agent identity, e.g. 'kimi-code/FI-008' — recorded in the audit log. | |
| manifest | No | Required for engineer (the default mode), write, and generate: the work order (usually JSON or markdown) describing exactly what to build or change — the more specific, the tighter the gate. mode=dry_run accepts the manifest or a plain-language query; mode=query uses query instead. | |
| session_id | No | Session id returned by arif_init; scopes this execution to your governed session. | |
| arif_ack_id | No | Acknowledgment id from a prior step, for multi-step execution chains. | |
| artifact_id | No | Id of an existing artifact (from an earlier forge or judge response) that this call operates on. | |
| session_token | No | Session Continuity Token (SCT) returned by arif_init — proves the session is yours. | |
| vault_entry_id | No | Id of the permanent-ledger entry linked to this execution, when one already exists. | |
| seal_verdict_id | No | The SEAL verdict id arif_judge returned — without it, nothing is executed. | |
| ack_irreversible | No | Set true to confirm you accept this execution cannot be undone, when the judged action was irreversible. | |
| judge_state_hash | No | Hash string from the arif_judge SEAL response — proves the verdict has not been tampered with. | |
| approved_action_hash | No | Hash of the exact action that was judged — execution is refused if what you submit differs from it. | |
| constitutional_chain_id | No | Id of the evidence chain (observe→think→judge) that led to the SEAL — copy it from the judge response. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| tool | Yes | ||
| result | Yes | ||
| status | Yes | ||
| delta_S | No | ||
| reasons | Yes | ||
| actor_id | No | ||
| timestamp | Yes | ||
| session_id | No | ||
| nine_signal | Yes | ||
| output_policy | No | ||
| stage_progression | No | ||
| philosophical_anchor | No |