Skip to content

The Authority Contract: who may let an effect happen

What this page is. The one statement of what A means in Delentia, in what order the rules decide, who can change each one, and what the gate does and does not cover. The Desk, the README, fdia-equation.md and the autonomy modes link here instead of repeating it. The table at the end is generated from the code by scripts/authority_table.py, and a test fails when the two differ.

Criteria: research/FDIA_AUTHORITY_F1_F4_CRITERIA_R118.md (F1). Items marked (planned) are specified there and not built yet.

AI may propose the future. The Architect governs what is allowed to become reality. On this page, that sentence is narrowed to what the code does.

1. What A is

A is the Architect's permission for one effect: a file written, a command run, a message sent, a job scheduled. The runtime builds A from: * the owner's policy (or the default starter when there is none); * the built-in floor; * the taint rule; * a constraint the person stated (planned, F4); * a verified signature.

A = 0 means the effect does not reach the executor. This is checked at the executor and in the database, not by reading what the gate reported (P1 in Gate properties).

D and I are a different thing. D scores the evidence and I scores how demanding the intent is. With D between 0 and 1, a larger I asks for better data: I is intent strictness. A call to a risky tool must reach F = D^I × A ≥ 0.5. No score can raise A. A well-founded, confident proposal still does not run where the Architect said no, and the model checking its own work is not permission either.

2. The order of authority (strongest first)

# Level What it can do Where it lives
1 Hard invariants Forbidden patterns, secret paths, Zero-Delete, tools that only the owner may use. Nothing below can lift them fdia_policy (blocked_action_patterns, denied_paths), sandbox, OWNER_ONLY_TOOLS
2 Taint rule Once outside text was shown to the model, every side-effect or data-moving tool needs a signature, whatever the policy says governed_autonomous_loop (TAINT_*)
3 Owner's policy (or the default starter) and the built-in floor Per tool and per argument: allow, ask for a signature (how many, from which role), block. The loop takes the stricter of policy and floor ~/.delentia/fdia_policy.json; fdia_policy.template; RISKY_TOOLS, _ALWAYS_NEEDS_APPROVAL_TOOLS
4 Stated constraints (planned, F4) "Do not modify X", "draft only, do not send": blocked or asked before the action, for this request mismatch_rules → the gate
5 Autonomy mode (Guard) strict adds a stricter layer (every command asks, inspection commands included; plan-first and small-edit autorun do not apply); flow is the level-3 behaviour. A mode never asks less than level 3 rct_control_plane/autonomy.py; research/AUTONOMY_MODES_V01_CRITERIA_R117.md
6 Approvals A signature over one exact action, or over a numbered plan (plan-first, an owner's choice). Single use, expiring, revocable, void if the payload changes approvals, plan_approval
7 The model Proposes. It cannot sign, pin a rule, change the policy or change the mode —

A lower level never undoes a higher one. A signature satisfies "this needs a signature" and nothing else. It does not lift a forbidden path, a refused role (P3), a hard invariant or a stated constraint.

3. Who can change each level

Level Who How
Hard invariants, floor The project A code change with tests
Owner's policy The owner (the Architect) The Desk /fdia page or the CLI. On a host, the change itself needs a signature (DELENTIA_POLICY_CHANGE_REQUIRES_SIGNATURE)
Stated constraints (planned) The person, in their own words A later message from the same person can lift one. Text from a page, a file, a memory or the model cannot create or lift one
Mode (Guard) The person, for their own requests (/mode in chat); the owner, for everyone (the Desk switch, delentia mode set) Tightening applies from the next action. Going back to flow applies from the next request and returns to level 3, never below it. A person cannot lift a strict the owner set
Approvals An approver whose key or device is trusted delentia approvals approve, the Desk, a device (passkey)
The model Nobody gives it any of these No tool exists for signing, pinning, policy or mode

4. What the gate covers, and what it does not

Covered: * every tool call the governed loop makes (P6); * external MCP tools, which are judged as risky, with their results treated as outside text, and a signature on every call unless the owner listed the tool as read-only.

Not covered today: * The raw /mcp gateway, when the owner turns it on. It is the owner's maintenance route, outside the loop. It is off by default (DELENTIA_RAW_MCP=1 turns it on), and when on every request needs its own token (X-Delentia-Raw-MCP-Token), even from this machine. The agent's shell refuses a command that names the token or aims at the route. * What a process does after a person approved it. The agent's shell is a local process with a time limit, an output cap and a denylist, not a container. An approved command runs with the owner's own rights. * The meaning of the answer's words, beyond the answer guard (addresses that could leak data). * Effects outside this machine once they are sent.

The audit log is hash-chained and signed, so changes are detectable. Until an outside witness is independent of the author, it is not tamper-proof.

5. The table: every tool, as the code decides today

How to read it: * Default starter, clean episode is the decision when the owner wrote no policy, for a call with no arguments, in an episode that has read no outside text. * ask means a signature is needed. * by arguments means a rule looks at what the call does. For example, a read-only shell command such as git status runs, and any other command asks. * An owner's policy file can only make these rows stricter. * Planned changes (F2: four tools that run untainted today will ask) appear here when they are merged, because the table is regenerated from the code.

Tool Taint class FDIA score Floor Default starter, clean episode Rule Once tainted
delentia_ask_user inert - - allow R-OTHER-ACTIONS as when clean
delentia_assemble_nodes inert - - allow R-OTHER-ACTIONS as when clean
delentia_autonomous_loop gated - - ask R-REACH ask
delentia_browse_page source checked - by arguments R-URL-OTHER only an address the person typed or a page showed
delentia_browser_act source checked signature ask R-REACH only an address the person typed or a page showed
delentia_check_ground_truth_claim inert - - allow R-OTHER-ACTIONS as when clean
delentia_check_reminders gated - - allow R-OTHER-ACTIONS ask
delentia_compress_intent_delta inert - - allow R-OTHER-ACTIONS as when clean
delentia_convert_content source - - allow R-OTHER-ACTIONS as when clean
delentia_crawl_url source checked - by arguments R-URL-OTHER only an address the person typed or a page showed
delentia_create_worktree gated checked - ask R-REACH ask
delentia_cron_create gated - signature ask R-REACH ask
delentia_cron_delete gated - - allow R-OTHER-ACTIONS ask
delentia_cron_list inert - - allow R-READ as when clean
delentia_crystallize_keywords inert - - allow R-OTHER-ACTIONS as when clean
delentia_daemon_status inert - - allow R-READ as when clean
delentia_delegate gated checked - ask R-REACH ask
delentia_describe_image source checked - by arguments R-IMAGE-OTHER as when clean
delentia_expand_tool_output inert - - allow R-READ as when clean
delentia_export_session_state gated - - allow R-OTHER-ACTIONS ask
delentia_generate_image inert - - allow R-OTHER-ACTIONS as when clean
delentia_import_session_state source checked - ask R-REACH as when clean
delentia_law_lookup inert - - allow R-OTHER-ACTIONS as when clean
delentia_list_capabilities inert - - allow R-READ as when clean
delentia_list_exchange_files inert - - allow R-READ as when clean
delentia_list_forged_tools inert - - allow R-READ as when clean
delentia_list_worktrees inert - - allow R-READ as when clean
delentia_patch_repo_file gated checked signature ask R-WRITE-FILES ask
delentia_plan_note inert - - allow R-OTHER-ACTIONS as when clean
delentia_process_intent gated - - allow R-OTHER-ACTIONS ask
delentia_query_audit_log inert - - allow R-READ as when clean
delentia_query_intents inert - - allow R-READ as when clean
delentia_read_exchange_file source - - allow R-READ as when clean
delentia_read_repo_file inert - - allow R-READ as when clean
delentia_recall inert - - allow R-READ as when clean
delentia_remember gated - - allow R-OTHER-ACTIONS ask
delentia_remove_worktree gated checked - ask R-REACH ask
delentia_run_forged_tool inert checked - ask R-REACH as when clean
delentia_run_sandboxed_command gated checked - by arguments R-SHELL-OTHER ask
delentia_save_exchange_file gated checked - ask R-WRITE-FILES ask
delentia_schedule_reminder gated - - ask R-REACH ask
delentia_schedule_self_evolution gated checked - ask R-REACH ask
delentia_search_repo_files inert - - allow R-READ as when clean
delentia_search_sessions inert - - allow R-READ as when clean
delentia_spawn_subagents gated checked - ask R-REACH ask
delentia_speak inert - - allow R-OTHER-ACTIONS as when clean
delentia_synthesize_function gated checked - ask R-CODE ask
delentia_transcribe_audio source - - allow R-OTHER-ACTIONS as when clean
delentia_verify_intent_conservation inert - - allow R-READ as when clean
delentia_web_search source checked - by arguments R-SEARCH-PLAIN as when clean
delentia_write_repo_file gated checked signature ask R-WRITE-FILES ask

สรุปภาษาไทย

  • A คืออำนาจอนุญาตของ Architect ต่อผลกระทบแต่ละอย่าง ถ้า A = 0 การกระทำนั้นจะไปไม่ถึงตัวที่ลงมือทำจริง คะแนน D และ I ไม่มีทางยก A ให้สูงขึ้นได้ ความมั่นใจหรือการที่ AI ตรวจงานตัวเองแล้วว่าดี ไม่ใช่การได้รับอนุญาต
  • ลำดับอำนาจจากสูงไปต่ำ:
  • กฎเหล็ก
  • กฎ taint
  • policy ของเจ้าของ (หรือ policy เริ่มต้น) และพื้นขั้นต่ำในตัว
  • ข้อห้ามที่ผู้ใช้พูดเอง (กำลังพัฒนา)
  • โหมดการคุม (เข้มงวด / ลื่นไหล)
  • การอนุมัติด้วยลายเซ็น
  • โมเดล ซึ่งทำได้แค่เสนอ

ระดับล่างลบล้างระดับบนไม่ได้ ลายเซ็นปลดได้เฉพาะ "ต้องมีลายเซ็น" ปลดข้อห้ามอื่นไม่ได้ * ขอบเขต: gate ครอบคลุมทุกคำสั่งที่ผ่านวงจรของ agent * นอกขอบเขต: * ช่อง /mcp แบบดิบ เมื่อเจ้าของเปิดใช้ (ปิดเป็นค่าเริ่มต้น และเมื่อเปิดต้องใช้ token ของตัวเองทุกครั้ง) * สิ่งที่โปรแกรมทำหลังได้รับอนุมัติแล้ว (shell ไม่ใช่ container) * บันทึก audit ตรวจพบการแก้ไขได้ แต่ยังไม่ถึงระดับแก้ไขไม่ได้เลย