capture-learning
Capture learning
Preserve what happened and the distinction it may teach us. This procedure records candidate cases across projects, with a readable account and portable evidence. Use it for explicit capture or backfill, or when an agent judges that consequential evidence warrants a separate case within the task’s authority. Ordinary tasks have no capture requirement. Learning/README.md owns the current learning workflow and its boundaries; clear corrections belong first at their working owner.
Locate the shared owner
Use CALLUM_HOMEBASE when configured. On Callum's Mac, Homebase is ~/Repos/callumflack/homebase. Read Learning/README.md, Learning/AGENTS.md and the applicable KB instructions. The existing helper is Tooling/agents/experiments/learning-corpus/learning_corpus.py; its case.schema.json owns the machine format. Report missing access rather than creating a second corpus in the current repository.
Keep the project checkout as context. Corpus writes belong to the KB through Homebase/Learning. Capture does not adopt a lesson into project policy or authorize Git publication. If the linked KB lies outside the task sandbox, use the host’s normal filesystem approval route for this already-authorized capture. A sandbox boundary is not a user read-only instruction. Report an actual denial or missing owner as a blocker; do not skip an authorized capture merely because it needs filesystem escalation.
Read the source
Use the current Codex thread, or the thread the user named. CODEX_THREAD_ID may identify the current thread; otherwise use the available chat context and thread tools. The helper accepts a UUID or codex://threads/<uuid>.
learning_homebase="${CALLUM_HOMEBASE:-$HOME/Repos/callumflack/homebase}"
python3 "$learning_homebase/Tooling/agents/experiments/learning-corpus/learning_corpus.py" inspect --thread "<thread UUID>"