Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
fe4a739
chore: plan M031 (factory tools explicit, #54/#61), M032 (incident to…
lx-0 Nov 14, 2026
a52933f
M031-S05-T01: bin/ytstack-plans finds a plan outside .ytstack and lis…
lx-0 Nov 14, 2026
f05852c
M031-S01-T01: ytstack-pr-watch handover hands a session's watches to …
lx-0 Nov 14, 2026
e39198b
M031-S05-T02: reconcile and adopt-brownfield offer to map a large ext…
lx-0 Nov 14, 2026
1ccaeb2
M031-S02-T01: read the review round from the host in ytstack-risk route
lx-0 Nov 14, 2026
5f9af9a
M031-S03-T01: say which factory tool is off in SessionStart and ytsta…
lx-0 Nov 14, 2026
cbe55d1
M031-S01-T02: coordinate runs the factory tools in Step 7
lx-0 Nov 14, 2026
aa66c09
M031-S02-T02: pass the pull request to the route in ytstack-finish-lane
lx-0 Nov 14, 2026
9d8b398
M031-S03-T02: tell a session once when the installed plugin is newer
lx-0 Nov 14, 2026
1e27f96
M031-S01-T03: coordinate rotates in one step while lanes run
lx-0 Nov 14, 2026
c922757
M031-S03-T03: document factory-tool and version notices in spec, docs…
lx-0 Nov 14, 2026
48c9b74
M031-S05-T03: spec, README, eval case and decision for external plans
lx-0 Nov 14, 2026
4078aba
docs: spec verified_at for M031-S01 (skills, artifacts, hooks-and-sta…
lx-0 Nov 14, 2026
ab224b3
M031-S02-T03: post the review records on the pull request in finish-l…
lx-0 Nov 15, 2026
9b8f81e
Merge remote-tracking branch 'origin/m031-s02-risk-round' into plan-m031
lx-0 Nov 15, 2026
91aa1a3
Merge remote-tracking branch 'origin/m031-s05-external-plans' into pl…
lx-0 Nov 15, 2026
8399866
Merge remote-tracking branch 'origin/m031-s03-notices' into plan-m031
lx-0 Nov 15, 2026
9520ff4
chore: spec areas verified at the integrated M031 slices (8399866)
lx-0 Nov 15, 2026
3b9b5a5
chore: M031 CHANGELOG entries and roadmap for S01, S02, S03, S05
lx-0 Nov 15, 2026
fde6a50
M031-S04-T01: add "Setting up the factory tools" to QUICKSTART
lx-0 Nov 15, 2026
e8b37dd
M031-S04-T02: add "Upgrading from 0.x" checklist to QUICKSTART
lx-0 Nov 15, 2026
2cb892d
M031-S04-T03: point README at the setup guide and state what ran on a…
lx-0 Nov 15, 2026
8fac2a1
chore: drop em-dash characters from M031-S04 plan commands
lx-0 Nov 15, 2026
d8ad935
chore: plan M032-S01 (lesson records in the signals ledger)
lx-0 Nov 15, 2026
440aa77
Merge remote-tracking branch 'origin/m031-s04-quickstart' into plan-m031
lx-0 Nov 15, 2026
2d3d060
M032-S01-T01: lesson records and the incident lesson check in ytstack…
lx-0 Nov 15, 2026
928cfb2
chore: close M031 (S04 merged); CHANGELOG, roadmaps, STATE
lx-0 Nov 15, 2026
3b5109e
M032-S01-T02: document lesson records, area files and the ledger deci…
lx-0 Nov 15, 2026
ab2e596
M032-S02-T01: the lesson skill, its listings, preamble test and eval …
lx-0 Nov 15, 2026
9638425
M032-S02-T02: incident, systematic-debugging, finish-lane and coordin…
lx-0 Nov 15, 2026
f6aced4
fix: route a later change request without a record line to a person (…
lx-0 Nov 15, 2026
8ba1758
M032-S03-T01: lesson lanes in the frontier and the brief
lx-0 Nov 15, 2026
10228f6
M032-S03-T02: open lessons in coordinate's status and repeats per cla…
lx-0 Nov 15, 2026
054e6e0
chore: spec areas verified at the M032 slices (10228f6)
lx-0 Nov 15, 2026
a5db93f
fix: require write permission of the host reviewer whose line is used…
lx-0 Nov 15, 2026
97825af
fix: adopt a handed-over session's PRs and qualify bare Claude ids in…
lx-0 Nov 15, 2026
6df457c
fix: version notice counts only this install and marks after printing…
lx-0 Nov 15, 2026
ee1c26f
fix: factory notices read pr_watch and auto_merge as the hook and the…
lx-0 Nov 15, 2026
7ac1dfb
fix: read a relative ytstack-plans rows PATH from the caller's direct…
lx-0 Nov 15, 2026
d6cb145
M033-S01-T01: upstream_feedback setting and bin/ytstack-upstream
lx-0 Nov 15, 2026
4a18959
chore: spec areas verified at the PR #66 review fixes (7ac1dfb)
lx-0 Nov 15, 2026
a0d4f55
M033-S01-T02: the upstream feedback channel in docs/ux and using-ytstack
lx-0 Nov 15, 2026
c5b405d
M033-S01-T03: Upstream sections in retro and lane-retro, the ytstack …
lx-0 Nov 15, 2026
480dab0
fix: only an approval lifts a reviewer's change request in route --pr…
lx-0 Nov 15, 2026
53ca0b1
M033-S01-T04: upstream eval cases, spec areas and the decision
lx-0 Nov 15, 2026
8ca816a
Merge remote-tracking branch 'origin/plan-m031' into m032-m033
lx-0 Nov 15, 2026
c424950
chore: close M032 and M033; README, QUICKSTART, CHANGELOG, roadmaps, …
lx-0 Nov 15, 2026
3db4bbd
chore: spec area dependencies verified at the M031 fixes merge (8ca816a)
lx-0 Nov 15, 2026
bc5c073
fix: upstream check catches more personal data and checks the title (…
lx-0 Nov 15, 2026
f53d1d0
fix: upstream check passes SSH remotes and quoted TODO text (PR #67 r…
lx-0 Nov 15, 2026
b448b13
fix: upstream mode is suggest in non-interactive and teammate session…
lx-0 Nov 15, 2026
9cbaba3
fix: a .ytstack/ lesson target resolves in user scope (PR #67 review)
lx-0 Nov 15, 2026
ad210e9
fix: lesson targets refuse agents.md, claude.md and CLAUDE.local.md i…
lx-0 Nov 15, 2026
171505a
fix: frontier skips a planned lesson whose ref is a regular task (PR …
lx-0 Nov 15, 2026
b3ec2dd
fix: signals set adds a missing frontmatter line instead of a silent …
lx-0 Nov 15, 2026
bb3f998
fix: a closed incident from before lessons is a warning, not a failur…
lx-0 Nov 15, 2026
d31cf7a
chore: spec area skills verified at the upstream mode fix (b448b13)
lx-0 Nov 15, 2026
dcd7f4a
fix: a lesson lane needs non-empty Files and Verification sections, a…
lx-0 Nov 15, 2026
012f932
fix: upstream drafts never land inside a git checkout (PR #67 review)
lx-0 Nov 15, 2026
9358add
chore: spec area checks-and-evals describes the two PR #67 review fixes
lx-0 Nov 15, 2026
0b43bee
Merge origin/main (squashed M031, #66) into m032-m033: tree unchanged…
lx-0 Nov 15, 2026
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
46 changes: 46 additions & 0 deletions .ytstack/DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -1144,3 +1144,49 @@ Plus: ops-layer split during the same session (yopstack created as own public re
- `session-start` writes nothing; state a hook needs across events is written by a hook that already writes (here `version-notice`).

**Supersedes:** None.

## 2026-11-15: A lesson is a finding of `kind: lesson` in the signals ledger, with a target; a closed incident needs one (M032-S01, issue #53)

**Context:** Issue #53: incidents of every class (a red `main`, a receipt that ticked a row too early, a defect only a review caught, a slip of a lane or of the coordinator) lost their lesson, because nothing recorded it and `lane-retro` samples only every fifth lane. Eight such incidents in one coordinator day in context-mcp, several of the same class. The issue asked for a record of incident, lesson and where it lives, so that repeats are visible, and named two places: the signals ledger or a dated `archive/<date>/incident-retro.md`.

**Options considered:**
- A) A new store (`ytstack-lessons`, `lessons/L###-<slug>.md`) with its own states and check.
- B) A dated retro file per day under `archive/<date>/`, appended by every path.
- C) A finding of a new `kind: lesson` in `signals/`, keyed by class, with one new frontmatter line `target`.

**Chose:** C. Key `lesson:<area>:<class-slug>`, the area `production`, `ci`, `evidence`, `review` or `process`, the source the area. `target` is `check:<path>`, `knowledge:<path>[#anchor]`, `contract:<path>[#anchor]` or `proposal:<ref>`. `bin/ytstack-signals lesson new` records it (and with `--incident` writes the id into the record's new `lesson:` line), `lesson list [--since]` lists it. `check` fails on a closed incident whose `lesson` is `none` or names no lesson, on a lesson target in `AGENTS.md` or `CLAUDE.md`, and on a `fixed` lesson whose target is a proposal or a missing file. The dated record is the sighting: each incident of a class is one `### read <UTC>` block in its lesson, which `retro` counts per window.

**Reason:** The ledger already does what the issue asks of the record: one file per class (the key), a count that rises on a repeat instead of a new file, a regression with `reopens:` when a fixed class comes back, states with a reference, a lock and a check. `review-lessons` uses the same shape for review escapes. A new store (A) would duplicate all of it. A dated file per day (B) groups by date, not by class, so a repeat is only visible to whoever reads every day; it also grows without a check.

**How to apply:**
- A lesson never lives in `AGENTS.md` or `CLAUDE.md`: a machine check first, a `KNOWLEDGE.md` entry or the lane contract only where no machine can check it.
- A repeat of a class is `seen-again` on the open lesson; one after `fixed` is a regression, and its lesson needs a stronger target.
- Only an incident record that is `closed` needs its lesson; an open or mitigated one may still be waiting for the root cause. A record written before lessons reads as `lesson: none`.
- A person dismisses a class with `set <id> --state dismissed` and a reason; a lesson is not deleted.
- A closed record with no `lesson:` line at all is a legacy record from before this entry: `check` lists it as a warning and passes. Only `lesson: none`, which `incident new` writes, fails on a closed record (PR #67 review; refines the bullet above that read a missing line as `none`).
- A target path under `.ytstack/` resolves against the resolved `.ytstack` directory (project or user scope), every other path against the checkout (PR #67 review).

**Supersedes:** None. Extends the 2026-11-13 production findings entry (M027): the ledger also holds lessons.

## 2026-11-15: Feedback about ytstack itself goes through one channel with a setting; a script checks the body, the agent posts (M033-S01, issue #55)

**Context:** Issue #55: the only guidance on feeding experience back was one paragraph in `using-ytstack`, for bugs only and only as a suggestion. Experience reports (#54), proposals from real runs (#53) and field evidence happened only because a person told every session to write them. The milestone's discuss phase locked the default: `suggest`, because filing publishes text to a public repository.

**Options considered:**
- A) A longer paragraph in `using-ytstack` with all rules, no script.
- B) A script that searches, drafts and posts (`ytstack-upstream file`).
- C) A setting `upstream_feedback` read with the other preferences, the rules in `docs/ux/upstream-feedback.md`, a script that prints the effective mode, drafts and checks a body and never posts; the agent searches and posts with `gh`.

**Chose:** C. `upstream_feedback: suggest | file | off` in `PREFERENCES.md`, else the last `upstream_feedback=` line of `~/.ytstack/config`, else `suggest`; an invalid value reads as `suggest`. `bin/ytstack-upstream mode` reads it through `yt_upstream_feedback` and prints `suggest` for `file` without a `gh` login. `check` fails on a placeholder left, no evidence, no recorded search, an email address, a token-looking string and a home directory path. `retro` and `lane-retro` end with an "Upstream" section, `lesson` routes a ytstack class to the channel; a non-interactive run sends nothing.

**Reason:** `using-ytstack` is injected in full at every session start and this repository's injection sits near the 10,000-character cap, so the rules cannot live there (A). A script that posts (B) would publish without a step where the agent reads the search result and decides between a new issue and a comment on an existing one, which is judgement, and it would make a test suite able to publish. With C the part a machine can see is checked before anything is public, and the part only a reader can judge (is this the same behaviour, is this name private) stays with the agent, as the document says.

**How to apply:**
- A new rule a machine can check goes into `ytstack-upstream check` and its suite; a rule of judgement goes into the document.
- A skill that ends with experience about ytstack points at the document and does not repeat its steps.
- Nothing is posted from a non-interactive run or a dispatched worker; their drafts wait for a person.
- The project's own bugs and lessons never go upstream; work in the ytstack repository uses its own artifacts.
- `check` is stricter than the token rule of `bin/ytstack-handover`, because a draft is published: known secret shapes, token runs across `/` and `+`, every home path form, a login in a GitHub noreply address, and the `--title` that is posted (PR #67 review).
- A non-interactive run is detected by the script, not left to the agent: `mode` prints `suggest` with a `note:` when `YTSTACK_NON_INTERACTIVE`, `OPENCLAW_SESSION`, `CLAUDE_AGENT_TEAM_MEMBER` or `CI` is set (PR #67 review).

**Supersedes:** None.
10 changes: 5 additions & 5 deletions .ytstack/M032-ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ milestone: M032
project: ytstack
size: M
created: 2026-11-15T00:45:00Z
status: planned
status: done
total_slices: 3
completed_slices: 0
completed_slices: 3
---

# M032 Roadmap
Expand All @@ -18,9 +18,9 @@ completed_slices: 0

Slice detail lives in per-slice `M032-S##-PLAN.md` files, created by `ytstack:slice-milestone`.

- [ ] S01 -- Incident and lesson records with class, target and count, and a check that every incident has a lesson with a target.
- [ ] S02 -- The shared lesson step, called by `incident`, `systematic-debugging`, `finish-lane` and `coordinate`.
- [ ] S03 -- Open lessons in `coordinate`'s status and the frontier, repeats per class in `retro`.
- [x] S01 -- Incident and lesson records with class, target and count, and a check that every incident has a lesson with a target.
- [x] S02 -- The shared lesson step, called by `incident`, `systematic-debugging`, `finish-lane` and `coordinate`.
- [x] S03 -- Open lessons in `coordinate`'s status and the frontier, repeats per class in `retro`.

## Run order

Expand Down
29 changes: 29 additions & 0 deletions .ytstack/M032-S01-PLAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
milestone: M032
slice: S01
project: ytstack
created: 2026-11-15T01:00:00Z
status: done
task_count: 2
completed_tasks: 2
---

# M032-S01 -- Slice Plan

**Goal:** What an incident of any class taught is a record with a class, a target and a count in the signals ledger, and a check fails when a closed incident has no recorded lesson or a lesson has no valid target.

**Blocked by:** none

## Tasks

- [x] T01 -- `bin/ytstack-signals`: `kind: lesson` (key `lesson:<area>:<class-slug>`, the source the area, a `target` line), `lesson new` (with `--incident` linking the lesson into the record's new `lesson:` line), `lesson list [--state] [--since]`, `set --target`, `set --state fixed` only for a target in place; `check` on lessons and on closed incidents without a lesson. Tests in `tests/ytstack-signals.test.sh`.
- [x] T02 -- `docs/ux/signal-format.md` ("Lessons", the incident's `lesson` field, "Checked mechanically"), the `artifacts` and `checks-and-evals` area files, a `DECISIONS.md` entry (lesson kind in the ledger instead of a new store or a dated retro file).

## Done when

All tasks marked `[x]` and verified via `ytstack:summarize-task`.

## Notes

- Source: issue #53 and its scope comment; `M032-CONTEXT.md` (exit criterion 2), open question 2 (where the dated record lives) is decided in T02.
- No new store: the ledger's key, count, regression and states are reused (`review-lessons` has the same shape for review escapes).
45 changes: 45 additions & 0 deletions .ytstack/M032-S01-T01-PLAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
milestone: M032
slice: S01
task: T01
project: ytstack
created: 2026-11-15T01:00:00Z
status: done
---

# M032-S01-T01 -- Task Plan

**Summary:** `bin/ytstack-signals` records lessons as findings of `kind: lesson` with a class key, a count and a target, links them into incident records, lists them per window, and its check fails on a closed incident without a lesson and on a lesson without a valid target.

## Files

- Modify: `bin/ytstack-signals` (usage, `KINDS`, `AREAS`, `TTYPES`, helpers `slug`, `lesson_key`, `target_ok`, `target_path`, `rows` with the target column, `cmd_new --target`, `cmd_set --target`, incident skeleton `lesson: none`, `lesson new`, `lesson list`, `check_findings`, `check_incidents`)
- Modify: `tests/ytstack-signals.test.sh` (the incident skeleton and closed records, a section `# lesson`, incident lesson defects)

## What this does

- `lesson new --area <production|ci|evidence|review|process> --class <slug> --title <text> --target <type>:<where> [--incident <id>] [--read-at <time>] < what happened` records through `new`: key `lesson:<area>:<class>`, source the area, `target:` in the frontmatter. A repeat of the class is `seen-again` (count), a repeat after `fixed` a `regression`.
- `--target` takes `check:<path>`, `knowledge:<path>[#anchor]`, `contract:<path>[#anchor]` or `proposal:<ref>`; `AGENTS.md` and `CLAUDE.md` are refused (exit 64).
- `--incident <id>` writes the lesson id into the record's `lesson:` line (comma separated, `none` replaced, a missing line added).
- `lesson list [--state] [--since <UTC>]`: id, state, area, class, count, sightings since, target, ref, reopens, title.
- `set <id> --target` (lessons only); `set --state fixed` refuses a proposal target and a target file that does not exist.
- `check`: a lesson's key, source and target form, `AGENTS.md`/`CLAUDE.md`, a fixed lesson's target; an incident record's `lesson` form, a closed record with `lesson: none` (or no line), an id that is no lesson.

## Spec impact

- checks-and-evals: Behavior -- the `bin/ytstack-signals` bullets name `lesson new`, `lesson list` and the new check rules (written in T02)
- artifacts: Behavior -- the `signals/` and `incidents/` rows (written in T02)

## Verification

```bash
bash tests/ytstack-signals.test.sh
```

Runs: once. Environment: local checkout (macOS, bash 3.2).

Success: last line `<n> passed, 0 failed`; the new cases fail against the script of `9520ff4`.

## Done signal

Run `/ytstack:summarize-task` after execution to mark complete and advance STATE.md.
35 changes: 35 additions & 0 deletions .ytstack/M032-S01-T01-SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
milestone: M032
slice: S01
task: T01
project: ytstack
closed: 2026-11-15T01:20:00Z
verification: passed
---

# M032-S01-T01 -- Summary

## Commits

- The commit that carries this file (`M032-S01-T01: lesson records and the incident lesson check in ytstack-signals`).

## Outcome

`bin/ytstack-signals` recorded lessons as findings of `kind: lesson`: `lesson new` took the area, the class slug, the title, the target and optionally the incident, wrote the key `lesson:<area>:<class>` with the area as source and a `target:` line, counted a repeat of the class as `seen-again` and a repeat after `fixed` as a `regression`, and with `--incident` wrote the lesson id into the record's `lesson:` line (new in the skeleton as `lesson: none`). `lesson list` printed id, state, area, class, count, the sightings since `--since`, target, ref, reopens and title. `set` took `--target` (lessons only, also without `--state`) and refused `fixed` while the target was a proposal or a missing file. A target in `AGENTS.md` or `CLAUDE.md` was refused with exit 64. `check` failed on a lesson with a key, source or target outside the form, on such a target in `AGENTS.md`/`CLAUDE.md`, on a fixed lesson whose target was a proposal or did not exist, on a closed incident whose `lesson` was `none` or missing, and on a `lesson` id that named no lesson.

## Deviations from plan

- The implementation was written before the test cases in one sitting; the red run was taken afterwards against the script of `9520ff4` (copied into `bin/` under another name so that it found its library): 43 of the 294 cases failed there.
- Two existing test expectations moved: the skeleton has the `lesson: none` line, so a mitigation line sits one line lower (line 24, not 23); the closed records of the incident section now need a recorded lesson to pass.

## Follow-ups

- none

## Spec

- checks-and-evals, artifacts: written in T02

## Verification

Command: `bash tests/ytstack-signals.test.sh` -- exit 0, last line `294 passed, 0 failed`, at the working tree on top of `d8ad935` in the local checkout (macOS, bash 3.2). Against the script of `9520ff4`: `251 passed, 43 failed`.
42 changes: 42 additions & 0 deletions .ytstack/M032-S01-T02-PLAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
milestone: M032
slice: S01
task: T02
project: ytstack
created: 2026-11-15T01:00:00Z
status: done
---

# M032-S01-T02 -- Task Plan

**Summary:** The lesson record is documented where the ledger's format lives, in the two area files that describe the script and the artifacts, and the choice of the ledger over a new store is recorded.

## Files

- Modify: `docs/ux/signal-format.md` (intro, `kind` row, section "Lessons" under the findings, the incident example and field table, "Checked mechanically", what stays a judgment)
- Modify: `.ytstack/spec/artifacts.md` (rows `signals/F###-<slug>.md`, `incidents/<date>-<slug>.md`)
- Modify: `.ytstack/spec/checks-and-evals.md` (the `bin/ytstack-signals` bullets)
- Modify: `.ytstack/DECISIONS.md` (one entry)

## What this does

Documents `kind: lesson`, the areas, the four target types and their order (machine check first), what the states mean for a lesson, `lesson new --incident` and `lesson list`, the incident's `lesson` field, and the new check rules. The decision entry answers the milestone's open question 2: the dated record is the sighting in the ledger, not a dated retro file.

## Spec impact

- artifacts: Behavior -- the two rows
- checks-and-evals: Behavior -- the `bin/ytstack-signals` bullets

## Verification

```bash
bash bin/ytstack-spec lint && bash bin/ytstack-spec drift && bin/ytstack-check
```

Runs: once. Environment: local checkout (macOS, bash 3.2).

Success: lint `0 failure(s)`, drift without a report for the two areas, the checker exit 0 or 2 without `[fail]`.

## Done signal

Run `/ytstack:summarize-task` after execution to mark complete and advance STATE.md.
35 changes: 35 additions & 0 deletions .ytstack/M032-S01-T02-SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
milestone: M032
slice: S01
task: T02
project: ytstack
closed: 2026-11-15T01:30:00Z
verification: passed
---

# M032-S01-T02 -- Summary

## Commits

- The commit that carries this file (`M032-S01-T02: document lesson records, area files and the ledger decision`).

## Outcome

`docs/ux/signal-format.md` got a section "Lessons": the key `lesson:<area>:<class-slug>` with the five areas, the sighting as the dated record of one incident, the four target types with the machine check first, what the four states mean for a lesson, `set --target`, `lesson new --incident` and `lesson list`. The incident example and field table carry `lesson`, and "Checked mechanically" lists the new rules. The `artifacts` rows for `signals/` and `incidents/` and the `checks-and-evals` bullet of `bin/ytstack-signals` say the same in one sentence each (both files stayed at 200 lines). `DECISIONS.md` recorded the choice of a lesson kind in the ledger over a new store or a dated retro file, which answered the milestone's open question 2.

## Deviations from plan

- none

## Follow-ups

- The lesson lane sentence (`## Files` and `## Verification` in a lesson, `ytstack-brief render --lesson`) comes with S03, where the brief learns it.

## Spec

- artifacts: the `signals/` and `incidents/` rows
- checks-and-evals: the `bin/ytstack-signals` bullet

## Verification

Command: `bash bin/ytstack-spec lint && bash bin/ytstack-spec drift && bin/ytstack-check` -- `spec lint: 6 area file(s), 0 failure(s), 0 warning(s)`, `spec drift: no area to look at`, the checker `OK (with 9 warning[s])` (the nine warnings are older ones of other skills), no `[fail]` line; at the working tree on top of `2d3d060` in the local checkout (macOS, bash 3.2).
29 changes: 29 additions & 0 deletions .ytstack/M032-S02-PLAN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
milestone: M032
slice: S02
project: ytstack
created: 2026-11-15T01:40:00Z
status: done
task_count: 2
completed_tasks: 2
---

# M032-S02 -- Slice Plan

**Goal:** One shared step, the skill `ytstack:lesson`, classifies an incident in one line, routes its lesson to a machine check first and a knowledge entry or a proposal second, records it with `ytstack-signals lesson new`, and `incident`, `systematic-debugging`, `finish-lane` and `coordinate` end with it.

**Blocked by:** S01

## Tasks

- [x] T01 -- `skills/lesson/SKILL.md` (preamble with the open lessons and incidents, class line, route, record, put in place, one question for a proposal, check and report) and every listing that names skills: `using-ytstack`, `docs/concept.md`, `docs/codex.md`, `docs/kimi.md` (skill count), `evals/README.md`, the `skills` area file; the preamble case in `tests/skill-preambles.test.sh`; the eval case `evals/lesson/`.
- [x] T02 -- The four callers end with `ytstack:lesson`: `incident` (after mitigation, `--incident`; closing needs the lesson), `systematic-debugging` (wrapper text only, after the root cause), `finish-lane` (a review that requested changes, a lens that failed, a red check), `coordinate` (a red `main`). Terminal States allow it; `metadata.version` bumps; assertions in `tests/skill-preambles.test.sh`; the `skills` area file.

## Done when

All tasks marked `[x]` and verified via `ytstack:summarize-task`.

## Notes

- Open question 1 of `M032-CONTEXT.md` (own skill or a section): own skill, called by name, so the four paths stay short and an eval can trigger it.
- README and QUICKSTART are edited by another worker in parallel; the proposed text goes into the slice report.
Loading
Loading