The platform learns by writing five distinct kinds of memory to D1 and reading them back into the chat system prompt + tool dispatch. This diagram shows every writer (workflow runner, HITL approval, cron, manual seed) feeding each tier and every reader (chat context loader, peer review, council prompt) consuming them.
reflexion_log · also reflexion_constitution_log (3 rows)decision_corpus · decision_corpus_few_shot_logllm_wiki_logtraining_loop_runsknowledge_chunks + Vectorize index| kind | name | purpose |
|---|---|---|
| table | reflexion_log | workflow step verdicts + self-critique · few-shot replay |
| table | decision_corpus | curated Q+A pairs · top-3 lifted into council prompt |
| table | llm_wiki_log | compacted operational facts · latest snapshot per chat call |
| table | training_loop_runs | eval-set runs · R285 grader source-of-truth |
| table | knowledge_chunks | Vectorized code + ADR + recap chunks · 3,371 rows |
| endpoint | POST /api/training/run | append a training_loop_runs row |
| endpoint | POST /api/decision-corpus/reindex | rebuild decision_corpus embeddings |
| endpoint | POST /api/knowledge/ingest | ingest one source into knowledge_chunks |
| endpoint | POST /api/learning/nightly-now | force the nightly corpus build off-schedule |
| cron | 0 2 * * * | nightly corpus build (R555) |
| cron | 0 3 * * SUN | weekly tool-grader (R285) |
| cron | 0 4 * * MON | R84 wiki rebuild |