fix: feat(20g): migrate all remaining agents to .profile + remove ops repo journal dirs (#90)
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
Agent 2026-04-01 09:39:57 +00:00
parent 3d46fa06b7
commit ec1cc24d1e
7 changed files with 125 additions and 15 deletions

View file

@ -38,9 +38,6 @@ disinto-ops/ (ops repo — {project}-ops)
│ ├── approved/ approved vault items
│ ├── fired/ executed vault items
│ └── rejected/ rejected vault items
├── journal/
│ ├── planner/ daily planning logs
│ └── supervisor/ operational health logs
├── knowledge/ shared agent knowledge + best practices
├── evidence/ engagement data, experiment results
├── portfolio.md addressables + observables
@ -48,6 +45,44 @@ disinto-ops/ (ops repo — {project}-ops)
└── RESOURCES.md accounts, tokens (refs), infra inventory
```
> **Note:** Journal directories (`journal/planner/` and `journal/supervisor/`) have been removed from the ops repo. Agent journals are now stored in each agent's `.profile` repo on Forgejo.
## Agent .profile repos
Each agent maintains a `.profile` repo on Forgejo that stores:
- `formula.toml` — Agent-specific formula (overrides local `formulas/` defaults)
- `knowledge/lessons-learned.md` — Aggregated lessons from journal digests
- `journal/` — Per-session reflection journals (archived after digestion)
### Formula resolution
Agents load their formula from `.profile` first, falling back to local `formulas/`:
```bash
load_formula_or_profile "agent-role" "formulas/agent-role.toml"
```
### Lessons injection
At session start, agents load `knowledge/lessons-learned.md` from `.profile` and inject it into the prompt:
```bash
profile_load_lessons || true
LESSONS_INJECTION="${LESSONS_CONTEXT:-}"
```
### Journal writing
After each session, agents write reflection journals to `.profile/journal/`:
```bash
profile_write_journal "$ISSUE" "$ISSUE_TITLE" "$outcome" "$FILES_CHANGED"
```
Journals are automatically digested into `lessons-learned.md` when undigested count exceeds 10.
See [lib/formula-session.sh](lib/formula-session.sh) for the full `.profile` API reference.
> **Terminology note:** "Formulas" in this repo are TOML issue templates in `formulas/` that
> orchestrate multi-step agent tasks (e.g., `run-gardener.toml`, `run-planner.toml`). This is
> distinct from "processes" described in `docs/EVIDENCE-ARCHITECTURE.md`, which are measurement