Skip to content

feat(roadmap): the brain files project insights through intake #4693

Open

Description

@dan-petty

Update 2026-11-26 (infra move): the monitoring ingress rule goes to dan-petty/homelab.

This issue keeps the brain steps and the egress rule under k8s/devops/. The ingress rule for port 9090 belongs to monitoring-default-perimeter-ingress in k8s/monitoring/networkpolicy.yaml of homelab. The k8s row here checks only the egress side.

Follow-up: dan-petty/homelab#274.


Problem or Motivation

No job turns findings across items into work:

  • 8 need areas hold items of one need with different tools.
  • ADR conflicts stay open: feat(roadmap): several implement Jobs can run at once, on disjoint files #3064 against ADR 0008.
  • CI queue means of 387-1,370 s against run means of 5-507 s showed in GitHub data for days before a person found them (CI audit).
  • ci_infra is the top implement failure class (about 23 in 7 days).
  • Brain pods cannot reach Prometheus on port 9090 today: the ingress rule is in dan-petty/homelab now (k8s/monitoring/networkpolicy.yaml), and dan-petty/homelab#274 is open.

Proposed Solution & Architectural Design

  • Signal runner over the data list roadmap.brain.signals (name, kind promql|logql|git|github, query, period, threshold, owner note), on the existing clients (the GitHub session, git, the Prometheus client). It runs as a step of brain-daily. Signals of the first phase: ci_queue, implement_failures, spend_by_row, github_requests_by_row, hot_files, conflict_files (after refactor(openspec): split big capabilities into nested ones #4622). A fact that stays over its threshold for 3 daily runs becomes a project-fact insight. Bounds: 60 GitHub requests, 20 PromQL queries, 0 model calls, 300 s.
  • Commands devops roadmap brain weekly|aggregate|improve, and CronWorkflow brain-weekly (schedules: ["0 1 * * 1"], activeDeadlineSeconds: 3600) on the roadmap-brain template.
  • Aggregate: near lists (5 nearest items), tool groups (one canonical tool on 2 or more open items), need areas, ADR conflicts and ring changes. Bounds: 0 generative calls, 1,200 s.
  • Improve:
    • enrich the top 50 entries from the fact cache, and run the reference step for a need area with fewer than 2 references;
    • at most 5 area tool checks a week with the existing alternatives agent; the verdict goes to the insight and to the digest of each member, never directly to a member block;
    • re-rank brain-insights in a temporary key and RENAME it;
    • at most 2 proposals a week through devops roadmap intake --title <title> --body-file <file> --source <tracker comment URL> --filed-by agent --confirm, each body with the insight marker; an ADR change goes as a docs issue; before it files, improve looks for the marker (ADR 0021 rule 5);
    • rewrite the tracker body view (top insights, tool radar rings, facts with their queries), at most once a week.
    • Bounds: 2 proposals, 5 area checks, 50 enriched entries, 0.50 USD, 1,800 s.
  • The first 2 weekly runs use --plan: plans go to the tracker comment, and nothing is filed.
  • A proposal closed as not planned marks its insight declined until its members change.
  • NetworkPolicy: an egress rule under k8s/devops/ lets pods with row=brain reach Prometheus on 9090. The matching ingress rule is dan-petty/homelab#274.
  • Instrument devops_cli_brain_proposals_total; spend rows brain_aggregate and brain_improve.
  • Spec in openspec/specs/project-brain/insights/spec.md.

Target Subsystem

SDLC, Git & PR Governance (roadmap insights), with the egress rule under k8s/devops/.

Existing Tool Considered

The existing alternatives agent, devops roadmap intake (which flags a possible duplicate and never drops a candidate; an agentic judge approves a bot-filed item, owner 2026-11-05), the Prometheus and GitHub clients, git, and Argo CronWorkflows. The signal list is data, so a new signal needs no code. Cost: about 300,000 tokens and 7 hours to build.

Acceptance Criteria

  • A test: improve never files more than 2 proposals a run and reads the marker before it files.
  • A test: a project fact files only after 3 daily runs over its threshold.
  • A test: a declined proposal marks its insight declined until its members change.
  • A test: the signal runner reads a new signal from one data line with no code change.
  • Live: a brain pod gets an answer from Prometheus.
  • Live: the first 2 weekly runs file 0 issues and write their plans to the tracker.
  • Live: brain spend stays under 1.20 USD a week (devops_cli_ai_spend_usd_total{row=~"brain_.*"}).

Dependencies

#4687. Related: #4622 (the conflict-files signal). Part of the project brain plan #4624.

Source: #4624

Alternatives check of 2026-12-01: in-use.
The repository already uses this tool.
Tool: Prometheus (https://github.com/prometheus/prometheus), Apache-2.0, last activity 2026-12-01, maintained.
Reason: Searches found Prometheus alerting rules and Alertmanager as open, maintained tools. A rule with a for duration and Alertmanager routing cover the sustained PromQL signal and its notification, but not the git and GitHub signals, the insight aggregation or the capped intake proposals.

Covers:

  • Threshold rules with a for duration detect a sustained breach
  • Alertmanager groups, deduplicates and routes alerts, with silences
  • Rule rows are data in YAML, so a new PromQL signal needs no code

Lacks:

  • No git or GitHub signal kinds
  • No cross-item aggregation, insight ranking or ADR conflict detection
  • No capped proposal filing through devops roadmap intake with markers

Proposed design

Problem statement

The project has no job that turns findings across items into work. CI queue times, implement failures, spend, hot files, conflict files and ADR conflicts stay unseen until a person finds them. Brain pods cannot reach Prometheus on port 9090. This change adds a data-driven signal runner to brain-daily, weekly aggregate and improve runs that file at most 2 proposals through intake, the egress NetworkPolicy under k8s/devops/, and the project-brain insights spec.

Acceptance criteria

Requirement: Signal row

The signal runner SHALL read each signal from one row of roadmap.brain.signals and SHALL add a signal with no code change.

Scenario: New signal row

  • WHEN A test adds a promql signal row with a query, a period, a threshold and an owner note to the signal fixture.
  • THEN The runner reads one fact through the Prometheus client and returns it with the signal name.

Requirement: Daily step

The signal runner SHALL run as a step of brain-daily and SHALL make 0 model calls.

Scenario: Daily step run

  • WHEN A test runs the daily step with a signal fixture.
  • THEN The step returns one fact for each signal and records 0 model calls.

Requirement: Signal runner bounds

A signal run SHALL make at most 60 GitHub requests and 20 PromQL queries, SHALL make 0 model calls, and SHALL end within 300 s.

Scenario: Query bound cut

  • WHEN A test gives 21 promql signal rows.
  • THEN The runner issues 20 queries, records the cut in its result line and ends within 300 s.

Requirement: Three-run persistence

The brain MUST NOT write a project-fact insight before a fact stays over its threshold for 3 daily runs.

Scenario: Two daily runs

  • WHEN A test runs the signal step on 2 days with the same fact over its threshold on both.
  • THEN The brain writes no project-fact insight.

Requirement: Project-fact insight

The brain SHALL write one project-fact insight after a fact stays over its threshold for 3 daily runs.

Scenario: Third daily run

  • WHEN A test runs the signal step on 3 days with the same fact over its threshold.
  • THEN The brain writes one project-fact insight that names the signal, its query and its threshold.

Requirement: Conflict-files signal

The signal runner SHALL read the conflict_files signal from a github row and SHALL count the files in conflict across open pull requests.

Scenario: Conflict files on two pull requests

  • WHEN A test gives 2 open pull requests with 3 conflicting files.
  • THEN The runner returns one fact named conflict_files with the count 3.

Requirement: Brain commands

The CLI SHALL provide devops roadmap brain weekly, devops roadmap brain aggregate and devops roadmap brain improve.

Scenario: Command help

  • WHEN A test invokes each of the three commands with --help.
  • THEN Each command exits 0 and lists its options.

Requirement: Weekly CronWorkflow

The deployment MUST hold CronWorkflow brain-weekly with the schedule 0 1 * * 1, activeDeadlineSeconds: 3600 and the template roadmap-brain.

Scenario: Manifest check

  • WHEN uv run devops ci --check --only k8s runs on the change.
  • THEN The check passes and reports no error for CronWorkflow brain-weekly.

Requirement: Aggregate output

The aggregate step SHALL produce the near lists, tool groups, need areas, ADR conflicts and ring changes with 0 generative calls.

Scenario: Aggregate on a fixture

  • WHEN A test runs the aggregate step on a fixture with 6 near items and one tool on 2 open items.
  • THEN The output holds 5 near items, one tool group, the need areas, the ADR conflicts and the ring changes. The run records 0 generative calls and ends within 1,200 s.

Requirement: Enrichment cap

The improve step SHALL enrich at most 50 fact-cache entries and SHALL run the reference step for a need area with fewer than 2 references.

Scenario: Enrichment on a fixture

  • WHEN A test gives 60 enrichable entries and one need area with 1 reference.
  • THEN The step enriches 50 entries and runs the reference step once.

Requirement: Area check cap

The improve step SHALL run at most 5 area tool checks a week.

Scenario: Area check cap

  • WHEN A test gives 6 due area checks.
  • THEN The step runs 5 area checks.

Requirement: Area check verdict

An area tool check SHALL write its verdict to the insight and each member digest and MUST NOT write to a member block.

Scenario: Area verdict

  • WHEN A test gives an area check verdict for an area with 2 members.
  • THEN The verdict is in the insight and in both member digests and no member block changes.

Requirement: Improve budget

The improve step SHALL spend at most 0.50 USD and SHALL end within 1,800 s.

Scenario: Budget cut

  • WHEN A test gives an improve run that would exceed 0.50 USD.
  • THEN The step stops at the budget, records the cut in its result line and ends within 1,800 s.

Requirement: Insight re-rank

The improve step SHALL write the new rank order to a temporary key and SHALL RENAME that key to roadmap:v1:brain-insights:<owner>/<name>.

Scenario: Re-rank rename

  • WHEN A test runs improve on an existing roadmap:v1:brain-insights:<owner>/<name> key.
  • THEN The new order lands in the temporary key and RENAME replaces the key with it.

Requirement: Capped proposals

The improve step MUST file at most 2 proposals a week through devops roadmap intake with --source, --filed-by agent and --confirm.

Scenario: Proposal cap

  • WHEN A test gives 3 insights with no marker.
  • THEN The step files 2 proposals and each filed body holds its marker.

Requirement: Marker dedupe

The improve step MUST search for the insight marker before it files and MUST write the marker in each body.

Scenario: Marker before file

  • WHEN A test gives 2 insights and one open issue holds the marker of the first.
  • THEN The step files one proposal for the second insight and skips the marked insight.

Requirement: ADR conflict proposal

An ADR conflict proposal SHALL file as a docs issue with the ADR path in its body.

Scenario: ADR conflict

  • WHEN A test gives an insight that names an ADR conflict.
  • THEN The intake call uses the docs type and the ADR path.

Requirement: Plan-only first runs

The first 2 weekly runs SHALL call intake with --plan, SHALL write their plans to the tracker comment and SHALL file no issue.

Scenario: First two runs

  • WHEN A test runs weekly twice with the run counter at 0.
  • THEN Both runs write a tracker comment, call intake with --plan and increment the counter.

Requirement: Tracker body view

The improve step SHALL rewrite the tracker body view at most once a week.

Scenario: Second rewrite in a week

  • WHEN A test runs improve twice in one week.
  • THEN The second run writes no tracker body view.

Requirement: Declined insight

A proposal closed as not planned SHALL set its insight state to declined until a member changes.

Scenario: Declined and unchanged

  • WHEN A test closes a proposal as not planned and reruns improve with unchanged members.
  • THEN The insight is declined and the step files no new proposal for it.

Requirement: Brain egress to Prometheus

The egress NetworkPolicy under k8s/devops/ SHALL admit pods with row=brain to Prometheus in namespace monitoring on TCP port 9090.

Scenario: Egress manifest check

  • WHEN uv run devops ci --check --only k8s runs on the change.
  • THEN The check passes and reports no error for the egress NetworkPolicy.

Requirement: Brain metrics

The brain SHALL increment devops_cli_brain_proposals_total for each filed proposal and SHALL record the spend rows brain_aggregate and brain_improve.

Scenario: Metrics after improve

  • WHEN A test runs improve with one filed proposal.
  • THEN The metric shows one proposal and both spend rows are present.

Requirement: Project-brain spec

The change SHALL add the project-brain insights requirements to openspec/specs/project-brain/insights/spec.md through its OpenSpec change.

Scenario: Spec validation

  • WHEN uv run devops ci --check --only openspec runs on the change.
  • THEN The check passes and the spec holds the insight requirements.

Requirement: Pending a person after the merge: first weekly runs

The first 2 brain-weekly runs after the merge SHALL file no issue and SHALL write their plans to the tracker.

Scenario: First live weekly runs

  • WHEN A person reads the first 2 brain-weekly runs after the merge.
  • THEN Each run shows a plan comment with 0 filed issues.

Requirement: Pending a person after the merge: weekly spend

The brain spend SHALL stay under 1.20 USD a week, as devops_cli_ai_spend_usd_total{row=~"brain_.*"} shows.

Scenario: First live weekly spend

  • WHEN A person reads the metric devops_cli_ai_spend_usd_total{row=~"brain_.*"} after the first weekly run.
  • THEN The metric shows a weekly spend under 1.20 USD.

Existing Tool Considered

The alternatives check in the issue body records verdict none: no open, maintained tool covers the need. The change builds the pipeline itself at about 300,000 tokens and 7 hours to build, plus the upkeep of the code until it matches the need.

Key questions

  • How should the conflict_files signal be handled?: Build it now as a github signal row in roadmap.brain.signals. Issue refactor(openspec): split big capabilities into nested ones #4622 is archived, so the signal is unblocked. The row counts the files in conflict across open pull requests. The daily run applies the same 3-run persistence and bounds as the other signals. (best practice) [sources: openspec/changes/archive/2026-11-12-4622-split-big-capabilities-into-nested-ones/proposal.md:5, openspec/changes/archive/2026-11-12-4622-split-big-capabilities-into-nested-ones/proposal.md:9, src/devops_cli/roadmap/refine/refine.py:1038]
  • Where should the signal rows live?: In the roadmap.brain member of RoadmapConfig in src/devops_cli/config/settings.py:2295, as the data list roadmap.brain.signals. Each row names its kind (promql, logql, git or github), its query, period, threshold and owner note. A new signal is one data line and needs no code change or deploy. (best practice) [sources: src/devops_cli/config/settings.py:2295, src/devops_cli/config/settings.py:2318, CONTEXT.md:178]
    • Chosen: Data rows in the config. The config already holds list-valued settings, and a new signal is one data line with no code change or deploy.
    • Rejected: One module for each signal. A new signal needs code and a deploy, against the issue.
    • Rejected: A new external tool. The alternatives check in the issue body records no tool that covers the need.
  • Where should the daily streak and the fact cache live?: In Valkey under the brain key forms of ADR 0022 section 5, with the durable copy in the run comments on the tracker issue, as ADR 0023 sets for the D class. Each entry is derived and has a durable copy. Valkey never holds the only copy. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:66, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:72, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:98, CONTEXT.md:178]
    • Chosen: Valkey key with a tracker run comment. The brain uses Valkey and ADR 0023 requires a durable copy of each insight in the run comments.
    • Rejected: JSON files on the home volume. A file adds a second state store and no shared access.
    • Rejected: The issue body only. A daily read and write to GitHub costs requests.
  • How should improve avoid a second proposal for one insight?: Search open and closed issues for the hidden marker &lt;!-- devops-roadmap-insight:<id> --> before it files. The intake duplicate flag is the second check. (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:129, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:68, CONTEXT.md:178]
    • Chosen: Marker search. ADR 0021 rule 5 makes the marker the first check, and it covers closed issues.
    • Rejected: Title match. A title changes and does not identify an insight.
    • Rejected: Intake duplicate flag only. It runs after a candidate exists and does not stop a closed duplicate.
  • How should a declined proposal mark its insight?: Read the closing state of the proposal. A proposal closed as not planned sets the insight state declined and stores a fingerprint of its members. A change of a member clears the state. (best practice) [sources: CONTEXT.md:178, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:66]
    • Chosen: Closing state and member fingerprint. The GitHub state is authoritative and a fingerprint detects a member change.
    • Rejected: A label on the proposal. A label is a second state and a person can remove it.
    • Rejected: A comment on the proposal. A comment search costs requests and is no state.
  • How should the first 2 weekly runs stay plan-only?: Keep a Valkey counter roadmap:v1:brain-run:<owner>/<name>:weekly. A run with a count below 2 calls intake with --plan and writes the plan to the tracker comment. It files 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:84, docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:98, docs/commands/roadmap.md:29]
    • Chosen: Valkey run counter. It is shared state, follows the ADR 0022 key form and survives a pod restart.
    • Rejected: An issue label. It changes the item and a person can remove it.
    • Rejected: A tracker comment. It costs a GitHub read and write on each run.
  • What schedule and deadline should brain-weekly use?: CronWorkflow brain-weekly with schedules: ["0 1 * * 1"], activeDeadlineSeconds: 3600 and the template roadmap-brain. (best practice) [sources: docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:79, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:81, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:51]
    • Chosen: Weekly on Monday at 01:00 UTC. ADR 0023 sets this schedule for the job, and it fits the weekly cadence.
    • Rejected: Daily. It spends the proposal and model budget more often.
    • Rejected: Manual only. It needs a person, and the issue asks for a schedule.
  • How should the egress NetworkPolicy be scoped in this repository?: Add only the egress rule under k8s/devops/ for pods with row=brain to the monitoring namespace on TCP port 9090. The default perimeter admits no monitoring peer today, so the rule is additive. The matching ingress rule lives in dan-petty/homelab (k8s/monitoring/networkpolicy.yaml, follow-up dan-petty/homelab#274) and is deferred. (best practice) [sources: k8s/devops/networkpolicy.yaml:59, k8s/devops/networkpolicy.yaml:74, k8s/devops/networkpolicy-infra.yaml:11]
    • Chosen: Egress only in this repository. The ingress rule belongs to the homelab environment tree, and the default perimeter already composes with additive policies.
    • Rejected: Add the ingress here too. The ingress rule belongs to the homelab environment tree.
    • Rejected: Open port 9090 to all pods. It gives every pod access to Prometheus.
  • How should the live Prometheus proof be handled?: Defer the live proof to a new issue that waits on the homelab ingress rule. The egress rule and the signal code can merge first. The new issue is filed in deferred. (best practice) [sources: k8s/devops/networkpolicy.yaml:59, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:81]
    • Chosen: Defer the live proof. This repository cannot merge the homelab ingress rule, so the live proof waits on an outside change.
    • Rejected: Block the whole issue. The rest of the signal runner and egress rule can be built now.
    • Rejected: Add the ingress here. The ingress rule belongs to the homelab environment tree.
  • How should the tracker body view stay at most once a week?: Write a Valkey key roadmap:v1:brain-view:<owner>/<name>:weekly with a TTL to the next week after a rewrite. A run that finds the key writes no tracker body view. (best practice) [sources: docs/adr/0022-one-repository-reference-names-the-objects-labels-and-keys-of-each-repository.md:98, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:72, docs/adr/0023-the-project-brain-is-a-derived-index-in-two-cache-tiers-and-two-scheduled-runs-keep-it.md:85]
    • Chosen: Valkey week key. ADR 0023 puts counters and due marks in Valkey with a TTL, and the key follows ADR 0022.
    • Rejected: Read the tracker comment time. It costs a GitHub read on each run.
    • Rejected: No guard. The issue caps the rewrite at once a week.

Fit

Needs splitting into 4 items:

    1. feat(roadmap): run project signals from a data list in brain-daily - the roadmap.brain.signals rows for ci_queue, implement_failures, spend_by_row, github_requests_by_row, hot_files and conflict_files, the signal runner on the Prometheus, GitHub and git clients, its bounds, the 3-run persistence, the daily step and the egress NetworkPolicy under k8s/devops/. Depends on feat(roadmap): run brain repair, consolidate and evaluate daily #4687.
    1. feat(roadmap): add the brain weekly aggregate run - the brain-weekly CronWorkflow, the devops roadmap brain weekly and aggregate commands, and the near lists, tool groups, need areas, ADR conflicts and ring changes. Depends on feat(roadmap): run brain repair, consolidate and evaluate daily #4687.
    1. feat(roadmap): improve brain insights - the devops roadmap brain improve command, enrichment of 50 entries, the reference step, the 5 weekly area checks, the insight re-rank and the weekly tracker body view. Depends on feat(roadmap): run brain repair, consolidate and evaluate daily #4687.
    1. feat(roadmap): file capped insight proposals through intake - at most 2 proposals a week with the insight marker, the docs type for an ADR conflict, the 2 plan-only runs, the declined state, the proposal and spend metrics, and the project-brain insights spec. Depends on feat(roadmap): run brain repair, consolidate and evaluate daily #4687.

Suspected block

None.

Dependencies

#4687

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/high
    effort/high
    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/feature. The feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It improves project self-awareness but does not block current work or fix a defect.
    • Value: High. It automates detection of CI queue, failure, and spend patterns and files them as proposals, reducing manual monitoring.
    • Effort: High. The body states about 300,000 tokens and 7 hours to build, with multiple subsystems and a NetworkPolicy change.
    • Related: feat(roadmap): read project review facts through a catalog #4692, which asks for a different change. Both work on project facts and insights for the roadmap, but 4692 delivers a read-only fact catalog while the candidate delivers the signal-to-insight-to-proposal pipeline.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Related item

    #4692 (child of #4679) adds a fact catalog for the project review: one dispatcher reads facts from a data file through reader kinds. The signal runner of this item also reads project facts (CI queue, implement failures, spend and requests by row) from a data list. Before this item starts, check whether the signal runner can read its signals through the #4692 catalog, so that the project keeps one fact reader. If #4692 merges first, use its catalog and add the signals as catalog entries.

  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the CLI usage plan (2026-11-11)

    Tracker #4833, child 4: feat(roadmap): the brain files CLI usage-error proposals.

    Problem. The owner wants the usage errors to drive future work on missing flags, features and aliases. #4693 plans the weekly brain step that files at most 2 intake proposals a week, but its signals do not include CLI usage errors. Without a weekly step, a person must run the report command to see the ranking.

    Scope to add. A signal cli_usage_errors in roadmap.brain.signals (PromQL over devops_cli_usage_error_total for the count; the names from the report command's Loki source). The improve step calls the report code as a library for the 7-day window with caller agent, and makes an insight from a row that has a proposal class other than hinted or resolved in 2 weekly runs. These insights share the cap of 2 proposals a week of #4693; they do not add to it. Before it files, improve searches open and closed issues for the marker cli-usage:<command path>:<name> (ADR 0021 rule 5); when an open issue holds it, improve plans a comment with the new counts, not a new issue. A proposal body holds counts, days, callers, the class and Click's suggestion, never a value. The first 2 runs use --plan.

    Acceptance. In a --plan run with a fixture of 4 qualifying rows, 1 of which has an open marker issue, the plan lists 1 comment, 2 proposals and 1 deferred row. A test finds no argument value in a proposal body. The step sends at most 2 GitHub search requests for each row and counts against the 60-request bound of #4693.

    Dependencies. Merge first: #4839, #4840.

    Privacy. A record, a proposal body and a review row hold command and option names and counts only, never an argument value, a body, a token, a path or a user name.

  7. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    Scope from the content freshness plan (2026-11-11)

    This issue is child 18 of #4880, the content freshness tracker. The scope adds a document-drift lane with its own cap.

    Why

    This issue files at most 2 insight proposals a week. If document drift shares that cap, a week with insights files 0 document issues. The census baseline (22 living high findings, 48 findings in ADRs in force) needs a bounded lane of its own, with evidence, deduplication and a stop.

    New scope

    1. Signal data rows, with no code for each signal: closed_issue_named_open, adr_in_force_names_removed, kb_reviewed_age, rag_ingest_age, docs_check_at_main_head, docs_drift_findings.
    2. Aggregate runs the duplicated-rule rule of feat(docs): devops docs drift reports the drift that no PR check finds #4920 each week.
    3. A step with the pinned lychee image checks at most 500 external URLs. A URL is dead only after 2 weekly runs in a row. SECURITY.md records its egress.
    4. Improve gets a document lane apart from the 2 insight proposals: at most 3 issues a week (setting roadmap.brain.docs_issues_per_week, default 3). Each issue is one batch for one area (the owning document of the routing table). It has at most 20 findings, a path marker, permalinks at the main SHA, the exact token and the proposed fix.
    5. The lane is plan-only for its first 2 runs.
    6. A finding in an issue that a person closes as not planned stays declined until its lines change.
    7. An ADR finding asks for a superseding ADR or a status change.

    The lane makes 0 model calls and costs 0 USD.

    Acceptance added

    • The acceptance of this issue stays.
    • A test files no more than 3 document issues in a run and reads the marker first.
    • A declined finding is not filed again while its lines are unchanged.
    • The first 2 runs file nothing and print the plan.

    Depends on: #4687, and the dependencies that this issue already names.

  8. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: none

    Reason: Searches for tooling that turns project signals into roadmap work found only Prometheus alert-to-GitHub-issue bridges (m-lab/alertmanager-github-receiver, sharkops-io/alertmanager-github-issues) and the Keep alert platform; each begins at a firing alert and opens a ticket, with no data-driven multi-source signal runner, no 3-daily-run persistence before an insight, and no insight ranking, enrichment, plan-first capped intake proposals or marker dedupe. The need is a project-specific brain step over Prometheus, git and GitHub data, so no open tool covers it.

    Tool: none found

    Lacks:

    • Data-driven signal runner over promql, logql, git and github signal rows, with a new signal added as data only
    • A fact must stay over its threshold for 3 daily runs before it becomes a project-fact insight
    • Aggregate pass over near lists, tool groups, need areas, ADR conflicts and radar ring changes
    • Improve pass that enriches entries, runs area tool checks, re-ranks insights and rewrites the tracker body view
    • At most 2 proposals a week filed through devops roadmap intake with the insight marker, plan-only for the first 2 runs
    • Declined-proposal tracking until the insight's members change, and spend/proposal metrics
    • NetworkPolicy change so brain pods reach Prometheus on port 9090

    Tools considered:

    Searches run:

    • open source tool turn Prometheus metrics alerts into GitHub issues automatically, results: 5
    • open source project roadmap insights automation aggregate signals into issues tool, results: 5
    • Keep keephq open source alerting AIOps deduplicate alerts create tickets, results: 5
    • Prometheus Alertmanager create GitHub issue from alert webhook automation, results: 5
    • Apache DevLake CI pipeline metrics dashboard open source, results: 5
    • open source tool detect CI queue time failure trends and open backlog issue, results: 5
    • keephq keep github alerts, results: 5
    • prometheus alertmanager github receiver, results: 5
    • Backstage tech insights scorecards data source checks, results: 5
    • open source AIOps platform correlate alerts open tickets backlog automatically, results: 5

    Sources:

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

  9. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 0820a64 while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

  10. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    Next step: a person splits the item, or replies in a comment or edits the body to keep one item. See Fit in the section Proposed design of the body.

  11. dan-petty commented on Nov 27, 2026

    @dan-petty
    OwnerAuthor

    Design check, 2026-11-26

    Body, 2 corrections: the ingress rule is not in this repository now. It is dan-petty/homelab#274 (open). Only the egress rule under k8s/devops/ stays here.

    Refine block: its Fit section asks for 4 items. No such item exists (title search of 2026-11-26).

    Proposed split (nothing is filed), as the Fit section gives it:

    1. The signal runner and its egress rule.
    2. The weekly run and the aggregate task.
    3. The improve task.
    4. The proposals through intake.

    No part can start now. Each part needs the template roadmap-brain or the daily run of #4687, which is open.

    Dependencies: #4687 is open. It waits for #4566 and #5289. dan-petty/homelab#320 closed on 2026-11-27. #4622 is closed.

    Items that wait for data of this item: #4682 (ring, area verdict), #6599 (insights) and #4699.

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

    @devops-cli-service
    Contributor

    Next step: a person splits the item, or replies in a comment or edits the body to keep one item. See Fit in the section Proposed design of the body.

  13. devops-cli-service commented on Dec 1, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: none, no tool. A person decides what the new result means for the item.

    Searches (9)

    Tools considered:

    Searches run:

    • Prometheus alerting rules for duration sustained threshold, results: 5
    • open source tool that files GitHub issues from metric alerts automatically, results: 5
    • prometheus/prometheus alerting rules for clause documentation, results: 5
    • Robusta Kubernetes alerting issue creation tool, results: 5
    • Prometheus Alertmanager, results: 5
    • Grafana alerting rules unified alerting, results: 5
    • keephq Keep open source alert management workflows create GitHub issue, results: 5
    • Robusta HolmesGPT alert investigation Kubernetes, results: 5
    • Keep alert management platform open source, 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/p2-mediumscope/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