Constitution
Version 3 (2026-11-15).
Every version is hashed into our signed journal; earlier versions stay at /constitution/v1 and /constitution/v2. Versions and hashes: versions.json.
We do not try to catch every attack. We make an irreversible action without a person impossible by construction: an action the rules you signed do not allow is refused or waits for your passkey, and if nobody answers, it does not run. If Deus Witness cannot be reached, nothing runs except reading files inside the project. This holds for the actions that go through Deus Witness and that it recognises; it does not see what an agent does outside it. If you choose to allow actions your rules do not list, an action Witness does not recognise can run without asking you.
Check: server/tests/test_0282_irreversibility_gate.py::test_a_exits_stay_asked, server/tests/test_0282_irreversibility_gate.py::test_a_delete_outside_project_and_disk, server/tests/test_hookjudge_hook.py::test_errors_fail_closed, mcp/tests/test_offline_0248.py::test_read_runs_without_the_witness
These laws hold whatever the setting or the price. We list only laws the code keeps today, and next to each one the test that checks it. Paths are inside cloud/ of the open server, github.com/sipkigroup/witness-server (AGPL-3.0): run the test yourself.
The main laws
- Only a person gives rights. An agent never widens its own. No call an agent can make changes its rules, its “from now on” permissions, who confirms it, the team or any key, and no call of an agent approves anything: approval is a person's passkey signature.
Check:server/tests/test_1311_r0292_constitution.py::test_agent_routes_cannot_widen_rights,server/tests/test_0237_no_self_approve.py::test_0237_1_agent_cannot_approve_pending,server/tests/test_0237_no_self_approve.py::test_0237_3_agent_cannot_sign_or_change_mandate - Signed = shown. You sign exactly the text you saw. The server builds that text from a fixed vocabulary, not the agent, and the signature covers it; an edited text fails the check.
Check:server/tests/test_kontrakt_konstant.py::test_signed_view_keys_and_version,server/tests/test_0283_shown_views.py::test_0283_an_edited_shown_object_is_invalid - Stopping is easier than allowing. Revoking an agent's rules takes one signature of any signer, in every version of a team's rules; an outside checker rejects rules that ask for more. Anyone in a team, a Viewer too, can freeze an agent with one passkey touch; only an Owner unfreezes it.
Check:contract/v02/test_v02.py::test_revocation_rule_must_be_any_one,server/tests/test_1311_r0292_viewer_freeze.py::test_viewer_may_freeze_and_it_is_journaled,server/tests/test_1311_r0292_viewer_freeze.py::test_viewer_cannot_unfreeze_or_revoke - Silence is a no. A question nobody answers expires as a refusal. If Deus Witness cannot be reached, nothing runs except reading files inside the project; those reads are written to a local journal (the tool and a hash of the call, one line each). A read here is Read, Grep, Glob, LS or a shell command that only reads (cat, grep, ls and a few more); never a credential file,
.gitor.claude, and a read whose journal line cannot be written does not run.DEUS_WITNESS_HOOK_OFFLINE=strictrefuses those reads too.
Check:server/tests/test_hookjudge_hook.py::test_deny_reasons,server/tests/test_hookjudge_hook.py::test_errors_fail_closed,mcp/tests/test_offline_0248.py::test_read_runs_without_the_witness,mcp/tests/test_offline_0248.py::test_non_reads_refused,mcp/tests/test_offline_0248.py::test_journal_unwritable_refuses - The past is not rewritten. Every decision goes into a signed, hash-chained journal. The witness refuses to sign a rewritten history, and the offline checker catches one.
Check:server/tests_pack/test_tlog_server_0269.py::test_the_witness_refuses_to_sign_a_rewritten_log,server/tests_pack/test_tlogcheck_0269.py::test_substituted_root_and_rewritten_history - Safety features are never behind a paywall. Freezing, revoking, recovery codes, exporting your evidence pack, deleting your account and checking a pack work on every account, free ones included.
Check:server/tests/test_1311_r0292_constitution.py::test_safety_features_have_no_paywall
More laws
- Some actions are refused without a question. Reading private keys and token stores, switching off the guard (git hooks), adding something that starts by itself, wiping your home folder, running a downloaded script or a remote shell, hidden characters in a command, force-pushing over history.
Check:server/tests/test_0611_konstituciya.py::test_n_server_refuses_silently - Switching off a protection of the operating system is refused without a question. Removing the download quarantine (
xattr), turning off Gatekeeper (spctl), SIP, the firewall (pfctl,ufw,iptables), SELinux, AppArmor, the audit log or Windows Defender, resetting privacy permissions for every app (tccutil reset): refused under every rule, never allowed “from now on”. Commands that only look, such asspctl --statusorpfctl -sr, are not refused. These are known forms of the commands, not every way to do it.
Check:server/tests/test_1411_r0305_zashchity_os.py::test_defense_mark_and_article,server/tests/test_1411_r0305_shag0_l2.py::test_defense_is_refused_with_no_button_under_every_mandate,server/tests/test_1411_r0305_zashchity_os.py::test_never_from_now_on_for_defense - Changing a team's rules is harder than using them. When the rules ask for two or more signatures, one owner alone cannot lower them or remove a member; a change needs the current signers, or waits 72 hours, and any member can cancel it.
Check:server/tests/test_0237_team_kvorum.py::test_a_owner_alone_cannot_lower_threshold_or_drop_member,server/tests/test_0237_team_kvorum.py::test_c2_member_cancels_scheduled_change - Nobody confirms their own agent. In a team, once an agent is assigned to the person who runs it, its questions are confirmed by other members, never by that person.
Check:server/tests/test_0213.py::test_delegated_agent_is_confirmed_by_others_never_by_its_operator,server/tests/test_0237_no_self_approve.py::test_0237_11_team_operator_cannot_approve_own_agent - Trust has an end. “Allow from now on” lasts at most 30 days.
Check:server/tests/test_kontrakt_konstant.py::test_from_now_on_days - Your data is yours. You export your evidence pack and delete your account without asking us.
Check:server/tests/test_0224_critique.py::test_0224_b_export_still_verifies,server/tests/test_0223_delete_account.py::test_success_erases_and_nobody_can_come_back - If we are gone, the server is open and your receipts keep checking. The server is open source (witness-server, AGPL-3.0) and runs on your own machine with
docker compose up; evidence packs are checked offline, without us.
Check:server/tests_pack/test_solo_pack.py::test_4_solo_pack_valid_without_org_lines,selfhost/e2e_check.py
How this page changes
Any weakening comes only as a new version, announced in advance, never retroactively. Each version keeps its number and date, and a law leaves this page only together with its test.
Check: server/tests/test_1311_r0292_constitution.py::test_constitution_page_is_versioned_and_every_law_has_a_check
Every law has a permanent id, and the list of laws with their tests is in versions.json. A version that drops a law or one of its tests must say it weakens and take effect 14 days or more after it is published; an offline check finds any version that does not. A version that fixes a text which said more than the code does keeps the law and all its tests, names the test that shows what the code does, and says so below.
Check: server/tests/test_1511_r0318_constitution_rule.py::test_a_law_dropped_without_weakens_is_invalid, server/tests/test_1511_r0318_constitution_rule.py::test_a_weakening_takes_effect_14_days_later, server/tests/test_1511_r0318_constitution_rule.py::test_a_changed_text_must_be_marked
Version 3 weakens no law. It corrects version 2, which said that nothing runs when Deus Witness cannot be reached: since October 2026 the hook has let reads of files inside the project run without it, written to a local journal. It also adds a law the code already kept (protections of the operating system) and the rule above.
Limits, said plainly: Deus Witness sees only the actions routed through it; its pages are served by us, so registering a key trusts our site. Dangerous actions are recognised by the forms we know: recognising is detection, not proof. A form we do not recognise is asked, or, if you chose to allow unlisted actions, it may run. See Terms and Privacy.