{
  "name": "bondie/agent-harness — 10 hooks",
  "slug": "source-hooks-066cf7cbcfc3a0e0480c0114",
  "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 10 hook declarations. Ran 74 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): PreToolUse; PreToolUse; PreToolUse; PreToolUse; PreToolUse; PostToolUse; SubagentStop; SubagentStop; SubagentStop; SubagentStop"
  ],
  "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/bondie/agent-harness",
  "documentation_url": "https://github.com/bondie/agent-harness",
  "commit": "cc3e039e698f87099f53b05ac941441cac2264f4",
  "tree_sha256": "e695095949a21b5c357137f6dfed4798b23cd37332a50229eb93d31432982d35",
  "file_sha256": {
    ".claude-plugin/marketplace.json": "6f01e62d0417ea232d74e4ccf3bfdeb7ff3a986f50e0bc0683883f96d6ad756f",
    ".claude-plugin/plugin.json": "bc2e6113a8fd15169b9626c49ae14d3595fe626274115035e649dd22df20a8d2",
    ".github/dependabot.yml": "b92fc88a9a92e0141f56281266bb7d232f1f9f493a337e1da04a3dff9d2fdba4",
    ".github/workflows/ci.yml": "5066c9f5153b3288a1ede1dc85626ccd87416418b78e4225b191df0b1ef98d06",
    ".gitignore": "816d343e87b1ccc63fe2a248ddbeed19b9bdf60998a77527ee1b83865879f0a7",
    ".mcp.json": "a525b8e0cb66ef695a62b4b5d73d960035f6fc98d49d3d8dd0406809a5eafbac",
    ".pre-commit-config.yaml": "71b12c0cdd8d55cd930049bebc3127ee9cd1237ae220ef224d9a017aa2d69d9e",
    ".python-version": "7b55f8e67b5623c4bef3fa691288da9437d79d3aba156de48d481db32ac7d16d",
    "CLAUDE.md": "ace2bec83908630f75d254e2b5e5d60de92df5f94b3e481e53ea9c7e208a7a5a",
    "LICENSE": "8327a84cbcb4f8e739ec1464e1001fd24a047ba64a16e8d45ca624913a7fe3a6",
    "README.md": "abd446619e426c1217a5b89fe70c1f02440790c7103bd3b70a7a2ccf0e0e765f",
    "agents/estimator.md": "b69fbebd196eb603444ebc9e7d84fc33a327d3073b656243423fd21937047156",
    "agents/implementer.md": "e64f4c7a07ff1802c837fa46c1f1e6486df5d99e3dfd501965669939189ad3b5",
    "agents/jira-analyst.md": "be8e880ecdfb7c3844aa8324b17461da9efb45311101a18d2b05dfb58b3eade0",
    "agents/reviewer-qa.md": "05711539fdcabfeb340cad3203dbc493e6d6aee3bbab9b4bc7a6d6ff434f48d7",
    "docs/shared-memory.md": "6efc445b70f7c1e6535e1e72760bfc9d4542bd62174de72f09b5ce90d4dfff18",
    "examples/agent-harness.json": "e93713616af69dfed335ef428658fb1413c04e4511369df41a27a428c9b7b7eb",
    "examples/settings.json": "839ced3776ba788471bf2ba3b99743a5cce7db8a27fc2d3dc61e18bf5d58ca04",
    "hooks/estimate_check.py": "3af8ddcd5c0256e082cdf45ca94737354410057ee46cd0e65a5637e13ece1906",
    "hooks/guard_memory_writes.py": "32b8d56086d8b8978efa5482ca6db35ef4a19ec4c2f90d46440d4adab4e617b7",
    "hooks/guard_shell.py": "5fa362bdea371d9d0eae90661ef9a5309609766af6180951e89d02706e7acb3f",
    "hooks/guard_tracker_writes.py": "bd01f822f6dbacf2d4fd5d35d41cd6aecd62e25ac6c33c7b090e2bb93f082489",
    "hooks/hooks.json": "e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda",
    "hooks/log_agent_runs.py": "70afca8257eada5fae9ddc636ba642f93b9bb5c05ef0bb6065260dc1f1ab111a",
    "hooks/quality_gate.py": "acec91067908c5ccc89ebf267ea47cee4005769e0871e4521b9674a550a5e6d9",
    "hooks/run_tests.py": "d959e4b77ba38a0bca17bfcbc70e338e1dacf9085e1b01e6303b4d43cd3f3b1b",
    "hooks/save_artifacts.py": "34f9475924c8f782a99c459f8785a4ef31ef18f2714c166c4002caa0352bb21e",
    "pyproject.toml": "1c7234351bdc45a4a0b13a18488d9ad471874143fb24241db268f2f1cf13a14e",
    "results/2026-backtest.md": "0c84c548dadce3c11ab05d9200e50e8563c7a11600a1de1d22708d130b7b98a0",
    "skills/retro/SKILL.md": "4ccdcab402031f7dd15af53f29bc3d088462ee1fe741afd67a69c43f7cd27efe",
    "skills/stats/SKILL.md": "f587074376b6e89b4e3f82f5941c7ec43210c3d4961b8b1a13909a1a791abaec",
    "skills/ticket/SKILL.md": "c02e66a553051ef4953dd44b610bc4cbf733e3117172c34603726bce3a48193c",
    "src/agent_harness/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "src/agent_harness/artifacts.py": "7afd3e47b0eaa355b6cf001c45581c3187e39a23404b1e9adac0679a99d7ef0d",
    "src/agent_harness/baselines.py": "ff9379cf0cb0239ecdabd5d1de1df9cbe7aff9d99fc68efeee03c5c6b1cf18fe",
    "src/agent_harness/cli.py": "506e38895269e8bb5f1154023059dedb8bb3b2e94b72624ea2eef522924e6ec1",
    "src/agent_harness/dataset.py": "e4c7accd53581dd98ef3a702d5b1b80a8907ebe0f2ad9352d30ce57abc9f8403",
    "src/agent_harness/estimate_check.py": "3af8ddcd5c0256e082cdf45ca94737354410057ee46cd0e65a5637e13ece1906",
    "src/agent_harness/gitlog.py": "163eda4ae1759ff4ee1cd5ca3b4b7776af199c14e25a7fdf9f1b9d99776a3e10",
    "src/agent_harness/llm.py": "f2d3121078f39ff2a2b6b51b7d6de2a160b15503056b2ab7522ac54e06e9f444",
    "src/agent_harness/memory.py": "11acdc5dec5ccc872493fe0bbbbea29d660f31ba9d48500abf17df2c3f51d8d8",
    "src/agent_harness/metrics.py": "08bbdf0967040774d471d6cae4d8da604537dbbf5941eea6e21001c6526c46e8",
    "src/agent_harness/prospective.py": "c18d19c3f56adcdadfa489a6b58ed23f51d91ac47d9babc2a23b84b6d9d36409",
    "src/agent_harness/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "src/agent_harness/report.py": "e4acef8ab5f4ca727ba33bdaee5f931577644fa5a1bc77175909be94d95ee6fb",
    "src/agent_harness/runner.py": "37cd883d823de52e4a1ae7ed0835ed8e1bed5798f8aaccbcaab4de83afab0d13",
    "src/agent_harness/team.py": "fbb15fd3fd009b4ba3693427e422e52030e26ef6ad9c173c243fa3e1f67d748e",
    "tests/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "tests/conftest.py": "f7d910bdc57404cba5a3e0734c18a7d9be39241c18945810cc40adba134e9a4c",
    "tests/js/run_workflow.mjs": "37f2f51e9e675b3d9206d2211f1a14761655ed28d5c929cbe46ccff4878aa7c7",
    "tests/test_artifacts.py": "c5caf2a13fb0f52d0f0fdb83918b7588eb19c131d12abc4f43ea5cb21c0f1508",
    "tests/test_baselines.py": "692a79becdec07133e272decc4375af3e1d624b8478c2a533428c38c21da8e53",
    "tests/test_estimate_check.py": "fc4023c57a0787442944c9d8521b987e42642cf03efb6a9e030950df9bb4d6c6",
    "tests/test_gitlog.py": "28f34153c50c047f04990a796025a6c8f87f96c268932e0f76972b5661599b68",
    "tests/test_guard_shell.py": "1acd710968cb98a76b0af3a44bfa7213c9d5c7d4e88b3d58c9da784edbcefccf",
    "tests/test_harness_home.py": "5dfc300309fc25dee837ccb19d6347d819d96a79e3719b739c27b89a4a1b5377",
    "tests/test_hooks.py": "55c77be569ef0d627f9b3533dcd63b0c4adaadf724ee55292cca031cde2ddde4",
    "tests/test_llm.py": "77ba84766e6376ef8bfde320c9f5c73391d191c06f6afa235449f1f1b07dae93",
    "tests/test_memory.py": "ba8e5cd71e51cfd3e554408bb701fe48af826d4fe0d0f5eb793d7b44d370b515",
    "tests/test_metrics.py": "54f66711b717f52df4dfc6f0178ce4c84c6669c7be107095abaeab2919a40fc7",
    "tests/test_prospective.py": "1ff97d5dec08ae59cd55ea5255470955d24ad2fb49551093c9386f476794ae08",
    "tests/test_quality_gate.py": "3517d3e14777a6474187f996cf01d5e9276873604fa3c8b6238d10337c1a3014",
    "tests/test_runner_and_report.py": "4199930aad97ffe9d79f25166df906b58096b5a5c9f2f5ab1b99b71d7425f1f0",
    "tests/test_shared_constants.py": "d2ea6c3dfdd8bd7e1eab74f7725d53b686bed83dc281f578cb8fa81f195a55be",
    "tests/test_team.py": "fbf3b3ea08396373820e88691029ae50e4673cb1130a48c8351fb27233f3a843",
    "tests/test_team_cli.py": "e70d6f2551d3a9423e3fbbecc56ac47cbda98f108ae87e991be12da1fe35fbd1",
    "tests/test_workflows.py": "2ef47fffb5cbddd2c03c32fadfa0c3745fee8aefad31156a8f39b605225e258f",
    "uv.lock": "b36d0d30d69793e5126d7a4e3dfd3f87145536853d2e736729a85fc49eadc918",
    "workflows/upgrade-impact.js": "3ae695d744ebc74ce06af463919247e1a516489dcb40139bfd2c95b9d2708cf5"
  },
  "lockfiles": [
    "LOCK.json"
  ],
  "utc_date": "2026-11-08T18:44:06Z",
  "source_date": "2026-11-06",
  "discovered_date": "2026-11-06",
  "retested_date": "2026-11-08",
  "reviewed_date": "2026-11-08",
  "published_date": "2026-11-08",
  "modified_date": "2026-11-08",
  "reviewer": "machine pipeline",
  "harness_version": "toolwitness harness at commit 9828b3719360b241f96900799eddefe268b6cfde",
  "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 74 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-08T18:44:06Z: pinned source inspection"
  ],
  "application": {
    "name": "bondie/agent-harness — 10 hooks",
    "softwareVersion": "cc3e039e698f87099f53b05ac941441cac2264f4",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Not exercised"
  },
  "artifacts": {
    "transcript": "Ran 74 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/retro/SKILL.md\",\n        \"name\": \"retro\",\n        \"description\": \"After a ticket is done, compare the estimate and the plan with what actually happened, have each agent of the team propose lessons for its memory and write only the ones the person approves, so the next estimate, plan, implementation and review get better. Use when the person asks for a retro or a lessons-learned pass on a ticket, e.g. \\\"/agent-harness:retro SHOP-412\\\", or when the ticket playbook offers it at the end.\",\n        \"files\": {\n          \"skills/retro/SKILL.md\": \"4ccdcab402031f7dd15af53f29bc3d088462ee1fe741afd67a69c43f7cd27efe\"\n        }\n      },\n      {\n        \"path\": \"skills/stats/SKILL.md\",\n        \"name\": \"stats\",\n        \"description\": \"Show how efficient the subagents are, from the run log the plugin writes after every finished subagent run - per agent the runs, typical duration, API requests, tool calls and tokens, and how the last week compares with the week before. Use when the person asks how the agents perform, whether they got faster or cheaper, or before and after changing an agent, e.g. \\\"/agent-harness:stats\\\".\",\n        \"files\": {\n          \"skills/stats/SKILL.md\": \"f587074376b6e89b4e3f82f5941c7ec43210c3d4961b8b1a13909a1a791abaec\"\n        }\n      },\n      {\n        \"path\": \"skills/ticket/SKILL.md\",\n        \"name\": \"ticket\",\n        \"description\": \"Work a tracker ticket end to end with the agent team - analyse, estimate, implement, review - with a person approving the estimate before any code is written and every write to the tracker. Use when the user asks to work on, take over, estimate or implement a ticket by its key, e.g. \\\"/agent-harness:ticket SHOP-412\\\".\",\n        \"files\": {\n          \"skills/ticket/SKILL.md\": \"c02e66a553051ef4953dd44b610bc4cbf733e3117172c34603726bce3a48193c\"\n        }\n      }\n    ],\n    \"hooks\": [\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"mcp__.*\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/guard_tracker_writes.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"Bash\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/guard_shell.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"Write|Edit|MultiEdit|NotebookEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/guard_memory_writes.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"SubagentHandback\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/quality_gate.py\\\"\",\n          \"timeout\": 600\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"SubagentHandback\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/estimate_check.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": \"Edit|Write|MultiEdit\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/run_tests.py\\\"\",\n          \"timeout\": 600\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"SubagentStop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/log_agent_runs.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"SubagentStop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/save_artifacts.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"SubagentStop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/quality_gate.py\\\"\",\n          \"timeout\": 600\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"e391fdf5f09b9c39f4cc662436451e5160f9b6775019e03a87a9318a5a442eda\",\n        \"event\": \"SubagentStop\",\n        \"matcher\": \"(^|:)estimator$\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"python3 \\\"${CLAUDE_PLUGIN_ROOT}/hooks/estimate_check.py\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      }\n    ],\n    \"executions\": []\n  }\n}"
  },
  "review_input": {
    "identity_artifact": "identity.json",
    "evidence_sha256": {
      "LOCK.json": "e992958575b900cc8dd5a2082b6bcf2f88644d310f36755416311ba74620d4e9",
      "commands.json": "326d94dd7e157246997933df0a9878e3a3f395bfb62d30b218db25242adf0b1a",
      "complete.json": "91b504b43905fdc009504d516c45eea831f39a1995b9e7d69987c9756c936d6f",
      "identity.json": "ac9683b1f59cce919e5146d994305e097f25193b9032c2deeb034c8e9b40d136",
      "listing.json": "bceecea35823626fc438784e5c2af3fce7729545e45e5f64a78c39a163a5221c",
      "selection.json": "ed2110916d1e37e96fb9fc2d082342d9ac2ee3f2e7951e9b8391fe6a2a8ec8c0"
    },
    "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 10 hook declarations. Ran 74 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): PreToolUse; PreToolUse; PreToolUse; PreToolUse; PreToolUse; PostToolUse; SubagentStop; SubagentStop; SubagentStop; SubagentStop",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      }
    ]
  },
  "review": {
    "kind": "machine-checked",
    "date": "2026-11-08",
    "reviewed_sha256": "377c3685f0d6caa9b89c3c8db6bb554873c726f6cf98c6e0541d4e6dde3cd1c5",
    "gates": "660d5951198b77b6bd2a076418cb6d503f92b6023713b24ea50816bdfcb8f5a6",
    "codex": "ef62178c8b0177a7d5411c2ef179bb51bff724305fe2cd2e66e2390a3fb352aa",
    "grok": "ae347373dcab0aa95bca4233063bb930ad2a8dfbd11b42e52e71e446d943150d",
    "summary": "Deterministic gates passed; every claim rebuilt from evidence with a reviewed template; Grok reported no standing refutation."
  }
}
