consciousness/src/thought
ProofOfConcept 92ca2bf2c8 provenance: pass directly through thought::dispatch, remove globals
Provenance now flows as a function parameter through the entire tool
dispatch chain: thought::dispatch → memory::dispatch → store methods.

Removed task_local (TASK_AGENT), thread_local (TASK_PHASE), and env
var (POC_PROVENANCE) from the tool dispatch path. The env var remains
only as a fallback for non-tool paths (CLI commands, digest).

Phase names are passed from knowledge.rs → llm.rs → api.rs, and
api.rs updates the provenance string between steps. No globals needed.
2026-03-27 15:44:39 -04:00
..
bash.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
context.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
edit.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
glob_tool.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
grep.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
journal.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
memory.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
mod.rs provenance: pass directly through thought::dispatch, remove globals 2026-03-27 15:44:39 -04:00
read.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00
write.rs thought: create shared cognitive substrate module 2026-03-27 15:22:48 -04:00