777 Forge · Execute Gate
arif_forgeKERNEL 777 · Governed execution: applies a mutation through A-FORGE only when carrying a SEAL verdict (seal_verdict_id) from arif_judge and a live session. The manifest/query defines exactly what changes; mode=dry_run previews the plan without applying it. This is the only verb that executes general mutations — kernel memory writes go to arif_memory and permanent records to arif_seal.
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 | The work order (usually JSON or markdown) describing exactly what to build or change — the more specific, the tighter the gate. | |
| _envelope | No | Internal transport envelope handle — server-side; omit. | |
| 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. |