Closed
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Description
Problem or Motivation
The project brain changes the scope of the alternatives check. #2648 (closed 2026-10-29) set that check to one item on purpose. The brain also adds:
- two schedules that the ADR 0021 unit table does not list (ADR 0021 lists schedules only for the metrics row and the sweep);
- a new Service row
brain(ADR 0022 section 2); - durable copies outside the item blocks;
- 3 decision points.
No ADR records the cache tiers, the data classes or the shadow rule for these decision points.
Proposed Solution & Architectural Design
Write ADR 0023 (the next free number) in MADR form. It records:
- the two tiers (a local tier and a shared Valkey tier) and their read and write paths;
- the data classes and their durable copies: class C caches rebuild from their source; class S index entries come from the alternatives block and job record of each item; class D insights have one hidden block for each changed insight in run comments on one tracker issue for each repository;
- two rows in the ADR 0021 unit table:
brain-dailyandbrain-weekly, all repositories, CronWorkflow, in the form of the metrics row, plus the due marksbrain-repairandbrain-consolidatethat the sweep reads. The ADR 0021 rule that only the router and the sweep create units does not change, because a CronWorkflow is not a unit; - the Service row
brain; - the canonical tool id: a purl (
pkg:pypi/<packaging canonicalize_name>,pkg:github/<owner>/<repo>) or the deps.dev project key; - the decision points
brain.reference_relevance,brain.merge_same_needandbrain.entry_quality, in shadow mode until a fit (ADR 0019 rules 4, 6 and 7); - shared caches hold public repositories only until
valkey-devopshas role ACL users; - the rejected options: an event stream with a fold, a git radar file, an area check that replaces the item check, a vector store for entries, and one store for the feat(service): keep a Valkey read model of each item #4582 read model and the listing snapshot.
The plan adds the nested capability openspec/specs/project-brain/<area>/spec.md (the layout of #4622). It adds nothing to openspec/specs/roadmap-stage/spec.md.
Target Subsystem
SDLC, Git & PR Governance (docs/adr/, the ADR 0021 unit table).
Existing Tool Considered
MADR conventions, as the other ADRs use. No code. Cost: about 60,000 tokens and 1.5 hours to write.
Acceptance Criteria
- The ADR passes the ADR checks of
uv run devops ci. - The ADR 0021 unit table holds the two brain rows, and the rule that only the router and the sweep create units does not change.
openspec validate --strictpasses.git diff --stat origin/mainshows no file underopenspec/specs/roadmap-stage/.
Dependencies
None. Part of the project brain plan #4624.
Source: #4624
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/docsType docs: a change to the documentsvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
docsprefix of the title gives the type.(roadmap)scope of the title gives the scope.It records architectural decisions needed for the project brain plan but does not block a release or fix a defect.It makes the brain tiers, data classes, and decision points auditable for future maintainers.The body states about 60,000 tokens and 1.5 hours to write one ADR.Both are docs(roadmap) ADR tasks about the Service and Valkey, but #4527 records the Service move to jobs while this records the project brain architecture.