Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .ytstack/DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1508,3 +1508,22 @@ Plus: ops-layer split during the same session (yopstack created as own public re
- The PR watch shows `STALL 1` first and `STALL 2` only a full window after `STALL 1` was shown, as `ytstack-watch` does; the step shown is kept per session (`stall:<session>`). The lane lookup is one `ytstack-frontier owner --pr N,N,...` call per checkout within one 3-second budget, made before the fingerprints are saved; any failure leaves the line without a lane. A comment does not lift a changes request of the same reviewer, in `ytstack-watch` and in `ytstack-finish-lane gates`. `owner` prefers a held row. A fresh worker gets its own worktree: `git worktree add --detach <new> origin/<branch>`, `claim --worktree <new>` (PR #92 independent review).

**Supersedes:** None. Extends "2026-11-15: Lane liveness is part of `ytstack-frontier check`, worktree cleanup only prints commands, peers are list lines in `LANES.md` (issue #84)" and "2026-11-15: PR watch bulk registration takes only your own ready PRs; bins are called through `YT_BIN` (issue #85)".

## 2026-11-15: A coordinator decides what nobody reserved; a person gets only a closed list of escalations, and a question names its source and purpose (issue #78)

**Context:** A four-day coordinator run (about 500 human prompts, 23 compactions) kept sending decisions to the human that were not his: he corrected that 14 times and asked "what is on me?" 12 more times. A plan sentence that named him as the author of an analysis was read as a reservation of the decision, and a token was requested with neither its source nor its purpose. Step 8 of `coordinate` said when to ask, not who decides; `--decides` was free text and `ask` accepted an empty Context.

**Options considered:**
- A) More text in Step 8.
- B) A closed list in `PREFERENCES.md` (`escalate:`), a default in Step 8 (the coordinator decides the rest and records it), and the question script enforcing it: `--decides` needs `--because <item>`, `ask` needs `Source:` and `Purpose:` in the Context.
- C) As B, with free-text reasons instead of a list.

**Chose:** B. The list is `violation, deviation, irreversible, secret, spend`, default all five; a value with another item reads as all five and warns (like `merge_by`, a typo never takes something away from the person). `reserved` stands beside the list and always holds: a plan line reserves only when it says verdict, approval or sign-off, or a standing entry reserves the decision. Question files get `class: escalation|info` and `because:`; `--info <who>` is for a fact only a person has and decides nothing. A file without `class` reads as `escalation` and stays valid; `check` validates an item against all six, not against the project's list of today. `ask` refuses a Context without both lines also for old files. `ytstack-upkeep` writes its report as `info`; the lesson proposals and the gates of `reassess-roadmap` are `reserved`. The rule is line 6 of the operating checklist, which survives compactions.

**Reason:** The corrections came after compactions, when only files and injected blocks were left; a sentence in Step 8 alone was what failed. A closed list makes "is this mine?" a lookup, and the script refusing a question without its item or its source and purpose puts the check on the path. C would let every question name a reason.

**How to apply:**
- Unsure whether something is on the list: the coordinator decides it and says why in the `DECISIONS.md` entry.
- `escalate:` narrows only the five; it cannot add new items. A project that wants more reserves it in the plan or a standing entry.

**Supersedes:** None. Narrows "2026-11-13: Coordinator mode keeps lanes, questions and standing instructions in files ...": `questions/` holds what a person decides by the list, not every open point.
1 change: 1 addition & 0 deletions .ytstack/PREFERENCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ minimal_code: on # inject the minimal-code guard (YAGNI ladder, never-cu
team: off # off = spawn-milestone-team dispatches worktree subagents (default); on = Claude Code Agent Teams (experimental)
upstream_feedback: suggest # this is the ytstack repository: its own artifacts are the place; the channel is for consumer projects
merge_by: human # the maintainer merges every pull request here (decided 2026-11-15); no REVIEW.md, no auto_merge
escalate: violation, deviation, irreversible, secret, spend # the full list: the maintainer wants rule and plan breaks, one-way steps, secrets and spend; the rest the coordinator decides (issue #78)

## Model preferences

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ blocks: gate G01 (M024-S02, archived 2026-11-15)

## Context

Source: gate G01 of M024 (`archive/2026-11-15/M024/M024-S02-PLAN.md`, line 28) and `STATE.md`
Purpose: decide whether G01 closes once a context-mcp lane went fully through `finish-lane`, which the maintainer agreed to wait for

Gate G01 (`archive/2026-11-15/M024/M024-S02-PLAN.md`, line 28): "The pipeline works against a real pull request host | decides: the operator | how: the first lane of a consumer project finished with it, receipt in that project | lapses: never". Evidence so far, all from context-mcp (meinKontext): a coordinator ran `coordinate` for days with dozens of subagent lanes and about 40 merged PRs on 2026-11-14 (issue #54); PR watch registration and delivery worked from 0.9.2 on (issue #61 comment); `review-lessons` turned a merged PR's finding into a reviewer checklist line; `ytstack-risk route` was adopted but routed every change to `person` until 0.11.0 read the round from the host. Not seen yet: a lane that went through `finish-lane` end to end with an `unattended` merge, and a receipt for it in that project.

## Options
Expand Down
4 changes: 2 additions & 2 deletions .ytstack/spec/artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The `.ytstack/` artifact model: the Markdown files that hold a project's memory
| `spec/SPEC.md`, `spec/<area>.md` | `init-project` (every area `planned`), `adopt-brownfield` (pointer-only over existing documents; also for a project that has `.ytstack/` and no spec) | the task that changes the area, in its own commits; `reassess-roadmap` sets `verified_at` when it answers the drift report |
| `HANDOFF.md` | `handoff-session`; `coordinate` when it rotates (its format with the "Rotation" block of `docs/ux/coordinator-format.md`) | the user; the rotating coordinator appends its workers' reports under "Reports after the rotation"; no hook writes it |
| `LANES.md` | `bin/ytstack-frontier claim` or `peer set` (first write) | `bin/ytstack-frontier` (`set`, `release`), one row per call; called by `spawn-milestone-team`, `coordinate`, `finish-lane`; its `## Peers` lines (sessions in other repositories) by `ytstack-frontier peer set` from `coordinate` |
| `questions/Q###-<slug>.md` | `bin/ytstack-questions new` (from `coordinate`, `reassess-roadmap`, `review-lessons` (a proposed line for a role file, `blocks:` the finding), and from `bin/ytstack-upkeep --question`, which keeps at most one open or asked file titled `Upkeep found ...`) | the agent fills Context, Options, Recommendation; `ask` and `answer` change the state; the answer text is the human's |
| `questions/Q###-<slug>.md` | `bin/ytstack-questions new` (from `coordinate`, `reassess-roadmap`, `review-lessons` (a proposed line for a role file, `blocks:` the finding), and from `bin/ytstack-upkeep --question`, which keeps at most one open or asked file titled `Upkeep found ...`) | `class: escalation` with `because: <item>` (`--decides --because`) or `class: info` (`--info`); a file without `class` reads as escalation. The agent fills Context (first `Source:` and `Purpose:`, which `ask` requires), Options, Recommendation; `ask` and `answer` change the state; the answer text is the human's |
| `standing/<YYYYMMDDTHHMMZ>-<slug>.md`, `STANDING.md` | `coordinate` through `bin/ytstack-standing add`, when the human gives an instruction that holds beyond the task: a new file with `given`, `scope`, `supersedes` and optionally `until`, `until-condition`, `until-check`, `check` (`docs/ux/coordinator-format.md`), by default on the day's `standing/<YYYYMMDD>` branch and pull request; appended to `STANDING.md` only where no `standing/` exists | an entry is never edited; a newer one supersedes it by name, an ended one is closed by an entry of `kind: end` (`ytstack-standing end`), readers skip both and an entry whose `until` passed; `STANDING.md` alone stays valid, also as an index, and is read beside the directory |
| `handover/<date>-<slug>.sh` and its receipt | `handover-step` through `bin/ytstack-handover new`; the receipt by the script when the human runs it | a script that ran is not edited |
| `retro/LANES-<date>.md` | `lane-retro`, with a `## Upstream` section like the retro's | appended on a second run of the same day |
Expand Down Expand Up @@ -189,7 +189,7 @@ Automatic handoffs and the session journal are not artifacts. `hooks/pre-compact
- DECISIONS.md -- "2026-11-13: The technical spec is a set of artifacts of its own under `.ytstack/spec/` (M022, issue #36)"
- DECISIONS.md -- "2026-11-13: Verification, review and orchestration work are bounded like code (M023, issue #35)" (the `Runs:` line, `## Gates`, `## Review`, the evidence fields of a summary)
- DECISIONS.md -- "2026-11-13: `STATE.md` is a pointer with a size bound; history leaves it through `reconcile`, a closed milestone is folded into the spec (M022-S03)"; "2026-11-15: A plan outside `.ytstack/` is detected by a script and mapped by the agent, after one question (M031-S05, issue #54)" (the external plan class); "2026-11-15: `reconcile` writes task-plan skeletons and fixes the STATE pointer, after asking; the logic is `bin/ytstack-reconcile` (issue #76)"; "2026-11-15: A brief for an unplanned task makes the task plan its first deliverable (issue #76)" (the second writer of a task plan)
- DECISIONS.md -- "2026-11-13: Coordinator mode keeps lanes, questions and standing instructions in files and reads host facts fresh (M024, issue #34)" (the lanes table is not part of `STATE.md`, which narrows the proposal in issue #34)
- DECISIONS.md -- "2026-11-13: Coordinator mode keeps lanes, questions and standing instructions in files and reads host facts fresh (M024, issue #34)" (the lanes table is not part of `STATE.md`, which narrows the proposal in issue #34), narrowed by "2026-11-15: A coordinator decides what nobody reserved; a person gets only a closed list of escalations, and a question names its source and purpose (issue #78)" (`class`, `because`, `Source:` and `Purpose:` of a question file)
- DECISIONS.md -- "2026-11-14: Standing instructions are one file per entry in `.ytstack/standing/`; `STANDING.md` stays valid (issue #57)", extended by "2026-11-15: Standing entries end by `until`, `until-condition` or `until-check` and are closed by an entry of `kind: end`; their commands run only in `ytstack-standing list` (issues #73, #74)"
- DECISIONS.md -- "2026-04-23: `.ytstack/` location is user-chosen (project vs user vs both)"; "2026-11-15: New artifacts follow the directory a milestone already lives in (issue #70)"
- DECISIONS.md -- "2026-05-31: active_slice is plan-task-owned and team-member-guarded (M012 / issue #21-RC1)"
Expand Down
Loading
Loading