{
  "name": "allocait-app/ai-trading-agent-rules — 1 hook",
  "slug": "source-hooks-4da51d43f1ba14124a616288",
  "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 1 hook declaration. Ran 72 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"
  ],
  "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/allocait-app/ai-trading-agent-rules",
  "documentation_url": "https://github.com/allocait-app/ai-trading-agent-rules",
  "commit": "bcee5e1df6553014472299fded305b9be06daf96",
  "tree_sha256": "b8d374245b4672db0ac9ad267be5e079a8ddb7892781a82c70bb6ee973e5f804",
  "file_sha256": {
    ".claude-plugin/marketplace.json": "f8fb97bf8b08eb9413304c96fc98d5a573e5101c2d43cf20ab776767347e0f9e",
    ".claude-plugin/plugin.json": "174d17dbefada42ec1d139802670778bb5701439f5f70064df5b60bb6fdd6fbc",
    ".github/CODEOWNERS": "27fa91d20bd1c91922a43c0f6ab6958e56ad0d30fb2351555ec9f3856c550fd3",
    ".github/SECURITY.md": "cac4f08ef6805795a590bbda26cb270e2f709481a1b3246d21fb0f7ba53fb8d9",
    ".github/dependabot.yml": "eada67e1b7f73d16a4c240ede6193c4852a2b0887e678a23dc7a3462810502e7",
    ".github/workflows/test.yml": "1cf734133d21725a278ee73d5d8caf01ba5c470a0866fb60fe535a3baa189b13",
    ".gitignore": "39ee2a94574d0885b5da641e182207b29194a1dee5e822afe14be3c1f280176a",
    "AGENTS.md": "311c967911d4cea2e7118425022a64d1ceec4faa3d5af708a40dd77f3a8aa4a8",
    "CLAUDE.md": "336cc4fbf19beaada7ccf9986414fa91851a8d7a07dfb3ccbe800a69eed0ab49",
    "LICENSE": "7c7102e3d4d98f1ce7ac4e6d023df97186f3451ee46b185ac0d51f56cd1016bd",
    "README.md": "9d7021d7e1c345ae501ea7bb80ab628d06040cfdbd48e419a8157c55a4da1eb1",
    "ai-trading-agent-rules.zip": "b9fcf647383485835641808f81d948bdf248781d56b6aed1875e5538ecf4afc6",
    "dev/book.test.mjs": "0cdef833a222acd57d2649e9e6b0135d2acb2db5d48128e36b90bd803c401727",
    "dev/fixtures/allocait-tools.json": "cfbc770e64a3fa7b685483eb60e7be4e2c538e66123d542f1294aba42f079577",
    "dev/fixtures/alpaca-positions.example.json": "89e13acec66222169ea3b76d13ce20c2a54cca841b8a012d009556d6266ed4d4",
    "dev/fixtures/alpaca-positions.options-shorts.example.json": "9a34256ee3b49c841f22dd6073b6ef4cc6d05539b53861dae03d3c85cb74e5cb",
    "dev/fixtures/alpaca-tools.json": "bfae6c1427b0bd7d5a4d72a8c1134fa153400a90d0582b64588ad8cce5bb096f",
    "dev/hook.test.mjs": "bfe3615db7fb2d323e397c372d71e10b88b8adf84a6e70fb671b2165ef453d24",
    "dev/plugin.test.mjs": "4e860b5fec1be56d7f03fabe7a2af5953cb151b945ef46e9c3af654d044c2db3",
    "dev/skill.test.mjs": "a608edce2b038081d75c3de8149db561d5e611ce2de3c85c2272deef6bc1dd2b",
    "dev/zip-skill.mjs": "617a9f2f6783b7077307e738302211cc97ab0e3521cb4dec6059a2eff0982f56",
    "docs/ALPACA.md": "028c64fdf5b4920c1364375f5349ea49c7ba9e5765d3e048e472b8d81d8f5812",
    "docs/HOOK.md": "f71a070b41c4abfda5d21c8e7db629e354b66f99d287971815d3f5f868c81a16",
    "docs/HOW-IT-WORKS.md": "454bd542cc6245784650887d2cbdd2f74b998279fab587768ca2608b1f529945",
    "docs/SCRIPT.md": "3011a3508495b84e845348655d6efb3d6189b1f1b2300782e503777a699d07ab",
    "docs/SETUP.md": "9063c9e564cde23856389daed5631ffe809454d42c6d788954435ec85e1bf7d8",
    "hooks/hooks.json": "9c79791eea14b47ea88c516c2c90ac8baee282f02ef51d93e25d6623c5c601d0",
    "hooks/presets/alpaca.json": "8c107769ac92529f81d83da2155fcacbce00c2150db730fd481f9d07d1cda7a7",
    "hooks/require-check.mjs": "69482159eaf4e46646df8e045a4a49cc4fe2dccf0bfcb73a32dd2bc1c24fc8ce",
    "hooks/settings.example.json": "cd857917f9f02fe9bb3069c6e06d3d13f9f87dc4a1df51b38400f26987f72adc",
    "images/brand/BRAND.md": "2d341438dbd0d8ad258fef739cfadeabb220f6056b8c9b05e86d30a50796680c",
    "images/brand/build.mjs": "798ec28490c897a7122374787a601802fccf7e149e9db88193103f80b46ddf07",
    "images/brand/icon-512.png": "89f1a529f15921f4c90a927410cf85ab589a639e1cfc9e81d980c95e9c5f8061",
    "images/brand/icon.svg": "6b54acf603df5263ead76dbde29d7a1aa74ef093c90dea828838c48a94cba454",
    "images/brand/lockup-dark.svg": "9ccde23c151fbe98c1188f6bde5f47051850388d0b16c1cade648bb45280f7ff",
    "images/brand/lockup.svg": "a3ea545eccf53a25f6298d5ea1934b2654159fdaa48700264f89d5320bc1cf4f",
    "images/brand/render.mjs": "b9f3c28c8d94c1df4a7342cd95bddd86f71bea199c0a482a38bd2a0f53e329d5",
    "images/brand/social-preview.png": "cca012a1f87f83255218668c88573ed61f6b6ad9f419ff87c3ff560222ac19b5",
    "images/brand/social-preview.svg": "9d95f4ea409a12f5b04f74e2c529b9b03f2d5253eb452b89ae887dd61b847d0d",
    "images/brand/tile.svg": "49a6550303876c97bf888e17b47bea5e72aecee48e42dddde8a0f77c06443115",
    "images/flow-dark.svg": "d8d215b6c127871be9ba1d34a4407c9adfc1a682c57ede5a15c72431028f1678",
    "images/flow.svg": "4c3b6abbc153ba06e25dc4d99260fb67beaaab0539af7409480a1933c630368d",
    "images/hero-dark.svg": "debeaff5187aafef487150219977b692edcab218ec684f05f08a95db4848cca7",
    "images/hero.svg": "77b174849e648cdb54f4a1df1aa95ba6e997a46207fb10da56466e6c49ef9570",
    "package.json": "aaa71a750b383f7ad72a684134c26a6a5b301dd5c177c755fdad780fe684756b",
    "script/bot.mjs": "e7fa37ff2011850c21e5b9ae6710860243be21eba92613e6e4ef28fe0ae483fe",
    "script/check.mjs": "b85b3fe6eeb3ab2acabd13ad30c2f5e07f657c3d9aaba7fd95f6ceae6ca705a3",
    "script/example.env": "b4622ea5fbf8eb70c8f11806ec9cefd6582534b8ded7036186677841057da2b3",
    "script/lib/allocait.mjs": "2c9b17537511f44a6af64770b26e28db76563f845461566b3f0946b47cf2f994",
    "script/lib/alpaca.mjs": "1c64653a5b6d6d6534e94df24d6b7d573580f011e36b9f30c053996dbf2edc9c",
    "script/lib/http.mjs": "b23bafd506ef9e6e177787406b17d8dc584a6224449865a146e7a5db1b6051c9",
    "script/lib/loop.mjs": "ecc24c346893483e51d2f2d30d7257bfa6ef613225af0d47da24422c68a086be",
    "script/lib/prices.mjs": "05247cf25e77799f7d7b95bf7562d14209956922e4672540a628e5cabae26f09",
    "script/order.example.json": "128bd2369f25b449149e8f857619ee698889ad603308480bcb9a5b1fc894be9e",
    "script/prices.example.json": "08b4b5228065ccb7e7bb63bb86edb863fe56897e527c67977fd656401716ee18",
    "script/python/allocait.py": "af228d25ddd7efbd632b6024554f8e462f7c2492169695b87cc41f1362b3ea95",
    "script/python/bot.py": "c3b0f285dda20c324c5102c4dc3df2f9b73f76c1d91f4cdfd6b7e7ad107e1cd9",
    "script/python/check.py": "f2428b74c4b842f9436bc7d847baff780de0183fdc4bc86352341b2006ead60f",
    "script/python/strategy.py": "adb646e674bafb0a9cc21a1de608391c8f8bb4ca01d5c7b92b4e585ee87ea742",
    "script/python/test_allocait.py": "633d55a5951a5411e26bc789980cf89f3c62249f46fe48632d661e7f661da385",
    "script/result.example.json": "08d4103b32bc20ae649d914f9b370bcfac095b8e6883a54de7f5e4c2383e4a62",
    "script/strategy.mjs": "bd35726f1d44075d561d706bd550b03f4ef24f38b9ee3774097a699f9ffcb250",
    "script/test/example.test.mjs": "313cde1cc60da7d8180c49a20887c701a88ddc2497eb997f5da3239270a0b51f",
    "script/tool.json": "a78a3fe9627446efc16d9b320a0d2e0190428a8d9c3220e192f1bb95bd169659",
    "skills/ai-trading-agent-rules/OPTIONS-SHORTS.md": "c4001b9b13cc275cef446c4a4dbf284cc76e1d48439a02e46f5cb125ef216ef6",
    "skills/ai-trading-agent-rules/SKILL.md": "7244512d5d907e2b5ef671fc2bb735d8d75a80d0ac508484d021141c87fd3e97",
    "skills/ai-trading-agent-rules/book.mjs": "415ead8715c39ba84040f04359947b831486057d07b8e10e345ef283d53ca182"
  },
  "lockfiles": [
    "LOCK.json"
  ],
  "utc_date": "2026-11-15T06:15:13Z",
  "source_date": "2026-11-15",
  "discovered_date": "2026-11-15",
  "retested_date": "2026-11-15",
  "reviewed_date": "2026-11-15",
  "published_date": "2026-11-15",
  "modified_date": "2026-11-15",
  "reviewer": "machine pipeline",
  "harness_version": "toolwitness harness at commit 59be5eef48ee818fc15ae5350117fd7c9fb19b7d",
  "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 72 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-15T06:15:13Z: pinned source inspection"
  ],
  "application": {
    "name": "allocait-app/ai-trading-agent-rules — 1 hook",
    "softwareVersion": "bcee5e1df6553014472299fded305b9be06daf96",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Not exercised"
  },
  "artifacts": {
    "transcript": "Ran 72 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/ai-trading-agent-rules/SKILL.md\",\n        \"name\": \"ai-trading-agent-rules\",\n        \"description\": \"Use the Alpaca Paper Trading connector with the Allocait connector. Mirrors the Alpaca paper account into Allocait, checks one order against the owner's own Allocait rules before it is placed, and reports where an Alpaca account stands with no writes. Use when the owner names an Alpaca order, position or account together with their Allocait rules or ranges.\",\n        \"files\": {\n          \"skills/ai-trading-agent-rules/OPTIONS-SHORTS.md\": \"c4001b9b13cc275cef446c4a4dbf284cc76e1d48439a02e46f5cb125ef216ef6\",\n          \"skills/ai-trading-agent-rules/SKILL.md\": \"7244512d5d907e2b5ef671fc2bb735d8d75a80d0ac508484d021141c87fd3e97\",\n          \"skills/ai-trading-agent-rules/book.mjs\": \"415ead8715c39ba84040f04359947b831486057d07b8e10e345ef283d53ca182\"\n        }\n      }\n    ],\n    \"hooks\": [\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"9c79791eea14b47ea88c516c2c90ac8baee282f02ef51d93e25d6623c5c601d0\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"(^|__)(place_[a-z_]+|close_position|close_all_positions|replace_order_by_id|exercise_options_position|do_not_exercise_options_position|update_account_config)$\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/require-check.mjs\\\"\",\n          \"timeout\": 30,\n          \"onFailure\": \"block\"\n        },\n        \"executed\": false\n      }\n    ],\n    \"executions\": []\n  }\n}"
  },
  "review_input": {
    "identity_artifact": "identity.json",
    "evidence_sha256": {
      "LOCK.json": "a1534a3e7766871b49b2c0e7f237d9b0a7f60e6e938d13943781b545d3a18887",
      "commands.json": "f24b337d23921f84d15dea58b05a0c90beaa2f233ff8cac24d72d92bfe69e914",
      "complete.json": "91b504b43905fdc009504d516c45eea831f39a1995b9e7d69987c9756c936d6f",
      "identity.json": "c4910846af472ab1c7a47032c8ca78007047108d5b04cca48bfaeab3c157499c",
      "listing.json": "c55d867855be3f7f68789c5912a645344768672a1cb08e1830414691829f1628",
      "selection.json": "2dbdf9001efbbec09debdb7bda9d92ccf0004df73bc6c449d5a27b264ab775d3"
    },
    "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 1 hook declaration. Ran 72 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",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      }
    ]
  },
  "review": {
    "kind": "machine-checked",
    "date": "2026-11-15",
    "reviewed_sha256": "9343cdd2229b3394c7003073abd1b8ac1bbebe7d556b3a238d307688e7871132",
    "gates": "4288deb3a096a64a7b51bf299f44d55b3b646a5689accba8138a2a8e5cc41482",
    "codex": "3891d65756cbce9ffe73dd04cf83b77bd8a33832074ac5b5c9824e3888100a24",
    "grok": "73d56bf6047e5862b8805428b168e7ec96c133391df1069e911e7a929e9e2423",
    "summary": "Deterministic gates passed; every claim rebuilt from evidence with a reviewed template; Grok reported no standing refutation."
  }
}
