Repository navigation
chore(evals): session-flow + source-control skill evals (7 skills) - #139
Conversation
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]>
Bugbot couldn't run - usage limit reachedBugbot 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) |
There was a problem hiding this comment.
💡 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".
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]>
Bugbot couldn't run - usage limit reachedBugbot 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 finished @kyle-sexton's task in 3m 43s —— View job PR Review
SummarySolid, 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
Cross-check Against SKILL.md Contractssession-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, Minor inaccuracy — case 5 ( session-flow/orchestration-brief ✅All 5 cases accurate:
session-flow/retro ✅
session-flow/workflow ✅
source-control/commit ✅
source-control/pull-request ✅Codex reviewer flagged case 4 on commit
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 ✅
Version Bumps ✅
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
Everything else is accurate and mergeable. |
There was a problem hiding this comment.
💡 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]>
Bugbot couldn't run - usage limit reachedBugbot 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 finished @kyle-sexton's task in 1m 21s —— View job PR Review
SummaryBoth previously-flagged issues are resolved in this update. All 35 eval cases are accurate, schema-valid, and mergeable. Issue Resolution
The current
This matches
The current SKILL.md Contract Cross-check
Schema Compliance ✅All 7 files conform to Version Bumps ✅
No remaining issues. This PR is ready to merge. |
There was a problem hiding this comment.
💡 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]>
Bugbot couldn't run - usage limit reachedBugbot 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 finished @kyle-sexton's task in 1m 50s —— View job PR Review
SummaryAll three Codex findings from the prior review rounds have been addressed. The current HEAD ( Worktree Self-Removal Fix Verification ✅The Codex finding on commit
This matches SKILL.md Contract Cross-check
ObservationsMinor prose imprecision (non-blocking): In worktree case 2, the Schema Compliance ✅All 7 files conform to Version Bumps ✅
No blocking issues. All prior Codex findings resolved. Ready to merge. |
There was a problem hiding this comment.
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.
Sent by Cursor Approval Agent: Pull Request Router and Approver
There was a problem hiding this comment.
💡 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]>
Bugbot couldn't run - usage limit reachedBugbot 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 finished @kyle-sexton's task in 2m 2s —— View job PR Review
SummaryAll five Codex findings across four review rounds have been addressed. The current HEAD ( Latest Codex Findings (b596a66 round) — Resolution at HEADFinding 1 — pull-request: "Require checkout confirmation in monitor eval" The prior round's The current
And
This matches the SKILL.md clause verbatim: "invoking Finding 2 — worktree: "Make cleanup summary conditional too" The prior round had conditional The current
This matches cleanup.md Step 4c: Full SKILL.md Contract Cross-check at HEAD
Schema Compliance ✅All 7 files: required Version Bumps ✅
No remaining issues. All five Codex findings across four review rounds resolved. Ready to merge. |
There was a problem hiding this 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.
Sent by Cursor Approval Agent: Pull Request Router and Approver
There was a problem hiding this comment.
💡 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.", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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 👍 / 👎.



Author rich-form
evals/evals.jsonfor 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.
--bgdirty-tree gate--bg/self-spawn refusalgit add -A); no--no-verifybypassgit branch -Demitted-not-run; file-lock/stderr safety; not-PR-lifecycleCases
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, kebabname,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'spython jsonschema/ajvwere unavailable andskill-quality:validate-evalsis a model-driven action (no standalone script), so validation ran via a comprehensivejqcheck enforcing every schema constraint: both-leveladditionalProperties, requiredid+prompt,idtype,namekebab pattern^[a-z0-9]+(-[a-z0-9]+)*$, non-emptyevals/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-control0.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.jsonunder 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--bgdirty-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.