{
  "_meta": {
    "what": "Dryx's floor, the short list of catastrophic actions the gate refuses first, before it reads anything else, on every device where Action Guard is on. It holds even when Dryx's own signed per-device policy file is missing, stale or forged, and it blocks in Observe and Enforce alike.",
    "why_published": "So the floor is a claim you can check, not a claim you take on faith. The shapes and their tiers are printed here in plain words. The exact edges of each refusal are published as one fingerprint. Dryx's own check scripts recompute that fingerprint from the gate's own constants in the gate test suite and in CI; any drift between this page and the shipped gate fails that check.",
    "source_of_truth": "The gate Dryx deploys on your Mac. Dryx's check scripts compare this page to the shipped gate's constants; the same check runs in CI.",
    "generated": "2026-09-30",
    "page_revised": "2026-10-25",
    "counts": {
      "patterns": 17,
      "shapes": 16,
      "safe_roots": 4
    },
    "changelog": [
      {
        "date": "2026-09-29",
        "change": "The delete family is keyed to what a command does, not to one spelling. An unforced recursive delete, a find that deletes, and a one-line script that removes a folder take the same three tiers as a forced recursive delete. A whole folder moved to the Trash is held for the operator. A command or file edit that changes Dryx's own files, or the hook that runs the gate, from inside an agent session is refused. Disk and volume erases are refused. Every floor decision on deletes and moves is recorded by kind, including the ones it allows."
      },
      {
        "date": "2026-09-30",
        "change": "A whole folder moved to a destination the gate cannot read (a variable, a substitution, a directory change it cannot follow) is held for the operator, like a move to the Trash, and the Trash named before the move arms the same check. Shapes and tiers unchanged; the edges fingerprint changed."
      }
    ]
  },
  "shapes": [
    {
      "id": "rm_recursive_force",
      "plain": "A recursive, forced delete (rm -rf and its spellings). Three tiers by target: a target the gate resolves to the home folder, a top-level folder of it, a system location, or a folder named by its full path outside the machine's temporary trees is refused; a target it cannot resolve (a variable, a substitution, a directory change it cannot follow) becomes an operator question on harnesses that can ask, and stays refused where none can; a target inside the agent's own working directory that does not escape it is allowed as the operator's own cleanup inside the project.",
      "tier": "hard block when the target resolves to a system or home location or is named by full path; operator question when the target is unresolvable"
    },
    {
      "id": "rm_recursive",
      "plain": "A recursive delete without the force flag (rm -r, rm -R, rm --recursive). Three tiers by target: a target the gate resolves to the home folder, a top-level folder of it, a system location, or a folder named by its full path outside the machine's temporary trees is refused; a target it cannot resolve (a variable, a substitution, a directory change it cannot follow) becomes an operator question on harnesses that can ask, and stays refused where none can; a target inside the agent's own working directory that does not escape it is allowed as the operator's own cleanup inside the project.",
      "tier": "same three tiers as rm_recursive_force"
    },
    {
      "id": "find_delete",
      "plain": "A find that deletes what it finds (-delete, or -exec / -execdir / -ok / -okdir running rm). Decided on each starting folder with the same three tiers. A find started at the current folder with a name or path filter is cleanup inside the project; the same find with no filter deletes the project itself and is refused. A find started at the home folder or a system location is refused even with a filter: a deliberate, stated over-block (run it from inside the folder you mean).",
      "tier": "same three tiers, decided per starting folder"
    },
    {
      "id": "script_delete",
      "plain": "A one-line script that removes a folder (python -c, python3 -c or node -e calling a folder-removal function). A literal path takes the same three tiers; a computed path is the operator question. A delete written inside a script file or a heredoc is not read by the floor: a published residue.",
      "tier": "same three tiers for a literal path; operator question for a computed one"
    },
    {
      "id": "volume_erase",
      "plain": "Erasing or repartitioning a disk or volume (diskutil's erase, partition and delete verbs, newfs). No safe agent-initiated variant.",
      "tier": "hard block"
    },
    {
      "id": "dd_rawdisk",
      "plain": "dd writing to, or reading from, a raw disk device.",
      "tier": "hard block"
    },
    {
      "id": "mkfs",
      "plain": "Formatting a filesystem. Formatting a device destroys everything on it; there is no safe agent-initiated variant.",
      "tier": "hard block"
    },
    {
      "id": "fork_bomb",
      "plain": "The classic shell fork-bomb literal. A shell structure with no sound downgrade, so even a quoted or echoed copy of the literal is refused: a deliberate, stated over-block.",
      "tier": "hard block, unconditional"
    },
    {
      "id": "rawdisk_redirect",
      "plain": "An unquoted shell redirect straight onto a raw disk device.",
      "tier": "hard block"
    },
    {
      "id": "chmod_777_root",
      "plain": "A recursive world-writable permission change on the filesystem root.",
      "tier": "hard block"
    },
    {
      "id": "trash_move",
      "plain": "A recoverable move of a whole folder: the trash command, or mv into the Trash or a temporary tree. Held for the operator when the folder is outside the project, is the project itself or contains it, or holds a repository; refused for the home folder or a system location; allowed for single files, plain folders inside the project, and anything already in a temporary tree. A hold nobody can answer is refused.",
      "tier": "operator question (refused where no one can answer); hard block for the home folder or a system location"
    },
    {
      "id": "finder_delete",
      "plain": "The same recoverable move made through Finder by an AppleScript delete. Same tiers as trash_move.",
      "tier": "same as trash_move"
    },
    {
      "id": "trash_empty",
      "plain": "Emptying the Trash from inside an agent session. It would turn every earlier held move into a permanent delete, and no coding agent needs it.",
      "tier": "hard block"
    },
    {
      "id": "gate_file_write",
      "plain": "A write, move, permission change or delete of Dryx's own files (the gate, the policy, the ledger, the tallies) from inside an agent session, by a shell command, a one-line script or a file edit. Reads stay allowed.",
      "tier": "hard block"
    },
    {
      "id": "gate_hook_edit",
      "plain": "An edit that removes or changes the hook entry that runs Dryx's gate (in Claude Code, Cursor or Codex settings), or that switches hooks off. Edits that keep Dryx's entry intact are allowed. When Dryx cannot read the edited file's content, the edit is held for your answer instead of refused.",
      "tier": "hard block"
    },
    {
      "id": "gate_defaults_write",
      "plain": "A change to Dryx's own preferences from inside an agent session (defaults write, or a write to Dryx's preference files).",
      "tier": "hard block"
    }
  ],
  "edges": {
    "plain": "The exact match patterns and limits behind each shape are not printed here. They are published as the fingerprint below, computed over the gate's own constants, so anyone can confirm that the gate on their Mac carries exactly the edges this page vouches for, without this page becoming the map.",
    "fingerprint": "sha256:a6738c9d223e15699913cbdc01c7b229415891e069858eadf35dc1b8d39990d9",
    "canonical_form": "json: sort_keys, separators (',',':'), ascii; keys rm_recursive_force, intrinsic_unconditional, rm_recursive, find_delete, script_delete, volume_erase, move_away, gate_self_markers, safe_root_prefixes, safe_root_exact, max_command_bytes, reparse_depth",
    "how_to_verify": "python3 scripts/check-floor-claims.py --print-fingerprint, in the Dryx repository at the tagged release, prints the fingerprint the gate constants produce; the same script in CI fails if this page and the gate disagree."
  },
  "ask_escalation": {
    "plain": "An operator question that cannot reach an operator never silently allows. When the harness has declared it will not prompt (bypass permissions), or has no way to ask, a question in these classes escalates to a refusal; a permission mode the gate does not recognise escalates the floor's own questions the same way. executable_config_write belongs to the company-policy layer of the gate, listed here because it shares the escalation rule; it is not a floor shape.",
    "classes": [
      "executable_config_write",
      "destructive_rm_unresolved",
      "destructive_move_recoverable"
    ]
  },
  "receipts": {
    "plain": "Every floor decision on deletes and moves writes a local record, including the ones the floor allows. It holds the harness, the permission mode, the shape, the tier that decided, the kind of place (never the place), the floor fingerprint, and the state of Dryx's signed per-device policy at that moment (present and verified, missing, stale, or unverifiable). Closed vocabularies, never the command, the path or the prompt. Other floor decisions record the shape and how the parse reached the verdict.",
    "why_no_content": "The record names the kind of thing that happened, never the thing itself. So a company can keep it, send it to its own log system, and hand it to an auditor or an insurer without ever holding a developer's commands, files or prompts. A record of the decisions that mattered is what a reviewer needs; a count of the rest shows the gate was there.",
    "parse_confidence_vocabulary": [
      "guard_confirmed",
      "guard_error",
      "candidate_error",
      "oversize",
      "reparse"
    ],
    "tier_vocabulary": [
      "in_project",
      "temp_tree",
      "single_file",
      "home_or_system",
      "named_path",
      "unresolvable",
      "whole_folder_move",
      "trash_empty",
      "gate_self",
      "volume_erase",
      "intrinsic"
    ],
    "target_category_vocabulary": [
      "home_itself",
      "home_top_level",
      "project_itself",
      "above_project",
      "inside_project",
      "outside_project",
      "temp_tree",
      "system",
      "volume",
      "unresolvable",
      "dryx_gate",
      "trash"
    ]
  },
  "policy_statements": [
    "A delete whose target the gate cannot resolve is asked about, or refused where no one can be asked, never passed.",
    "A delete that stays inside the agent's own project is treated as the operator's own cleanup and is allowed; a floor that refuses every in-project delete gets turned off within a week, and a floor that is off protects nobody. A target that is named by its full path, reaches above the project, or resolves to the home folder or one of its top-level folders is refused.",
    "A recoverable move of a whole folder outside the project, of the project itself, or of a repository is a question for the operator, not a refusal; emptying the Trash from an agent session is refused.",
    "Dryx's own files and the hook entry that runs it are not changed from inside an agent session; removal is the Dryx app's Withdraw, or Finder.",
    "The fork-bomb literal is refused even quoted or echoed; no sound downgrade exists.",
    "Oversized or unparseable commands carrying a candidate pattern keep the block or the question; the conservative posture is the verdict, and the record marks it. The size limit is part of the fingerprint.",
    "A command handed to a shell inside another command is checked the same way as the command itself, to a bound that is part of the fingerprint."
  ],
  "scope_notes": [
    "The floor is mode-blind: it blocks in Observe and Enforce alike, wherever the gate is armed. Turning Action Guard off is the only state without it.",
    "The company-policy layer of the gate, separate from this floor, operator-tunable and softenable in Observe, can also refuse named installs and executable-config writes. That layer is not this file; this file is only the floor.",
    "Where the gate cannot run at all (a Mac without Apple's Command Line Tools, so the system Python is only a stub), all hook legs fail open; Dryx counts and shows that state rather than hiding it. Where the gate file is missing, the hook refuses and the Dryx app restores the gate.",
    "Residues, stated: a delete written inside a script file or a heredoc is outside this floor's reach; tool-server calls and notebook edits pass outside Claude Code's matcher for the gate; a process outside the agent's session, running as the same user, is outside the floor. The coverage matrix says what covers each."
  ]
}
