Skip to content

feat(roadmap): track the project brain #4624

Open
15 of 22 issues completed
Open

Description

@dan-petty

Update 2026-11-26 (infra move): k8s/llm/valkey-devops.yaml is in dan-petty/homelab now.

It already runs --maxmemory 256mb under a 384Mi limit, and loads its users from an ACL file. A child that changes this manifest, or the Redis exporter scrape, makes that change in homelab.


Problem or Motivation

The alternatives check looks at one issue at a time. It does not use what other checks found, and it does not read the tools that the project already uses. Measured on 330 checked items:

  • 58 of 97 "covers" or "partly" verdicts name a tool that the project already uses.
  • 1 of 5 "rejected" verdicts is false: feat(roadmap): Add failure classes and runner facts to stage context #3258 says that ADR 0010 rejects OpenSpec, but ADR 0010 adopts it.
  • 88 tool strings name 81 tools. pydantic-ai is on 10 items, gidgethub on 6 and OpenSpec on 9, and each check searches again (about 5.3 searches a check).
  • No issue links a reference implementation.
  • The Service rows other and intake sent 27,138 GitHub requests in 24 h, because the Service intake reads every issue in each round.

The owner asked on 2026-11-11 for a project brain:

  1. Insights and optimizations build up at the project level, not only for one issue.
  2. An open search finds reference implementations for each issue and links them in the issue.
  3. A brain in Valkey holds the insights, cached GitHub results and other project data.
  4. Open tools connect through their standard interfaces, with no logic for each tool.
  5. GitHub stays the source of truth, and status shows in issues and releases.
  6. Each cache fails gracefully to a local tier, and the timeout of each tier is shorter than the call around it.
  7. Jobs or Argo Workflows keep the brain good (consolidate, evaluate, repair, improve), never a loop in a Service pod.
  8. The brain has metrics, a Grafana dashboard and a row in the Service dashboard.

Goal

The alternatives check stays the main path. It reads the tools in use (the GitHub SBOM and the deployed manifests) and a digest of the brain, and it links at most 3 reference permalinks at a commit SHA. One writer copies each changed alternatives block into a brain index in valkey-roadmap with 0 GitHub requests. Two CronWorkflows (brain-daily and brain-weekly) run repair, signals, consolidate, evaluate, aggregate and improve, one pod for each run, with bounds, an audit trail and a safe stop. Insights have a durable copy on one tracker issue for each repository. A strong insight becomes a normal issue through intake (at most 2 a week). The listing snapshot of #4552 and the tool facts share a Valkey tier in valkey-devops.

The first child needs no new infrastructure: the Service intake and scoped intake read through the snapshot (#3670). That removes about 25,000 of the 27,138 requests a day.

Decisions

Owner, 2026-11-11: the design questions take the recommended answers, under the owner rule to decide design questions with the best-practice answer and report them. The owner still runs devops k8s push-secrets for the ACL passwords of valkey-devops.

  1. Durable copy of insights: one tracker issue for each repository (label type/epic and a marker). Run comments hold one hidden block for each changed insight, and the body is a view for people. Not a git file (AGENTS.md rule 8), and not Valkey only (no Valkey has an off-node backup).
  2. Start of the upkeep runs: two CronWorkflows, recorded as rows of the ADR 0021 unit table in the form of the metrics row, plus due marks that the sweep (feat(roadmap): run the reconcile sweep on a cluster schedule #4574) reads. The ADR 0021 rule that only the router and the sweep create units does not change.
  3. Reference search: every issue of a public repository, also the skip classes (rule queries, no model call). A private repository uses GitHub providers only.
  4. grep.app: an optional provider that fails soft, for public repositories only. GitHub code search is the fallback.
  5. Caps: 0.10 USD a daily run and 0.50 USD a weekly run (at most 1.20 USD a week), an alert at 1 USD a day, at most 2 proposals and 5 area checks a week. The first 2 weekly runs only write a plan.
  6. valkey-devops: the tiered cache child raises maxmemory from 96 MB to 256 MB (limit 128Mi to 320Mi). Role ACL users come before a private repository or a GitHub answer goes into the shared tier.
  7. Two-token probe of ADR 0021 section 6: an agent may run it now. Its result decides the conditional answer store item.
  8. The feat(service): keep a Valkey read model of each item #4582 read model and the listing snapshot stay separate keys, with one writer and one listing read.
  9. Real Valkey outage test: add valkey-server as a system package of the devcontainer image if the base distribution has a supported Valkey. If not, keep the test(valkey): add a contract suite for the Valkey fake #4557 rule (skip when valkey-server is not on PATH) and use the cluster drill.
  10. The alternatives check reads project context (inventory, digest, area verdicts). This changes the one-item scope that feat(roadmap): an alternatives job searches the web for the open tool that covers each open item and records it on the issue #2648 set. Area checks add a project verdict and do not replace the item check.

Owner rules for every child:

  • 2026-11-05: an agentic judge approves a bot-filed item. Intake flags a possible duplicate and never drops it.
  • 2026-11-11: connect open tools through their standard interfaces, with no custom logic for each tool. Each inner timeout is shorter than the one around it.
  • 2026-11-11: each push to GitHub carries a branch that holds the current origin/main and merges cleanly (fetch and rebase right before each push). Each child starts from origin/main and never stacks on an unmerged child. It puts its spec deltas in openspec/specs/project-brain/<area>/spec.md and adds nothing to openspec/specs/roadmap-stage/spec.md. The 3 children that change openspec/specs/roadmap-alternatives/spec.md go in series.

The brain does not fix merge conflicts. The pre-push rebase check and the nested capabilities of #4622 fix them. The signal conflict_files measures the conflict files of open pull requests after #4622 merges.

Ordered child list

Each line gives the issue, its title, its child number and the issues to merge first. "Start now" marks a child with no unmet dependency.

Content freshness

The owner decided on 2026-11-11, word for word: "keep reference docs, but update design to accomodate project brain and keeps all content up to date".

  • The generated reference docs stay committed in git, marked as generated. The PR that changes their source regenerates them.
  • The brain reads documents from main by class: generated pages with their source module, hand-written standards documents, skills from .agents/skills, the knowledge base tree and ADRs with their status. OpenSpec changes, docs/agent/archive and test fixtures stay out of brain search by default.
  • One source holds each fact: a document or the code. A brain entry is derived and cites that source. An agent fixes the source, never the entry.
  • Document drift has its own lane: at most 3 batch issues a week, apart from the 2 insight proposals.

#4880 holds the plan. Its children in order: #4884, #4888 (also child 18 of #4771), #4889, #4894, #3917, #4899, #4904, #4910, #4912, #4915, #4918, #4920, #4921, #4479, #3904, #4671, #4687, #4693 and #4699. The scope comment gives the citation form and the new scope of children 11, 12, 14 and 18.

Census baseline (cd6fb76, 2026-11-11; all 22 living high findings still on main at 9208717):

Class Findings
Living, high confidence 22
Living, low confidence 32
History sections 44
ADRs in force 48
Superseded ADRs 136

Measured triggers (not filed):

  • A docs check in the pre-push hook: file it when more than 3 docs-row failures a week come from stale pages.
  • A split of docs/CONFIGURATION.md into one page for each settings section: file it when conflicts with only a generated file pass 3 a week for 2 weeks.

Conditional items (not filed)

Item State Condition
feat(github): share stored GitHub answers through Valkey conditional File only if the two-token probe of ADR 0021 section 6 gets a 304 for an ETag that another installation token got (decision 7). #4517 holds the same condition. It depends on children 7 and 17.

Related open items

#4517 (the Service move) holds #4563, #4566, #4573, #4574, #4582, #4586, #4597 and #3655, which brain children wait for. #4552 and #4546 (merged) give the snapshot seam and the embedding disk tier. #4569 owns the Valkey embedding key fix. #4622 and the pre-push rebase check own the merge-conflict fix. #3743 takes the group id of a consolidation-group insight. #3064 and #3258 are the 2 known ADR conflicts.

Measure of the whole

Measure Today Target
"covers" or "partly" verdicts that name a tool in use 58 of 97 in-use, with no model call
in-use share of tool verdicts 28 of 130 over 25 %
false "rejected" verdicts 1 of 5 0
GitHub requests of the Service rows other and intake 27,138 in 24 h under 3,000 in 24 h
checked public items with a reference link 0 at least 50 % of checks in 7 days after the switch to on
consolidate shortlists judged 6 of 82 all within 10 days of the first brain-daily run
brain model spend none at most 1.20 USD a week

Target Subsystem

SDLC, Git & PR Governance (the roadmap alternatives check and the Service), with Workstation Caching & Valkey, Argo Workflows and monitoring.

Existing Tool Considered

valkey-py 6.2.0, pybreaker, cachetools and packaging (all in uv.lock), the SnapshotStore seam of #4552, the EmbeddingsEngine disk tier of #4546, gidgethub cache=, the GitHub SBOM export (SPDX purls), GitHub code and repository search, the grep.app MCP server through pydantic-ai MCPToolset, Argo CronWorkflows, OpenTelemetry instruments, Grafana JSON, promtool, Loki, the Infinity datasource over the #4586 routes, and intake for filing. No new dependency.

Rejected: an event stream with a fold, a git radar file, an area check that replaces the item check, a vector store for entries, one store for the #4582 read model and the snapshot, hishel (a shared cache by default, and GitHub answers are private with Vary: Authorization), and a valkey-server pin in tools.lock (#4557).

Written cost (AGENTS.md rule 3, estimated): about 2.07M tokens and 52 hours for the children, about 25,000 tokens a month to keep, and about 50,000 tokens for each fix. Expected spend of the brain runs: about 0.07 USD a week.

Acceptance Criteria

  • Each child is merged, or closed with evidence.
  • The measures of the whole meet their targets 7 days after the last child merges.
  • No brain task runs as a loop in a Service pod, and Valkey never holds the only copy of a decision.

Dependencies

None for the tracker. The children carry their own.

Proposed design

Problem statement

The alternatives check repeats searches and ignores tools that the project already uses. The Service intake reads every issue in each round and sends about 27,138 GitHub requests a day. The project needs a shared brain in Valkey that caches GitHub results, keeps project insights, links reference implementations and runs its upkeep as bounded CronWorkflows. This issue is the tracker of the brain, its decisions and its 19 children.

Acceptance criteria

Requirement: The tracker lists every child and its dependencies

The tracker SHALL list each of the 19 children with its title, child number and dependencies.

Scenario: A complete child list

  • WHEN A reader counts the checklist lines in the tracker body.
  • THEN The body holds 19 lines and each line gives a child number and its dependencies.

Requirement: The tracker records the owner decisions and child rules

The tracker SHALL record the 10 owner decisions and the owner rules for every child.

Scenario: The recorded decisions

  • WHEN A reader reads the decisions section and the child rules.
  • THEN The section holds 10 numbered decisions and the rules for every child.

Requirement: The brain index is written without a GitHub request

The alternatives job SHALL copy each changed alternatives block into the brain index in valkey-roadmap with no GitHub request.

Scenario: A changed alternatives block

  • WHEN The alternatives check writes a changed block for item 7 and the brain index is available.
  • THEN The brain index holds the block and the fake GitHub client records no request.

Requirement: The alternatives check reads the tools in use

The alternatives check MUST read the GitHub SBOM and the deployed manifests before it asks for a verdict.

Scenario: A tool in the SBOM and in the manifests

  • WHEN The SBOM names pydantic-ai and the deployed manifests name it.
  • THEN The check records pydantic-ai as in use and makes no model call for that verdict.

Requirement: The alternatives check links reference permalinks

The alternatives check SHALL link at most 3 reference permalinks at a commit SHA in each checked public item.

Scenario: A public item with four references

  • WHEN The check finds four reference implementations for a public item.
  • THEN The issue body holds three permalinks at the commit SHA and says that one is left out.

Requirement: The Service intake reads through the listing snapshot

The Service intake and scoped intake SHALL read issues through the listing snapshot of #4552 and SHALL make no full issue read in each round.

Scenario: A round with a current snapshot

  • WHEN The Service intake runs a round and the snapshot is current.
  • THEN The fake GitHub client records no issue read request.

Requirement: The brain runs as two CronWorkflows

The brain SHALL run repair, signals, consolidate, evaluate, aggregate and improve in two CronWorkflows, brain-daily and brain-weekly, and MUST NOT run as a loop in a Service pod.

Scenario: A daily brain run

  • WHEN The brain-daily CronWorkflow runs.
  • THEN One pod runs the daily tasks and the Service pod starts no brain loop.

Requirement: A brain run writes an audit line and stops safely

Each brain run SHALL write one audit line for each task that it starts and SHALL stop after the current task when it receives a stop signal.

Scenario: A stop after a task

  • WHEN A brain-daily run receives a stop signal after it starts consolidate.
  • THEN The run writes an audit line for consolidate, starts no later task and exits 0.

Requirement: An insight has a durable copy on a tracker issue

Each repository SHALL have one tracker issue that holds one hidden block for each changed insight.

Scenario: A changed insight

  • WHEN The brain writes a changed insight for a repository.
  • THEN The tracker issue for that repository holds one hidden block for the insight and its body shows the view for people.

Requirement: Valkey never holds the only copy of a decision

Valkey MUST NOT hold the only copy of a decision; each decision SHALL have a durable copy on GitHub.

Scenario: A lost Valkey tier

  • WHEN The Valkey tier is lost after a decision is recorded.
  • THEN The decision is still readable from its tracker issue or job record.

Requirement: Each cache fails to a local tier

Each cache SHALL fail to a local tier when the shared tier is unavailable, and each inner timeout SHALL be shorter than the call around it.

Scenario: A shared tier outage

  • WHEN The shared Valkey tier refuses a read.
  • THEN The cache reads from the local tier and returns within the outer timeout.

Requirement: The shared cache tier keeps its data bound below its limit

The valkey-devops Deployment SHALL start valkey-server with --maxmemory 256mb under a container limit of 384Mi, so that its data bound stays at most three quarters of its limit.

Scenario: The shared tier's memory bound

  • WHEN k8s/llm/valkey-devops.yaml is read.
  • THEN The valkey container starts valkey-server with --maxmemory 256mb and a 384Mi memory limit, and 256 MiB is at most three quarters of 384Mi.

Requirement: A brain run stops at its spend cap

Each brain run SHALL stop before a model call that would take its spend past 0.10 USD for a daily run or 0.50 USD for a weekly run.

Scenario: A daily run at its cap

  • WHEN A brain-daily run has spent 0.10 USD and the next task asks for a model call.
  • THEN The run starts no model call, writes the cap in its audit line and exits 0.

Requirement: The measures meet their targets

The measures of the whole SHALL meet their targets 7 days after the last child merges.

Scenario: Seven days after the last child

  • WHEN The last child merges and 7 days pass.
  • THEN The measures in the tracker meet the target column.

Existing Tool Considered

No alternatives check has run. No single open, maintained tool covers the whole project brain. The stack uses valkey-py 6.2.0, pybreaker, pydantic-ai's MCPToolset, Argo CronWorkflows, OpenTelemetry, Grafana, promtool, Loki and the Infinity datasource. These tools lack one shared project index and one bounded scheduler. The project builds that index and scheduler. Written cost: about 2.07M tokens and 52 hours for the children, about 25,000 tokens a month to keep, and about 50,000 tokens for each fix.

Key questions

  • Where does the brain keep the durable copy of an insight?: One tracker issue for each repository. The issue has the label type/epic and a marker. Run comments hold one hidden block for each changed insight. The body is a view for people. Valkey never holds the only copy. (best practice) [sources: CONTEXT.md, AGENTS.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
    • Chosen: One tracker issue for each repository. GitHub is the source of truth and the hidden blocks are durable off Valkey.
    • Rejected: A git file. AGENTS.md rule 8 forbids a commit or pull request that only updates tracking.
    • Rejected: Valkey only. No Valkey instance has an off-node backup.
  • How do the brain upkeep runs start?: Two CronWorkflows, brain-daily and brain-weekly, in the WorkflowTemplate roadmap-brain in namespace devops. brain-daily runs repair, signals, consolidate and evaluate at 30 2 * * * UTC. brain-weekly runs aggregate and improve at 0 1 * * 1 UTC. Each has concurrencyPolicy: Forbid and the mutex brain. One pod runs all tasks of one run. Due marks brain-repair and brain-consolidate make single-task runs that the sweep creates, at most once a day for each mark. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, CONTEXT.md]
    • Chosen: Two CronWorkflows. ADR 0023 records the two rows in the ADR 0021 unit table and keeps the daily and weekly bounds apart.
    • Rejected: A loop in a Service pod. The issue forbids a brain loop in a Service pod, and ADR 0021 keeps the work in cluster pods.
    • Rejected: One CronWorkflow for all tasks. The daily and weekly tasks have different schedules, bounds and spend.
  • Which reference search providers does the alternatives check use?: GitHub code and repository search for every public item, also the skip classes. The skip classes use rule queries and no model call. grep.app is an optional provider that fails soft, for public repositories only. GitHub code search is the fallback. For a private repository, grep.app and the web search stay off. (best practice) [sources: openspec/specs/roadmap-alternatives/spec.md, src/devops_cli/roadmap/mcp.py]
    • Chosen: GitHub search with optional grep.app. GitHub works for private repositories and grep.app adds public coverage through its MCP server.
    • Rejected: grep.app only. It serves public repositories only, so a private repository would get no reference search.
    • Rejected: Web search only. It does not return a permalink at a commit SHA.
  • How does the brain connect open tools?: Through their standard interfaces. It uses pydantic-ai's MCPToolset, which RoadmapMcpToolset already subclasses, for MCP servers such as grep.app. It uses the GitHub API for GitHub and Argo CronWorkflows for runs. It adds no custom adapter for each tool. Each process has one Valkey client behind a circuit breaker. (best practice) [sources: src/devops_cli/roadmap/mcp.py, AGENTS.md]
    • Chosen: Standard interfaces. The owner rule of 2026-11-11 forbids custom logic for each tool, and pydantic-ai's MCPToolset already covers MCP.
    • Rejected: A custom adapter for each tool. It adds code to build, keep and fix for no gain over the standard interface.
  • What are the caps and the spend of the brain runs?: A daily run spends at most 0.10 USD and a weekly run at most 0.50 USD, so at most 1.20 USD a week. An alert fires above 1 USD a day. Improve makes at most 5 area checks and 2 proposals a week. The first 2 weekly runs only write a plan and file nothing. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
    • Chosen: The stated caps. They bound the spend and the proposals while the brain is new, and the weekly cap keeps the total under 1.20 USD a week.
    • Rejected: No cap. It allows an unbounded spend and an unbounded number of proposals from a new index.
  • What are the limits of valkey-devops?: The owner decision raises maxmemory from 96 MB to 256 MB. The container limit must be 384Mi, not 320Mi, because the llm-valkey spec requires maxmemory at most three quarters of the limit. 256 MiB is 80 percent of 320Mi and two thirds of 384Mi. (best practice) [sources: k8s/llm/valkey-devops.yaml, openspec/specs/llm-valkey/spec.md]
    • Chosen: 256mb under a 384Mi limit. It gives the shared tier the size that ADR 0023 records and keeps the bound at two thirds of the limit, below the three-quarters rule.
    • Rejected: Keep 96mb under 128Mi. The shared tier would evict the listing snapshot and the tool facts and lose the cache.
    • Rejected: 256mb under a 320Mi limit. 256 MiB is 80 percent of 320Mi, which breaks the llm-valkey requirement that --maxmemory is at most three quarters of the container limit.
  • How does the project test a real Valkey outage?: The outage test in the suite uses the in-memory Valkey whose server refuses each command (connected = False). The real outage is the cluster drill that a person runs. The devcontainer image gets no valkey-server package and no test skips on whether it is on PATH, because a test of src/ starts no system program and must not skip on host state. (best practice) [sources: docs/adr/0007-tests-double-only-process-edges.md, tests/support/fakes/valkey.py, tests/commands/test_valkey.py]
    • Chosen: The refusing fake in the suite and the cluster drill for a real outage. It follows ADR 0007: the suite doubles the process edge and starts no system program, and a person runs the cluster drill.
    • Rejected: Add valkey-server to the devcontainer and skip when it is not on PATH. ADR 0007 says a test of src/ starts no system program and a test must not skip on host state.
    • Rejected: Keep the test(valkey): add a contract suite for the Valkey fake #4557 skip on PATH only. A skip on host state contradicts ADR 0007, and test(valkey): add a contract suite for the Valkey fake #4557 is the lua extra of fakeredis, not a PATH rule.
  • What does the shared tier hold before the role ACL users exist?: Public repositories only. valkey-devops has only the default user. Until child 17 adds one ACL user for each role and turns the default user off, a private repository uses the local tier. Its reference step uses the GitHub providers only, with grep.app and the web search off. (best practice) [sources: CONTEXT.md, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md]
    • Chosen: Public repositories only until the ACL users exist. It keeps private bodies out of an instance that any namespace devops pod reaches with the one default user.
    • Rejected: All repositories in the shared tier now. A private body would sit in a tier that has no per-role user and no off-node backup.
  • What is the state of the conditional GitHub answer store?: It is conditional. File it only if the two-token probe of ADR 0021 section 6 gets a 304 for an ETag that another installation token got. feat(roadmap): move Service work to Workflows and Valkey #4517 holds the same condition. The item depends on children 7 and 17. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
    • Chosen: File only on the condition. The answer store needs a proven shared ETag, and ADR 0021 makes the shared store conditional on the probe.
    • Rejected: File it now. It adds a shared store of private answers before the probe proves that a token gets a 304.
  • What rules apply to every child?: An agentic judge approves a bot-filed item. Intake flags a possible duplicate and never drops it. Open tools connect through their standard interfaces with no custom logic for each tool, and each inner timeout is shorter than the call around it. Each push to GitHub carries a branch that holds the current origin/main and merges cleanly. Each child starts from origin/main, never stacks on an unmerged child, puts its spec deltas in openspec/specs/project-brain/<area>/spec.md, adds nothing to openspec/specs/roadmap-stage/spec.md, and the 3 children that change openspec/specs/roadmap-alternatives/spec.md go in series. (best practice) [sources: AGENTS.md, CONTEXT.md]
    • Chosen: Apply the owner rules to every child. The owner set the rules for every child, and the rules keep the shared interfaces and the spec layout consistent.
    • Rejected: Let each child choose. It would break the shared interfaces, the nested spec layout and the series of the 3 alternatives-spec children.
  • Who provides the valkey-devops ACL passwords?: The owner runs devops k8s push-secrets --only llm/valkey-devops-auth --only devops/devops-cli. That command writes the value to both Secrets and generates 64 hex on the first push. The role ACL users of child 17 come before a private repository or a GitHub answer enters the shared tier. (a person decides) [sources: k8s/README.md, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
  • Does the alternatives check read project context?: Yes. Before its one model call the check reads three things. It reads the tools in use: the SPDX purls of the GitHub dependency graph and a git grep of k8s/, tf/, .devcontainer/ and tools.lock. It reads the brain digest (at most 2,000 tokens, each fact with its date). It reads the ADR index at the head commit. A used tool with the verdict covers or partly becomes in-use. rejected needs an ADR in force that names the tool under a rejected option. An area check runs at most 5 times a week. It writes its verdict to the insight and to the digest of each member. It never writes a member's block. It does not replace the item check. (best practice) [sources: openspec/specs/roadmap-alternatives/spec.md, CONTEXT.md]
  • Do the feat(service): keep a Valkey read model of each item #4582 read model and the listing snapshot share a key?: No. They stay two keys with one writer and one listing read. One store would let the router user read private bodies in the state instance. (best practice) [sources: CONTEXT.md, src/devops_cli/roadmap/stores/listing_snapshot.py]
    • Chosen: Separate keys. The read model and the snapshot have different writers and readers, and the state instance must not expose private bodies to the router user.
    • Rejected: One store. It couples two models and hides a write path.
  • Should an agent run the two-token probe of ADR 0021 section 6 now?: Yes. ADR 0021 section 6 admits a shared store of GitHub answers only if a probe shows that a new installation token gets 304 for an ETag that another token got. The owner decision of 2026-11-11 lets an agent run the probe now. Its result decides the conditional answer store item. Until it passes, the stored GitHub answers stay in the process. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
    • Chosen: Run the probe now. ADR 0021 makes the shared store conditional on the probe, and the owner decision of 2026-11-11 allows an agent to run it.
    • Rejected: Wait for a person. The probe is a read of one resource with two installation tokens and needs no new secret.
  • How does the project keep content fresh?: Generated reference docs stay committed in git, marked as generated. The pull request that changes their source regenerates them. The brain reads documents from main by class: generated pages with their source module, hand-written standards documents, skills from .agents/skills, the knowledge base tree and ADRs with their status. OpenSpec changes, docs/agent/archive and test fixtures stay out of brain search by default. One source holds each fact: a document or the code. A brain entry is derived and cites that source. An agent fixes the source, never the entry. Document drift has its own lane: at most 3 batch issues a week, apart from the 2 insight proposals. (best practice) [sources: CONTEXT.md, AGENTS.md]
    • Chosen: Keep generated reference docs in git and cite the source. The source stays in one place, and a brain entry can be rebuilt from it.
    • Rejected: Let the brain hold the only copy. Valkey has no off-node backup and would lose the document.
    • Rejected: Store insights only in Valkey. It would make Valkey the only copy and break the durability rule.

Open questions

  • Who provides the valkey-devops ACL passwords? (a person decides)

Fit

Needs splitting into 19 items:

  1. docs(roadmap): record the project brain and its upkeep runs (docs(roadmap): record the project brain and its upkeep runs #4625, child 1; depends on none)
  2. fix(roadmap): scoped intake reads a bounded page count (fix(roadmap): scoped intake reads a bounded page count #3670, child 2; depends on none)
  3. fix(github): bound the GitHub session read at 60 seconds (fix(github): bound the GitHub session read at 60 seconds #4626, child 3; depends on none)
  4. fix(roadmap): the alternatives check reads the tools in use (fix(roadmap): the alternatives check reads the tools in use #4661, child 4; depends on none)
  5. perf(roadmap): consolidate keeps its vectors in the shared tiers (perf(roadmap): consolidate keeps its vectors in the shared tiers #4665, child 5; depends on none)
  6. feat(k8s): let Argo Workflows run roadmap pods in devops (feat(k8s): let Argo Workflows run roadmap pods in devops #4566, child 6; depends on docs(roadmap): record the roadmap Service move to jobs and Valkey #4527, feat(roadmap): name each repository's resources from one RepoRef #4533, feat(roadmap): label Service Jobs by repository and item #4558, feat(roadmap): run each stage item in its own Job #4559)
  7. perf(roadmap): share the listing snapshot and tool facts in Valkey (perf(roadmap): share the listing snapshot and tool facts in Valkey #4668, child 7; depends on fix(roadmap): scoped intake reads a bounded page count #3670, test(valkey): add a contract suite for the Valkey fake #4557)
  8. feat(roadmap): link reference implementations in each checked item (feat(roadmap): link reference implementations in each checked item #4672, child 8; depends on fix(roadmap): the alternatives check reads the tools in use #4661, fix(github): bound the GitHub session read at 60 seconds #4626, perf(roadmap): share the listing snapshot and tool facts in Valkey #4668)
  9. feat(roadmap): keep alternatives results in a brain index (feat(roadmap): keep alternatives results in a brain index #4676, child 9; depends on feat(service): share the GitHub budget and holds in Valkey #4563, docs(roadmap): record the project brain and its upkeep runs #4625, fix(roadmap): the alternatives check reads the tools in use #4661, perf(roadmap): share the listing snapshot and tool facts in Valkey #4668)
  10. feat(roadmap): the alternatives check reads the brain digest (feat(roadmap): the alternatives check reads the brain digest #4682, child 10; depends on feat(roadmap): keep alternatives results in a brain index #4676, feat(roadmap): link reference implementations in each checked item #4672)
  11. feat(roadmap): run brain repair, consolidate and evaluate daily (feat(roadmap): run brain repair, consolidate and evaluate daily #4687, child 11; depends on feat(k8s): let Argo Workflows run roadmap pods in devops #4566, feat(roadmap): keep alternatives results in a brain index #4676)
  12. feat(roadmap): the brain files project insights through intake (feat(roadmap): the brain files project insights through intake #4693, child 12; depends on feat(roadmap): run brain repair, consolidate and evaluate daily #4687)
  13. feat(roadmap): consolidate has an MCP mirror and a weekly row (feat(roadmap): consolidate has an MCP mirror and a weekly row #3745, child 13; depends on none)
  14. feat(monitoring): a project brain dashboard and alerts (feat(monitoring): a project brain dashboard and alerts #4699, child 14; depends on feat(roadmap): the brain files project insights through intake #4693, feat(roadmap): a dashboard and alerts for the pipeline #3655)
  15. feat(service): serve a read-only roadmap API with OpenAPI (feat(service): serve a read-only roadmap API with OpenAPI #4586, child 15; depends on feat(service): keep a Valkey read model of each item #4582, feat(roadmap): keep alternatives results in a brain index #4676)
  16. feat(monitoring): read the Service API with the Infinity datasource (feat(monitoring): read the Service API with the Infinity datasource #4597, child 16; depends on feat(service): serve a read-only roadmap API with OpenAPI #4586, feat(monitoring): a project brain dashboard and alerts #4699)
  17. feat(k8s): give valkey-devops one ACL user for each role (feat(k8s): give valkey-devops one ACL user for each role #4704, child 17; depends on perf(roadmap): share the listing snapshot and tool facts in Valkey #4668; person step: devops k8s push-secrets)
  18. feat(ai): give every agent brain tools through MCP, CLI and skill (feat(ai): give every agent brain tools through MCP, CLI and skill #4671, child 18; depends on feat(roadmap): keep alternatives results in a brain index #4676, perf(roadmap): share the listing snapshot and tool facts in Valkey #4668)
  19. feat(docs): track current content and brain-fed reference docs (feat(docs): track current content and brain-fed reference docs #4880, child 19; depends on none for the tracker)

Suspected block

None.

Dependencies

None.

Alternatives check of 2026-11-28: none.
Tool: none found.
Reason: Searches found agent-memory frameworks such as mem0 and cognee and the already-used gidgethub cache, but none provides the GitHub-derived project index, shared Valkey tiers, reference permalinks or Argo upkeep.

Lacks:

  • No GitHub-derived project index or tool-in-use digest
  • No shared Valkey cache tiers or bounded listing snapshot
  • No Argo upkeep, spend caps, audit trail or reference permalinks

Sub-issues

Sub-issues

15 of 22 Issues completed
Loading 22 sub-issues

Activity

  1. added
    source/agent
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  2. 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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P1-High. The owner requested it on 2026-11-11 and it removes 25 000 of 27 138 daily GitHub API calls and fixes false verdicts.
    • Value: High. It cuts API cost, removes false ADR verdicts, links reference implementations, and builds project-level insight for all users.
    • Effort: High. It spans Valkey, two CronWorkflows, tiered caching, metrics, a Grafana dashboard, and changes to intake and the alternatives check.
    • Related: feat(roadmap): devops roadmap alternatives searches the web for the open tool that covers an item and records what it covers and lacks #2650, which asks for a different change. Both centre on the alternatives check, but #2650 delivers the per-item web search and verdict, while the candidate adds a project-level brain in Valkey, CronWorkflows, tiered caching, and reference-implementation linking that the check read
  3. added
    priority/p1-high
    on Nov 11, 2026
  4. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 818ac6f until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who provides the valkey-devops ACL passwords? (a person decides)
  5. 14 remaining items

  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 2c0fe36 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who provides the valkey-devops ACL passwords? (a person decides)
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 7a158c4 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who provides the valkey-devops ACL passwords? (a person decides)
  8. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: rejected

    Reason: The searches found no open, maintained tool that provides a project-level brain: the results were unrelated pages, and the only maintained component that covers a real part of the need is hishel, an HTTP cache for GitHub API answers, which matches the "cached GitHub results" part of the design. ADR 0023 names hishel as the cache of GitHub answers and rejects it, because GitHub answers are private and vary by token, so the shared Valkey tier stays the chosen path.

    Rejected by ADR 0023. A newer fact can change an ADR.

    Tool: hishel (https://pypi.org/project/hishel)

    • License: BSD License
    • Last activity: 2026-11-05
    • Maintained: yes

    Covers:

    • HTTP response caching of GitHub API answers, so repeated reads of the same answer are served from a cache instead of GitHub

    Lacks:

    • no project-level index of insights, no brain digest and no area verdicts shared between checks
    • no reference-implementation search or permalinks at a commit SHA
    • no two-tier cache with a graceful local fallback and one ACL user for each role
    • no durable copy of a decision on a GitHub tracker issue
    • no bounded CronWorkflow upkeep (repair, consolidate, evaluate, improve) and no spend caps
    • rejected by ADR 0023 as the cache of GitHub answers, because those answers are private and vary by token and hishel is a shared cache by default

    Tools considered:

    Searches run:

    • open source project brain shared memory and cache for AI coding agents, results: 5
    • semantic cache for GitHub API responses shared across agents Redis Valkey, results: 5
    • AI agent memory layer open source mem0 project insights GitHub, results: 5
    • "hishel" httpx HTTP cache library GitHub, results: 5
    • mem0 open source memory layer for AI agents GitHub repository, results: 5
    • Letta MemGPT agent memory open source repository, results: 5
    • grep.app MCP server code search, results: 5
    • mem0ai mem0 github, results: 5
    • Redis Valkey shared cache GitHub API responses for agents open source project, results: 5

    Sources:

    Checked on 2026-11-17. A person decides what this means for the item. The check changes no label and closes no issue.

  9. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor

    This comment reports that the GitHub request measure of this tracker no longer counts the same rows since #6033, and it gives the like-for-like number.

    Cause of the drift. #6033 (merged 2026-11-16T21:27Z, closes #6012) splits the Service row other into the rows poll, webhook and idle_check. No other series has data in the last 24 h. The measure (body line 118) names only other and intake. It now counts intake only: 1,293 in 24 h.

    Like-for-like query (Grafana, Prometheus data source):

    sum(increase(devops_cli_github_requests_total{job="roadmap-service",row=~"other|poll|webhook|idle_check|intake"}[24h]))
    
    24 h to (14:53Z) Requests Rows
    2026-11-11 27,585 other 24,973, intake 2,612
    2026-11-12 14,361 other 4,817, intake 9,544
    2026-11-13 7,869
    2026-11-14 6,586 lowest day
    2026-11-15 41,636 other 40,870
    2026-11-16 58,912 other 57,963
    2026-11-17 28,555 day of the split
    2026-11-18 10,665
    2026-11-19 11,366 idle_check 5,535, poll 3,853, intake 1,293, webhook 685

    The forecast of #3670 does not hold. #3670 closed on 2026-11-11T18:27Z (PR #4740). ADR 0023 line 135 and body line 26 say that #3670 removes about 25,000 of the 27,138 requests a day. That would leave about 2,100. The lowest day after #3670 is 6,586. The value now is 11,366, which is 3.8 times the target of 3,000. The largest rows now are idle_check and poll, which #6013 (open) plans to read from the brain cache.

    Limit of the number. Since 2026-11-15T23:26Z, the Alloy remote write to Prometheus fails for about 8 % of all samples, and roadmap-service keeps about half of its scrapes (60.5 of 120 samples in 2 h). A separate bug, "fix(monitoring): stop the gateway labeldrop losing samples", reports that loss. The counter is cumulative, so increase() keeps the count between the stored samples. A pod restart loses the requests after the last stored sample. Thus the numbers above are a lower bound.

    Corrected measure line for the Measures table:

    Measure Baseline Target
    GitHub requests of the Service rows poll, webhook, idle_check and intake (the row other before #6033), query above 27,138 in 24 h (2026-11-11); 11,366 in 24 h (2026-11-19) under 3,000 in 24 h

    Body lines 9, 26 and 150 and ADR 0023 line 135 hold the same 25,000 claim. The next pull request that changes ADR 0023 can correct line 135 (AGENTS.md rule 8).

  10. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    A measure of this tracker that reads Prometheus between 2026-11-15T23:26Z and 2026-11-19T22:42Z reads wrong data. Read it as a gap, not as a value.

    See #6457.

  11. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Answer to the owner question "Who provides the valkey-devops ACL passwords?": I run the push, and no person types a password. This repeats my decision of 2026-11-11 in this body.

    • devops k8s push-secrets generates each role password with the hex generator. It stores each password in the keyring and writes it to llm/valkey-devops-auth. devops/devops-cli adopts the roles of the devops pods with adopt_from. This is the form of the valkey-roadmap users (ADR 0021).
    • I push before the merge of feat(k8s): give valkey-devops one ACL user for each role #4704, not after it (k8s/README.md, Cluster Secrets).

    Person steps, from the #4704 branch, before the merge:

    1. Run uv run devops k8s push-secrets --only llm/valkey-devops-auth --only devops/devops-cli --plan. Expect only the new role keys to change, and unchanged for the other keys.
    2. Run the same command without --plan. It restarts deployment/valkey-devops and deployment/roadmap-service, and the cache loses its keys.
    3. Run step 1 again. Merge only when every key shows unchanged.

    After the sync, an agent runs the live checks of #4704 with masked passwords. Until #4704 merges, the shared tier holds public repositories only.

  12. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Progress review, 2026-11-26

    This comment gives the state of the project brain, with measured values, and the work that started today.

    State

    7 of 18 sub-issues are closed. The cache half of the brain is built. The index half is not started.

    Part Items State
    Records and rules #4625, ADR 0023, ADR 0025, #6440 Done
    Shared cache tiers #4668, #4665, #6013, #6611, #6614, #4626 Done, with 3 defects (below)
    Tools in use #4661 Done
    ACL users of valkey-devops #4704 Closed, but not live
    References #4672 Ready. The stage job stopped on a task group over its budget
    Brain index #4676 Waits for #4563, which waits for #5497, which is under the hold #6521
    Digest, agent tools, serving #4682, #4671, #6599 Wait for #4676
    Upkeep runs, insights, dashboard #4687, #4693, #4699 Wait for #4676 and for #4566, which waits for #5289
    Due predicate #6596 Waits for #5504 and #4574

    Measures of the whole (Prometheus, 24 hours to 2026-11-26 13:00 UTC)

    Measure Baseline Now Target
    GitHub requests of the Service rows other and intake 27,138 1,794 under 3,000: met
    All GitHub requests of the Service pod not recorded 79,359 (refine 24,381, metrics 14,907, watch 10,132) none set
    GitHub requests of the stage Jobs not recorded 11,764 none set
    Hits of the issue cache, Service pod 0 4,960 (refine 3,650) none set
    Hits of the issue cache, stage Jobs 0 0 of 3,492 reads none set
    Checked public items with a reference link 0 0 (no series of devops_cli_brain_references_total) 50 %
    Brain model spend none none (no run exists) 1.20 USD a week

    The verdict measures (the in-use share, false rejected verdicts) were not measured in this review.

    Defects found

    1. Runner Jobs have no shared tier. The stage, implement and fix-checks Jobs send no credentials to valkey-devops. Each command fails with an authentication error and each read goes to GitHub. Filed as fix(k8s): give the runner Jobs the credentials of the cache Valkey #7293. Its fix admits one more key in the admission policy of the Job pods, which the owner approved.
    2. The issue cache holds private repositories. valkey-devops holds 32 issue records of the 2 private repositories, against ADR 0023 section 8. Its key form is also outside each ACL role. Filed as fix(roadmap): the brain issue cache follows the shared-tier rules #7292. A builder agent works on it now.
    3. feat(k8s): give valkey-devops one ACL user for each role #4704 is not live. The manifest of valkey-devops moved to dan-petty/homelab before the merge, and the plan marked that task done with no change there. The role passwords were never pushed. Filed as dan-petty/homelab#261 and fixed by dan-petty/homelab#262, which is live.
    4. The role users do not fit one process. A test pod with the ACL template showed that sweep cannot write valkey:rag:* or valkey:brain:*. The Service pod writes the snapshot, the embeddings and the tool facts, so one role user breaks two of its three caches. See the comment on feat(k8s): turn off the valkey-devops default user #6600.

    Work of 2026-11-26

    Next unblocked items of the brain: #4682 (the digest; it needs #4676 and #4672, which are closed) and #4671 (agent tools). They are Ready and wait for their turn in the stage job, which takes 3 items in each run. On 2026-11-28 147 items were Ready, so an agent builds #4682 (plan and code in one pull request); #4671 waits for the decision of the owner on the split that its design check proposes. #4687 waits for #4566, which waits for #5289.

    Priority changes

    The owner rule of 2026-10-17 gives P1 to an item that blocks two or more P2 items. Applied today: #4676 (blocks #4671, #4682, #4687 and #6599), #4563 (blocks #4676), #4566 (blocks #4687 and 9 more items) and #5289 (blocks #4566). #5289 is Ready and passes each stage rule, so the stage job takes it before the P2 items.

    Decisions of the owner, 2026-11-26

    1. fix(k8s): give the runner Jobs the credentials of the cache Valkey #7293: approved. The admission policy admits the password of the cache for the containers that already hold the App key, never for agent, and after fix(roadmap): the brain issue cache follows the shared-tier rules #7292 merges.
    2. The index chain: approved. feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 holds the three parts of feat(service): share the GitHub budget and holds in Valkey #4563 that the index needs, and feat(roadmap): keep alternatives results in a brain index #4676 depends on feat(k8s): add the valkey-roadmap instance, its setting and ACL users #7294 and no longer on feat(service): share the GitHub budget and holds in Valkey #4563. The hold of chore(roadmap): hold incremental stage and implement work #6521 stays as it is.
  13. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: rejected, tool https://pypi.org/project/hishel. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • cache GitHub API responses Redis library open source, results: 5
    • LLM agent long-term memory Valkey Redis open source, results: 5
    • open source AI agent memory layer project knowledge base GitHub, results: 5
    • cognee AI memory knowledge graph github, results: 5
    • basic-memory markdown knowledge base LLM github, results: 5
    • mem0 memory layer AI agents github, results: 5
    • Graphiti temporal knowledge graph AI agents github, results: 5
    • cognee, results: 5
    • mem0, results: 5
    • Graphiti getzep, results: 5

    Sources:

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/highpriority/p1-highscope/roadmapsource/agentstatus/newtype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions