Skip to content

standing entries never reach the coordinator's context after compaction — inject them like STATE #74

Closed

Description

@lx-0

Experience

During a 12-hour coordinator run that went through two compactions, the coordinator kept working without the project's standing instructions in context. .ytstack/standing/ held 22 active entries. Two of them it was visibly breaking:

  • "Lanes are tracked in LANES.md at all times": LANES.md was not updated all day.
  • "Every Prod release gets ytstack-watch release".

The human asked "ggf hast du die standings, die für dich wichtig sind, auch nicht im kontext geladen", and was right. Only after that did the coordinator load them by hand.

What the coordinator did get on every compaction: the SessionStart hook's STATE injection ("Next action", lint, handoff pointers) and its own agent memory index. Standing instructions get no injection at all. The coordinate preamble prints STANDING: yes/no, but not the entries. Step 3 ("read STANDING.md in full") is easy to skip after an automatic compaction, because the summary feels complete. In this repo STANDING.md is also only an index: the entries live in standing/ (#57).

Proposals

  1. SessionStart and post-compaction injection: the hook injects the active standing entries, the one-line text of each, into context. Entries whose scope does not apply to the current session's role (coordinator, lane, reviewer) are filtered out, and the size is capped, with a pointer to the rest. That is the same mechanism STATE already uses.
  2. Preamble prints entries, not a flag: coordinate's preamble lists the active entries (as ytstack-frontier list does for lanes) and skips superseded or expired ones (standing: support temporary and conditional instructions (until / until-condition) #73).
  3. Compliance self-check: for entries that name a file or a command ("LANES.md at all times", "ytstack-watch release per release"), an optional check: key with a command whose failure is shown in the preamble, for example "LANES.md last changed 14 h ago".
  4. Lane briefs: ytstack-brief render includes the entries whose scope covers lanes or reviewers, so delegated workers see them too, not only the coordinator.

Related: #57, #72 (standing instructions not recorded under load), #73 (temporary and conditional entries).

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