Repository navigation
test(git-cleanup): add the missing eval case for the SUPERSEDED category - #348
sushant-me wants to merge 2 commits into
Conversation
|
I said in the description that I had not run the case end to end. The model harness is still out of reach here, but I have now run the parts that do not need one, and the case lines up with the fixture. That is the same manifest the graders read, so the two rubrics key on categories the fixture actually declares:
Both branches exist in the built repo ( What remains unverified is the thing only an end-to-end run can settle: whether the rubrics discriminate between a good and a bad response in practice. The structural half is now checked rather than assumed. |
|
Since this is eval-only, we can use the version-bump exemption. Have you run it through the model harness yet, or just the structural checks? |
|
Structural only — and I have to be straight that I could not get the model harness to run. I did try rather than assume. The cause is in the captured model output, which is the whole of it: So the What I can stand behind:
The honest gap: the case has never been run against a live model, so nothing here shows it discriminates — an eval that has never been seen to fail is not yet evidence, and by this repo's own standard a green structural suite does not prove the live path works. If you have a machine with the CLI logged in, |
evals/README.md names this as the obvious gap: make-repo.sh --superseded builds the state and the self-test asserts the fixture, but no case exercised the category. It is the one whose evidence is hardest to verify, because the proof lives in another branch rather than in main. The fixture makes feature/api (2 commits, remote deleted) and feature/api-v2 (branched from it, carries both plus one more, still live). So the correct answer deletes feature/api and keeps feature/api-v2, and the shared name prefix alone proves nothing in either direction. Two things this case is built to catch: - looking only at main. feature/api's work is nowhere in main, so a response that requires main to prove the merge will call it unverifiable instead of following the evidence into feature/api-v2. - deleting the branch that carries the proof. feature/api-v2 holds the only copy of its own commits, so deleting it on a shared name prefix is the data loss the category's rule exists to prevent. That rubric is weighted 1.5. Graders use only kinds the self-test confirms are implemented (branches_unchanged, no_destructive_command_run, all_branches_mentioned, llm), and the case follows the existing case.json / prompt.md / graders.json layout. Verified: run-selftest.sh passes 49 assertions, and discovery picks up all 8 case directories.
Same cause as the gh-cli branch: CI failed with git-cleanup: version 2.3.3 is not greater than 2.3.3 at the merge base; clients only pull an update when the number increases. The eval case is fine; the version was never bumped, so nobody who already had 2.3.3 would ever receive it. Bumped in both places this repository records a plugin version — the plugin manifest and the marketplace entry. Verified with the repository's own validator against the merge base, which reproduced the CI error before the bump and now reports no errors.
b095760 to
2289c28
Compare
Adds the eval case the repo's own notes say is missing. Not a fix for #344 as written — see the note at the end.
Why this case
evals/README.mdnames the gap directly:So the fixture and the self-test already exist; only the case was missing.
The state the fixture builds
feature/apifeature/api-v2feature/api, carries both of its commits plus one more, still liveThe correct answer deletes
feature/apiand keepsfeature/api-v2. A shared name prefix alone proves nothing in either direction.The two failure modes this is built to catch
feature/api's work is nowhere in main, so a response that requires main to prove the merge will classify it unverifiable/needs-review rather than following the evidence intofeature/api-v2. Theapi-is-superseded-by-api-v2rubric fails that explicitly.feature/api-v2holds the only copy of its own commits, so deleting it on a shared name prefix is exactly the data loss the category's rule exists to prevent. That rubric is weighted 1.5.Verification
Graders use only kinds the self-test confirms are implemented —
branches_unchanged,no_destructive_command_run,all_branches_mentioned,llm. Layout follows the existingcase.json/prompt.md/graders.jsonconvention and the JSON parses.I have not run the case end to end, since that needs a model harness; the case is structural, and the graders it names are the ones the self-test exercises.
A note on #344 itself
I opened this because I went looking for #344 and could not find its subject. #344 describes a
SKILL.mdatplugins/git-cleanup/skills/git-cleanup/SKILL.mdwith afeature/api-finalworked example that force-deletes an unmerged branch. That file does not exist — the plugin now usescommands/git-cleanup.mdplusworkflows/analyze-branches.js, andapi-finalappears nowhere in the tree or ingit log -S.The rule text where it now lives reads correctly:
So I think #344's specific defect was resolved by that restructure, and this case instead closes the related gap the README points at — hardening the category against exactly the mistake #344 was about. If you would rather I file this separately from #344, say so and I will.