Skip to content

coordinate: ytstack needs explicit, enforced usage instructions — a 12h run used almost none of its tooling #76

Closed

Description

@lx-0

Experience

A coordinator session ran ytstack:coordinate for about 12 hours on a large plan (3 milestones, 280 rows, 20+ lanes). It used ytstack only nominally. The human had to point out each gap separately, and each one was a usage error, not a missing feature:

What ytstack provides What the coordinator did instead
ytstack-brief render for every dispatch (coordinate's HARD-GATE: "never write a brief by hand") wrote every brief by hand, all day
plan-task: a task plan with Files, Verification and ## Spec impact; summarize-task checks spec impact lanes never planned tasks, so ytstack-brief said "T01 not planned yet"; no spec area got updated, only receipts were written
ytstack-frontier claim/set and LANES.md LANES.md was stale for a day, despite a standing order to keep it current
.ytstack/standing/ for standing instructions instructions went into agent-private memory
ytstack-watch release for every release not used
STATE.md pointer current_milestone was two milestones behind (M044 while M046 was active); the lint warned at every SessionStart and was ignored

The coordinator only found the gaps by reading bin/ and the skills after the human asked "ist das ein gap in ytstack oder verwendest du ytstack immernoch nicht richtig?". Earlier reports: #72, #73, #74 and #75 (with a correcting comment).

Root causes on the ytstack side

  1. The rules are in the skill text, not in the path. coordinate has 13 loop items. Under a high event rate (agent reports, PR-watch nudges, stop-hook nags), the procedural items (render the brief, set the frontier, record the standing entry) are dropped first, because nothing fails when they are skipped.
  2. The happy path does not require the artifacts. Dispatching an Agent with a hand-written prompt works just as well, and nothing marks it as off-path.
  3. No single "how to use ytstack correctly" page exists for a coordinator that is resuming after compaction. using-ytstack covers skill selection, not the operating discipline (which commands, in which order, which files must move with every lane).
  4. Lints are advisory. The STATE lint said "current_milestone M034 is behind the newest milestone" on every session start, and nothing escalated.

Proposals

  1. An explicit operating checklist injected at SessionStart and after compaction when coordinate is active. Short, imperative and ordered: per dispatch run frontier claim → brief render → Agent; per report run brief check → frontier set; per human instruction add a standing entry; per merge watch the release.
  2. Enforcement hooks in coordinate mode:
    • PreToolUse on Agent/SendMessage dispatches warns when the prompt carries no rendered-brief marker.
    • The Stop hook warns when a lane changed state and LANES.md did not, or when the STATE pointer is behind.
  3. Brief readiness: ytstack-brief render on an unplanned task should offer to run plan-task inline, or produce a "plan first" brief whose first deliverable is the task plan. It should not hand the worker the instruction "plan it yourself".
  4. Escalating lints: a STATE-pointer or LANES staleness warning that repeats N sessions in a row becomes a stop-hook block.
  5. Migration helper: ytstack:reconcile (or a new ytstack-adopt-plan) that, for a project with slice plans but no task plans, generates the task-plan skeletons (Files from the plan's "Own" lines, Verification, Spec impact) and fixes the STATE pointer.

🤖 Generated with Claude Code

Activity

  1. lx-0 commented on Nov 15, 2026

    @lx-0
    MemberAuthor

    Two more findings from migrating the project's artifacts so that ytstack-brief render works:

    1. Spec areas come only from paths. ytstack-brief derives the area files from a plan's Files via ytstack-spec areas, which matches the areas' paths frontmatter. Areas whose impact runs through a source document (an area's sources) never reach the reading list. Examples: v2-services.md for a load-test task, and identity-and-auth.md for a credential task whose files sit in the SDK. Proposal: areas also matches sources, or the plan's ## Spec impact names feed the reading list directly.
    2. ytstack-spec lint was already red on the project's main, with 15 stale paths entries, and nothing surfaced it. Proposal: run ytstack-spec lint in the SessionStart STATE lint, or in ytstack-frontier check, so drift is visible where the coordinator looks.

    A smaller point: --slice still lists a ticked task as "not planned" when it has no plan file. Ticked tasks should drop out.

    🤖 Generated with Claude Code

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions