# RFC-0002 · Backend and RSI template

The v0.3.0 catalog adds three Python packages for a recursive self-improvement (RSI) workflow. Prompt Studio demonstrates the workflow on a synthetic prompt bundle.

| Plane | Responsibilities |
| - | - |
| Human control | The reference console displays the draft diff, evaluation evidence, task stream and approval bound to a specific preview. |
| Agent control | The host CLI returns [versioned JSON envelopes](https://ancrel.prts.dev/v/0.3.0/schemas/cli-envelope.v1.json). Scoped tools delegate permitted commands to the same handler. |
| Backend | The host records receipts, fences task writes, runs evaluations and reconciles interrupted writes against the target digest. |

[Task Runtime](https://ancrel.prts.dev/v/0.3.0/raw/backend/task-runtime.md) persists task runs, leases and cursor-addressed events. [RSI Kernel](https://ancrel.prts.dev/v/0.3.0/raw/backend/rsi-kernel.md) binds drafts, evaluations, approvals and writeback to revisions. [Prompt Studio](https://ancrel.prts.dev/v/0.3.0/raw/backend/rsi-studio-template.md) supplies ontology, evidence, verb and commit adapters for a runnable host.

## Deployment boundary

The Single-Node Durable Profile keeps SQLite WAL databases, artifacts and the target workspace on local storage. Processes can resume from committed events after restart. Multi-node HA requires shared persistence, cross-node notifications and verified failover. The example console communicates with the Python host over HTTP and SSE.

## Machine discovery

Read the [registry](https://ancrel.prts.dev/v/0.3.0/registry.json), select a backend item, verify its detail digest and compare its package version with the active Python workspace's `uv.lock`. Follow the item's `docs`, `api.contractRef` and example entry inside the same snapshot.
