Skip to content

chore(evals): session-flow + source-control skill evals (7 skills) - #139

Merged
kyle-sexton merged 6 commits into
mainfrom
chore/evals-session-flow-source-control
Jul 13, 2026
Merged

kyle-sexton merged 6 commits into
mainfrom
chore/evals-session-flow-source-control

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Jul 13, 2026 •

Copy link
Copy Markdown
Member

Author rich-form evals/evals.json for the 7 skills in the session-flow + source-control batch.

Warrant re-check (per-skill, against live SKILL.md)

All 7 warrant evals — each carries a judgment-bearing behavioral contract that could silently regress (routing, refusals, emitted-shape). No skips.

Skill Warrant
session-flow/handoff file-vs-prompt routing; hard STOP-doesn't-continue rule; --bg dirty-tree gate
session-flow/orchestration-brief default-primes-no-paste vs handoff/worker export; --bg/self-spawn refusal
session-flow/retro mode detection; Phase-4 no-persist-without-approval; no repo writes / no build
session-flow/workflow position detection; never-invent-skill-names; verify-from-artifact; size-independent rigor
source-control/commit Conventional Commits pre-check; surgical staging (no git add -A); no --no-verify bypass
source-control/pull-request finding-verification gate; research-gated CI fix; merge/human-comment gates
source-control/worktree EnterWorktree-last; git branch -D emitted-not-run; file-lock/stderr safety; not-PR-lifecycle

Cases

5 per skill (35 total), each covering trigger/routing, happy path, ≥1 refusal/guardrail, and ≥1 anti-pattern the skill must not do. Modeled on the rich-form example (plugins/bug-report/.../evals.json): id, kebab name, prompt, expected_output, files: [], expectations[]. No fixtures needed (these are routing/behavior contracts, not code-inspection).

Validation

Each file validated against the bundled schema (plugins/skill-quality/reference/evals.schema.json) — all pass. The repo's python jsonschema/ajv were unavailable and skill-quality:validate-evals is a model-driven action (no standalone script), so validation ran via a comprehensive jq check enforcing every schema constraint: both-level additionalProperties, required id+prompt, id type, name kebab pattern ^[a-z0-9]+(-[a-z0-9]+)*$, non-empty evals/prompt/skill_name.

Delivery

Both plugin versions bumped (evals are a shipped component; the version bump is the only delivery vehicle) — session-flow 0.2.0 → 0.2.1, source-control 0.1.0 → 0.1.1. Additive-only, no behavior change → no changelog note required.

Refs melodic-software/medley#1451


Note

Low Risk
Additive JSON eval fixtures and manifest version bumps only; no changes to skill execution logic or delivery code paths.

Overview
Adds shipped eval suites for seven session-flow and source-control skills: new evals/evals.json under each skill with five rich-form cases (prompt, expected output, expectations) that lock routing, guardrails, and refusal behavior—e.g. handoff stop-after-save-point and --bg dirty-tree gate, orchestration-brief prime vs export modes, retro mode routing and no-persist-without-approval, workflow artifact-based stage verification, commit surgical staging and hook non-bypass, PR monitor/merge/CI/human-comment gates, worktree EnterWorktree-last and cleanup safety.

Bumps plugin patch versions only (session-flow 0.2.1, source-control `0.1.1**) so the eval artifacts ship with the plugins. No skill runtime or SKILL.md changes in this diff.

Reviewed by Cursor Bugbot for commit a1dc267. Bugbot is set up for automated code reviews on this repo. Configure here.

kyle-sexton and others added 2 commits July 12, 2026 21:41
Add evals/evals.json for handoff, orchestration-brief, retro, and
workflow — each 5 cases covering trigger/routing, happy path, at least
one refusal/guardrail, and one anti-pattern the skill must not do,
authored against current shipped behavior. Bump plugin version (evals
are a shipped component; the version bump is the delivery vehicle).

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add evals/evals.json for commit, pull-request, and worktree — each 5
cases covering trigger/routing, happy path, at least one
refusal/guardrail, and one anti-pattern the skill must not do (surgical
staging, no --no-verify bypass, finding-verification and merge gates,
branch -D emitted not run, EnterWorktree-last), authored against current
shipped behavior. Bump plugin version (evals are a shipped component).

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_40913fc0-4cbf-423e-9441-4744ec7f8c92)

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Review in Progress

  • Gather context and read changed files
  • Review evals schema alignment
  • Review each skill's evals for correctness and completeness
  • Check version bumps and plugin.json changes
  • Final summary

View job run

@cursor cursor 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.

Stale comment

Risk: low. Cursor Bugbot did not complete (check skipped due to usage limit), so the automated review signal is unavailable. Human review is needed before merge; no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@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: a3855e3ece

ℹ️ 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".

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

PR Review

  • Gather context and read changed files
  • Review evals schema alignment
  • Review session-flow evals (handoff, orchestration-brief, retro, workflow)
  • Review source-control evals (commit, pull-request, worktree)
  • Check version bumps and plugin.json changes
  • Final summary

View job run

Codex review (P2): the human-comment case gated replying, but the live
skill contract only pauses before reacting or fixing — the monitor
workflow still requires an evidence-backed reply. Narrow the expectation
so a correct run that replies without approval is not marked failing.

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_fdbbf3f0-2f5f-47e6-b316-ce899d18a2af)

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 3m 43s —— View job


PR Review

  • Gather context and read changed files
  • Review evals schema alignment
  • Review session-flow evals (handoff, orchestration-brief, retro, workflow)
  • Review source-control evals (commit, pull-request, worktree)
  • Check version bumps and plugin.json changes
  • Cross-check eval cases against SKILL.md contracts
  • Final summary

Summary

Solid, well-structured eval batch. 35 cases across 7 skills, all schema-valid, with one minor accuracy issue and one pre-resolved Codex concern.


Schema Compliance ✅

All 7 files conform to evals.schema.json:

  • skill_name and evals present at root (required fields)
  • Each case has id (integer), name (kebab-case matching ^[a-z0-9]+(-[a-z0-9]+)*$), prompt, expected_output, files: [], and expectations[]
  • No additionalProperties violations

Cross-check Against SKILL.md Contracts

session-flow/handoff ✅ (one minor flag issue — see below)

Cases 1–4 accurately reflect the SKILL.md: hard-stop rule, prompt-only path, multi-step pipeline STOP semantics, --bg requiring explicit flag. All expectations match the contract language verbatim.

Minor inaccuracy — case 5 (bg-dirty-tree-falls-back):
The expectation cites git status --porcelain but the SKILL.md (line 170) explicitly requires git status --porcelain -uall. The reason is load-bearing: without -uall, a brand-new .claude/handoffs/ directory collapses to a single directory entry, which defeats the save-point exemption and can hide other dirty state behind it. An implementation using the plain flag would pass this eval but violate the behavioral contract.

Fix this →

session-flow/orchestration-brief ✅

All 5 cases accurate:

  • Default primes without emitting paste text — matches SKILL.md action table
  • handoff / worker export modes, dashed-rail shape, worker inherit-context first-line — all verbatim from SKILL.md
  • compact headline-only modifier correctly drops sub-clauses
  • Self-spawn refusal matches "Does not delegate, verify, nest, or spawn anything itself"

session-flow/retro ✅

  • Mode detection signal table (bare /retro → session, "codify" → codify, "trends/how am I doing" → trends) exactly matches SKILL.md Step 0 table
  • Phase 4 interactive-checkpoint gate matches the SKILL.md gotcha: "never persist codifications without explicit user approval"
  • ${CLAUDE_PLUGIN_DATA} score location for trends mode correctly uses plugin state (not the consumer repo), matching SKILL.md path definitions
  • "no-repo-writes-no-build" expectations directly reflect the three "What this skill does NOT do" bullets

session-flow/workflow ✅

  • Stage-completion-from-artifact (not from vibes) maps directly to the SKILL.md "Verify a stage from its artifact or output — not from conversation vibes" gotcha
  • Never-invent-skill-names matches "Never invent skill names — check what actually exists"
  • Verification rigor is size-independent matches the key principle verbatim
  • pre-pr argument routing matches the argument-parsing table

source-control/commit ✅

  • Heredoc form (git commit -F - --cleanup=verbatim, --trailer, single-quoted <<'EOF') matches canonical bash form in SKILL.md exactly
  • git add -A refusal + rationale (secrets / build artifacts) matches staging discipline
  • Pre-check before git commit + consumer-convention wins — both correct
  • --no-verify bypass refusal matches "No --no-verify or hook bypass"
  • Scope boundary (no push, no PR) matches "What this skill does NOT do"

source-control/pull-request ✅

Codex reviewer flagged case 4 on commit a3855e3; the subsequent fix commit cce8f9b ("fix(source-control): correct pull-request human-comment eval gate") already addresses it. The current case 4 correctly separates:

  • Gated: reacting (emoji) and fixing — requires user approval for human-authored comments (matches SKILL.md "always pause for user approval before reacting or fixing")
  • Not gated: evidence-backed classification reply — explicitly flagged as not gated in expectation 3, consistent with the SKILL.md's D5 step which lists replies as a required monitor step without a human-comment exemption

All other cases (action routing, finding verification gate, unclassified-CI merge block, research-gated CI fix) accurately reflect the skill's non-negotiable gates.

source-control/worktree ✅

  • EnterWorktree-last invariant named correctly and matches the SKILL.md "Safety invariant create MUST honor"
  • git branch -D emit-not-run + -D vs -d rationale (squash-merge SHA change) matches cleanup safety invariants exactly
  • File-lock release before --force + no stderr suppression + scoped to target worktree — all match the three safety invariants
  • Not-PR-lifecycle scope boundary routes to /pull-request and /commit as specified

Version Bumps ✅

Plugin Before After Correct?
session-flow 0.2.0 0.2.1 ✅ patch
source-control 0.1.0 0.1.1 ✅ patch

Additive-only (no runtime behavior change) → patch is appropriate per semver.


Coverage Assessment ✅

Each skill has 5 cases covering: trigger/routing, happy-path, refusal/guardrail, and anti-pattern. The distribution is well-balanced — no skill leans purely on happy-path tests, and each has at least one explicit "skill must NOT do X" case grounding a behavioral boundary.


One Finding to Fix Before Merge

File Issue
🟡 Minor handoff/evals.json case 5 Expectation says git status --porcelain but SKILL.md requires -uall; an impl using the plain flag would pass the eval but violate the contract

Everything else is accurate and mergeable.

@cursor cursor 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.

Stale comment

Risk: low. Cursor Bugbot did not complete (check skipped due to usage limit), so the automated review signal is unavailable. Human review is needed before merge; no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@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: cce8f9bfc6

ℹ️ 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".

Codex review (P2): the live skill requires `git status --porcelain
-uall` (default porcelain collapses untracked directories and can hide
unrelated dirt behind the exempt handoff dir, SKILL.md 169-172). Pin the
expectation to -uall so it can't pass an implementation that misses
unrelated untracked files and launches the background agent anyway.

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_5ffb8948-029b-4d84-ad93-59e13096728a)

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 21s —— View job


PR Review

  • Gather context and read changed files
  • Verify the -uall fix in handoff case 5
  • Cross-check all 7 eval files against SKILL.md contracts
  • Check version bumps
  • Final summary

Summary

Both previously-flagged issues are resolved in this update. All 35 eval cases are accurate, schema-valid, and mergeable.


Issue Resolution

git status --porcelain -uall — handoff case 5 (flagged by Codex in the prior review, addressed in c04455f)

The current handoff/evals.json case 5 now reads:

"The skill runs the dirty-tree gate with git status --porcelain -uall (the -uall is required — default porcelain collapses untracked directories and can hide unrelated dirt behind the exempt handoff directory)"

This matches SKILL.md lines 169–172 exactly. ✅

pull-request case 4 reply-gate (flagged by Codex on a3855e3, fixed in cce8f9b, carried forward)

The current pull-request/evals.json case 4 correctly separates gated (react/fix) from non-gated (evidence-backed classification reply), matching the SKILL.md monitor workflow. ✅


SKILL.md Contract Cross-check

Skill Cases Accuracy
session-flow/handoff 5 ✅ STOP rule, prompt-only path, multi-step pipeline, --bg gate, dirty-tree -uall
session-flow/orchestration-brief 5 ✅ Prime-no-paste default, handoff/worker rail shapes, compact headlines-only, no-self-spawn
session-flow/retro 5 ✅ Mode-detection table, Phase 4 interactive gate, ${CLAUDE_PLUGIN_DATA} score path, scope limits
session-flow/workflow 5 ✅ Artifact-grounded stage detection, pre-pr routing, never-invent-skill-names, size-independent rigor
source-control/commit 5 ✅ Heredoc form, surgical staging, Conventional Commits pre-check, --no-verify refusal, scope limit
source-control/pull-request 5 ✅ Action routing, finding-verification gate, unclassified-CI merge block, human-comment approval gate, research-gated CI fix
source-control/worktree 5 ✅ EnterWorktree-last, git branch -D emit-not-run, file-lock/stderr safety, not-PR-lifecycle scope

Schema Compliance ✅

All 7 files conform to evals.schema.json: required skill_name + evals at root; each case has an integer id, kebab name matching ^[a-z0-9]+(-[a-z0-9]+)*$, non-empty prompt, expected_output, files: [], and expectations[].

Version Bumps ✅

Plugin Version Correctness
session-flow 0.2.0 → 0.2.1 ✅ Patch — additive eval assets only
source-control 0.1.0 → 0.1.1 ✅ Patch — additive eval assets only

No remaining issues. This PR is ready to merge.

@cursor cursor 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.

Stale comment

Risk: low. Cursor Bugbot did not complete (check skipped due to usage limit), so the automated review signal is unavailable. Human review is needed before merge; no reviewers were assigned.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@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: c04455f6f6

ℹ️ 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".

Codex review (P2): cleanup emits `git worktree remove
<current-worktree-path>` only when the active worktree is itself a
candidate (context/cleanup.md Step 4c, line 83). The generic-cleanup
eval required it unconditionally, which would fail a correct cleanup run
from main or another live worktree. Gate the expectation on that
condition.

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_6018a27e-2756-41cd-b5dd-ebd6ded08bf5)

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 1m 50s —— View job


PR Review

  • Gather context and read changed files
  • Verify worktree self-removal conditional fix (b596a66)
  • Cross-check all 7 eval files against SKILL.md contracts
  • Check version bumps
  • Final summary

Summary

All three Codex findings from the prior review rounds have been addressed. The current HEAD (b596a66) resolves the last open finding — worktree self-removal conditionality. All 35 eval cases are schema-valid and accurate against SKILL.md contracts.


Worktree Self-Removal Fix Verification ✅

The Codex finding on commit a3855e3 (unconditional self-removal) was addressed in b596a66. The current worktree/evals.json case 2 expectation 2 now reads:

"If the active worktree is itself one of the cleanup candidates, its removal is emitted for the user to run (a worktree cannot delete itself) rather than executed inline; self-removal is not emitted when the current checkout is not a target"

This matches cleanup.md Step 4c exactly: git worktree remove <current-worktree-path> # only if the active worktree was itself a candidate. ✅


SKILL.md Contract Cross-check

Skill Cases Accuracy
session-flow/handoff 5 ✅ STOP rule, prompt-only path, multi-step pipeline, --bg gate, dirty-tree -uall
session-flow/orchestration-brief 5 ✅ Prime-no-paste default, handoff/worker rail shapes, compact headlines-only, no-self-spawn
session-flow/retro 5 ✅ Mode-detection table, Phase 4 interactive gate, ${CLAUDE_PLUGIN_DATA} score path, scope limits
session-flow/workflow 5 ✅ Artifact-grounded stage detection, pre-pr routing, never-invent-skill-names, size-independent rigor
source-control/commit 5 ✅ Heredoc form, surgical staging, Conventional Commits pre-check, --no-verify refusal, scope limit
source-control/pull-request 5 ✅ Action routing, finding-verification gate, unclassified-CI merge block, human-comment approval gate, research-gated CI fix
source-control/worktree 5 ✅ EnterWorktree-last, git branch -D emit-not-run (conditional self-removal), file-lock/stderr safety, not-PR-lifecycle scope

Observations

Minor prose imprecision (non-blocking): In worktree case 2, the expected_output prose still reads "emits the git branch -D commands (and the self-worktree removal)" without qualification, while expectations[1] correctly gates self-removal on the active worktree being a candidate. Since the eval runner validates against expectations[] — not the prose description — this doesn't affect correctness, but a follow-up could tighten the prose to match.

Schema Compliance ✅

All 7 files conform to evals.schema.json: required skill_name + evals at root; each case has an integer id, kebab name matching ^[a-z0-9]+(-[a-z0-9]+)*$, non-empty prompt, expected_output, files: [], and expectations[].

Version Bumps ✅

Plugin Version Correctness
session-flow 0.2.0 → 0.2.1 ✅ Patch — additive eval assets only
source-control 0.1.0 → 0.1.1 ✅ Patch — additive eval assets only

No blocking issues. All prior Codex findings resolved. Ready to merge.

@cursor cursor 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.

Stale comment

Risk: low. Not approving: Cursor Bugbot completed as skipped (usage limit reached) and did not provide a clean automated review signal. Human review is needed before merge; no reviewers were assigned because the PR author is the sole human repository contributor.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@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: b596a66d1b

ℹ️ 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".

Codex review (P2 x2):
- pull-request monitor case: add the interactive target-branch
  confirmation gate before the mechanical switch (SKILL.md 127-130);
  naming the PR number does not waive it.
- worktree cleanup case: make the expected_output prose conditional
  too — self-worktree removal is emitted only when the active worktree
  is itself a candidate (cleanup.md Step 4c), matching the already-fixed
  expectation.

Refs melodic-software/medley#1451

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@cursor

cursor Bot commented Jul 13, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_9b964368-9098-4fcb-a787-1939543ef653)

@claude

claude Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @kyle-sexton's task in 2m 2s —— View job


PR Review

  • Gather context and read changed files
  • Verify resolution of latest Codex findings (pull-request checkout gate, worktree summary conditionality)
  • Cross-check all 7 eval files against SKILL.md contracts at HEAD
  • Check version bumps
  • Final summary

Summary

All five Codex findings across four review rounds have been addressed. The current HEAD (a1dc267) closes the last two findings. All 35 eval cases are schema-valid, accurate against SKILL.md contracts, and ready to merge.


Latest Codex Findings (b596a66 round) — Resolution at HEAD

Finding 1 — pull-request: "Require checkout confirmation in monitor eval"

The prior round's expected_output for case 1 (action-routing) only mentioned gh pr checkout with pre-checks — it was silent on the interactive target-branch confirmation gate that SKILL.md line 130 requires even when the PR number was already named.

The current pull-request/evals.json case 1 now reads:

"…and, in an interactive session not already on the PR branch, confirms the target branch with the user before the mechanical switch even though PR 482 was named — then arms event delivery"

And expectations[2]:

"In an interactive session not already on the PR branch, it confirms the target branch with the user before re-pointing the worktree — naming PR 482 does not waive the target-branch confirmation gate"

This matches the SKILL.md clause verbatim: "invoking /pull-request monitor <N> against a specific PR is intent, but the target-branch confirmation gate still governs the mechanical switch." ✅

Finding 2 — worktree: "Make cleanup summary conditional too"

The prior round had conditional expectations[1] but the expected_output prose still said "and the self-worktree removal" unconditionally.

The current worktree/evals.json case 2 expected_output now reads:

"If the active worktree is itself a cleanup candidate, its removal is emitted too (a worktree can't delete itself), but not when the current checkout is not a target."

This matches cleanup.md Step 4c: git worktree remove <current-worktree-path> # only if the active worktree was itself a candidate. Both expected_output prose and expectations[1] are now consistently conditional. ✅


Full SKILL.md Contract Cross-check at HEAD

Skill Cases Accuracy
session-flow/handoff 5 ✅ STOP rule, prompt-only path, multi-step pipeline, --bg gate, dirty-tree -uall
session-flow/orchestration-brief 5 ✅ Prime-no-paste default, handoff/worker rail shapes, compact headlines-only, no-self-spawn
session-flow/retro 5 ✅ Mode-detection table, Phase 4 interactive gate, ${CLAUDE_PLUGIN_DATA} score path, scope limits
session-flow/workflow 5 ✅ Artifact-grounded stage detection, pre-pr routing, never-invent-skill-names, size-independent rigor
source-control/commit 5 ✅ Heredoc form, surgical staging, Conventional Commits pre-check, --no-verify refusal, scope limit
source-control/pull-request 5 ✅ Action routing + checkout confirmation gate, finding-verification gate, unclassified-CI merge block, human-comment approval gate, research-gated CI fix
source-control/worktree 5 ✅ EnterWorktree-last, git branch -D emit-not-run (conditional self-removal in prose + expectations), file-lock/stderr safety, not-PR-lifecycle scope

Schema Compliance ✅

All 7 files: required skill_name + evals at root; each case has an integer id, kebab name matching ^[a-z0-9]+(-[a-z0-9]+)*$, non-empty prompt, expected_output, files: [], and expectations[].

Version Bumps ✅

Plugin Version Correctness
session-flow 0.2.0 → 0.2.1 ✅ Patch — additive eval assets only
source-control 0.1.0 → 0.1.1 ✅ Patch — additive eval assets only

No remaining issues. All five Codex findings across four review rounds resolved. Ready to merge.

@cursor cursor 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.

Risk: low. Not approving: Cursor Bugbot completed as skipped (usage limit reached) and did not provide a clean automated review signal. Human review is needed before merge; no reviewers were assigned because the PR author is the sole human repository contributor.

Open in Web View Automation 

Sent by Cursor Approval Agent: Pull Request Router and Approver

@kyle-sexton
kyle-sexton merged commit cc042e5 into main Jul 13, 2026
4 checks passed
@kyle-sexton
kyle-sexton deleted the chore/evals-session-flow-source-control branch July 13, 2026 02:31

@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: a1dc26753b

ℹ️ 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".

"id": 2,
"name": "cleanup-emits-branch-delete-not-inline",
"prompt": "/worktree cleanup — remove the stale worktrees and delete their branches.",
"expected_output": "Cleanup removes stale/orphaned worktrees but does NOT run the branch deletion inline: it emits the git branch -D commands for the USER to run — branch deletion is destructive and the project's hooks may block it mid-session. If the active worktree is itself a cleanup candidate, its removal is emitted too (a worktree can't delete itself), but not when the current checkout is not a target. -D (not -d) is used because squash-merge changes the SHA.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Require cleanup confirmation before removal

In the generic /worktree cleanup case, this expected output goes straight to removing stale/orphaned worktrees. The live cleanup flow in context/cleanup.md Step 3/Step 4 presents candidates and asks for confirmation before executing removal; otherwise this eval can pass an implementation that deletes worktrees just because they were detected, without the user seeing or selecting the candidates. Add the confirmation gate to the expected output/expectations so destructive cleanup cannot pass without it.

Useful? React with 👍 / 👎.

"expected_output": "Before git worktree remove --force, the skill releases OS file locks (stops the build server / worktree-rooted daemons for THAT worktree only, never another live worktree's processes). It does not swallow removal stderr (no 2>/dev/null) so a failed removal surfaces as an honest husk report rather than a false success.",
"files": [],
"expectations": [
"The skill releases OS file locks (stops the build server / worktree-rooted daemons) before git worktree remove --force, scoped to the target worktree only",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the force-removal escalation guard

For the Windows lock case, the expectation only checks that locks are stopped before git worktree remove --force. The live cleanup procedure first tries plain git worktree remove, then before any force retry inspects git -C <path> status --porcelain and unpushed commits and gets explicit per-worktree confirmation if either is non-empty; otherwise this eval can pass a force-only cleanup that discards dirty or unpushed work in the stale worktree. Add those guard expectations around the force path.

Useful? React with 👍 / 👎.

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