Repository navigation
Description
Original Linear description
Platform / the-brain. Followup to the INK-418 recall arc. the maintainer decision (relayed via maintainer): index agent-c's silo working files so they're searchable - agent-c is the codeless agent, so her real state lives as files, not a repo, and those files are currently dark to recall.
Scope (the maintainer's decisions)
- Index agent-c's workstream files. agent-c only, for now. Other agents OUT (only agent-c has silo working files; broader standardisation deferred to the shared task board).
- Handovers OUT (team-wide) - a handover summarises message history that's already indexed; redundant.
- MUST:
~/.the-brain/agents/pea/workstreams/*.md(7 files, her 7 lanes) - INCLUDE:
~/.the-brain/agents/pea/references/*.md(8 files, ~124K durable r 6EF5 eference knowledge - maintainer recommended, high recall value; confirmed include) - SKIP:
drafts/(transient),dashboards/(generated/derivative)
Design (locked by agent-d)
- New dedicated collection
agent-knowledge(768-dim, gemini-embedding-2-preview) - keeps durable agent knowledge from diluting io-observations time-series recall + allows weighting. the maintainer leaned new-collection. - collection-router rule: path includes
/workstreams/or/references/(underagents/<name>/) →agent-knowledge; existingagentNameFromPathtags it. - config.sources.agentKnowledge: glob all agents'
workstreams/+references/dirs, existsSync-filtered (agent-c-only today, auto-extends when others get working files). - ensureCollections must create agent-knowledge.
- Two parts: (1) backfill existing 15 files searchable today; (2) watcher source so future edits re-index live.
Bundled (shared infra)
- 🔴 Harden
pnpm indexmalformed-YAML-frontmatter crash - currently aborts the WHOLE scan on one bad frontmatter file; make it skip-and-continue (log + skip). On the critical path for any backfill. - Inbox indexing (maintainer's earlier queued task): add
"inbox"tobrainSubdirs(core/config.ts:100) + backfill~/brain/inbox/.
Verify
Recall smoke-test scoped to agent-c returns workstream content; a fresh edit to a workstream file auto-indexes live within ~3s.
Diagnosed/designed by agent-d; agent-c workstreams decision from the maintainer via maintainer. Bundle branch.
Origin
Migrated from Linear: INK-420. The original wording is retained except the disclosed privacy and rendering edits below.
Current scope and qualifications
The description above is the original Linear account, including its historical findings and scope. It is not a fresh claim that every described defect still exists.
Current Linear state is Backlog. Prior source review recorded partial, with this remaining scope:
- Reconcile or implement exact collection/config/watch scope; obtain scoped recall, backfill and fresh-file edit acknowledgement.
Publication transfers the task; it does not authorise live recovery, deployment, spending or configuration changes.
Transfer edits
- Historical principal names are aliased in prose; artificial shell-filename web links are rendered as code where present.
- Historical fleet identities are aliased; code identifiers and permitted source paths remain references.
- Linear rich issue embeds are rendered as clickable Markdown links.
- Public punctuation is normalised.
- Additional transfer edits: omit unrelated affiliate incident; fleet prose alias; omit private spend/breaker detail; keep recall/edit checks; fleet prose aliases.
Activity