Abstract
Ask someone why they want a personal AI agent, and they describe full delegation: answer routine inquiries, log leads, and update tasks without interrupting every ten minutes. Ask what holds them back, and the worry is just as plain: models err, and one bad reply or broken record costs trust. Per-action approval dialogs protect the system on paper while fighting normal human psychology; faced with dozens of daily pop-ups, people either turn automation off or click through on autopilot.
This paper introduces Reversible Full Delegation (RFD). Instead of asking before each click, RFD pairs four containment mechanisms: snapshot-backed reversible writes with a delayed send window, single-record caps with a burst circuit breaker, deterministic abstention for exceptions, and a daily digest with one-click undo. We evaluate systems by Irreversible Damage Rate per 1,000 actions (IDR/1k) and daily Human Oversight Time (HOT). Across 1,000 real SQLite and outbox actions in DelegationBench v1.0, fatigued confirmation takes 6.40 min/day across 40 prompts yet leaks 131 irreversible failures. RFD lowers IDR/1k to 16 (zero live glance) or 12 (25% glance in a 180 s send hold); oversight drops to 2.54 min/day and interruptions drop to 0.32/day. Live Piko probes record 340/340 Swift send rules, 1,000/1,000 Full Access revocations in 0.044 ms, 181/181 pytest passes, and SQLite journals of 676 to 680 B/op with sub-millisecond undo.
Keywords: personal AI agents; reversible delegation; approval fatigue; undoable writes; blast-radius bounding; selective abstention; daily digest; MCP; PESA; Piko; piko-crm-mcp
1. Introduction
Most personal AI agents still ask for permission the way a nervous intern asks before touching a keyboard. Every CRM edit, calendar update, or customer reply pops up a confirmation box. That design makes sense from a system safety perspective: if a human approves every outward write, the runtime cannot be blamed for acting behind the owner's back. Our earlier PESA architecture took exactly this stance by placing a versioned approval gate in front of every external side effect [1].
In daily use, that gate collides with normal human psychology. People want two things that look contradictory on the surface. They want to hand routine work over completely, without auditing every message and record one by one. At the same time, they do not want the agent to break their CRM, send an embarrassing reply, or leak private data. Per-action confirmation satisfies the safety engineer, not the user. When an assistant sends 40 confirmation prompts a day and three quarters of them are routine, people stop reading carefully and start clicking through on autopilot, a pattern documented across browser SSL warnings [2][3] and neurosecurity trials [4].
Our thesis is direct: safe delegation cannot rely on an agent that never errs, because stochastic language models and ambiguous real-world messages make zero errors unreachable. The execution layer must ensure that ordinary mistakes do not cause irreversible loss.
1.1 Why per-action approval fails in everyday use
Field evidence from usable security and human-computer interaction points to three structural failure modes when confirmation dialogs carry the entire safety burden:
- Habituation turns safety dialogs into wallpaper. Neurosecurity studies using fMRI and eye tracking show that repeated exposure to routine prompts induces involuntary repetition suppression [4]. Worse, habituation generalizes across dialogs: frequent low-stakes prompts train people to dismiss unfamiliar high-stakes warnings before reading them [5]. In Chrome field telemetry spanning 25 million warning impressions, 70.2% of users clicked straight through SSL certificate warnings once false positives made prompts feel routine [3].
- Synchronous interruptions erase the productivity gain. Mark, Gudith, and Klocke showed that frequent work interruptions force people to compensate with higher speed at the cost of elevated stress, frustration, and error rates [6]. Approving 40 isolated actions across a workday fragments focus 40 times. Even if each tap takes only 10 to 15 seconds, the user spends 7 to 10 minutes a day context-switching back into the agent's queue.
- Binary switches push users into unchecked full access. When confirmation pop-ups grow intolerable, products often offer an all-or-nothing escape hatch ("auto-approve all", "YOLO mode", or unconditional full access). Dropping the gate without adding rollback, rate bounds, or exception routing replaces nagging with silent, permanent damage.
This tension directly explains Piko's product rule for Account Full Access: once a user explicitly verifies their identity and turns Full Access on, the assistant stops asking before every routine click [1]. The open question is not whether to remove per-action prompts, but what engineering mechanisms must replace them so that removing confirmation does not mean removing safety.
1.2 Research questions and contributions
Following PESA [1] and our cross-device memory study MFPM [7], this report answers four questions:
- RQ1 (Control Paradigm): What concrete containment mechanisms can replace per-action confirmation so that users delegate routine writes without suffering either pop-up fatigue or unchecked blast radius?
- RQ2 (Metrics and Formal Bounds): How should delegated agents be evaluated once approval counts lose meaning, and under what formal conditions does reversible delegation beat per-action confirmation in both safety and human effort?
- RQ3 (Architecture and Runtime Mechanics): How do snapshot-based undo journals, delayed external dispatch, burst circuit breakers, deterministic abstention, and daily digests fit cleanly into a real SQLite/MCP agent stack and Piko's Full Access model?
- RQ4 (Empirical Trade-Offs and Production Overhead): On a concrete 1,000-action workload executed against real databases, how much irreversible damage and human oversight time does each pillar save, what happens when users skip daily digests, and what is the real storage and latency cost?
We make five specific contributions:
- Reversible Full Delegation (RFD) and four containment primitives (Section 3). We replace pre-action approval with reversible writes and delayed sends, blast-radius bounds, deterministic abstention, and daily digests. Inherently irreversible red-lines stay in a human queue.
- Outcome-based metrics and four formal propositions (Section 4). We evaluate delegated agents with Irreversible Damage Rate per 1,000 actions (IDR/1k) and daily Human Oversight Time (HOT). Under six runtime invariants, Proposition 4 derives the habituation crossover where fatigued confirmation becomes less safe than reversible delegation.
- Reference architecture and four core algorithms (Section 5). We specify the write gateway, delayed outbox with factual grounding, atomic snapshot rollback, and daily digest builder. Section 6 pairs them with a six-class threat model.
- DelegationBench v1.0 and four reproducible studies (Sections 7–8). We execute 1,000 real SQLite and outbox actions across six architectures and a 25-point resilience grid. We also run Piko's compiled Swift
AutoWatchSendRestrictionon 340 bilingual vectors (340/340 exact match, 0/278 false direct sends, 60.0 µs p50), time account-wide Full Access revocation (1,000/1,000 reverted in 0.044 ms), run 181/181 live Python tests, and benchmark SQLite journals up to 2,000 ops/day (676 to 680 B/op, under 1 ms write and undo). - Open-source specification for
piko-crm-mcp(Appendix A). We define the SQLite schema, CLI subcommands, and invariants needed to add Full-Delegation Mode alongside elicitation confirmation inpiko-crm-mcp.
2. Background and Related Work
Safe delegation without per-action pop-ups sits at the intersection of usable security, recovery-oriented systems, selective prediction, and LLM agent containment.
2.1 Approval fatigue and human-automation reliance
Jef Raskin argued in The Humane Interface that any confirmation step eliciting a fixed habitual response soon becomes useless, so interfaces should prefer universal undo over "Are you sure?" dialogs [8]. Subsequent empirical security studies backed that claim at scale. Sunshine et al. documented "crying wolf" collapse on SSL warnings [2]. Akhawe and Felt measured 25 million Chrome warning impressions and found that high false-positive rates push bypass rates past 70% [3]. Anderson, Vance, and colleagues traced the neurobiological mechanism via fMRI, where repetition suppression turns recurring warnings into visual wallpaper [4]. Their later work showed that routine non-security notifications generalize habituation to critical security prompts [5].
In human-automation research, Parasuraman, Sheridan, and Wickens mapped automation along a continuum from manual control to autonomous execution with post-hoc notification [9]. Lee and See showed that appropriate reliance requires calibrating trust to actual system boundaries rather than binary on/off authority [10]. Horvitz framed mixed-initiative interaction around expected utility under interruption cost [11], and Shneiderman argued that high automation and high human control are orthogonal axes [12]. RFD puts that orthogonality into post-hoc practice: control shifts from blocking every step upfront to bounding scope, keeping state reversible, and auditing outcomes asynchronously.
2.2 Undo, recovery-oriented computing, and compensating transactions
Treating errors as inevitable and investing in fast recovery has a long history in both HCI and systems. Shneiderman made "rapid, incremental, reversible operations" a founding principle of direct manipulation [13]. Abowd and Dix formalized undo semantics for interactive systems [14], and Edwards et al. introduced multi-level temporal undo so users can reverse specific past actions without discarding unrelated later work [15].
In systems engineering, Garcia-Molina and Salem introduced Sagas, pairing long-lived transactions with explicit compensating actions instead of holding global locks [16]. Most closely related to our work, Brown and Patterson's Undo for Operators built an undoable e-mail store around three ideas: intercepting operations, logging state transitions cheaply on disk, and rewinding mistakes while managing external visibility [17]. RFD adapts that recovery-oriented design to personal AI agents facing stochastic model errors and untrusted external messages.
2.3 LLM agent containment and the Piko Research series
Recent LLM security work shows that prompt instructions alone cannot stop indirect prompt injection from untrusted emails, chats, or web pages [18]. Capability-based designs such as CaMeL [19] separate control flow from untrusted data flow, while the Model Context Protocol (MCP) [20] standardizes tool calls and human-in-the-loop elicitation dialogs. Belcak et al. also found that compact external state with targeted reads outperforms 256K-token prompt dumps in cost and reliability [21].
Within our own research series, PESA [1] introduced cross-device task orchestration around #T-id things with versioned confirmation gates, and MFPM [7] formalized cross-device verifiable forgetting so deleted personal facts do not resurrect. This paper addresses the operational bottleneck PESA left open: how to drop synchronous confirmation safely when a user enables full delegation. Table 1 compares these control designs.
| Control Paradigm | Primary Safety Mechanism | Synchronous Pop-Ups | Handles Habituation? | Recovers Silent Model Errors? | Bounds Runaway Loops? | External-Write Handling |
|---|---|---|---|---|---|---|
| Unchecked Full Access (YOLO) | None (trusts model) | Zero | N/A (no guard) | No | No | Immediate send |
| Per-Action Confirmation [20][1] | Human clicks approve before every write | Every write | No (degrades under volume) | Only if human catches it upfront | Only while human stays alert | Blocked until manual click |
| Capability / Flow Isolation [19] | Control-flow vs. data-flow separation | Low (policy-gated) | Partial (prevents injection) | No (valid-flow hallucinations persist) | Policy-dependent | Capability-checked |
| Operator Undo [17] | Intercept + snapshot rewind + replay | Zero | Yes (post-hoc recovery) | Yes (state rewind) | No native AI rate breaker | Replay/compensation |
| Reversible Full Delegation (RFD) | Snapshot undo + send hold + caps + abstention + digest | Exceptions only (~0.3/day) | Yes (spot-check digest + hard floor) | Yes (30d CRM undo + hold grounding) | Yes (1-rec + hourly + burst breaker) | Delayed hold + red-line abstention |
3. Reversible Full Delegation and Four Containment Primitives
RQ1. What concrete containment mechanisms can replace per-action confirmation so that users delegate routine writes without suffering either pop-up fatigue or unchecked blast radius?
Answer: Replacing synchronous confirmation requires four non-redundant primitives working together: reversible writes plus delayed external dispatch (Pillar 1), single-record caps plus a burst circuit breaker (Pillar 2), deterministic exception-only abstention (Pillar 3), and a calm daily digest with one-click undo (Pillar 4).
3.1 Redefining the goal: from zero mistakes to zero irreversible loss
Conventional agent safety asks: how do we keep the model from taking a wrong action? When a model summarizes hundreds of messages, extracts contacts, or drafts replies over weeks, that question sets an impossible bar. A model will occasionally misread a phone number, tag the wrong company, quote a stale price, or get caught in a retry loop.
Reversible Full Delegation starts from the opposite premise. Assume the agent will err at some nonzero rate ε > 0. Design the runtime so that when an error happens, it is either blocked before causing irreversible harm, contained to a tiny scope, or undone in one click during a calm daily review. Figure 1 summarizes this shift from the old binary trap to four layered safeguards.
Definition 1 (Reversible Full Delegation, RFD). A personal agent runtime implements Reversible Full Delegation if, under an active user delegation grant, routine state mutations and bounded external actions execute without synchronous confirmation while satisfying four invariants: (i) every committed internal mutation records an exact before-snapshot supporting one-click rollback, and every delegated external message passes through a bounded hold window Thold > 0 with deterministic post-draft grounding; (ii) each tool call mutates at most one record under rolling rate caps and a burst circuit breaker; (iii) actions crossing irreversible red-lines, entity ambiguity, secret exposure, or injection guards abstain into a human exception queue rather than running silently; and (iv) all automated activity and parked exceptions surface in a grouped daily digest with direct undo handles.
Intuition. RFD treats an AI assistant like a junior associate given limited signing authority at a small business. They do not knock on your door 40 times a day to log a phone number or answer a standard shipping question. Instead, they write into a versioned ledger where nothing is erased, wait three minutes before mailing a letter, and cannot sign checks or delete client files. If they repeat themselves five times in two minutes, they stop and leave a one-page summary on your desk every evening.
3.2 The four containment primitives
Each primitive covers a distinct failure mode that the other three cannot close alone:
- Pillar 1: Reversible by Construction (Undoable Writes and Delayed Dispatch). Whenever an agent writes to internal state (a CRM contact, deal, task, or note), the gateway runs the change inside an atomic transaction. It writes both
before_jsonandafter_jsoninto an append-only journal (delegated_ops). Append-only fields, such as watch capture notes or empty-field fills, never overwrite prior human text. External messages cannot be recalled once delivered to a third-party network, so RFD inserts a hold window Thold (default 180 s). Inside that window, a deterministic verifier checks factual claims (prices, policies, secrets) against the owner's knowledge base, and the owner can cancel with one tap if they spot an active thread. - Pillar 2: Bounded Blast Radius (Single-Record Atomicity, Rate Caps, and Burst Breaker). One bad turn must not cascade into a batch failure. Delegated write tools accept exactly one target record per call; bulk updates and wildcard deletes stay excluded from delegated mode. Rolling per-session hourly limits (15 CRM writes/hr, 30 replies/hr) and per-thread cooldowns (
min_gap = 20 s) throttle steady runaway loops. A burst circuit breaker freezes the session the moment it emits more than 4 mutations within 120 seconds. - Pillar 3: Selective Abstention (Defer Only When Unsure or Red-Lined). Classic selective prediction [22] lowers error cost by allowing a classifier to abstain on uncertain inputs. In RFD, abstention runs deterministically in the gateway instead of relying on model self-report. Hard deletes, large deal edits (above 20% or $1,000), stage changes, multi-contact name collisions, secrets (card numbers, IDs, verification codes), unapproved financial promises, and prompt-injection markers never execute automatically. They park in
pending. Humans handle exceptions, not routine traffic. - Pillar 4: Post-Hoc Visibility (Daily Digest and One-Click Undo). Rather than interrupting 40 times during focused work, RFD summarizes the past 24 hours in one compact digest. It groups activity into four buckets: automated writes (each carrying a one-click undo ID), replies sent plus drafts auto-cancelled during the hold window, burst-breaker halts, and pending exceptions awaiting a decision. Spot-checking replaces synchronous gatekeeping.
3.3 The irreversible red-line boundary and core terminology
Reversibility has honest physical limits. You cannot un-wire money, un-sign a legal contract, un-publish a public post already scraped by others, or un-reveal a password sent to a stranger. RFD does not pretend those operations are reversible. Instead, Pillar 3 draws a bright deterministic boundary: operations classified as inherently irreversible stay in pending even when Full Delegation is enabled, unless the user explicitly waives a specific narrow rule under verifiable authorization. Table 2 maps the core terms used throughout the rest of this report.
| Concept | Operational Meaning | Concrete Implementation Anchor |
|---|---|---|
| State-Reversible Action (Rstate) | Internal write whose exact prior state can be restored days later | SQLite delegated_ops (before_json) + undo_op |
| Window-Reversible Action (Rwin) | Outbound message reversible only during hold window Thold | Delayed outbox queue (status='held', release_at) |
| Irreversible Red-Line (Rirrev) | Hard delete, large value/stage edit, secret/refund leak, injection | Always parked in pending by Pillar 3 gate |
| Blast-Radius Cap | Hard ceiling on records/messages per call, minute, hour, and burst | 1-record atomicity + 15 writes/hr + 30 replies/hr + ≤ 4/120 s breaker |
| Irreversible Damage Rate (IDR1k) | Unrecovered adverse outcomes per 1,000 candidate agent actions | Primary safety metric replacing approval counts |
| Human Oversight Time (HOT) | Total minutes/day spent on prompts, exceptions, digest, and undo | Primary human-cost metric (min/day) |
4. Formal Model, Metrics, and Guarantees
RQ2. How should delegated agents be evaluated once approval counts lose meaning, and under what formal conditions does reversible delegation beat per-action confirmation in both safety and human effort?
Answer: Evaluating on Irreversible Damage Rate per 1,000 actions (IDR1k) and daily Human Oversight Time (HOT) yields explicit formal bounds under invariants I1–I6. RFD eliminates permanent damage on red-line, ambiguous, and audited state-reversible actions (Props. 1–2) and caps transient burst exposure at Bmax (Prop. 3). Once daily prompt volume pushes confirmation scrutiny below the crossover threshold, RFD beats per-action approval on both safety and time (Prop. 4).
4.1 Action reversibility space and outcome metrics
Consider a discrete stream of candidate agent actions A = (a1, a2, …, aN) arriving across D workdays, where each action ai has an underlying ground-truth hazard indicator h(ai) ∈ {0, 1} (1 if executing ai causes an unintended adverse outcome) and a physical reversibility class ρ(ai) ∈ {Rstate, Rwin, Rirrev}.
Counting "how many times the human clicked Approve" measures ceremony, not safety: a fatigued user can click Approve 40 times a day and still let 131 bad actions through. We therefore evaluate any delegation policy π along two direct human-centered outcomes. First, let Lossπ(ai) ∈ {0, 1} equal 1 if and only if action ai is hazardous (h(ai) = 1), executes externally or mutates state, and is neither cancelled during Thold nor rolled back via snapshot undo. The Irreversible Damage Rate per 1,000 actions is:
Second, let tsync(π), texc(π), tdigest(π), and tundo(π) denote the cumulative seconds spent by the human on synchronous approval prompts, resolving parked exceptions, scanning daily digests, and triggering one-click undos or hold cancellations over D days. The daily Human Oversight Time (in minutes per day) is:
Alongside Equations (1) and (2), we track two diagnostic constraints: Peak Transient Burst Exposure Eburst (maximum records simultaneously corrupted by a single runaway loop before the evening digest) and Routine Delegation Ratio DR(π) (percentage of benign routine actions completed with zero synchronous human prompt).
4.2 Six verifiable runtime invariants (I1–I6)
A conforming RFD gateway enforces six deterministic invariants across every state transition:
- I1 (Fail-Closed Red-Line Abstention): Every action with ρ(a) = Rirrev, entity ambiguity, secret pattern match (
unsafe/asks_for_secret), unapproved financial commitment, or prompt-injection marker transitions topendingwithout mutating state or enqueuing outbound delivery. - I2 (Single-Record Atomicity and Rate/Burst Ceiling): Every delegated write targets at most one record. Inside rolling window Wburst (120 s), at most Bmax (4) mutations commit; the (Bmax+1)-th mutation trips the session circuit breaker for cooldown Δfreeze (900 s) and parks subsequent calls in
pending. - I3 (Atomic Before-Snapshot Journaling): Every committed internal mutation S → S' writes
(op_id, before_json, after_json, status='committed')inside the same serialized SQLite transaction (BEGIN IMMEDIATE) as the record mutation. - I4 (Bounded Outbox Hold with Deterministic Grounding): No delegated external reply dispatches before
now >= created_at + T_hold. Before release, deterministic fact/price/secret verification runs against<knowledge>and<crm>; any mismatch auto-cancels the reply (status='cancelled'). - I5 (Revision-Bound Instant Revocation): Under an account-wide delegation grant (such as Piko's Full Access), every pre-approved action stores the grant's monotonic
revision. Revoking the grant atomically incrementsrevision; every in-flight execution re-checkscurrent_revision == stored_revisioninsideBEGIN IMMEDIATEbefore side-effect execution, reverting mismatches topending. - I6 (No Blind Replay on Uncertain External Delivery): If a worker crashes while dispatching an external reply, recovery transitions its claim to
unknownrather than retrying, preventing duplicate external sends.
4.3 Four formal propositions and proof sketches
Proposition 1 (Zero Permanent Damage on Red-Lines and Audited Reversible Writes). Let an RFD runtime satisfy invariants I1 and I3. For any action a with ρ(a) = Rirrev or entity ambiguity detected by I1, LossRFD(a) = 0. For any state-reversible hazard a (ρ(a) = Rstate) surfaced in a reviewed daily digest with exact before-snapshot restoration (no intervening destructive purge), executing
undo_action(op_id)restores S and yields LossRFD(a) = 0.
Proof Sketch. By I1, no red-line, secret-bearing, injected, or ambiguous action executes; it transitions directly to
pending, so external or persistent state never mutates (Loss = 0). For a committed state-reversible write, I3 guarantees thatbefore_json(orNULLfor creates) is persisted atomically with the mutation. Applyingundo_actiondeletes a created record or overwrites the mutated record body withbefore_jsonunder optimisticbaseVersionchecking, returning database state to S and clearing permanent loss. □
Proposition 2 (Window-Reversible Residual Bound). Suppose a stream contains mwin hazardous external replies (ρ(a) = Rwin), of which at least fraction γ ∈ [0, 1] violate deterministic grounding rules in I4 (such as wrong prices or forbidden refunds), and at least fraction η(Thold) ∈ [0, 1] of the remaining ungrounded-pass errors are cancelled by a live user glance within Thold. Then expected residual external damage is bounded by:
𝔼[Losswin] ≤ mwin · (1 - γ) · (1 - η(Thold))(3)
Proof Sketch. By I4, every hazardous reply enters
heldbefore dispatch. Deterministic grounding filters out at least γ mwin factual or policy violations unconditionally, even when η = 0. Among the remaining at most (1 - γ) mwin subtle errors such as off-tone wording, cancellation during Thold removes at least fraction η(Thold), bounding dispatched hazardous replies by mwin(1-γ)(1-η(Thold)) (with equality at exact rates). When γ = 0 and Thold = 0, the bound collapses to mwin, so both hold-window grounding and delay are necessary. □
Proposition 3 (Bounded Transient Blast Radius Under Runaway Loops). Under I2 (single-record atomicity, rolling cap Chr, burst ceiling Bmax within Wburst), any single runaway loop executing within Wburst can expose at most Bmax records before session freeze, regardless of loop length L ≫ Bmax. Even under 0% daily digest compliance, permanent burst damage cannot exceed Bmax (versus L without I2); under reviewed digests (I3), permanent burst damage drops to 0.
Proof Sketch. Each call touches at most 1 record by I2. After Bmax mutations inside Wburst, the (Bmax+1)-th call trips the circuit breaker, setting
session_frozen_until = now + Δ_freezeand parking calls Bmax+1 … L inpending. Hence peak exposed records Eburst ≤ Bmax. Because all Bmax committed mutations carrybefore_json(I3), rolling back the grouped burst block in the daily digest reduces permanent damage from Bmax to 0. □
Proposition 4 (Habituation Crossover Between Confirmation and RFD). Let daily candidate action volume be n with hazard rate q ∈ (0, 1). Suppose a confirmation user's per-prompt scrutiny decays after k0 routine prompts per day as s(k) = max(pmin, e-β(k - k0)) for k > k0 (β > 0), with daily mean scrutiny s̄(n) = 1 / n∑k=1n s(k). Let qres be RFD's residual unrecovered hazard rate (from Proposition 2 plus any unreviewed digest days). Whenever daily prompt volume n grows large enough that:
q · (1 - s̄(n)) > qres(4)synchronous per-action confirmation becomes strictly worse on both axes: it incurs higher irreversible damage (IDR1k(Confirm) > IDR1k(RFD)) while consuming more daily human oversight time and interrupting n times per day.
Proof Sketch. Under confirmation, every hazardous prompt missed due to habituation (1 - s̄(n)) executes immediately with no snapshot rollback. Expected hazard rate is therefore at least q(1 - s̄(n)), before counting human misses on subtle errors. Because s(k) decreases strictly for k > k0 until hitting pmin, s̄(n) falls monotonically toward pmin as n rises. Once 1 - s̄(n) > qres / q, confirmation leaks more permanent damage than RFD. Meanwhile, confirmation spends synchronous time on all n prompts (tsync ∝ n), whereas RFD limits human review to parked hazards and one batched digest scan. When routine traffic is the majority (1 - q ≫ q), RFD achieves strictly lower HOT. □
5. Reference Architecture and Core Algorithms
RQ3. How do snapshot-based undo journals, delayed external dispatch, burst circuit breakers, deterministic abstention, and daily digests fit cleanly into a real SQLite/MCP agent stack and Piko's Full Access model?
Answer: A thin SQLite policy gateway sits directly above the existing Crm store and channel outbox (Algorithms 1–4), requiring zero changes to model prompts or underlying domain rules while adding under 1 ms per write or undo.
5.1 End-to-end architecture
Figure 2 shows how RFD wraps an existing agent tool gateway such as piko-crm-mcp or Piko's runtime. Every candidate write or outbound reply enters one narrow funnel. Pillar 3 evaluates deterministic red-lines and ambiguity first. Pillar 2 then enforces single-record scope, hourly caps, thread cooldowns, and the 120-second burst circuit breaker. Surviving internal writes commit inside a serialized SQLite transaction that records before_json (Pillar 1A), while surviving external replies enter the delayed outbox queue (Pillar 1B). Pillar 4 aggregates all activity into one daily digest with direct undo handles.
Figure 3 shows the resulting state machine. Three physically distinct action classes map cleanly onto user-visible states. Red-lines and burst halts park in Pending. Reversible CRM writes commit immediately and stay undoable for 30 days (Committed ↔ Undone). External replies sit in Held for Thold seconds, where automated grounding or a live tap can cancel them before dispatch. In Piko's production Full Access stack (full_access.py and approvals.py), an account-wide revocation increments revision, so any in-flight pre-approved action reverts to Pending before execution.
5.2 Four core algorithms
Algorithms 1 through 4 specify the exact deterministic logic executed in delegationbench.py and designed for open-source adoption in piko-crm-mcp.
function delegate_write(op, policy, now):
# Pillar 3: fail-closed red-line & ambiguity gate (I1)
if op.tool in {"crm.delete", "crm.bulk_update"}:
return park_pending(op, "irreversible_or_bulk", now)
if detects_injection(op.payload) or detects_secret(op.payload) or op.ambiguous_match:
return park_pending(op, "redline_or_ambiguous", now)
if op.tool == "crm.update" and exceeds_deal_threshold(op, policy):
return park_pending(op, "high_value_deal_change", now)
# Pillar 2: blast-radius caps & burst circuit breaker (I2)
if now < session.frozen_until:
return park_pending(op, "burst_circuit_breaker_open", now)
if rolling_writes(session, 3600) >= policy.max_writes_per_hour:
return park_pending(op, "hourly_write_cap", now)
if rolling_writes(session, 120) >= policy.burst_max_ops:
session.frozen_until = now + 900
return park_pending(op, "burst_circuit_breaker_tripped", now)
# Pillar 1: atomic mutation + before-snapshot journal (I3)
BEGIN IMMEDIATE
before = crm.get_record(op.record_id) if op.tool == "crm.update" else None
after = crm.apply_with_cas(op, baseVersion=before.version if before else None)
insert_delegated_op(op.id, before_json=before, after_json=after, status="committed", now=now)
COMMIT
return {status: "committed", op_id: op.id, record_id: after.id}function dispatch_with_hold(reply, policy, now):
# Pillar 3: secret, refund promise & injection checks (I1)
if (detects_secret(reply.text) or detects_unapproved_refund(reply.text)
or detects_injection(reply)):
return park_pending(reply, "reply_redline", now)
# Pillar 2: per-thread cooldown, hourly cap & burst breaker (I2)
if now - last_reply_time(reply.thread) < policy.thread_min_gap:
return park_pending(reply, "thread_cooldown_cap", now)
if rolling_replies(rule, 3600) >= policy.max_replies_per_hour:
return park_pending(reply, "hourly_reply_cap", now)
# Pillar 1B: post-draft factual grounding inside hold window (I4)
mismatch = check_prices_and_facts(reply.text, owner.knowledge_base, crm_facts)
if mismatch is not None:
insert_delegated_op(reply.id, status="cancelled", reason=mismatch, now=now)
return {status: "cancelled", reason: mismatch}
release_at = now + policy.hold_seconds
insert_delegated_op(reply.id, status="held", release_at=release_at, now=now)
return {status: "held", op_id: reply.id, release_at: release_at}function undo_action(op_id, actor, now):
BEGIN IMMEDIATE
row = select_delegated_op(op_id)
if row is None or row.status not in {"committed", "held"}:
COMMIT; return false
if row.status == "held":
update_delegated_op(op_id, status="cancelled", undone_at=now)
COMMIT; return true
if row.tool == "crm.create":
crm.soft_delete(row.record_id, reason="undo:" + op_id)
elif row.tool == "crm.update" and row.before_json is not None:
cur = crm.get_record(row.record_id)
crm.update(row.record_id, baseVersion=cur.version, body=row.before_json.body)
else:
COMMIT; return false
update_delegated_op(op_id, status="undone", undone_at=now)
COMMIT
return truefunction build_daily_digest(day):
rows = select_delegated_ops_for_day(day)
# Collapse duplicate circuit-breaker retries into one grouped burst incident
exceptions = group_burst_incidents([r for r in rows if r.status == "pending"])
undoable = [r for r in rows if r.status == "committed"]
dispatched = [r for r in rows if r.status == "dispatched"]
cancelled = [r for r in rows if r.status == "cancelled"]
return {
counts: {committed: len(undoable), dispatched: len(dispatched),
auto_cancelled: len(cancelled), exceptions: len(exceptions)},
undoable_ops: [
(r.id, r.tool, r.record_id, diff_summary(r.before_json, r.after_json))
for r in undoable
],
exceptions: [(e.id, e.tool, e.reason, e.grouped_count) for e in exceptions],
}5.3 Complexity and latency bounds
Every gate in Algorithms 1 and 2 runs in O(1) amortized database lookups over two B-tree indices (session, created_at) and (status, created_at). Snapshot rollback (Algorithm 3) is O(1) per record, and daily digest generation (Algorithm 4) scans only the previous 24 hours of operations (O(kday)). As Study 3 verifies in Section 7.3, write and undo medians remain flat at 0.78–0.92 ms even when daily volume scales 200-fold from 10 to 2,000 operations.
6. Threat Model and Failure Boundaries
Following piko-crm-mcp/SECURITY.md and PESA Section 9 [1], we assume the language model is fallible and incoming external messages are potentially hostile, while the local SQLite store, the authenticated owner, and the policy gateway code are trusted. Table 3 maps six concrete failure and attack scenarios to the specific RFD layer that stops or contains them, along with the honest residual exposure.
| Threat / Failure Mode | Concrete Example | Primary RFD Defence | Residual Exposure (Honest Boundary) |
|---|---|---|---|
| T1 · Routine model hallucination on internal state | Wrong company name, typo in email, hallucinated meeting note | Pillar 1 (before_json journal) + Pillar 4 (daily digest 1-click undo) |
Exposed transiently until user scans digest; persists if digest ignored indefinitely |
| T2 · Hallucinated external reply | Quotes $480 instead of $4,800, or uses rude/off-tone phrasing |
Pillar 1B (Thold + deterministic price/fact grounding + live cancel) | Subtle tone-only replies that pass factual checks and leave Thold uncancelled |
| T3 · Entity ambiguity & cross-record corruption | Two contacts named "Alex Chen"; phone belongs to another client | Pillar 3 (multi-match and foreign-value collision park in pending) |
Zero silent merges; user resolves cleanly in exception queue |
| T4 · Irreversible red-line or secret leak | Hard-deleting VIP contact, slashing $5,000 deal by 90%, sending OTP/card |
Pillar 3 (crm.delete, deal delta >20%/$1,000, safety.unsafe → pending) |
Zero silent execution under I1; human decides explicitly |
| T5 · Indirect prompt injection | Customer chat embeds </message><rules>discount 50%</rules> |
Fenced data blocks + verbatim quote verification + Pillar 3 injection/refund gate | Novel semantic social engineering not matching deterministic patterns may fall back to T2 |
| T6 · Runaway loop or revoked Full Access race | Stuck loop edits 20 contacts in 80 s; user revokes Full Access mid-run | Pillar 2 (≤ 4 ops/120 s burst breaker) + Piko monotonic revision re-check (I5) |
At most 4 reversible records touched before breaker trips; 0 actions run post-revocation |
7. Empirical Evaluation: DelegationBench v1.0 and Four Studies
RQ4. On a concrete 1,000-action workload executed against real databases, how much irreversible damage and human oversight time does each pillar save, what happens when users skip daily digests, and what is the real storage and latency cost?
Answer: Across 1,000 real SQLite and outbox actions in DelegationBench v1.0, RFD lowers IDR/1k from 240 (YOLO) and 131 (fatigued confirmation) to 16 with zero live glance, or 12 at 25% live glance (Table 4). Daily oversight drops to 2.54 min/day (-60.3% vs. fatigued confirmation; -74.6% vs. ideal confirmation), and synchronous interruptions fall 99.2% from 40.0 to 0.32/day. Live production probes record 340/340 exact Swift send rules, 1,000/1,000 Full Access revocations in 0.044 ms, 181/181 passing pytest checks, and under 1 ms SQLite undo latency at 2,000 ops/day (Tables 6–7).
All quantitative results in this section are produced deterministically by reproduce_paper_results.py, delegationbench.py, and compiled swift_sendmode_probe.swift on an Apple Silicon Mac. The harness imports open-source piko-crm-mcp read-only and executes directly against Piko's production server and Swift modules, with zero random coin flips.
7.1 Study 1: DelegationBench v1.0 (1,000 actions across six architectures)
We construct a deterministic 25-workday stream of 1,000 candidate actions (40 actions/day) against seeded SQLite workspaces containing 30 contacts (with two same-name collisions), 10 deals, 10 tasks, and an owner price knowledge base:
- Benign routine traffic (760 actions, 76.0%): 420 reversible CRM creates and updates (
C1) and 340 grounded routine customer replies (C2). - Mistakes, hazards, and runaway bursts (240 actions, 24.0%): 60 reversible CRM hallucinations (
C3); 40 external reply errors (C4: 24 verifiable price mismatches and 16 subtle tone-only errors); 30 ambiguous entity collisions (C5); 30 irreversible red-lines (C6: 10 hard deletes, 10 high-value deal slashes, 5 card/OTP leaks, and 5 unapproved refund promises); 20 indirect prompt injections (C7); and 60 runaway burst writes (C8: three 20-action loops firing within 80 s on days 6, 14, and 22).
We set the stress hazard rate to 24% so every defence layer receives heavy traffic. Real personal workflows carry higher routine ratios, which only increases the habituation penalty on per-action confirmation.
We compare six architectures over this identical 1,000-action stream:
- E0 (YOLO): unconstrained full access with no safeguards.
- E1a (Ideal confirmation): an unfatigued reviewer spending 15 s on every one of the 40 daily pop-ups.
- E1b (Habituated confirmation): scrutiny decays after k0 = 8 prompts/day (β = 0.075, pmin = 0.25, 3.5 s rubber-stamp clicks), alongside conservative (k0=12, β=0.045, pmin=0.45) and severe (k0=5, β=0.120, pmin=0.12) bounds calibrated to field bypass rates [3] and neurosecurity habituation studies [4].
- E2 (Reversibility only): before-snapshot undo and daily digest with no caps or abstention.
- E3 (Caps and abstention only): blast-radius limits and red-line abstention with no undo, send hold, or digest.
- E4 (Full RFD): all four pillars with a 180 s send hold, evaluated at 0% and 25% live glance rates.
Figure 4, Figure 5, and Tables 4–5 report the full outcomes.
| Architecture | IDR / 1k (↓) | HOT min/d (↓) | Sync Int./d (↓) | Routine Deleg. (↑) | Peak / Perm. Burst | Parked (pending) |
Undone / Hold-Cancel |
|---|---|---|---|---|---|---|---|
| E0 · YOLO Full Access | 240 | 0.00 | 0.00 | 100.0% | 20 / 20 | 0 | 0 / 0 |
| E1a · Per-Action Confirm (Ideal Unfatigued) | 12 | 10.00 | 40.00 | 0.0% | 0 / 0 | 228 | 0 / 0 |
| E1b · Per-Action Confirm (Habituated, Moderate) | 131 | 6.40 | 40.00 | 0.0% | 16 / 16 | 109 | 0 / 0 |
| E1b · Per-Action Confirm (Conservative / Severe) | 92 / 183 | 7.84 / 5.04 | 40.00 | 0.0% | 12–18 / 12–18 | 148 / 57 | 0 / 0 |
| E2 · Reversibility + Digest Only (No Caps/Abstain) | 120 | 1.82 | 0.00 | 100.0% | 20 / 0 | 0 | 120 / 0 |
| E3 · Caps + Abstention Only (No Undo/Hold/Digest) | 112 | 1.00 | 0.32 | 100.0% | 4 / 4 | 128 | 0 / 0 |
| E4 · Full RFD (0% live glance, 180 s hold) | 16 | 2.54 | 0.32 | 100.0% | 4 / 0 | 128 | 72 / 24 |
| E4 · Full RFD (25% live glance, 180 s hold) | 12 | 2.55 | 0.32 | 100.0% | 4 / 0 | 128 | 72 / 28 |
reproduced_results.json).| Architecture | C3 CRM Mistake (60) | C4 Reply Mistake (40) | C5 Ambiguous (30) | C6 Red-Lines (30) | C7 Injection (20) | C8 Bursts (60) | Total IDR/1k |
|---|---|---|---|---|---|---|---|
| E0 · YOLO Full Access | 60 | 40 | 30 | 30 | 20 | 60 | 240 |
| E1a · Confirm (Ideal Unfatigued) | 8 | 4 | 0 | 0 | 0 | 0 | 12 |
| E1b · Confirm (Habituated, Moderate) | 11 | 23 | 18 | 21 | 13 | 45 | 131 |
| E2 · Reversibility Only | 0 | 40 | 30 | 30 | 20 | 0 | 120 |
| E3 · Caps + Abstention Only | 60 | 40 | 0 | 0 | 0 | 12 | 112 |
| E4 · Full RFD (0% live glance) | 0 | 16 | 0 | 0 | 0 | 0 | 16 |
| E4 · Full RFD (25% live glance) | 0 | 12 | 0 | 0 | 0 | 0 | 12 |
Three findings stand out from Tables 4 and 5:
- Habituated confirmation loses on both safety and time (Proposition 4 in practice). At n = 40 prompts/day and q = 0.24, moderate habituation yields mean scrutiny s̄(40) = 0.525, so Equation (4) already predicts at least q(1 - s̄) = 113.9 per 1k unreviewed hazards against RFD's qres = 16 per 1k. Observed moderate-fatigue damage reaches 131/1k (including 21/30 red-lines, 13/20 prompt injections, and 16-record bursts) at 6.40 min/day; even conservative habituation leaks 92/1k at 7.84 min/day. Full RFD with zero live glancing (
E4) lowers damage by 87.8% (131 to 16), cuts human time by 60.3% (6.40 to 2.54 min/day), and reduces synchronous interruptions by 99.2% (40.0 to 0.32/day). - Every pillar is necessary. Reversibility alone (
E2) repairs C3 and C8 in the evening digest, though bursts still expose 20 live records transiently; it still leaks 120/1k across ungrounded replies, ambiguities, red-lines, and injections. Caps plus abstention alone (E3) drive C5, C6, and C7 to 0 and cap burst exposure from 20 to 4, but leave 112/1k permanent errors because routine hallucinations have no rollback net. Only the full four-pillar stack drives C3, C5, C6, C7, and C8 to 0 together. - Residual damage is transparent and bounded. At 0% live glance, all 16 residual failures in
E4belong to one class: subtle tone-only external replies (C4) that violate no price or policy rule and leave the 180 s hold uncancelled. A 25% live glance rate during the 3-minute hold lowers residual damage to 12/1k, matching the unfatigued ideal human (E1a) at one quarter of the oversight cost (2.55 vs. 10.00 min/day).
7.2 Study 2: Live production verification across Piko Swift, Piko Server, and piko-crm-mcp
To ground RFD in shipping engineering rather than standalone scripts, we run three live probes against Piko's production codebase and read-only open-source piko-crm-mcp (Figure 6a, Table 6):
- Study 2A: Fail-Closed Natural-Language Delegation Parser (
AutoWatchSendRestriction.swift). In Piko, a watch rule stays draft-only unless a three-reader deterministic parser (riskFree && clauseDirect && strictlyDirect) verifies an unqualified direct-send instruction. We compiled the production Swift file natively (swiftc -O) and ran all 340 real bilingual vectors inPikoTests/Fixtures/auto-watch-send-mode-vectors.json. The binary matched 340 / 340 (100.00%) on bothpublishesand quotedrestrictionstrings, with 0 / 278 (0.00%) false direct sends on negated, rhetorical, quoted, or conditional phrases (such as "不是不能直接发", "难道要直接发?", or quoted "客户说'直接发'"). Median latency was 60.0 µs (p95 519.6 µs, p99 624.9 µs) with zero LLM tokens. - Study 2B: Live Piko Full Access Revision Revocation and
BrowserReplies. We ran Piko's productionStore,Approvals, andBrowserRepliesmodules against a temporary SQLite database. Under active Full Access (revision = 1), all 1,000 / 1,000 proposed actions auto-approved in 0.157 ms (p50). Piko's account-wide revocation (UPDATE browser_full_access SET enabled=0, expires=0, revision=revision+1) completed in 0.044 ms. SubsequentApprovals.consume()calls re-checked the live revision in 0.086 ms (p50) and reverted 1,000 / 1,000 (100.00%) in-flight actions back topending, with 0 / 1,000 executed after revocation. OnBrowserReplies, the 30/hr rate cap reserved 30 messages and blocked 10 excess attempts (429); crash recovery marked all 30 in-flight claimsunknownand blocked replay (409). - Study 2C: Live Multi-Stack Test Suites. Running live
pytestacross eight Piko server delegation, Full Access, approval, and CRM-watch suites passed 119 / 119 executed checks (2 skipped, 0 failed, 7.17 s). Running the full open-sourcepiko-crm-mcptest suite passed 62 / 62 checks (0 failed, 0.47 s), totaling 181 / 181 live Python passes. Alongside those Python suites, Piko's Swift codebase contains 22 delegation and CRM source files (2,887 lines) and 14 dedicated Swift test files (105 declared tests).
piko-crm-mcp.| Verification Target | Scope & Real Artifact Executed | Observed Outcome | Measured Latency / Time |
|---|---|---|---|
| Swift AutoWatch Parser | AutoWatchSendRestriction.swift (swiftc -O, 340 EN/ZH vectors) |
340 / 340 exact (0 / 278 false direct sends) | 60.0 µs p50 (519.6 µs p95) |
Piko full_access + Approvals |
1,000 live in-flight tasks + @account revision bump |
1,000 / 1,000 reverted to pending (0 leaks) |
0.044 ms revoke · 0.086 ms re-check |
Piko BrowserReplies Guard |
40 rapid claims (cap 30/hr) + crash recovery replay | 30 ok / 10 blocked · 30→unknown · replay blocked |
Real SQLite BEGIN IMMEDIATE |
Piko Server pytest (8 suites) |
test_full_access, test_browser_approvals, test_crm_* |
119 passed, 2 skipped, 0 failed | 7.17 s |
piko-crm-mcp pytest (4 suites) |
test_gateway, test_mcp_server, test_watch, test_autowatch |
62 passed, 0 failed | 0.47 s |
7.3 Study 3: Real SQLite reversible journal and digest scaling
A common worry about snapshot-based undo is storage bloat or slow rollbacks. Table 7 and Figure 6b measure our real SQLite delegated_ops layer wrapping piko_crm_mcp.crm.Crm from 10 to 2,000 delegated CRM mutations per day.
10 to 2,000 ops/day).| Daily Ops (N) | Journal Payload (KiB) | Bytes / Op | DB Growth (KiB) | Write p50 / p95 (ms) | Undo p50 / p95 (ms) | Digest p50 (ms) | Digest JSON (KiB) |
|---|---|---|---|---|---|---|---|
| 10 | 6.95 | 711.4 | 16.0 | 0.783 / 0.808 | 0.840 / 0.852 | 0.109 | 1.41 |
| 50 | 33.02 | 676.3 | 68.0 | 0.775 / 0.888 | 0.831 / 0.870 | 0.228 | 6.33 |
| 100 | 66.07 | 676.5 | 128.0 | 0.780 / 0.871 | 0.849 / 0.886 | 0.378 | 12.48 |
| 250 | 165.09 | 676.2 | 320.0 | 0.845 / 0.999 | 0.912 / 1.004 | 0.950 | 30.94 |
| 500 | 330.69 | 677.3 | 628.0 | 0.842 / 0.986 | 0.848 / 1.065 | 1.581 | 61.70 |
| 1,000 | 662.49 | 678.4 | 1,236.0 | 0.830 / 0.934 | 0.838 / 1.010 | 3.209 | 123.23 |
| 2,000 | 1,328.26 | 680.1 | 2,472.0 | 0.845 / 0.986 | 0.919 / 1.089 | 7.114 | 246.27 |
Snapshot undo adds 676 to 680 bytes per operation (about 27 KiB/day at 40 ops/day, or under 10 MiB/year before pruning; Table 7). Write and rollback medians stay under 1 ms across a 200-fold scale range, and generating a full 2,000-op daily digest completes in 7.11 ms.
7.4 Study 4: Resilience when users skip digests or shorten hold windows
Skeptics rightly ask: what if a busy user ignores the daily digest for a week? Figure 7 sweeps outbox hold duration (Thold ∈ {0, 60, 180, 300, 900} s) against daily digest compliance (100%, 80%, 50%, 25%, 0%), using a 20% base live glance rate whenever Thold > 0.
Two practical lessons emerge from Figure 7:
- The safety floor holds even at 0% digest compliance. When a user skips every daily digest across all 25 days (
0%compliance,180 shold),IDR/1krises from13to85because C3 CRM hallucinations and the 4 pre-breaker burst records go unreviewed. Even then,85/1kstays below YOLO (240) and moderately fatigued confirmation (131), with zero hard deletes, zero secret leaks, zero prompt injections, and zero large bursts. Pillars 2 and 3 hold that floor even when spot-checking lapses. - Most external-reply gain comes from the first 60 to 180 seconds plus grounding. Moving from
0 sto60 swith post-draft grounding dropsIDR/1kby 26 points (40 → 14at 100% compliance) because verifiable price and policy errors cancel before transmission. Extending from180 s(13) to900 s(9) saves only 4 additional replies per 1,000 actions at much higher reply latency. A 120 to 180 second window is therefore a practical default for customer-facing inboxes.
8. Reference Systems: Piko Production and Open-Source piko-crm-mcp
RFD is grounded directly in two real codebases: Piko's production client-server stack and its Apache 2.0 open-source extraction piko-crm-mcp. Table 8 distinguishes honestly between mechanisms already shipping today and the Full-Delegation Mode extension specified in Appendix A for the next open-source release of piko-crm-mcp.
piko-crm-mcp.| RFD Pillar | Piko Production (Shipped Today) | piko-crm-mcp v0.2 (Shipped Today) |
piko-crm-mcp Full-Delegation Mode (Appendix A Spec) |
|---|---|---|---|
| Grant & Revocation | 2-step password-verified @account Full Access (full_access.py, 90d expiry, monotonic revision, instant DELETE revoke) |
Per-session read/write + watch/capture grants; disconnect drops pending ops |
Adds connect --mode delegated alongside default --mode confirm elicitation |
| Pillar 1 · Reversibility | Append-only CRM watch capture with undo; crash-safe unknown reply claims (browser_replies.py) |
watch_capture append-only + undo with tombstone; MCP writes use SAVEPOINT dry-run + elicitation |
Adds delegated_ops before-snapshot journal for all CRM writes (undo-op) + outbox delay hold (--hold-seconds) |
| Pillar 2 · Blast Radius | maxRepliesPerHour (30, max 120), intervalSeconds, strict thread binding, ComputerHandsLease desktop mutex |
60 calls/min, 120 captures/hr, 30 replies/hr, 20 s min_gap, single-record tools |
Adds rolling max_writes_per_hour (15) + 120 s burst circuit breaker (≤ 4 ops) |
| Pillar 3 · Abstention | 3-reader Swift AutoWatchSendRestriction (340/340), ambiguity→pending, secret/OTP guard, DOM drift halt |
watch.py ambiguity→pending, safety.unsafe secret handoff, verbatim evidence verify, fenced prompts |
Extends red-line abstention to delegated MCP writes (crm.delete, high-value deal delta, injection) |
| Pillar 4 · Daily Digest | Audit ledger (audit table) + CRM capture review list |
piko-crm captures and pending inspection commands |
Adds piko-crm digest --since 24h grouped JSON/Markdown summary with one-click undo-op IDs |
Keeping confirm (MCP elicitation) as the conservative default while offering an explicit opt-in --mode delegated gives developers and users an honest, reversible path off the confirmation treadmill without weakening the default security posture.
9. Limitations, Threats to Validity, and Open Questions
Replacing per-action confirmation with reversible containment has clear boundaries that must be stated plainly:
- Inherently irreversible actions remain gated. Wire transfers, irreversible account deletions, legally binding signatures, and public broadcasts cannot be undone with a SQLite snapshot. RFD intentionally keeps them in Pillar 3's
pendingqueue; it eliminates routine confirmation fatigue rather than pretending every real-world side effect is reversible. - Subtle external-reply errors survive factual checks. As Study 1 reports candidly, 16 out of 40 external reply mistakes in our benchmark were pure tone or awkward phrasing errors that violated no price or secret rule. When the user never glances at the hold window, those 16 replies go out. Reducing that tail further requires stronger domain style checks or longer hold windows when latency allows.
- Habituation parameters come from prior literature, not a new longitudinal field trial. Study 1's confirmation-fatigue model (
E1b) uses deterministic decay curves calibrated to field click-through telemetry [3] and neurosecurity habituation studies [4][5], swept across conservative, moderate, and severe settings. Measuring real daily digest compliance and live-glance rates across months of live personal-agent usage remains essential future work. - Cascading dependencies on snapshot undo. In
delegationbench.pyand Study 3, single-record snapshot undo restoresbefore_jsonunder optimisticbaseVersionchecks. A human may manually edit the same contact field after an erroneous agent edit and before clicking undo in the evening digest. A naive blind overwrite would clobber that manual edit, so production undo must run a field-level three-way diff: restore only fields still matchingafter_jsonand flag conflicts. - Digest fatigue is a real second-order risk. If a daily digest dumps 200 raw ungrouped log lines, users will stop reading the digest too. Grouping routine noise, surfacing anomalies and burst halts at the top, and keeping Pillars 2 and 3 as a hard floor (Study 4) keep daily review under three minutes.
10. Conclusion
Users do not reject personal AI agents because they demand mathematical perfection. They reject interfaces that force a choice between clicking "Approve" forty times a day or handing over the keys with no safety net. Per-action confirmation protects system safety on paper while colliding with human attention and habituation in practice.
Reversible Full Delegation shifts the engineering goal from preventing every mistake to preventing irreversible loss. Four mechanisms carry that load: before-snapshot undo journals with delayed external dispatch (Pillar 1), single-record caps with burst circuit breakers (Pillar 2), deterministic exception-only abstention (Pillar 3), and a daily digest (Pillar 4). On DelegationBench v1.0, this stack cuts irreversible damage by 87.8% and daily oversight time by 60.3% compared to fatigued confirmation (74.6% less time than ideal confirmation), while eliminating 99.2% of synchronous interruptions (Table 4). Backed by live Piko production probes and the piko-crm-mcp specification in Appendix A, RFD provides an empirical basis for enabling Full Access without dropping safety.
Appendix A. Open-Source Implementation Spec for piko-crm-mcp Full-Delegation Mode
To align open-source piko-crm-mcp [20] directly with RFD while keeping its existing elicitation confirmation default, Full-Delegation Mode adds four lightweight components over the existing SQLite store (crm.py, gateway.py, autowatch.py, and cli.py under src/piko_crm_mcp/). Table A1 summarizes the exact contract mapped to the shipping codebase.
piko-crm-mcp Full-Delegation Mode.| Component | Exact Contract & Behaviour | Invariant Enforced |
|---|---|---|
| Connection mode flag | piko-crm connect --access write --mode confirm (default) or --mode delegated. Optional caps: --max-writes-hour 15, --burst-max 4, --hold-seconds 180, --deal-delta-pct 20. |
Explicit opt-in; revoking via disconnect immediately stops delegated writes and drops pending ops. |
| SQLite journal | Table delegated_ops with columns id, space, session, tool, record_kind, record_id, before_json, after_json, payload_json, status (committed, undone, held, dispatched, cancelled, pending), reason, created_at, release_at, undone_at. Indexed on (session, created_at) and (status, created_at). |
I3: written inside the same BEGIN IMMEDIATE SQLite transaction as the CRM write (~676 B/op). |
| Red-line & blast-radius guard | In Gateway.prepare when grant mode == 'delegated': park crm.move_deal, crm.update_deal with value delta > 20% or > $1,000, safety.unsafe matches, injection tags, and any delete/bulk tool into the existing operations table (piko-crm confirm <operation>). Single-record CREATES and UPDATES execute directly; 5th write within 120 s trips a 900 s session freeze. |
I1 & I2: zero silent execution of red-lines; peak runaway blast radius ≤ 4 records. |
| Field-safe one-click undo | piko-crm undo-op <op_id> (distinct from auto-watch piko-crm undo <capture>): if held, sets status='cancelled'; if a CREATES tool, soft-deletes record with undo tombstone; if an UPDATES tool, restores each field from before_json whose live value still matches after_json and reports conflicts on fields later edited by a human. |
I3 + human-edit preservation: never silently clobbers subsequent manual edits. |
| Delayed outbox | In AutoWatch (piko-crm watch --send --hold-seconds 180), write approved replies to delegated_ops (status='held', release_at=now+180), run deterministic knowledge/price/secret verification before flush(), and support piko-crm cancel <op_id> prior to dispatch. |
I4: verifiable factual contradictions auto-cancel before reaching external channels. |
| Daily Digest | piko-crm digest --since 24h (--format markdown or --format json): outputs grouped counts, collapsed burst alerts, pending operations IDs, and undoable write diffs with ready-to-run piko-crm undo-op <id> commands. |
Pillar 4: replaces 40 real-time pop-ups with one under-3-minute daily review. |
Appendix B. Design Rationale and Frequently Asked Questions
Does this paper contradict PESA's default approval gate?
No; it completes it. PESA [1] set the fail-closed baseline: an agent must never act silently by default and must ship with a versioned approval gate. Once a user trusts an assistant enough to enable Full Access (after password verification in Piko), per-action pop-ups become friction. This paper defines the four containment mechanisms required to remove synchronous confirmation safely once Full Access is on.
Why not just train a more accurate model until errors reach zero?
Even a frontier reasoning model faces genuinely ambiguous human messages ("update Alex's number" when two Alexes exist), stale context, and adversarial prompt injections hidden in customer replies. Waiting for a zero-error model delays safe delegation indefinitely. Designing for cheap, bounded, reversible failure protects users today and stays valuable even as base models improve.
How can an external message like a WhatsApp or email reply be "reversible"?
Once a message crosses a third-party network, you usually cannot recall it. RFD classifies external replies as window-reversible, not state-reversible. Holding outbound replies for 120 to 180 seconds lets deterministic factual and price checks run automatically and gives the owner a cancel window before dispatch. For inherently irreversible commitments (refunds, payments, sharing credentials), Pillar 3 abstains and routes to a human rather than relying on delay alone.
What stops a runaway agent from corrupting the whole CRM while I sleep?
Pillar 2 combines three hard ceilings inside the gateway: single-record atomicity (no bulk edits), hourly write caps (default 15/hr), and a burst circuit breaker that freezes the session after 4 writes within 120 seconds. Even if you sleep through the night and skip the next morning's digest, a runaway loop can touch at most 4 reversible records, and one click in the digest restores all 4.
Why keep elicitation confirmation as the default in piko-crm-mcp?
Because new users connecting an unfamiliar model to live customer data should start in fail-closed mode. Opting into --mode delegated is an explicit user decision, mirroring Piko's password-verified Full Access flow, and immediately activates all four containment pillars instead of dropping protections.
What if a user ignores the daily digest for several days?
Study 4 explicitly measures 0% digest compliance (Figure 7). Without digest review, routine CRM typos persist until noticed, and IDR/1k rises from 13 to 85. Pillars 2 and 3 still run unconditionally in the gateway, so hard deletes, secret leaks, prompt injections, high-value deal tampering, and large runaway bursts stay at zero even when every digest goes unread.
Can a human edit the same CRM record before clicking Undo in the evening digest?
Yes. As specified in Appendix A, production undo-op runs a field-level check comparing the current record against after_json. Fields untouched since the agent's edit revert to before_json; any field manually modified afterward is preserved and reported rather than overwritten.
Declarations, Authorship & Copyright
- Author & affiliation
- Ruiming Zhao, Founder & Principal Researcher, Prysai Lab / Piko Research (ORCID: 0009-0007-8335-5067; https://prysai.com/raymond-zhao/).
- Author contributions (CRediT)
- Ruiming Zhao: Conceptualization, Methodology, Formal Analysis, Software Architecture, Investigation, Visualization, and Writing.
- Competing interests
- The author is the founder of Prysai Lab, which develops Piko and maintains open-source piko-crm-mcp. Inherently irreversible red-lines, residual external-reply errors, habituation-model assumptions, and digest-neglect boundaries are disclosed explicitly in Section 9.
- Copyright & licence
- Copyright © 2026 Ruiming Zhao / Prysai Lab. Paper text, original vector figures (Hero and Figures 1–7), and benchmark scripts are licensed under Creative Commons Attribution 4.0 International (CC BY 4.0, https://creativecommons.org/licenses/by/4.0/). Prysai and Piko trademarks remain reserved; Piko app and cloud server source code remains proprietary, while piko-crm-mcp is released under Apache 2.0.
- Reproducibility
- All quantitative tables and charts (Figures 4–7, Tables 3–7) are generated deterministically by reproduce_paper_results.py, delegationbench.py, and swift_sendmode_probe.swift over real SQLite databases, Piko production modules, and read-only piko-crm-mcp, with snapshots stored in data/reproduced_results.json.
- Series & sister reports
- PIKO-RESEARCH-2026-03 (v1.0, 2026-12-01). Builds directly on PESA (PIKO-RESEARCH-2026-01, DOI: 10.5281/zenodo.24655151) and complements MFPM (PIKO-RESEARCH-2026-02, DOI: 10.5281/zenodo.24722296).
How to cite
- Recommended citation
- Zhao, Ruiming. Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents. Piko Research Technical Report PIKO-RESEARCH-2026-03, Prysai Lab, 2026-12-01 (v1.0). https://piko.prysai.com/research/delegation-without-approval · DOI: https://doi.org/10.5281/zenodo.24729210
- APA
- Zhao, R. (2026). Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents (Technical Report PIKO-RESEARCH-2026-03, Version 1.0). Piko Research, Prysai Lab. https://doi.org/10.5281/zenodo.24729210
- GB/T 7714
- ZHAO R. Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents[R/OL]. PIKO-RESEARCH-2026-03. Piko Research, Prysai Lab, 2026-12-01. https://piko.prysai.com/research/delegation-without-approval. DOI: 10.5281/zenodo.24729210.
- Citation files
- PDF · Markdown (.md) · BibTeX (.bib) · RIS (.ris) · CSL-JSON (.csl.json) · CITATION.cff
@techreport{zhao2026delegation,
author = {Zhao, Ruiming},
title = {Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents},
institution = {Prysai Lab},
series = {Piko Research},
number = {PIKO-RESEARCH-2026-03},
year = {2026},
month = {12},
doi = {10.5281/zenodo.24729210},
url = {https://piko.prysai.com/research/delegation-without-approval},
note = {Version 1.0, 2026-12-01}
}[
{
"id": "zhao2026delegation",
"type": "report",
"title": "Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents",
"author": [
{
"family": "Zhao",
"given": "Ruiming"
}
],
"publisher": "Prysai Lab",
"collection-title": "Piko Research",
"number": "PIKO-RESEARCH-2026-03",
"issued": {
"date-parts": [
[
2026,
12,
1
]
]
},
"URL": "https://piko.prysai.com/research/delegation-without-approval",
"language": "en",
"version": "1.0",
"keyword": "personal AI agents, reversible delegation, approval fatigue, undoable writes, blast-radius bounding, selective abstention, daily digest, MCP, PESA, Piko, piko-crm-mcp",
"abstract": "Ask someone why they want a personal AI agent, and they describe full delegation: answer routine inquiries, log leads, and update tasks without interrupting every ten minutes. Ask what holds them back, and the worry is just as plain: models err, and one bad reply or broken record costs trust. Per-action approval dialogs protect the system on paper while fighting normal human psychology; faced with dozens of daily pop-ups, people either turn automation off or click through on autopilot. This paper introduces Reversible Full Delegation (RFD). Instead of asking before each click, RFD pairs four containment mechanisms: snapshot-backed reversible writes with a delayed send window, single-record caps with a burst circuit breaker, deterministic abstention for exceptions, and a daily digest with one-click undo. We evaluate systems by Irreversible Damage Rate per 1,000 actions (IDR/1k) and daily Human Oversight Time (HOT). Across 1,000 real SQLite and outbox actions in DelegationBench v1.0, fatigued confirmation takes 6.40 min/day across 40 prompts yet leaks 131 irreversible failures. RFD lowers IDR/1k to 16 (zero live glance) or 12 (25% glance in a 180 s send hold); oversight drops to 2.54 min/day and interruptions drop to 0.32/day. Live Piko probes record 340/340 Swift send rules, 1,000/1,000 Full Access revocations in 0.044 ms, 181/181 pytest passes, and SQLite journals of 676 to 680 B/op with sub-millisecond undo.",
"DOI": "10.5281/zenodo.24729210"
}
]TY - RPRT
AU - Zhao, Ruiming
TI - Delegation Without Approval: Replacing Per-Action Confirmation with Reversibility in Personal AI Agents
PY - 2026
DA - 2026/12/01
PB - Prysai Lab
T3 - Piko Research
M1 - PIKO-RESEARCH-2026-03
ET - 1.0
LA - en
DO - 10.5281/zenodo.24729210
UR - https://piko.prysai.com/research/delegation-without-approval
L1 - https://piko.prysai.com/research/delegation-without-approval.pdf
AB - Ask someone why they want a personal AI agent, and they describe full delegation: answer routine inquiries, log leads, and update tasks without interrupting every ten minutes. Ask what holds them back, and the worry is just as plain: models err, and one bad reply or broken record costs trust. Per-action approval dialogs protect the system on paper while fighting normal human psychology; faced with dozens of daily pop-ups, people either turn automation off or click through on autopilot. This paper introduces Reversible Full Delegation (RFD). Instead of asking before each click, RFD pairs four containment mechanisms: snapshot-backed reversible writes with a delayed send window, single-record caps with a burst circuit breaker, deterministic abstention for exceptions, and a daily digest with one-click undo. We evaluate systems by Irreversible Damage Rate per 1,000 actions (IDR/1k) and daily Human Oversight Time (HOT). Across 1,000 real SQLite and outbox actions in DelegationBench v1.0, fatigued confirmation takes 6.40 min/day across 40 prompts yet leaks 131 irreversible failures. RFD lowers IDR/1k to 16 (zero live glance) or 12 (25% glance in a 180 s send hold); oversight drops to 2.54 min/day and interruptions drop to 0.32/day. Live Piko probes record 340/340 Swift send rules, 1,000/1,000 Full Access revocations in 0.044 ms, 181/181 pytest passes, and SQLite journals of 676 to 680 B/op with sub-millisecond undo.
ER - References
- PESA: Personal Ecosystem Super Agent. Piko Research Technical Report PIKO-RESEARCH-2026-01 (v1.4), Prysai Lab, Nov. 2026; DOI: 10.5281/zenodo.24655151. doi.org/10.5281/zenodo.24655151
- Crying Wolf: An Empirical Study of SSL Warning Effectiveness. Proceedings of the 18th USENIX Security Symposium (USENIX Security '09), pp. 399–416, Aug. 2009. www.usenix.org/conference/usenixsecurity09/technical-sessions/presentation/crying-wolf-empirical-study-ssl-warning
- Alice in Warningland: A Large-Scale Field Study of Browser Security Warning Effectiveness. Proceedings of the 22nd USENIX Security Symposium (USENIX Security '13), pp. 257–272, Aug. 2013. www.usenix.org/conference/usenixsecurity13/technical-sessions/presentation/akhawe
- From Warning to Wallpaper: Why the Brain Habituates to Security Warnings and What Can Be Done About It. Journal of Management Information Systems (JMIS), 33(3):713–743, 2016. doi.org/10.1080/07421222.2016.1243947
- The Fog of Warnings: How Non-Security-Related Notifications Diminish the Efficacy of Security Warnings. MIS Quarterly, 49(4):1357–1384, Dec. 2025. doi.org/10.25300/MISQ/2025/18531
- The Cost of Interrupted Work: More Speed and Stress. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI 2008), pp. 107–110. doi.org/10.1145/1357054.1357072
- Can a Personal Agent Actually Forget? Measuring and Preventing Memory Resurrection Across Async Extraction, Source Revocation, and Multi-Device Sync. Piko Research Technical Report PIKO-RESEARCH-2026-02 (v1.1), Prysai Lab, Dec. 2026; DOI: 10.5281/zenodo.24722296. doi.org/10.5281/zenodo.24722296
- The Humane Interface: New Directions for Designing Interactive Systems. Addison-Wesley, Reading, MA, 2000 (ISBN 978-0-201-37937-2).
- A Model for Types and Levels of Human Interaction with Automation. IEEE Transactions on Systems, Man, and Cybernetics—Part A, 30(3):286–297, May 2000. doi.org/10.1109/3468.844354
- Trust in Automation: Designing for Appropriate Reliance. Human Factors, 46(1):50–80, 2004. doi.org/10.1518/hfes.46.1.50_30392
- Principles of Mixed-Initiative User Interfaces. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI 1999), pp. 159–166. doi.org/10.1145/302979.303030
- Human-Centered Artificial Intelligence: Reliable, Safe & Trustworthy. International Journal of Human–Computer Interaction, 36(6):495–504, 2020. doi.org/10.1080/10447318.2020.1741118
- Direct Manipulation: A Step Beyond Programming Languages. IEEE Computer, 16(8):57–69, Aug. 1983. doi.org/10.1109/MC.1983.1654471
- Giving Undo Attention. Interacting with Computers, 4(3):317–342, 1992. doi.org/10.1016/0953-5438(92)90021-7
- A Temporal Model for Multi-Level Undo and Redo. Proceedings of the 13th Annual ACM Symposium on User Interface Software and Technology (UIST 2000), pp. 31–40. doi.org/10.1145/354401.354409
- Sagas. Proceedings of the 1987 ACM SIGMOD International Conference on Management of Data (SIGMOD '87), pp. 249–259. doi.org/10.1145/38713.38742
- Undo for Operators: Building an Undoable E-mail Store. Proceedings of the 2003 USENIX Annual Technical Conference (USENIX ATC '03), pp. 1–14 (Best Paper Award). www.usenix.org/conference/2003-usenix-annual-technical-conference/undo-operators-building-undoable-e-mail-store
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec @ CCS 2023), pp. 79–90. doi.org/10.1145/3605764.3623985
- Defeating Prompt Injections by Design. arXiv:2503.18813, Mar. 2025 (IEEE SaTML 2026). arxiv.org/abs/2503.18813
- Model Context Protocol Specification (Elicitation and Tool Execution). Open Protocol Specification, 2025–2026. modelcontextprotocol.io/specification
- You don't need long context. NVIDIA Research Technical Report, arXiv:2611.05306, Nov. 2026. arxiv.org/abs/2611.05306
- On Optimum Recognition Error and Reject Tradeoff. IEEE Transactions on Information Theory, 16(1):41–46, Jan. 1970. doi.org/10.1109/TIT.1970.1054406
iPhone, iPad, Mac, and Apple Watch are trademarks of Apple Inc. Piko is an independent product of Prysai Lab and is not affiliated with Apple Inc.