From 643655ebefffa431ac7fe6280c79d4c13b8a0db5 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Mon, 16 Nov 2026 12:05:48 +0000 Subject: [PATCH 1/2] feat: queue maintained by chat (/queue skill); read-only dashboard stars and copy (#640) Human ruling 2026-11-16: the design C dashboard input path is overkill; queue.md is maintained only through chat. - Remove the dashboard's write client: dashboard_edit.js, the star toggle, the Goals editor, the token panel and its browser harness and JS tests. The page now has no network at all: the CSP drops connect-src (default-src 'none' covers it) and still pins the one inline script. - Read-only stars: every task row whose prompt is a live queue.md entry shows a star and its rank #n. The rank comes from the planner's own reader: read_queue moves verbatim from _batch.py into _steer.py (re- exported by _batch), and queue_ranks maps it by basename. - Copy: every task row, the Queue box included, keeps the existing copy button carrying "Use the start-dev skill. " (_prompt_payload). - batch brief --new: goal provenance (Via: mind-dashboard blame) removed as dead code; the human is goals.md's only writer. The goal diff report stays. - New skills/queue (SKILL.md + queue.md): in a /queue chat a pasted task is an add, never start dev; add/remove/move/show through the Mind's scripts/queue_edit.py in a detached worktree, prompt_sync_push, then lifecycle.py check. Routed in COMMANDS.md, route.md and start_dev's SKILL.md; project discovery regenerated. - Tests: test_intake_dashboard_queue.py (stars on queued rows only, rank is the planner's, copy text, no fetch or api.github.com, CSP without connect-src, renders without JS), test_queue_skill.py, brief goals. Co-Authored-By: Claude Opus 5.5 --- .claude/commands/queue.md | 1 + .claude/skills/queue | 1 + .codex/skills/queue | 1 + agents/conductors/batch/AGENTS.md | 10 +- agents/conductors/batch/_batch.py | 180 +------ agents/conductors/batch/_steer.py | 90 +++- agents/conductors/intake/AGENTS.md | 2 +- agents/conductors/intake/_intake.py | 182 +++---- agents/conductors/intake/dashboard_edit.js | 532 --------------------- skills/COMMANDS.md | 10 + skills/queue/SKILL.md | 14 + skills/queue/queue.md | 71 +++ skills/route/route.md | 7 + skills/start_dev/SKILL.md | 7 +- tests/dashboard_edit_browser.cjs | 165 ------- tests/test_batch_brief_goals.py | 87 +--- tests/test_dashboard_edit_js.py | 161 ------- tests/test_intake_dashboard_input.py | 182 ------- tests/test_intake_dashboard_queue.py | 229 +++++++++ tests/test_queue_skill.py | 106 ++++ 20 files changed, 628 insertions(+), 1410 deletions(-) create mode 120000 .claude/commands/queue.md create mode 120000 .claude/skills/queue create mode 120000 .codex/skills/queue delete mode 100644 agents/conductors/intake/dashboard_edit.js create mode 100644 skills/queue/SKILL.md create mode 100644 skills/queue/queue.md delete mode 100644 tests/dashboard_edit_browser.cjs delete mode 100644 tests/test_dashboard_edit_js.py delete mode 100644 tests/test_intake_dashboard_input.py create mode 100644 tests/test_intake_dashboard_queue.py create mode 100644 tests/test_queue_skill.py diff --git a/.claude/commands/queue.md b/.claude/commands/queue.md new file mode 120000 index 00000000..9e3222e1 --- /dev/null +++ b/.claude/commands/queue.md @@ -0,0 +1 @@ +../../skills/queue/queue.md \ No newline at end of file diff --git a/.claude/skills/queue b/.claude/skills/queue new file mode 120000 index 00000000..191d5f37 --- /dev/null +++ b/.claude/skills/queue @@ -0,0 +1 @@ +../../skills/queue \ No newline at end of file diff --git a/.codex/skills/queue b/.codex/skills/queue new file mode 120000 index 00000000..191d5f37 --- /dev/null +++ b/.codex/skills/queue @@ -0,0 +1 @@ +../../skills/queue \ No newline at end of file diff --git a/agents/conductors/batch/AGENTS.md b/agents/conductors/batch/AGENTS.md index e8df516a..613dfbb9 100644 --- a/agents/conductors/batch/AGENTS.md +++ b/agents/conductors/batch/AGENTS.md @@ -201,12 +201,10 @@ a skeleton brief whose `goals:` are `PyAutoMind/goals.md`'s, in order, with `backlog: scoped` to their `epics:`/`tags:` (else `fill-idle`) and `merge-cap: 0`. It prints to stdout (`--out FILE` writes it) and never writes a record into `batches/` — saving it there is the human's dispatch. -A goal whose line was last written by a `Via: mind-dashboard` commit (git -blame) is web-page text, so it is emitted commented out — "from dashboard, -last edited " — and never reaches a worker unless the human adopts it; -`--new` also prints on stderr how the goals changed since the newest brief. -`brief --check` warns when `goals.md`'s goal 1 is missing from a brief, unless -goal 1 came from the dashboard (PyAutoMind#565; readers in `_steer.py`). +`goals.md` is written by the human alone (by hand or in chat), so every goal +is copied as their word; `--new` also prints on stderr how the goals changed +since the newest brief. `brief --check` warns when `goals.md`'s goal 1 is +missing from a brief (PyAutoMind#565; readers in `_steer.py`). ## The keep-Heart-green lane (`_green.py`, PyAutoBrain#625) diff --git a/agents/conductors/batch/_batch.py b/agents/conductors/batch/_batch.py index b358145e..945f10f6 100644 --- a/agents/conductors/batch/_batch.py +++ b/agents/conductors/batch/_batch.py @@ -240,62 +240,9 @@ def _title_of(text: str) -> str: return "" -#: A `queue.md` section heading — `## .