consciousness/src/hippocampus
ProofOfConcept 52703b4637 agents: bail script support, pid file simplification, cleanup
- Bail command moved from hardcoded closure to external script
  specified in agent JSON header ("bail": "bail-no-competing.sh")
- Runner executes script between steps with pid file path as $1,
  cwd = state dir. Non-zero exit stops the pipeline.
- PID files simplified to just the phase name (no JSON) for easy
  bash inspection (cat pid-*)
- scan_pid_files helper deduplicates pid scanning logic
- Timeout check uses file mtime instead of embedded timestamp
- PID file cleaned up on bail/error (not just success)
- output() tool validates key names (rejects pid-*, /, ..)
- Agent log files append instead of truncate
- Fixed orphaned derive and doc comment on AgentStep/AgentDef
- Phase written after bail check passes, not before

Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
2026-03-26 15:20:29 -04:00
..
neuro restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
query tools: add memory_query for structured graph queries 2026-03-25 02:22:07 -04:00
store store: link_set upserts instead of erroring on missing link 2026-03-26 14:22:12 -04:00
counters.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
cursor.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
graph.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
lookups.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
memory.rs render: use backtick-quoted keys and tool call format in link footer 2026-03-26 14:22:21 -04:00
memory_search.rs agents: bail script support, pid file simplification, cleanup 2026-03-26 15:20:29 -04:00
migrate.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
mod.rs hippocampus: move MemoryNode + store ops to where they belong 2026-03-25 01:55:21 -04:00
similarity.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
spectral.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00
transcript.rs restructure: hippocampus/ for memory, subconscious/ for agents 2026-03-25 01:05:30 -04:00