Skip to content

standing: support temporary and conditional instructions (until / until-condition) #73

Closed

Description

@lx-0

Need

Many human instructions to a coordinator are temporary or conditional, not permanent. Examples from one day of a v2 coordinator run:

  • "Until the load test ends, the PR limit is higher" (a time-boxed exception).
  • "We don't touch PR #1336 while the v2 plan executes" (holds until a condition is met).
  • "Hold merges until the Dev measurement ends at about 12:37 UTC" (a short window).

Today a standing entry has only given, scope and supersedes. A temporary instruction can only be written as prose, and it ends only when someone remembers to add a superseding entry. In practice the coordinator either forgets it ends, so it keeps applying a lapsed rule, or never records it because it feels too short-lived.

Proposal

  1. Two optional frontmatter keys:
    • until:: an ISO UTC time after which the entry no longer applies.
    • until-condition:: a sentence naming a checkable condition, such as "the v2 ledger shows AV-08 EXIT booked" or "PR #1879 merged".
  2. ytstack-standing list (and the coordinate preamble) prints active entries only. A separate "expired / condition met?" section lists entries whose until has passed or whose condition the coordinator should check now.
  3. When the condition is met, the coordinator closes the entry by adding a short superseding entry ("ended: condition X met at "). That keeps the record append-only.
  4. Where a condition is machine-checkable (PR merged, ledger row booked), allow an optional until-check: command that returns 0 once the entry has ended, so the preamble can mark it ended without judgement.

Related: #72 (standing instructions not recorded under load).

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