You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(quality-gates): add baseline verification and acknowledged failures
- Add QualityGatesBaseline interface to track verified state
- Add QUALITY_GATES_VERIFY tool to run gates and establish baseline
- Add QUALITY_GATES_ACKNOWLEDGE tool to acknowledge pre-existing failures
- Add QUALITY_GATES_BASELINE_GET tool to check current baseline status
- Update agent prompt to differentiate between:
- All gates passing: agent maintains this state
- Acknowledged failures: agent ignores pre-existing issues
When failures are acknowledged, agents focus on their assigned task
without trying to solve the world by fixing unrelated issues.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
**IMPORTANT: The following gates were ALREADY FAILING before your task started:**
258
+
${failingGateNames.map((name)=>`- ⚠️ ${name} (PRE-EXISTING FAILURE - DO NOT FIX)`).join("\n")}
259
+
260
+
**Do NOT attempt to fix these pre-existing failures.** The user has acknowledged them.
261
+
Focus ONLY on your assigned task. Do not try to "solve the world."
262
+
263
+
${passingGates.length>0 ? `**Gates you MUST maintain passing:**\n${passingGates.map((g)=>`- \`${g.command}\` (${g.name})`).join("\n")}\n\nIf your changes cause these gates to fail, YOU must fix that.` : ""}
264
+
265
+
**Your responsibility:**
266
+
- Complete your task without breaking gates that were passing
267
+
- Do NOT spend time on pre-existing failures
268
+
- If you accidentally break a passing gate, fix that regression
269
+
- Focus on task completion, not codebase-wide cleanup
270
+
271
+
**SESSION_LAND behavior:**
272
+
- Will check gates that were passing before
273
+
- Pre-existing failures are excluded from verification
274
+
- Your task succeeds if you complete the work without new regressions
"Run quality gates to establish a baseline. Must be done before creating tasks. Returns current state and allows acknowledging pre-existing failures.",
"Acknowledge pre-existing quality gate failures. After acknowledging, agents will NOT attempt to fix these failures - they will focus only on their assigned task.",
535
+
inputSchema: z.object({
536
+
acknowledge: z.boolean().describe("Set to true to acknowledge failures"),
537
+
}),
538
+
outputSchema: z.object({
539
+
success: z.boolean(),
540
+
baseline: z
541
+
.object({
542
+
verified: z.boolean(),
543
+
allPassed: z.boolean(),
544
+
acknowledged: z.boolean(),
545
+
failingGates: z.array(z.string()),
546
+
})
547
+
.optional(),
548
+
error: z.string().optional(),
549
+
}),
550
+
execute: async({ context })=>{
551
+
constworkspace=getWorkspace();
552
+
constconfig=awaitloadProjectConfig(workspace);
553
+
554
+
if(!config.qualityGatesBaseline?.verified){
555
+
return{
556
+
success: false,
557
+
error:
558
+
"No baseline verified. Run QUALITY_GATES_VERIFY first to establish baseline.",
0 commit comments