Skip to content

feat: progress per phase, lane liveness, worktree inventory, peers in LANES.md (#81, #84) - #90

Merged
lx-0 merged 4 commits into
mainfrom
feat/81-84-phases-liveness
Nov 15, 2026
Merged

lx-0 merged 4 commits into
mainfrom
feat/81-84-phases-liveness

Conversation

@lx-0

@lx-0 lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member

Changes

  • status: no progress report per phase, a growing denominator reads as negative progress #81 progress per phase: ytstack-status --phases [--json] [-C DIR] prints done / in review / total per milestone roadmap that is not dropped, plus the total and read <UTC>, log <path>. A total that changed since the last report names the change and why (total 4 -> 5 since the last report: added S05, S06; removed S04). Every change goes to <state base>/repos/<repo key>/phases/denominator.log, outside the tree. coordinate Step 11 points at it, and --json is the input for charts.
  • coordinate: no lane liveness check, no worktree cleanup, peer sessions not in state #84 liveness: ytstack-frontier check [--minutes N] reads a well-formed table and prints one stale: line per lane, exit 2:
    • a running lane whose PR is in its row or whose worktree is gone (the worker reported or ended);
    • a running lane whose branch had no commit for N minutes;
    • a ready lane nobody claimed for N minutes since a check first saw it (that time is kept in frontier-ready under the state base).
    • Format problems still exit 1, and no liveness check runs then. ytstack-upkeep lists the stale lines under lanes, once per lane.
  • coordinate: no lane liveness check, no worktree cleanup, peer sessions not in state #84 worktrees: ytstack-upkeep --worktrees lists linked worktrees and local branches with:
    • the state of the newest PR (one gh pr list --state all);
    • the age of the last commit, uncommitted changes, a lock, and the lane that holds the branch.
    • It then prints git worktree remove / git branch -D commands for merged or closed, clean, unlocked and unheld ones. It never runs them, and prints none when it could not read PR state. Exit 10 when it printed a command.
  • coordinate: no lane liveness check, no worktree cleanup, peer sessions not in state #84 peers: ## Peers in LANES.md, one line per peer: - <role> | <repository> | <address> | <last contact UTC>. ytstack-frontier peer set / peer list write and print them, and check validates them. coordinate prints them between PEERS_BEGIN/PEERS_END and adds Peers: to the Rotation block.
  • Docs: docs/ux/coordinator-format.md (Peers, Lanes that stall, Rotation, checked mechanically), docs/statusline.md, docs/recipes/recurring-upkeep.md, spec area files, CHANGELOG under Unreleased. coordinate metadata.version 0.5.0 -> 0.6.0.

Decisions (DECISIONS.md, 2026-11-15)

  • A phase is a milestone roadmap and its rows are slices. Done means a ticked checkbox or a merged lane; in review means a lane that is reported, in-review or ready. Dropped roadmaps are left out.
  • The denominator log and the snapshot live outside the tree, keyed by repository, so linked worktrees share them.
  • Liveness is part of check and uses exit 2; N defaults to 60 minutes.
  • "Worker reported" = a PR in the row or a missing worktree. Workers do not push and leave no report on disk, so these are the only local traces.
  • Worktree cleanup only prints commands. Locked worktrees (live Claude Code sessions) get none.
  • Peers are list lines, not a second table. Every existing LANES.md reader treats any line starting with | as a lane row.

Verification

  • bash tests/run-all.sh (macOS bash 3.2): ALL SUITES PASSED. frontier 176, status 54, upkeep 152, skill-preambles 667, all 0 failed.
  • bash tests/run-all.sh --linux (alpine, bash 5.3, from an exported tree): ALL SUITES PASSED.
  • python3 bin/ytstack-check: OK (9 warnings, all from before this change). bin/ytstack-spec lint: 0 failures, 0 warnings. bin/ytstack-spec drift: no area to look at.

Closes #81
Closes #84

🤖 Generated with Claude Code

lx-0 and others added 2 commits November 15, 2026 14:57
…#81)

Done, in review and total per milestone roadmap and in total; a changed
total names its cause, every change is logged under the state base.
coordinate Step 11 points at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ANES.md (#84)

ytstack-frontier check prints stale: lines (exit 2) for running lanes whose
worker reported or went silent and ready lanes nobody claimed; peer set /
peer list keep a ## Peers section. ytstack-upkeep lists stale lanes and
gets --worktrees, which prints remove commands and runs none. coordinate
prints peers in its preamble and Rotation block.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T14:23:16.803889Z 7bb019d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7bb019d58d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bin/ytstack-upkeep Resolved
Comment thread bin/ytstack-status Resolved
lx-0 and others added 2 commits November 15, 2026 15:58
… phase reports)

- frontier check: a PR in a running row is a fix round, checked for commits
  from its first sight; review and prepare lanes get a time-only rule
  (3 x N); first sights in frontier-seen under a lock with a mktemp file;
  a table row under ## Peers is named as such
- upkeep --worktrees: no command with an open PR or unpushed commits; the
  current worktree is left out; LANES.md from the main checkout; ct reset
- status --phases: only the text report advances snapshot and log (locked,
  mktemp); joined and left phases named in text and JSON; done and
  shipped-informally count all slices, backlog left out

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eness

# Conflicts:
#	.ytstack/DECISIONS.md
#	.ytstack/spec/skills.md
#	CHANGELOG.md
#	skills/coordinate/SKILL.md
@lx-0
lx-0 merged commit b541045 into main Nov 15, 2026
4 checks passed
@lx-0
lx-0 deleted the feat/81-84-phases-liveness branch November 15, 2026 17:40
@lx-0 lx-0 mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant