arf.io / ARF / Planning & Approval / ARF — Autonomous Request Filter · Agent Router & Filter
ARF · Agent Remediation Framework

Propose. Review.
Approve. Execute.
Seal.

Agent work should have a lifecycle. ARF enforces one: the agent proposes a plan, you review and approve it, the agent executes under governance, completed work is sealed with a cryptographic proof. If anything fails governance checks, the Agent Remediation Framework handles recovery not the agent doing whatever it wants.

The Work Lifecycle

Five stages.
No skipping steps.

1
PROPOSE

Agent analyzes the task and produces a work plan: what it intends to do, which files it'll touch, which tools it'll use.

2
REVIEW

You see the plan. ARF shows a structured view of what the agent intends. You can approve, modify, or redirect before a single tool call runs.

3
APPROVE

Approval is a signed event in the proof chain. Your identity, timestamp, and the exact plan you approved are all recorded.

4
EXECUTE

The agent executes under full governance: every tool call evaluated against policy, circuit breakers armed, TUI showing live progress.

5
SEAL

Completed work is sealed: the proof chain is closed, a compliance bundle is generated, and git notes are annotated. The work is immutably attributed.

Planning Phase

See the plan
before execution starts.

Before executing any substantial work, ARF's planning gate pauses the session and presents the agent's proposed work plan. This is not the agent's internal reasoning it's a structured representation of intended actions: files to read, files to write, commands to run, APIs to call.

The planning gate is configurable per profile. In Strict mode, every session starts with mandatory planning. In Standard mode, planning is triggered by the agent itself (a governance best practice) or by the complexity of the first request. In Minimal mode, planning is available but not required.

You can redirect at the planning stage annotate the plan, tell the agent to take a different approach, or reject the plan and provide a corrected direction. The redirect is recorded as a governance event; the agent replans.

arf · planning gate · WOLF-1
PLAN REVIEW IRON-WOLF-1 · session 01HX…AB12

Task: Refactor the payment processor to use
      async/await instead of callback hell.

Proposed actions:

 1. read_file   src/payments/processor.js
 2. read_file   src/payments/types.ts
 3. read_file   tests/payments.test.js
 4. write_file  src/payments/processor.js  ! approval req
 5. write_file  tests/payments.test.js    ! approval req
 6. bash        npm test                  ! approval req

Est. tokens: ~8,000  Est. cost: ~$0.12
Files modified: 2   Risk: low

──────────────────────────────────────────────
[y] Approve plan  [n] Reject  [e] Edit  [?] Detail
planning gate awaiting approval
Sealing

Work is done.
Now make it permanent.

When a session completes, ARF seals it. Sealing closes the hash chain, computes the Merkle root (for multi-branch sessions), generates the compliance bundle, writes git notes to any commits made during the session, and marks the session as immutable in the local store.

Sealed sessions cannot be modified. The seal itself is a signed record in the chain: it includes the final hash, the seal timestamp, the approver identity (if manual), and a summary of the work performed.

Sessions can be sealed automatically on completion, or manually by pressing ctrl+s in the TUI or running arf provenance export --session [id]. Unhandled failures -- crashes, forced kills -- produce an emergency export with a failure record.

# Export provenance bundle (seal the session) $ arf provenance export --session 01HX4QVPZ…AB12 \ --format json --out proof-01HX…AB12.json Merkle root sha256:8f4e2a1b… Signatures 142/142 valid Git notes 2 commits annotated Bundle written ./proof-01HX…AB12.json # Verify the bundle (standalone, any ARF instance) $ arf provenance verify-bundle ./proof-01HX…AB12.json All records valid Chain unbroken Ed25519 signatures valid Session: IRON-WOLF-1 Records: 142 Duration: 4h12m
Cross-Agent Review Workflows

Agents reviewing
each other's work.

ARF supports structured multi-agent review workflows. One agent produces work; other agents review, validate, and archive it. Each role has different tool permissions, different policy constraints, and contributes to the same proof chain.

PRODUCER
Writes the code

Full read/write access to the worktree. Can execute tests. Primary tool budget consumer. Subject to planning gate and approval requirements.

QA
Reviews the output

Read-only access. Runs tests against the producer's output. Issues structured review reports. Can approve or block the producer's work proceeding to archive.

ARCHIVIST
Seals the record

Read-only access. Summarizes the session, writes documentation, appends final notes to git. Issues the seal command. Owns the compliance bundle output.

ARCHITECT
Reviews for design

High-level review role. Reads diffs, reviews architecture decisions, can veto entire work sessions before they're merged. Operates from the ARF TUI or a separate review session.

"When work fails governance checks a quality gate doesn't pass, a security review finds issues, tests are red the Agent Remediation Framework kicks in. ARF surfaces the failure to the appropriate agent, provides the remediation context, and manages the retry lifecycle. Remediation is governed too: the second attempt is also on the record."