Skip to content

feat: process-review and coach-process: measure the PR, review and CI process and coach the coordinator with it - #104

Open
lx-0 wants to merge 2 commits into
mainfrom
feat/process-review
Open

lx-0 wants to merge 2 commits into
mainfrom
feat/process-review

Conversation

@lx-0

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

Copy link
Copy Markdown
Member

Two skills that measure how a repository's pull request, review and CI process runs, and feed what they find back to the agent that coordinates the work.

The sessions that hit the problem

Yesterday-AI/context-mcp, 9 September to 22 November 2026, about 2,900 merged pull requests, almost all from coding agents under one coordinator session.

  • The operator kept asking whether the review loops were worth it, whether a new rule helped, why throughput changed. Every answer was an opinion. The analysis that became process-review showed, among others, that 593 of 648 later review rounds found nothing blocking, that 25 % of pull requests merged without any review in one week and 0.6 % the week after, and that a change everyone believed helped (the round rules of 18 November) moved the second-round share the other way (42.9 % before, 47.3 % after).
  • A rule merged into the rule files did not reach the sessions that were already running. The review sample of 20 November (every pull request number ending in 0 reviewed by a bot) fell back in four of its first six cases until the coordinator was told directly; on 22 November the coordinator changed from Claude Code to Codex, and the findings again had to be carried into its session by hand. coach-process is that carrying, with a record, a judgement on the next run and an escalation to the user.

What

  • skills/process-review/ and tools/process-review/: mining (mine.mjs, mine-failures.mjs), analysis (analyze.mjs, rules.mjs), report and digest (report.mjs, daily.mjs), plugin version dates (tool-versions.mjs). Node 18, standard library only, read-only against GitHub, output in a working directory outside the repository. The report puts the conclusions first (at a glance, findings, three suggestion cards open) and folds method notes, long tables and secondary breakdowns into <details>; print expands them.
  • skills/coach-process/: at most five asks per run, each a fact with its denominator, one action an existing rule or the user already asks for, and the metric it should move. The message is written to the working directory and delivered through herdr (any host's agent pane, so a Codex coordinator too) or the host's session messages. asks.json records each ask; analyze.mjs judges it like a change with an expectation and counts repeats; the report lists them under "Coaching asks". An ask that did not take after two tries goes to the user. Each run checks every finding for what ytstack could have prevented and drafts it for ytstack-upstream. Confirmed asks and repeated findings become proposed work in the owning file; the skill edits no rule file.
  • Spec: .ytstack/spec/process-review.md (new, status: planned), skills.md (both skills as native procedures), SPEC.md, dependencies.md; DECISIONS.md 2026-11-18 (Node for this one tool only). README (42 skills), QUICKSTART, CHANGELOG, NOTICE (Lucide icon outlines inlined in the report), docs/codex.md, docs/kimi.md, eval case process-review.

One commit, against CONTRIBUTING's atomic-commit rule: the two skills share analyze.mjs, report.mjs, the config reference and the preamble test, and splitting them would leave a first commit whose report has no reader for asks.json. Say if you want it split.

Verification

  • bash tests/process-review.test.sh: 65 passed, 0 failed (macOS, Node 24.18.0).
  • bash tests/skill-preambles.test.sh: 818 passed, 0 failed, including 9 new cases for coach-process (working directory, run found, asks counted, herdr flag).
  • bin/ytstack-check: OK; its 9 warnings name older skills only.
  • The scripts ran daily on the real repository from 18 to 22 November; analyze.mjs here and the working copy write the same metrics.json.
  • Not run: coach-process as a skill in a session (its steps were done by hand once, on 22 November, against a Codex coordinator over herdr); the eval case process-review; the Linux CI images, which have no Node, so the Node cases skip there.

The full diff was shown to the operator before this pull request (CONTRIBUTING, item 5).

🤖 Generated with Claude Code

…s; coach-process turns its findings into asks for the coordinator

process-review mines merged pull requests, reviews and CI runs per day,
computes throughput, efficiency and quality, turns fixed rules into
suggestions, compares the days before and after every dated process change
and renders one HTML report plus a daily digest (tools/process-review/,
Node 18, no dependencies; the plugin's one Node tool, DECISIONS 2026-11-18).

coach-process delivers at most five asks to the session that coordinates the
work, records each in asks.json with the metric it should move, has the
next analysis judge it, sends an ask ignored twice to the user, and checks
each finding for what ytstack itself could have prevented.

Observed on Yesterday-AI/context-mcp, 9 September to 22 November 2026
(about 2,900 merged pull requests): see the pull request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-22T16:34:43.676119Z daddd1a 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: daddd1aac4

ℹ️ 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 tools/process-review/analyze.mjs Resolved
Comment thread tools/process-review/mine-failures.mjs Resolved
Comment thread tools/process-review/analyze.mjs Resolved
… calendar days in the digest

- CI runs count as pull-request runs only on a mined PR's branch or a pull_request event, not on every non-default branch.
- mine-failures records requests that fail after retries in failures.json, exits 3, and the report marks the section incomplete.
- The daily digest uses the last nine calendar days, so a day without merges is zero, not skipped.
- coach-process description names no host (Codex packaging test).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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