{
  "name": "amalashenok/elephant-memory — 12 hooks",
  "slug": "source-hooks-ac75ac694172fce4f8a668ab",
  "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 12 hook declarations. Ran 47 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): SessionStart; SessionStart; SessionStart; SessionStart; SessionStart; UserPromptSubmit; PreToolUse; PostToolUse; Stop; SessionEnd; SessionEnd; SessionEnd"
  ],
  "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/amalashenok/elephant-memory",
  "documentation_url": "https://github.com/amalashenok/elephant-memory",
  "commit": "f97780f532ca8af708706484bde175cad015d32f",
  "tree_sha256": "a8336cdaa727eede3cfaeba7865b8a22d7950c37885974f6cf1104c89e7020c1",
  "file_sha256": {
    ".claude-plugin/marketplace.json": "80fbd6bad748f3ed4a108ab8cf095e818c7abccf8d52ddd2bb94c9c8dd53e52c",
    ".claude-plugin/plugin.json": "fc8e33a41cef1c5aa6dfe953726e5f0940e1fc4ac9fa0585732e7f8a0e55f338",
    ".gitattributes": "b91ac7789632649f8ea0e3f0ffb9aa9397335cad4e0f79ca70b2ab65ee0ed39c",
    ".github/workflows/tests.yml": "867f9a1f33a75aa37cb7e131196bb226ef556936216129aeac5c584c26b4a84b",
    ".gitignore": "f62381381c60724996e79e844106a8342b3ac1ef3d3dc0283f80a757ac8bfaf4",
    "LICENSE": "90077c642e32a032d18c7fa400bd6e4f312d16c6faa5740fbb9ab66f63e1232b",
    "README.md": "1e75b997d2c02056b8f0e7d28af1c8e8415852f92a551a2a296634dbc40fb669",
    "_config.yml": "a4e99d1daf8bd709dedbb15f03b3a945b3c698491d77beb215eb3a9538abc8a5",
    "docs/demo/answer.txt": "01b49690196e4ed2f49151623a361b4e93f6b42f1ffe6e5ee4c860d48fb7c68f",
    "docs/demo/make_demo_svg.py": "4ee58100c7c51bf51dd728f82a4e19279890e99785ecbd92348f7be51364158a",
    "docs/demo.svg": "cca82f71aa6ac733f26a572caa3ca2fa6867dee1ad158371fed270de9a76fcd9",
    "docs/memory-format.md": "08ae9f53dabb5e3580c65b21395c6eafc32f1acfddc9d6da1910b45af749d476",
    "examples/memory/MEMORY.md": "2f098d2eb3f26c9bf0244725ba9b4d80f4c46b614b113948cc292e92406aa647",
    "examples/memory/feedback_small_prs.md": "01e86769e46131d1cd74d76525c863f993fb4d6b4d23d84695486c48f9ae7408",
    "examples/memory/index_archive.md": "43d30b05234b406b190027acf063b9c80ba4e2cad05f514da9ce1623aea06b99",
    "examples/memory/project_checkout_timeout.md": "eeaf560b87576cd520d5cdfceb9372e603be8f805bbfa0ca57d9741315df3535",
    "examples/memory/project_search_reindex.md": "052bffb822c64addc9bdecba3159feeeb98508e191441d348de0df035aca0fcd",
    "examples/memory/reference_payments_sandbox.md": "54975adde71443f38e2116294cfc717a6453afd0a16a35a5db8c03d36e3e090a",
    "examples/memory/user_role.md": "7487184f3cd57146e1dd60cfe02b89beab476ffac7ec331c5dd019bc0f444c23",
    "google9dbb3e77b0b64626.html": "d0a0b422fe427b33ac43978d3f445f020374b0fcfacd567dfe7023a2979bc863",
    "hooks/active_tasks.mjs": "d8f761c5ed7c01d9c505ef2f986cc862ea81373f46b0bdf39544eac181343578",
    "hooks/episodic_memory.mjs": "47b0f90881edc7467cacbe3623b56c58b8274fd03947ca33baf568a4870fb9e3",
    "hooks/frontmatter.mjs": "38d39ab65e923ff18af1309cf755f5fc68446f7b823c3aefbe4752175b67181e",
    "hooks/hooks.json": "7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af",
    "hooks/journal.mjs": "02f07419c2aa736a04a0f3314eeff476cd983425ee8e874751c175019d7f138c",
    "hooks/lib.mjs": "f18a27986ecf2dc20e6a1512e4fde497ba533e72965d59cc496999da3ad8f3c4",
    "hooks/live_sessions.mjs": "f34da54e204d93645ae14b8bc7870e01412c2d9c13e8f1826bfd91649606e7fa",
    "hooks/memory_write_gate.mjs": "adbba13f3991fca8eb54e82c18d436809cd1054126d2d721fefb36971feba22e",
    "hooks/plugin_setup.mjs": "7f67dcd93795af32338db8eeac740e16f5caeb2eb15e5431918384f35f5bd93d",
    "hooks/session_resume_hint.mjs": "71ccc564c6874e9786819960b390a89b2a914a28e949de1ee32524e6d798b577",
    "hooks/session_snapshot.mjs": "278d377f94848f61f088f98833d515d511779dddf7591a8ad9fb9ef42e78068a",
    "install.mjs": "5f03ab8d3919008c8f0418c068fdfa4dc84303c3710dea156e81196e7b82afb0",
    "install.ps1": "2c052f8b1ce8a2f914b736fcb6f798bf670419400be24020052f7b7157a2e854",
    "install.sh": "f843dc145ce3847aa3dc32ccac5c5c5871507644378f2414f0f2fc7c30dbc57b",
    "memsearch/memsearch.ts": "a19a9451c8c9aa49311b2ce03a61f7e515f34eaaf4d352bf70dd6e4119a69207",
    "memsearch/package.json": "22121d524c64d00030d84c254c5f37886a1884bf97c96ac521877b1e3087aa7b",
    "memsearch/tsconfig.json": "ae7f4cabf002ec7c127671050fb3be9845dd13dc4ef4859cb0b4978c167d7e2e",
    "skills/sleep/SKILL.md": "0f7ecf3cda481913cb029a1faa1d662ea7d93d4bbfc14a28530120b4c20683e0",
    "skills/wrap/SKILL.md": "0e9f2ff5d75a5952d9c9806d396ae0f2e1b86f77707dc741e72177a20d232b61",
    "snippets/CLAUDE.md": "d848dbce7afa1059273fa49c2296e23ebd6f14c7a14167fec2edabfd4ed744eb",
    "tests/smoke.test.mjs": "bafea8b7c44215889ba761d98e0acdd334a65d4b50e3001d3e5da7b19f456149",
    "tools/elephant-memory.mjs": "b7edc9b4ae0ac4de9331d1755550d1d02dc062b25a647d290894b2c52abeeadc"
  },
  "lockfiles": [
    "LOCK.json"
  ],
  "utc_date": "2026-11-27T08:00:44Z",
  "source_date": "2026-11-27",
  "discovered_date": "2026-11-27",
  "retested_date": "2026-11-27",
  "reviewed_date": "2026-11-27",
  "published_date": "2026-11-27",
  "modified_date": "2026-11-27",
  "reviewer": "machine pipeline",
  "harness_version": "toolwitness harness at commit 2af5e8f14b9fc723e51bbf977c7e85e324078d6a",
  "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 47 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-27T08:00:44Z: pinned source inspection"
  ],
  "application": {
    "name": "amalashenok/elephant-memory — 12 hooks",
    "softwareVersion": "f97780f532ca8af708706484bde175cad015d32f",
    "applicationCategory": "DeveloperApplication",
    "operatingSystem": "Not exercised"
  },
  "artifacts": {
    "transcript": "Ran 47 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/sleep/SKILL.md\",\n        \"name\": \"sleep\",\n        \"description\": \"Sleep-time consolidation of project memory: tidies the memory notes (duplicates, stale facts, contradictions, broken links, index drift), mines the latest session transcript for durable facts, feedback and the user's own terms, checks that the session diary is complete, reconciles task notes against git, and regenerates REGISTRY.md. Use when the user types /sleep, asks to consolidate or tidy memory, or runs an end-of-day routine.\",\n        \"files\": {\n          \"skills/sleep/SKILL.md\": \"0f7ecf3cda481913cb029a1faa1d662ea7d93d4bbfc14a28530120b4c20683e0\"\n        }\n      },\n      {\n        \"path\": \"skills/wrap/SKILL.md\",\n        \"name\": \"wrap\",\n        \"description\": \"Wraps up the session before /clear: updates long-term memory (task notes, analyses, working rules) and saves a session summary to disk. After /clear a hook shows it at the start of the new session; a copy stays in the session diary and is searchable with memsearch. Use when the user types /wrap, asks to sum up or save the session before /clear, or before /clear in a long session.\",\n        \"files\": {\n          \"skills/wrap/SKILL.md\": \"0e9f2ff5d75a5952d9c9806d396ae0f2e1b86f77707dc741e72177a20d232b61\"\n        }\n      }\n    ],\n    \"hooks\": [\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionStart\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/plugin_setup.mjs\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionStart\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/session_resume_hint.mjs\\\"\",\n          \"timeout\": 20,\n          \"statusMessage\": \"Reading the last session snapshot\"\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionStart\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/episodic_memory.mjs\\\" recall\",\n          \"timeout\": 10,\n          \"statusMessage\": \"Recalling today and the last working day\"\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionStart\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/active_tasks.mjs\\\"\",\n          \"timeout\": 5,\n          \"statusMessage\": \"Collecting active tasks from memory\"\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionStart\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/live_sessions.mjs\\\" start\",\n          \"timeout\": 5\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"UserPromptSubmit\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/live_sessions.mjs\\\" prompt\",\n          \"timeout\": 5\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"PreToolUse\",\n        \"matcher\": \"Write|Edit|Bash\",\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/memory_write_gate.mjs\\\"\",\n          \"timeout\": 5\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"PostToolUse\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/live_sessions.mjs\\\" tool\",\n          \"timeout\": 5\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"Stop\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/session_snapshot.mjs\\\"\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionEnd\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/session_snapshot.mjs\\\"\",\n          \"timeout\": 20\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionEnd\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/episodic_memory.mjs\\\" end\",\n          \"timeout\": 10\n        },\n        \"executed\": false\n      },\n      {\n        \"path\": \"hooks/hooks.json\",\n        \"sha256\": \"7b10d1027155ff05c5842aac446b6346965de8699a2abfbaa16d96cf86b364af\",\n        \"event\": \"SessionEnd\",\n        \"matcher\": null,\n        \"declaration\": {\n          \"type\": \"command\",\n          \"command\": \"node \\\"${CLAUDE_PLUGIN_ROOT}/hooks/live_sessions.mjs\\\" end\",\n          \"timeout\": 5\n        },\n        \"executed\": false\n      }\n    ],\n    \"executions\": []\n  }\n}"
  },
  "review_input": {
    "identity_artifact": "identity.json",
    "evidence_sha256": {
      "LOCK.json": "f5c8af976185a42a054cb6d65d5121eac64846acdf66f3b95420175c847fa06a",
      "commands.json": "a59a4e0ab545ba4968b033a87217e2d59fccff89f10e541f5d9c3561aedd79bb",
      "complete.json": "91b504b43905fdc009504d516c45eea831f39a1995b9e7d69987c9756c936d6f",
      "identity.json": "2bb986f04d976f5d9756f491792c97e7a814d147b7f92b1624fe901b86204c1b",
      "listing.json": "3cb29270ed24326578a9ad84463aea9a047f4a7079aacff40156f5bacf916db4",
      "selection.json": "cdeda429b110b605709a8f1b025dc65fae49855becde53233f006b1a594bb43f"
    },
    "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 12 hook declarations. Ran 47 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): SessionStart; SessionStart; SessionStart; SessionStart; SessionStart; UserPromptSubmit; PreToolUse; PostToolUse; Stop; SessionEnd; SessionEnd; SessionEnd",
        "sources": [
          "LOCK.json",
          "listing.json",
          "commands.json"
        ]
      }
    ]
  },
  "review": {
    "kind": "machine-checked",
    "date": "2026-11-27",
    "reviewed_sha256": "715cc5fb2c4def650873337ad1ae20ea390fe08af2884c741df310870afdc65d",
    "gates": "443f875026b9d4bec0525ef5046a77b097093fa73cf40630e13031f2e6fe5ae7",
    "codex": "56bab7162c3b89c35b7fa27b4d63bf16e90becd3e062aa2085896f46d4b03266",
    "grok": "3e944c2edbf8eec8b7c6365b9e8f4a84e9092e64a2bd649f834159c462fc2652",
    "summary": "Deterministic gates passed; every claim rebuilt from evidence with a reviewed template; Grok reported no standing refutation."
  }
}
