Skip to content

cracktro: add PR Sous Chef slide under Pull Request Review² - #78640

Merged
pelikhan merged 7 commits into
mainfrom
pelikhan/pr-sous-chef-slide
Nov 17, 2026
Merged

pelikhan merged 7 commits into
mainfrom
pelikhan/pr-sous-chef-slide

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The talk's Pull Request Review² column showed how agents review PRs, but not what keeps PRs from stalling after review. This adds a PR Sous Chef slide as the fourth example in that column, after Ponytail Reviewer, Issue Monster and Decide - Draft - Record.

The slide (#22)

It explains the concept in one animated flow:

  1. Scan open pull requests every few minutes.
  2. Two questions per PR: idle? (no recent push, no agent working on it) and work to do? (unresolved review comments, failing CI). Active or nothing-to-do PRs are skipped.
  3. Nudge: one @copilot comment listing what is left; Copilot pushes, CI reruns, and the PR is back in motion. Humans still review and merge.

A bottom strip carries measured gh-aw data from PR comments with the Sous Chef marker (13 May - 16 Nov 2026, snapshot 17 Nov): 5,826 nudges on 2,623 PRs, 71% answered by Copilot before the next nudge, 90% of nudged PRs merged (median 1.8 h after the first nudge), plus nudges per month. The PRs and comments in the flow are illustrative; the caption and speaker notes say so.

Supporting changes

  • .github/skills/cracktro/slides.md: new row in column order.
  • .github/skills/cracktro/mechanics.md: prr column list now ends with PR Sous Chef.
  • .github/skills/cracktro/content-rules.md: Exception bullet for the measured psc- strip.
  • .github/skills/cracktro/data-refresh.md + new refresh/pr-sous-chef.{md,mjs}: a refresh mini-skill and miner to recompute the strip.

Notes for review

  • The merge rate is correlational, not causal: PRs that would have merged anyway are included.
  • The slide code is a self-contained block before // Patch to PR, with its own CSS lines, to keep conflicts small.
  • This branch merges main and pelikhan/cracktro-human-agent-processes (Ponytail Reviewer, Dreaming column, Daily Improvers rename). The diff will shrink once that branch lands.

Validation

  • node --check docs/public/cracktro/deck.js and loadSlides() (88 slides) pass.
  • Previewed in a browser: the animation runs to its end state, and up/down/right navigation in and out of the column works.
  • Playwright talk.spec.ts not run locally (no docs/node_modules); tests look up slides by heading, so the renumbering should not affect them.

Screenshot: I could not capture and upload one from this environment; please attach a 1920x1080 screenshot of slide #22 at its end state.

pelikhan and others added 6 commits November 16, 2026 20:58
…-slide

# Conflicts:
#	.github/skills/cracktro/mechanics.md
Regroup the process band into documented pattern columns, rename Daily
Unsloppers to Daily Improvers, add Dreaming and Ponytail Reviewer slides.

Co-authored-by: Copilot App <[email protected]>
…an-agent-processes

# Conflicts:
#	.github/skills/cracktro/SKILL.md
#	.github/skills/cracktro/mechanics.md
#	.github/skills/cracktro/slides.md
#	docs/public/cracktro/deck.js
…ocesses' into pelikhan/pr-sous-chef-slide

# Conflicts:
#	.github/skills/cracktro/mechanics.md
#	docs/public/cracktro/deck.js
@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 05:31
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 05:31
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

@pelikhan
pelikhan enabled auto-merge (squash) November 17, 2026 05:33
@github-actions

Copy link
Copy Markdown
Contributor

✂️ Ponytail Reviewer has started processing this pull request

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.5K · ◷

@pelikhan
pelikhan disabled auto-merge November 17, 2026 05:33
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-17T05:35:26Z
review_event: REQUEST_CHANGES
top_themes:
  - measured-data completeness: candidate search excludes older PRs
files_reviewed:
  - .github/skills/cracktro/refresh/pr-sous-chef.mjs
  - docs/public/cracktro/deck.js
  - docs/tests/talk.spec.ts
  - .github/skills/cracktro/slides.md
  - .github/skills/cracktro/content-rules.md
comment_count: 1
History

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.5K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I found one blocking correctness issue in the refresh miner: its candidate search is bounded by PR creation dates, so the published all-time window can omit older PRs nudged during the measurement period. Please fix the candidate discovery before relying on these metrics.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~4 AIC · ⌖ ~2 AIC · ⊞ 1.5K
Comment /review to run again

// PRs whose comments carry the Sous Chef marker, partitioned by PR creation date (7-day windows stay below the 1,000-result search cap)
const prs = new Map();
if (process.env.IN) for (const n of JSON.parse((await import("node:fs")).readFileSync(process.env.IN, "utf8"))) prs.set(n.number, n);
else for (let t = Date.parse("2026-05-01"); t <= Date.parse(end); t += 7 * DAY) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This search partitions candidates by pull-request creation date (created:${w}) and only scans windows starting 2026-05-01. It therefore omits any PR created before May 1 that received a Sous Chef nudge during the stated 13 May–16 Nov measurement window—exactly the kind of long-lived idle PR this workflow targets. The resulting nudges, PR count, merge rate, and monthly bars cannot be treated as all-time totals. Please discover candidates independently of PR creation date (or start the creation-date range early enough) and continue filtering comments by nudge date before publishing these measurements.

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-6c1974d4-ca82-4ef2-93d9-0cfb11df0652","parents":[],"payload":{"id":"ldg-0142b543-4ac8-41f9-8569-b2cdacec929c","operation":"append","value":{"finding_count":1,"head_sha":"87d90a6a5e42a53a76d218d48d5c91ec4597713a","outcome":"findings"}},"sha":"sha256:7a2bc691df4560632c4e8b7207018706f0ce82fe5952e1a2a4a38f5db115864a","timestamp":"2026-11-17T05:40:04.703Z","type":"ledger_append","version":1}
History

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

An unchanged navigation assertion will fail because the control remains visible, and the nudge-counting logic can incorrectly attribute replies when a subsequent nudge falls outside the requested date window.

1 open issue
What changed in this PR

This PR supports the PR Sous Chef example in the cracktro talk’s Pull Request Review² column, explaining how idle pull requests get moving again. It adds measured-data refresh tooling and aligns supporting documentation and tests with the reorganized process slides.

Changes:

  • Add PR Sous Chef data mining, refresh instructions, and measured-content documentation.
  • Update the slide index and column structure, including Dreaming and Daily Improvers.
  • Align navigation tests and refresh references with the revised slide organization.
File Description
docs/​tests/​talk.spec.ts Update slide names and column-navigation expectations.
.github/​skills/​cracktro/​workflow-prompts.md Rename the Daily Improvers prompt entry.
.github/​skills/​cracktro/​slides.md Register PR Sous Chef and reorganize process slides.
.github/​skills/​cracktro/​SKILL.md Use improvers in slide metadata examples.
.github/​skills/​cracktro/​refresh/​pr-sous-chef.mjs Compute nudge, response, and merge metrics from PR comments.
.github/​skills/​cracktro/​refresh/​pr-sous-chef.md Document metric definitions, refresh steps, and limitations.
.github/​skills/​cracktro/​refresh/​merge-fast-unslop-daily.sh Update terminology in a comment only.
.github/​skills/​cracktro/​refresh/​merge-fast-unslop-daily.md Align refresh documentation with Improver terminology.
.github/​skills/​cracktro/​refresh/​daily-improvers.mjs Update header comments and the usage example.
.github/​skills/​cracktro/​refresh/​daily-improvers.md Rename the refresh guide and helper references.
.github/​skills/​cracktro/​mechanics.md Document revised process columns and their examples.
.github/​skills/​cracktro/​data-refresh.md Register the new refresh guide and renamed helper.
.github/​skills/​cracktro/​content-rules.md Document PR Sous Chef’s measured strip and terminology updates.

Review effort: Balanced (adaptive)

out.prepItems[/^\d+\. Update this branch/.test(l) ? "branch" : /^\d+\. Review \(/.test(l) ? "review" : /^\d+\. Fix failing check/.test(l) ? "check" : "other"]++;
}
// answered: the Copilot coding agent (copilot-swe-agent) comments after this nudge and before the next one
const next = nudges[i + 1]?.createdAt || "9999";

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /tdd, /diagnosing-bugs and /codebase-design to the refresh tooling and the slide wiring. Posting observations only: no blocking issues.

📋 Key Themes & Highlights

Key Themes

  • Test coverage: the nudge classifier in pr-sous-chef.mjs has no fixtures.
  • Silent undercounts: truncated comment pages are recorded but never surfaced.
  • Duplicated numbers: the runbook baseline and the deck KPIs can drift apart.

Positive Highlights

  • ✅ The committed deck.js parses. The PR Sous Chef block sits under prr, and the improvers column holds seven examples, matching docs/tests/talk.spec.ts.
  • ✅ The Daily Unsloppers to Daily Improvers rename is complete in the committed tree, with no stale references.
  • ✅ The miner is read-only and its search windows are capped with an explicit error.

Limits of this review

  • The pre-fetched patch omits docs/public/cracktro/deck.js. I reviewed the committed HEAD copy instead, so the diff-level changes there are only partly covered.
  • The measured numbers in the runbook and deck could not be re-derived from this sandbox, so I did not verify them.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again

const inWin = c => c.createdAt.slice(0, 10) >= start && c.createdAt.slice(0, 10) <= end;
const isChef = c => BOTS.has(c.author?.login) && (c.body || "").includes("pr-sous-chef");
// a nudge addresses Copilot first, after an optional ```hidden marker block, or is a prep list (the first prep lists, 4-8 Nov 2026, had no @copilot); acknowledgements and reports do not
const isNudge = c =>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[/tdd] isNudge encodes three nudge shapes (the PREP marker, a leading hidden block followed by @copilot, and a bare @copilot) plus the first-prep-list exception, but none of these has a fixture test. A format change in the bot comments would silently shrink the counts.

💡 Suggested test

Add one fixture per shape, plus negatives: a body that mentions @copilot only on a later line, and an acknowledgement. Both should return false.

@copilot please address this.

const hours = [];
for (const p of prs.values()) {
const cs = p.comments.nodes;
if (p.comments.totalCount > cs.length) out.truncated.push(p.number);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[/diagnosing-bugs] Truncated comment pages are only recorded in out.truncated. Nothing in this path fails or warns, so an undercounted window would flow silently into the KPIs on the slide.

💡 Suggested fix

Fail the run, or print a warning, when out.truncated is non-empty, unless the caller already checks it.

@copilot please address this.


Output: `{ window: {start, end, days}, nudges, nudgedPRs, prepLists, prepItems: {branch, review, check, other}, ciFollowUps, answered, merged, nudgeToMergeHours: {median, n}, months: {"YYYY-MM": {nudges, prs}}, truncated: [PR numbers] }`.

Sanity baseline (window 2026-05-13..2026-11-16, run 17 Nov 2026):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[/codebase-design] This baseline table repeats numbers that are also KPI strings in deck.js, and nothing ties the two together. The next refresh could update one and not the other. I checked that the monthly nudge counts sum to 5,826, so the table is internally consistent.

💡 Suggested fix

Generate both from the miner output, or keep the baseline in one dated fixture that the deck reads.

@copilot please address this.

@pelikhan
pelikhan merged commit 23c971b into main Nov 17, 2026
6 checks passed
@pelikhan
pelikhan deleted the pelikhan/pr-sous-chef-slide branch November 17, 2026 05:52
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

2 participants