fix(gatorwalk-factory): a downgraded regression no longer sets the Lab regression flag (swamp-club #2769) #387
Loading…
Reference in a new issue
No description provided.
Delete branch "cue/2769-gatorwalk-factory-downgraded"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes swamp-club #2769.
Problem
The
swamp-club-swamp-extensionsexample factory recorded a regression claim as made. swamp-club sets or clears an issue's regression flag from theclassifiedentry'spayload.isRegression, so:isRegression: true, verdictdowngraded), set the Lab flag;isRegressionnever cleared a flag set earlier (after a reclassify);Fix (YAML only, no engine or tracker change)
The classification now records the effective flag, as issue-lifecycle's triage computes it:
isRegressionis required on every classification;trueexactly when the verdict isconfirmed; adowngradedverdict forcesfalse;regressionIntroducedInonly with a confirmed verdict; any verdict needs the argument fields and typebug.regression-reviewkeys on a recordedregressionVerdict, so a downgraded claim is still reviewed.classifiedis two entries matched onisRegression(the definition validator rejects a matched entry beside an unmatched fallback on one trigger), the regression one reading "Classified as {{type}} (regression) ({{confidence}})". The triage prompt, the companion.md(theclassifiedrow now reads "Same") and the regeneratedstarters.tscopy follow.Tests
tracker/examples_test.ts: posts SWXclassifiedentries to the Lab fake — confirmed sets the flag and says "(regression)"; downgraded leaves it clear or clears one set earlier; a plain bug after a confirmed regression clears it. Fails against the old YAML.engine/factories_test.ts: six invalid shapes rejected, a valid downgraded sample, andregression-reviewrequired for both verdicts and not for a plain bug.isRegression: false.Verified with verify-build and verify-reviews at
7179233; attestation ec6a6965-df3d-43bb-b7a4-efebb7be269f.🤖 Generated with Claude Code