fix: feat(20g): migrate all remaining agents to .profile + remove ops repo journal dirs (#90)
This commit is contained in:
parent
3d46fa06b7
commit
0cc4c429f2
7 changed files with 121 additions and 15 deletions
41
AGENTS.md
41
AGENTS.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue