Skip to content

docs(roadmap): record the project brain and its upkeep runs #4625

Closed

Description

@dan-petty

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-daily and brain-weekly, all repositories, CronWorkflow, in the form of the metrics row, plus the due marks brain-repair and brain-consolidate that 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_need and brain.entry_quality, in shadow mode until a fit (ADR 0019 rules 4, 6 and 7);
  • shared caches hold public repositories only until valkey-devops has 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 --strict passes.
  • git diff --stat origin/main shows no file under openspec/specs/roadmap-stage/.

Dependencies

None. Part of the project brain plan #4624.

Source: #4624

Activity

  1. added
    source/agent
    type/docs
    on Nov 11, 2026
  2. added
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/docs. The docs prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It records architectural decisions needed for the project brain plan but does not block a release or fix a defect.
    • Value: Medium. It makes the brain tiers, data classes, and decision points auditable for future maintainers.
    • Effort: Low. The body states about 60,000 tokens and 1.5 hours to write one ADR.
    • Related: docs(roadmap): record the roadmap Service move to jobs and Valkey #4527, which asks for a different change. 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.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  5. removed
    status/in-progress
    owner/agent
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/docsvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions