consciousness/src/agent
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
..
api flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
tools agents: bail script support, pid file simplification, cleanup 2026-03-26 15:20:29 -04:00
cli.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
context.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
dmn.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
identity.rs identity: handle .md suffix in file-backed context group keys 2026-03-25 02:06:39 -04:00
journal.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
log.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
mod.rs hippocampus: move MemoryNode + store ops to where they belong 2026-03-25 01:55:21 -04:00
observe.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
parsing.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00
runner.rs budget: identity = system prompt + personality, memory = loaded nodes 2026-03-25 02:28:44 -04:00
tui.rs tui: overlay screens via F-keys (F1=context, F2=agents) 2026-03-25 03:12:28 -04:00
types.rs hippocampus: move MemoryNode + store ops to where they belong 2026-03-25 01:55:21 -04:00
ui_channel.rs flatten: move poc-memory contents to workspace root 2026-03-25 00:54:12 -04:00