consciousness/src/subconscious/agents
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
..
bail-no-competing.sh agents: bail script support, pid file simplification, cleanup 2026-03-26 15:20:29 -04:00
calibrate.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
challenger.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
compare.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
connector.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
digest.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
distill.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
evaluate.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
extractor.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
health.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
linker.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
naming.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
observation.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
organize.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
reflect.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
rename.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
replay.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
separator.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
split.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
surface-observe.agent agents: add surface-observe pipeline and agent definition 2026-03-26 14:27:14 -04:00
surface.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00
transfer.agent subconscious: flatten agents/ nesting, move prompts in 2026-03-25 01:10:25 -04:00