Skip to content

Queen roadmap from one .t27 source, live from the epics, read by the planner; plus self-diagnosis rules #9022

Open

Description

@gHashTag

Owner, 2026-10-11 (translated): "The roadmap -- why is it not aware of the overall plan? Improve the logic." And: "why doesn't the Queen see these problems herself?" (see https://t27.ai/#/queen?tab=roadmap).

What is wrong today

Proposal

  1. One source: specs/queen/roadmap.t27. It defines goals (id, stage, title en/ru, why), the epic issues each goal is made of, and each goal's done-criteria, with tests. Seed it from the current plan:
  2. Live progress. The Queen server computes each goal's progress from its epics' sub-issue states (open/closed, with PRs) and serves /queen/roadmap; the tab reads it. goals.json and stack.json become generated outputs, re-measured on a schedule, not hand edits.
  3. Plan-aware priority. Priority takes a goal weight (the stage and the critical path from roadmap.t27) as an input, so an issue under the current critical-path goal outranks an unlinked one at the same label level.
  4. Self-diagnosis rules in specs/queen/self_health.t27, evaluated on every tick over the status the Queen already has. Each anomaly names its fix and is posted (board and issue), not just logged:
    • tick-capped: dispatch rate x mean turn < capacity;
    • conflict-starved: fileConflict above 20% of candidates while lanes idle;
    • completed-open: more than 50 completed issues still open;
    • review-lagging: reviewedLastHour < finishedLastHour for N hours;
    • fuel-low: dispatchable < idle lanes;
    • roadmap-drift: the critical-path goal has had no claimed issue for N ticks.

Ownership

User Scenarios

  • Given the Queen server runs with specs/queen/roadmap.t27 defining goals and their epic links, when the server computes progress from live GitHub issue states, then /queen/roadmap returns each goal with a current progress percentage derived from its epics' sub-issues (open/closed with PRs).
  • Given specs/queen/self_health.t27 defines self-diagnosis rules, when the Queen evaluates a tick and detects an anomaly (e.g., conflict-starved: fileConflict > 20% of candidates while lanes idle), then the anomaly is posted to the board and an issue is created with its named fix.
  • Given specs/queen/priority.t27 reads goal weights from roadmap.t27, when two issues have the same priority label but one belongs to the critical-path goal, then the critical-path issue is ordered first.

Requirements

  • FR-001: The file specs/queen/roadmap.t27 MUST exist and define goals with id, stage, title (en/ru), why, epic issue numbers, and done-criteria with tests.
  • FR-002: The Queen server MUST serve /queen/roadmap with live progress computed from each goal's epic sub-issue states (open/closed with PRs).
  • FR-003: The files goals.json and stack.json MUST become generated outputs re-measured on a schedule, not hand-edited.
  • FR-004: specs/queen/priority.t27 MUST consume goal weights (stage and critical path) from roadmap.t27 so critical-path issues outrank unlinked ones at the same label level.
  • FR-005: The file specs/queen/self_health.t27 MUST exist and define rules evaluated every tick: tick-capped, conflict-starved, completed-open, review-lagging, fuel-low, roadmap-drift.
  • FR-006: Each self-diagnosis anomaly MUST name its fix and be posted to the board and as an issue, not only logged.

Success Criteria

  • t27c check specs/queen/roadmap.t27 exits 0
  • t27c check specs/queen/self_health.t27 exits 0
  • t27c check specs/queen/priority.t27 exits 0
  • curl -s /queen/roadmap | jq '.goals | length' returns 8 (L0–L4 matryoshka, t27b self-build, t27o, effects, dogfooding, silicon, plus existing valid goals)
  • curl -s /queen/roadmap | jq '.goals[].progress' shows a number 0–100 for each goal derived from epic sub-issues
  • A Queen tick with 250 fileConflict candidates and 1000 total candidates while 48 lanes idle produces a "conflict-starved" anomaly posted to board and issue
  • A Queen tick where dispatch rate × mean turn < capacity produces a "tick-capped" anomaly posted to board and issue

Boundary

  • specs/queen/roadmap.t27
  • specs/queen/self_health.t27
  • specs/queen/priority.t27
  • /queen
  • specs/docs/chapters/queen.t27
  • specs/docs/chapters/rules.t27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions