{
  "name": "alizici/claude-code-guardrails — 16 hooks",
  "slug": "source-hooks-2ccce10c6f31346c9dc298be",
  "type": "hooks",
  "category": "developer-tools",
  "example": false,
  "evidence_state": "pinned_source_listing",
  "stamp": "Pinned source listing — machine-checked",
  "summary": "Pinned source declarations and file hashes were listed.",
  "outcome": "Listed 16 hook declarations. Ran 39 git commands; each one's exit status and output hash is in commands.json. Scope: acquisition and static inspection.",
  "rule_results": [
    "The retained source tree matches its acquisition manifest.",
    "Declared hook names (listing.json): UserPromptSubmit; UserPromptSubmit; PreToolUse; PreToolUse; PostToolUse; PostToolUse; Stop; Stop; UserPromptSubmit; UserPromptSubmit; PreToolUse; PreToolUse; PostToolUse; PostToolUse; Stop; Stop"
  ],
  "task": "What declarations and files are present in this pinned source?",
  "setup": "Git blob acquisition followed by static source inspection.",
  "limitations": "Scope: acquisition and static inspection. Command results: commands.json.",
  "source_url": "https://github.com/alizici/claude-code-guardrails",
  "documentation_url": "https://github.com/alizici/claude-code-guardrails",
  "commit": "cdfb395c109e696f5c4383371f8a39835e3b6cfa",
  "tree_sha256": "c9f9a496666cf49b6f4dedb0f6401ce0f75c60926e6ca38be327bc32ca539ba6",
  "file_sha256": {
    ".claude/settings.json": "7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966",
    ".claude-plugin/marketplace.json": "ec53e2ffdd0b84a8aad83496a6ee8928634fe7fd9a4125214eb052f41705c108",
    ".claude-plugin/plugin.json": "bb80a7660ff4f321ee062b5a610105640eb7d5e517eec3a876bf5b4c61616c82",
    ".gitignore": "5e4ee01131418e344b50575a6f801ddaa302826c7eceb312d6e986e5ee9f8277",
    "LICENSE": "8afdad66012911d445181f6d375078d18d8cd4057bc75003f7750a4ac38919d6",
    "README.md": "cc6f797b17b5e9c00aa2f614f5fc4d284c42c8564439141d9e7bce90d7f25f17",
    "agents/card-auditor.md": "68d6703c5d2a097138bd135c9aa9f735cac7b6f9df1b3ba455ab1b770e6b13ff",
    "agents/implementer.md": "3b084942f98f36a365569ab2387bf8ac8b1d86c4e08339f0f59cef03ad90c16e",
    "agents/reviewer.md": "94cf9e9347791f595ae710e2a292c9b0f8332afa6c17b27977a9bf2b673657fa",
    "agents/test-writer.md": "1d41561d44323df632477f014c6b51078e2d5d29e960af079bfdd12af734939c",
    "bin/guardrails-check": "0e13d24349b1b27f5dfd5023d6c6afbee439196d0f89bc6987737f8f8e921427",
    "bin/guardrails-deletion": "b193d2ee97190afc0de9574d4f1648abd3546379d5ce2c9e1fda183b121fdaa6",
    "bin/guardrails-init": "cd8eb117fbba315f9be82c203a08126d6905080a661323f6342fd81201ec7b59",
    "bin/guardrails-shield": "abfa48063206c9bcfda5c893af26e3cbe5172b2dc00a0a38bb9360bc71df6186",
    "docs/SHIELD_LOG.md": "c2e44558ae6767269626c8fbc8c0120e48e21bb678f8779d2875407767559b2b",
    "examples/demo/src/pricing.py": "f32908f65f3e810b0eeea3beeb64b4fa325b2444d6b3a90640cd0203214e3190",
    "examples/demo/tests/test_pricing.py": "bf7f0572e586f54ee5062620cdd4d189fa1ee601180ef1319f76633a90218539",
    "guardrails/_paths.py": "2b6b99389fbec8cf571f67ea023977b64d9bd9f2f4075542a92dfc3d7b0b9e34",
    "guardrails/deletion_guard.py": "27b62a98f0bcf32a3ee008dde0c6b3b91ac894249c960167787e740d91df3ec9",
    "guardrails/guard.py": "1df7739001153a0dff5baeb2764b585d0ee33f4213ca9d5a11fe002018cfa6b5",
    "guardrails/init.py": "fe8bfb408c88e702f2fa6385dc0b284cd2616eff1a4a673c7e82ff3e74a952b0",
    "guardrails/install_git_hooks.sh": "b0cb01d502db6be709a1584f03c0959de22d51069857e03560b44e0d5225ac7d",
    "guardrails/shield.py": "d0e1bb594340b1548caff54b49b096e4af78f27bff11f7ece06841ebf7d34107",
    "guardrails.json": "63805ece463ecaaa0f66206adc74b5818ff02bb1884b5b2eaafbf596de77bacf",
    "hooks/hooks.json": "7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9",
    "shield.json": "83b8c7764521f70b12f0a0fc8fb68db2c60d8e1f9c4a5b9f5248c3b3886a5b27",
    "skills/check/SKILL.md": "3cfd7b255293a6bf001ffd6852d89c65181d3797070b8be390b903ab1a6e9fc4",
    "skills/init/SKILL.md": "c3cdb7b9b65b55569140f5f6080bda435b7f3d1779474cd1d94c3a64f4826360",
    "skills/lock/SKILL.md": "2ff9d3b4a979fd90422c47f0b317ef1e9600d994cd4b1e06496c55101c6fca20",
    "tests/helpers.py": "dd327e24fd3987a85b8189252b2997e05720dda8533f7f71b10e4beb25898c1b",
    "tests/test_deletion_guard.py": "758ed37a25a4a249bceaf3eccf4e792ca098d2fe190e208c0a76e9a8bc0633ba",
    "tests/test_guard.py": "c0f3205f2f05313a5b82cc44a32fb61721fe88662fde3779d0a10e1168ed5f50",
    "tests/test_plugin.py": "7968935a21b261341d8c75a742839107d40de634c29c98f8f57c95e6e61181da",
    "tests/test_shield.py": "31ec0c05b44e79d6f647866b03719e14bf12b3b52b9912fb695278711be2541d"
  },
  "lockfiles": [
    "LOCK.json"
  ],
  "utc_date": "2026-11-01T12:11:03Z",
  "source_date": "2026-11-01",
  "discovered_date": "2026-11-01",
  "retested_date": "2026-11-01",
  "reviewed_date": "2026-11-01",
  "published_date": "2026-11-01",
  "modified_date": "2026-11-01",
  "reviewer": "machine pipeline",
  "harness_version": "toolwitness harness at commit 82d663425c39da1658470d48c7b1bbc7cf3a597d",
  "claude_code_version": "Not applicable: static source inspection (commands.json).",
  "model_id": "Not applicable: static source inspection (commands.json).",
  "scanner_version": "Not applicable: static source inspection.",
  "rulepack_version": "Not applicable: static source inspection.",
  "agents": [],
  "disclaimer": "This record lists declarations and file hashes from a pinned source tree. Git command results from acquisition and static inspection are retained in commands.json. Scope: acquisition and static inspection. It is not a security or quality verdict. Changed bytes are outside this record.",
  "commands": [
    "Ran 39 git commands; each one's exit status and output hash is in commands.json. Scope: acquisition and static inspection."
  ],
  "prompt_list": [
    "Not applicable: static source inspection (commands.json)."
  ],
  "history": [
    "2026-11-01T12:11:03Z: pinned source inspection"
  ],
  "application": {
    "name": "alizici/claude-code-guardrails — 16 hooks",
    "softwareVersion": "cdfb395c109e696f5c4383371f8a39835e3b6cfa",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Not exercised"
  },
  "artifacts": {
    "transcript": "Ran 39 git commands; each one's exit status and output hash is in commands.json. Scope: acquisition and static inspection.",
    "sinkhole_log": "Not applicable: static source inspection (commands.json).",
    "canary_log": "Not applicable: static source inspection (commands.json).",
    "scanner_output": "Not applicable: static source inspection (commands.json).",
    "normalized_text": "{\n  \"listing\": {\n    \"skills\": [\n      {\n        \"path\": \"skills/check/SKILL.md\",\n        \"name\": \"check\",\n        \"description\": \"Check that code-guardrails is set up correctly in the current project and explain what it would do. Validates guardrails.json, runs the deletion guard's self-test, lists the code shield's locks, and answers \\\"would the guard allow writing this file / running this command?\\\". Use when the user asks whether the guardrails work, why something was blocked, or what a rule would do.\",\n        \"files\": {\n          \"skills/check/SKILL.md\": \"3cfd7b255293a6bf001ffd6852d89c65181d3797070b8be390b903ab1a6e9fc4\"\n        }\n      },\n      {\n        \"path\": \"skills/init/SKILL.md\",\n        \"name\": \"init\",\n        \"description\": \"Set up code-guardrails in the current project. Creates guardrails.json and shield.json for the detected stack (Flutter/Dart, Python, Node, Swift) and installs the code shield's git hooks. Use when the user asks to set up, enable, install or initialize the guardrails, the guard hooks or the code shield in a project.\",\n        \"files\": {\n          \"skills/init/SKILL.md\": \"c3cdb7b9b65b55569140f5f6080bda435b7f3d1779474cd1d94c3a64f4826360\"\n        }\n      },\n      {\n        \"path\": \"skills/lock/SKILL.md\",\n        \"name\": \"lock\",\n        \"description\": \"Lock a piece of critical code with the code shield so it can't change without the user's approval and passing tests. Use when the user asks to lock, protect, freeze or shield a function, rule, file or region (pricing and money rules, protocol encoders/decoders, deterministic math, security checks).\",\n        \"files\": {\n          \"skills/lock/SKILL.md\": \"2ff9d3b4a979fd90422c47f0b317ef1e9600d994cd4b1e06496c55101c6fca20\"\n        }\n      }\n    ],\n    \"hooks\": [\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"UserPromptSubmit\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/guard.py\\\" turn\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"UserPromptSubmit\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/deletion_guard.py\\\" turn\",\n          \"timeout\": 30\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"*\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/guard.py\\\" protect\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/deletion_guard.py\\\" before\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit|NotebookEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/guard.py\\\" record\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit|NotebookEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/deletion_guard.py\\\" after\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"Stop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/guard.py\\\" gates\",\n          \"timeout\": 600,\n          \"statusMessage\": \"Running end-of-turn gates\"\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \".claude/settings.json\",\n        \"sha256\": \"7e2a0d51c92e8ebf6d4f03024a1edfbf061099deabb15901b64b43f7b1b77966\",\n        \"event\": \"Stop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"$CLAUDE_PROJECT_DIR/guardrails/deletion_guard.py\\\" gate\",\n          \"timeout\": 60\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"UserPromptSubmit\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py\\\" turn\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"UserPromptSubmit\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py\\\" turn\",\n          \"timeout\": 30\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"*\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py\\\" protect\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py\\\" before\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit|NotebookEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py\\\" record\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit|NotebookEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py\\\" after\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"Stop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/guard.py\\\" gates\",\n          \"timeout\": 600,\n          \"statusMessage\": \"Running end-of-turn gates\"\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7deb89088a22d42b57262ff695cb1c4ddf54ffc2cfa1f08f8f447d64a266dea9\",\n        \"event\": \"Stop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/guardrails/deletion_guard.py\\\" gate\",\n          \"timeout\": 60\n        },\n        \"executed\": false\n      }\n    ],\n    \"executions\": []\n  }\n}"
  },
  "review_input": {
    "identity_artifact": "identity.json",
    "evidence_sha256": {
      "LOCK.json": "425d6a897e72d46ad360d017785e513e755cf7319fe15381abcc2cf9c314742c",
      "commands.json": "b578a28c1c250af274365401b268251502e61ae028d60a2217e2724343ba9030",
      "complete.json": "91b504b43905fdc009504d516c45eea831f39a1995b9e7d69987c9756c936d6f",
      "identity.json": "88d1d460040dba0918843151832494e58249a0d0f4d36c5c2e9ff1a158132b79",
      "listing.json": "bafbdb13f4c675c870e8e2ef22ff0916b276074b261c46a995460e1eb0384939",
      "selection.json": "0f185f31f2c0767c50e8c516b88949ff063d1fff92c29dfd1f296e65b2230105"
    },
    "claims": [
      {
        "id": "acquired",
        "field": "summary",
        "text": "Pinned source declarations and file hashes were listed.",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      },
      {
        "id": "listed",
        "field": "outcome",
        "text": "Listed 16 hook declarations. Ran 39 git commands; each one's exit status and output hash is in commands.json. Scope: acquisition and static inspection.",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      },
      {
        "id": "tree",
        "field": "rule_results.0",
        "text": "The retained source tree matches its acquisition manifest.",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      },
      {
        "id": "declared",
        "field": "rule_results.1",
        "text": "Declared hook names (listing.json): UserPromptSubmit; UserPromptSubmit; PreToolUse; PreToolUse; PostToolUse; PostToolUse; Stop; Stop; UserPromptSubmit; UserPromptSubmit; PreToolUse; PreToolUse; PostToolUse; PostToolUse; Stop; Stop",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      }
    ]
  },
  "review": {
    "kind": "machine-checked",
    "date": "2026-11-01",
    "reviewed_sha256": "a27035eaa22dd6a450e733088c70c5fe51f1526281b66d4e8d2e2eff6ab9bb38",
    "gates": "443a8f20470aea8d1d4ce78259fff962b110e0b308885041892efe1891595d9c",
    "codex": "01f325aa137428e4625074acf9ba460ed96cfb546e9cb72775e9dedb99678ebe",
    "grok": "a08bd9221d64afc3594a4f4662d3a3c4b5ca34d9f5e612c47660e1483453f9d0",
    "summary": "Deterministic gates passed; every claim rebuilt from evidence with a reviewed template; Grok reported no standing refutation."
  }
}
