Skip to content

Stop seeding the four task-level agent queues: the skills and rules that use them carry the filter #4236

Closed

Description

@malibio

Overview

Core seeds ten saved queries in every database. Four of them (Ready tasks, In progress, Needs shaping, Waiting on you) exist only so that an agent procedure can ask "what is next?"; nobody opens them. They are hidden from the sidebar by a list of ten ids, and the skills that use them are attached to them. They stop being seeded. Each rule or skill that needs one carries its filter and runs it as an ordinary filtered search. The hide list is deleted, because every remaining seeded query is a view a person can open.

Problem Statement

  • core_queries.rs seeds ten query nodes. The sidebar groups saved queries by target type, so they would appear under Task, Issue, Spec, Plan and Decision; a single set of ids, SEEDED_AGENT_QUERY_IDS in saved-queries.svelte.ts, filters all ten out. Hiding hid the three boards (specs, plans and decisions by status) and the three issue queues along with the four agent lists. The earlier decision to hide was recorded in a closed issue, Rethink the seeded agent-helper saved queries (Ready tasks, In progress, Needs shaping, Waiting on you and the issue queues) #3850, and landed in Hide system subtypes and seeded agent queries from the sidebar; Types and Views rename (#3851 #3850 #3839) #3852; the question it listed first, whether agent-facing lists should be query nodes at all, was not answered by hiding.
  • The four lists have few callers. task-implement-list (the agent and CLI variants) calls Ready tasks. task-question-take calls Waiting on you. In progress and Needs shaping have no rule calling them; only skills are attached to them. No Play uses any of the four.
  • The in-app agent's search_nodes already takes a node type, filters, a sort and a limit and routes through the same query service as a saved query (SearchNodesParams, AgentFilterItem), with the property, content, metadata, relationship, related and permitted filter types, negation, a stored-value option and the current-person anchor. The CLI's nodespace query --type … --filters … --sorting … does the same without creating a node. So the lists can run without a node.
  • Every skill attachment in the seeds points at one of the ten queries; none is attached to a schema or a project.

Proposed Solution

Decided in ADR-094's 2026-11-03 amendment:

  • The four lists are not seeded. The rule or skill that needs one states its target type, filters and sort as exact JSON and runs it with search_nodes (in-app agent) or nodespace query --type … --filters … --sorting … (shell).
  • A list that reads context (Waiting on you, which task-question-take reads with its context) is two steps: a filtered search, then a context read of the item.
  • Each skill's tools names the search tool its recipe calls.
  • The three boards and the three issue queues (Awaiting review, Changes requested, Ready to merge) stay seeded. All six are listed in the navigation, and the hide list is deleted.
  • Implementing a Task, Creating a Task, Answering a Question, Diagnosing a Bug and Instrumenting a Change lose their attachment and are reached by what they are for.

Documentation

Architecture Impact

Amends ADR-094 §1, §3 and "The shipped workflow" (done in the amendment above, with ADR-092, ADR-093, ADR-097 and ADR-099 passages that described the four lists as seeded nodes). #3712 and #3734 use the word "queue" in their acceptance criteria; their wording needs checking against this when they restart.

Acceptance Criteria

  • core_queries.rs seeds six queries: the three boards and the three issue queues. The four ids, their templates and their entries in CORE_QUERY_IDS are removed, and the tests that list them are updated.
  • Each removed list has a recipe (exact JSON) in the rule or skill that used it, and on a seeded fixture the recipe returns the same nodes, in the same order, as the removed saved query did. An equivalence test covers all four, with Ready tasks including a blocked task, an unapproved plan and a task the rules would refuse.
  • task-implement-list and task-question-take (the in-app and skill-md variants) carry their recipe. task-question-take reads the item's context in a second step, and the CLI variant uses nodespace query and nodespace node context.
  • Skill text that names these lists as queues (Creating a Task, Implementing a Task, Splitting into Issues) is rewritten to the filter. Their attached_to entries are removed.
  • Every skill that runs a recipe lists the search tool in tools, and a test fails when a skill's text names a tool its list lacks.
  • Skill retrieval and routing still select the five unattached skills for their scenarios: the skill retrieval snapshot, the confusion matrix and the pinned-candidate tests pass; prompt snapshots are regenerated (UPDATE_GOLDEN=1) and the diff reviewed.
  • The tool description of run_query and description.rs no longer use "Ready tasks" as the example of a queue.
  • SEEDED_AGENT_QUERY_IDS and its filter are deleted; the three boards and three issue queues are listed under Spec, Plan, Decision and Issue; a frontend test asserts that every seeded query is listed. The test that keeps the hide list equal to the Rust ids is removed.
  • Checked on the locked native model with a fresh prompt dump, not only by the eval suite: "what should I work on?" and "what is waiting on me?" each make the recipe call with the correct filters. Eval scenarios cover both.
  • bun run shape:gen is run and change-log.json has entries for the four removed seeds, classified per ADR-104 and stating what a database that already holds the four nodes does. bun run shape:check passes.
  • The CLI guidance changes, so the acceptance criteria cover the skill text as well as the code. Code passes bun run quality:fix; bun run test:changed passes.

Technical Specifications

Reference Files

  • packages/core/src/services/query_service/core_queries.rs - the seed table, ids, CORE_QUERY_IDS
  • packages/desktop-app/src/lib/stores/saved-queries.svelte.ts - SEEDED_AGENT_QUERY_IDS and its use in loadSavedQueries
  • packages/agent/src/seeds/rules/agent/task-implement-list.md, task-question-take.md and the skill-md copies
  • packages/agent/src/seeds/skills/creating-a-task.md, implementing-a-task.md, splitting-into-issues.md
  • packages/agent/src/skill_pipeline.rs - skill seeds, tools and attached_to
  • packages/core/src/ops/query_ops.rs, packages/core/src/agent_params.rs - AgentFilterItem, SearchNodesParams
  • packages/agent/src/local_agent/tools.rs - the run_query description
  • packages/agent/tests/it/workflow_seeds.rs, skill_confusion_matrix.rs, pinned_skill_candidates.rs; packages/core/tests/it/core_queries_test.rs
  • packages/core/shape-record/change-log.json

Implementation Details

The recipe for Ready tasks uses the permitted filter so the Plays remain the only place the blocker and plan conditions are stated. A recipe that only the local model can mishandle is the main risk: each carries exact JSON to copy rather than a description.

Non-Goals

  • Removing or retargeting the three issue queues or the three boards
  • A visibility flag on query nodes
  • How a database created by an earlier build is carried forward (see ADR-104)

Related Issues

Activity

  1. mstomar125 commented on Nov 6, 2026

    @mstomar125
    Contributor

    Picking this up (sweep drain).

  2. self-assigned this
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions