Skip to content

coordinate: tracking files in the repo cost one PR per bookkeeping step #79

Closed

Description

@lx-0

Experience

In the same 4-day coordinator run, 176 of the more than 500 PRs were docs(...) bookkeeping. Examples: "LANES.md reflects the lanes of 15 November", "AV05-S04d box ticked", "docs(ledger): AV07-S06a booked". The human asked why the coordinator only did docs PRs. The coordinator itself estimated that about 4 of 10 docs PRs in a row were needed.

Why

The coordinator's tracking files live in the repository: LANES.md, standing/, questions/, ROADMAP ticks and receipts. On a protected main, every update is a branch, a commit and a PR. State that changes by the minute (row status, next action, claims) costs one PR per step.

Proposals (one design decision needed)

  1. finish-lane writes the lane's row tick, booking and receipt onto the lane branch before the merge, so they ship with the change.
  2. For the volatile coordinator state, one of:
    • a. Keep it out of the repository in the plugin data dir, keyed by repository like the automatic handoff, with a periodic snapshot into the repository.
    • b. Use one rolling coord/ledger PR per day that ytstack-frontier set appends to.
  3. ytstack-upkeep reports more than N .ytstack-only PRs per day.

Related: #72 (proposal 3, one standing PR per day).

Activity

  1. lx-0 commented on Nov 16, 2026

    @lx-0
    MemberAuthor

    Decision (maintainer, 2026-11-16): neither of the two options above (state outside the repo with snapshots, or one rolling ledger PR per day). Following the pattern in "Inside OpenAI's agentic software factory" (Gergely Orosz, 2026-09-15), where the state of a change is its PR on the host and the agent's own thread, not a ledger in the repo:

    1. The host is the ledger for lanes. A lane's state is its PR (open, draft, checks, review, merged), read fresh from the host as finish-lane, the PR watch and ytstack-frontier owner already do. Nothing that the host already knows is written to a repo file.
    2. What only the coordinator knows stays out of tree with the session, keyed by repository, in the same place as the automatic handoff and the coordinate marker. That covers who holds a lane, its next action, the review round, and lanes without a PR yet. A successor on the same machine reads it there. One on another machine rebuilds it from the PRs: every implement lane has a PR or a branch on the host.
    3. Durable knowledge (DECISIONS.md, standing/, the spec, plan ticks that belong to a change) goes to main by PR, bundled on the lane's branch by finish-lane, never as a bookkeeping PR of its own.
    4. LANES.md in the repository becomes optional: a snapshot written only when a person asks for it, or at a milestone boundary inside that milestone's last lane PR.
    5. ytstack-upkeep reports more than 3 PRs a day that touch only .ytstack/.

    The goal clamp that this long-running mode needs is tracked separately.

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