@yemi33/minions 0.1.2401 → 0.1.2403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -190,7 +190,10 @@ The capability matrix for each runtime is in [`docs/runtime-adapters.md`](runtim
190
190
 
191
191
  Each named agent has a personal memory file at
192
192
  `knowledge/agents/<agentId>.md` (e.g. `knowledge/agents/dallas.md`) — a personal notebook
193
- injected into that agent's prompt on every dispatch. The format convention is documented in
193
+ whose entries are also indexed for task-aware SQL/FTS5 recall. In the legacy
194
+ fallback it is injected into that agent's prompt; when active retrieval returns
195
+ evidence, selected records replace the broad notebook appendix. The format
196
+ convention is documented in
194
197
  [`knowledge/agents/README.md`](../knowledge/agents/README.md).
195
198
 
196
199
  **Written exclusively by the consolidation pipeline.** `appendToAgentMemory` in
@@ -199,16 +202,20 @@ to its author's file. Authorship comes from the inbox note's YAML frontmatter `a
199
202
  field, with the **filename prefix** (`<agent>-…md`) as fallback (`extractInboxAgent`). Key
200
203
  properties:
201
204
 
202
- - **Append-only** — agents must not edit their own memory files directly; write to
203
- `notes/inbox/` and let the sweep route it.
204
- - **~25 KB cap** (`AGENT_MEMORY_BUDGET_BYTES`) — oldest sections pruned at section
205
- boundaries to stay under budget.
205
+ - **Pipeline-owned** — agents must not edit their own memory files directly; write
206
+ to `notes/inbox/` and let consolidation append, reconcile, prune, or summarize it
207
+ under the file lock.
208
+ - **25,000-byte and entry-count caps** — canonical sections are pruned oldest-first
209
+ to the UTF-8 byte budget (`AGENT_MEMORY_BUDGET_BYTES`) and
210
+ `engine.agentMemoryMaxEntries` (default `300`).
206
211
  - **Only configured `config.agents` keys get a file** — the agent must be in the known-team
207
212
  set; `temp-*` ids are skipped. This is a strict superset of broadcast consolidation: the
208
213
  shared `notes.md` digest still happens; per-agent routing is *in addition*.
209
214
 
210
- **Prompt injection order.** [`engine/playbook.js`](../engine/playbook.js) injects, in this
211
- order, `pinned.md` → `notes.md` `knowledge/agents/<agentId>.md` (when present). Missing
212
- files are silently skipped. The per-agent file is fenced as `<UNTRUSTED-INPUT>` and capped
213
- to the notes prompt budget before injection. The companion read-side reference is
215
+ **Prompt memory modes.** [`engine/playbook.js`](../engine/playbook.js) always
216
+ places non-empty `pinned.md` first. Default active retrieval then injects a
217
+ bounded `Relevant Memory` pack when it finds evidence. If retrieval is disabled,
218
+ shadowed, empty, or fails, the engine instead injects bounded `notes.md` followed
219
+ by `knowledge/agents/<agentId>.md` when present. Every memory appendix is fenced
220
+ as `<UNTRUSTED-INPUT>`. The full lifecycle and authority model are in
214
221
  [`docs/team-memory.md`](team-memory.md).