Skip to content

M032 + M033: incident to lesson loop, upstream feedback channel - #67

Merged
lx-0 merged 61 commits into
mainfrom
m032-m033
Nov 15, 2026
Merged

lx-0 merged 61 commits into
mainfrom
m032-m033

Conversation

@lx-0

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

Copy link
Copy Markdown
Member

Milestones M032 "Incident to lesson loop" (issue #53) and M033 "Upstream feedback channel" (issue #55). Built by workers on m032-lesson-loop and m033-upstream-feedback, integrated here on top of M031 (#66; this PR targets plan-m031 so the diff shows only M032 and M033, and moves to main when #66 merges). Slice and task plans with summaries: .ytstack/M032-*, .ytstack/M033-*.

M032

  • kind: lesson in the signals ledger (lesson:<area>:<class>, target: check:|knowledge:|contract:|proposal:, count, regression on repeat after fixed); ytstack-signals lesson new/list, set --target; check fails on a closed incident without a lesson; targets in AGENTS.md/CLAUDE.md refused.
  • New skill ytstack:lesson (classify, route: machine check first, else proposal or KNOWLEDGE entry; record), called at the end of incident 0.2.0, systematic-debugging 0.2.0 (wrapper text only), finish-lane 0.5.0, coordinate 0.5.0.
  • Lesson lanes lesson-F### in ytstack-frontier, ytstack-brief render --lesson; LESSONS: in coordinate's status, lesson proposal as the day's question; retro 1.2.0 incidents and repeats per class.

M033

  • upstream_feedback: suggest | file | off (PREFERENCES, fallback ~/.ytstack/config, unknown value reads as suggest), bin/ytstack-upstream mode/draft/check (never posts; check blocks placeholders, missing evidence, no recorded search, emails, tokens, home paths).
  • docs/ux/upstream-feedback.md; using-ytstack 0.3.0 "Feeding ytstack upstream"; "Upstream" sections in retro 1.3.0 and lane-retro 0.2.0; lesson 0.2.0 routes ytstack lessons upstream; new projects get upstream_feedback: suggest.
  • Fixes a dead branch in tests/skill-preambles.test.sh (retro checks never ran).

README (40 skills, trigger map, ceremony table), QUICKSTART ("Every incident leaves a lesson"), CHANGELOG, DECISIONS (two entries), spec areas.

Verification (integrated branch): tests/run-all.sh ALL SUITES PASSED (30 suites), bin/ytstack-check OK (9 warnings), spec lint and drift clean, claude plugin validate . passed, Codex 16, Kimi 2 + 9, pr_watch unittests OK. Evals (lesson, upstream-suggest, upstream-file, fresh-bugfix) run at release.

🤖 Generated with Claude Code

lx-0 and others added 30 commits November 15, 2026 00:37
… lesson loop, #53), M033 (upstream feedback channel, #55)

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

scan counts work rows (task lists, tables with a status or checkbox
column) in plans/, roadmap/ and their docs/ variants and says when a
directory is large enough to map; rows prints path:line, state, id,
section and title per row. Read only.

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

register refuses a PR another session owns, so a coordinator that rotates
to a fresh session left its watches behind (issue #61). handover --from
<old> [--to <new>] moves the watches, the undelivered notices (not a Codex
notice already in flight), the branch bindings and the candidates, and
records the successor in meta (handover:<from>). register follows that
chain, so a PR a still-running subagent of the old session opens later is
registered to the successor.

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

Both preambles run ytstack-plans scan; a large plan directory without a
recorded answer gets one question (map all / map the files I name /
leave it). After a yes the agent maps the open rows into milestones and
slices by docs/ux/external-plans.md, with a pointer back to each row;
the plan itself is never written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
route --pr N reads the round and lens lines from the pull request's
reviews (commit_id, author, body) before the plan, so a repository with a
head-bound review gate no longer has to commit the round line and move
the head. Reproduces the context-mcp case of issue #54 as a fixture test.

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

yt_factory_notices names risk routing without REVIEW.md or an auto_merge
area, a PR watch that is off or has no fresh heartbeat on a GitHub origin,
and RUNTIME.md without Release or Signals while the project deploys or has
signals. SessionStart shows the lines on startup and clear only (read-only,
once per session); ytstack-upkeep lists them uncounted. ytstack-runtime
gains 'sections'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A coordinator under load hand-built a PR babysitter, a review tiering and
a release check that the plugin already ships, and a coordinator that
merged itself never passed finish-lane, so no route applied (issue #54).
Step 7 is now one table: the route before every merge (also an own one,
then through ytstack-finish-lane merge), the PR watch registration or
ytstack-watch, ytstack-watch release after every merge to production,
signal-intake / incident, review-lessons after a merge with a bot
finding, each with the condition that skips it. The preamble prints the
lines that decide the skips. coordinate 0.4.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
route --pr N hands the pull request to ytstack-risk route, so a lane is
routed from the review records on the host, also when the coordinating
checkout has no plan file for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hooks/version-notice (UserPromptSubmit) records the plugin version of a
session's first prompt out of tree and, when installed_plugins.json (or the
newest non-orphaned cache sibling) names a newer one, says once 'ytstack X
installed, this session loaded A: reload the skills you use' with the
CHANGELOG entry titles in between, bounded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A coordinator ran through two compactions because open lanes and an
incident never left a quiet moment to rotate (issue #61). Step 12 now
waits for nothing: the handoff is written from the files with a Rotation
block (PR watch session, background watches, each running worker's
address), the successor's Step 3 takes the PR watches over with
ytstack-pr-watch handover, and the old session stays open only as a
relay that appends its workers' reports to HANDOFF.md.
docs/ux/coordinator-format.md documents the block.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te, checks-and-evals)

The four area files were read against 1e27f96 for what S01 changed: the
coordinate factory tools and rotation, the HANDOFF.md writer, the PR watch
handover and its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ane and code-review

finish-lane and code-review put the round and lens lines into the body
of the review on the reviewed head, finish-lane routes with --pr, and the
spec areas and a DECISIONS entry record the host as the first source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	.ytstack/spec/checks-and-evals.md
…an-m031

# Conflicts:
#	.ytstack/DECISIONS.md
#	.ytstack/spec/artifacts.md
#	.ytstack/spec/checks-and-evals.md
#	.ytstack/spec/skills.md
# Conflicts:
#	.ytstack/DECISIONS.md
#	.ytstack/spec/checks-and-evals.md
#	.ytstack/spec/hooks-and-state.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… real host

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

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

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate end with the lesson step

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lx-0 and others added 7 commits November 15, 2026 01:55
docs/ux/upstream-feedback.md says what goes upstream, when, the three
settings and the rules. using-ytstack points at it in about the length of
the old paragraph (the directive is injected at every session start);
ytstack-upstream mode prints the path of the rules. New projects get
upstream_feedback: suggest in their PREFERENCES.md.

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

retro and lane-retro end with an Upstream section: what concerns ytstack
itself, handled per upstream_feedback (off: nothing; suggest: a checked
draft, nothing sent; file: filed or commented). lesson sends a class that
is a behaviour of the plugin to the same channel. Non-interactive runs
send nothing. The M032 retro preamble checks moved into the reachable
case branch; they never ran before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, as on GitHub

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
upstream-suggest and upstream-file share one scenario and differ in the
setting; their system prompt turns a filing command into echo, so a run
publishes nothing. The skills, checks-and-evals, hooks-and-state and
artifacts areas describe the setting, the helper and the Upstream
sections; DECISIONS records why the script checks and the agent posts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	.ytstack/spec/checks-and-evals.md
#	.ytstack/spec/dependencies.md
#	.ytstack/spec/hooks-and-state.md
…STATE

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-15T01:47:50.717990Z
We couldn’t complete this review. Comment @codex review to try again.
9358add Manual request
ℹ️ 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: 3db4bbd32c

ℹ️ 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 .ytstack/ROADMAP.md Resolved
Comment thread bin/ytstack-frontier Resolved
Comment thread bin/ytstack-upstream Resolved
lx-0 and others added 12 commits November 15, 2026 02:24
#67 review)

Home paths without a trailing slash and C:\Users\<name>, AWS keys and
other known secret shapes, token runs across / and +, a login in a GitHub
noreply address, and check --title for the title that gets posted. A full
commit SHA (up to 40 hex digits) stays allowed.

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

A git@host:org/repo remote or a user@host:path target is no email address.
Only the draft's own placeholder lines (TODO: at a line start outside
fenced code, or as the Searched: value) fail as a TODO left.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s (PR #67 review)

With YTSTACK_NON_INTERACTIVE, OPENCLAW_SESSION, CLAUDE_AGENT_TEAM_MEMBER or
CI set, mode prints mode: suggest and a note naming the variable, without
asking gh. using-ytstack (0.3.1) and the channel document say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
set --state fixed and check read a target, script or receipt path under
.ytstack/ from the resolved .ytstack directory, so a knowledge lesson in
~/.ytstack/projects/<key> can become fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n any case (PR #67 review)

target_ok and the check compare the file name case-insensitively and also
refuse CLAUDE.local.md, in any directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
 review)

A planned check lesson with a ref other than lesson-F### is built by that
task; listing it as a lesson lane would dispatch it twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…no-op (PR #67 review)

edit() inserts a key the frontmatter lacks (set F### --target on a lesson
without a target: line) and fails loudly, without writing, when a key
could not be placed (no closed frontmatter).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e (PR #67 review)

A closed record with no lesson: line is a legacy record: check lists it as
a warning: line and keeps its exit. Only lesson: none, which incident new
writes, fails on a closed record. Upgrade note in the CHANGELOG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s the brief does (PR #67 review)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lx-0

lx-0 commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Base automatically changed from plan-m031 to main November 15, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant