Skip to content

coordinate: standing instructions are not recorded under load — detect, enforce and make cheap #72

Closed

Description

@lx-0

Experience

A long coordinator run (ytstack:coordinate, about 12 hours, 2 compactions, 20+ lanes) received seven standing instructions from the human in one day. Examples: a priority change in the dispatch order, a PR that must not be touched during the plan, a tool approval that applies to every later cleanup, and a "merge green PRs promptly" rule. None of them reached STANDING.md / .ytstack/standing/ while the run was going. The coordinator wrote them to its own agent memory instead, which only survives on that one machine and is invisible to a successor session or another host. It noticed only when the human asked where such priorities are kept.

Step 9 ("Record standing instructions … at once, before the next dispatch") exists, but nothing makes it happen:

  • The step is one of 13 loop items. Under a high message rate (agent reports, PR-watch nudges, stop-hook nags), it is the one that is skipped, because nothing fails when it is.
  • In repos where agents may not write in the shared main checkout, every standing entry means a worktree, a commit and a PR. That cost pushes the coordinator towards its private memory.
  • Nothing tells the coordinator that a human message was a standing instruction. Phrases like "bitte priorisiere …", "wir packen X nicht an während …", "denk dran, immer …" carry no marker.

Proposals

  1. Detection hook: a UserPromptSubmit hook (coordinate mode only) that classifies a human prompt as a possible standing instruction ("always/never/from now on/while/prioritise/don't touch", in German and English) and injects: "This looks like a standing instruction: record it under .ytstack/standing/ before the next dispatch."
  2. Stop-hook check: at turn end, if the session received human prompts flagged by (1) and no new standing entry exists on any branch or open PR since then, block the stop with that list.
  3. Cheap write path: a ytstack-standing add "<text>" --scope … command that writes the entry file in a dedicated worktree, commits it and opens or updates one "standing" PR per day. Recording an instruction is then one command, not a worktree ritual.
  4. Preamble visibility: coordinate's preamble prints the newest standing entry's age next to the number of human prompts since then, so a gap is visible after every compaction.
  5. Memory vs. standing: the skill should say explicitly that agent-private memory is no substitute for .ytstack/standing/. A successor session or another host reads only the repo.

Related: #57 (STANDING.md vs. the standing/ directory).

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