feat: block progress claims without execution evidence
This commit is contained in:
@@ -109,6 +109,9 @@ function buildGateLockInput(wrapperResult: any): Record<string, unknown> {
|
||||
&& typeof wrapperResult.taskRecord?.task_name === "string"
|
||||
&& wrapperResult.taskRecord.task_name.trim().length > 0;
|
||||
const hasButtonPathClosureEvidence = needsOwnerDecision && wrapperResult.silentLaunchOk === true;
|
||||
const claimedProgression = wrapperResult.classification === "long_task"
|
||||
? "already progressing to the next step in background"
|
||||
: "";
|
||||
|
||||
return {
|
||||
classification: wrapperResult.classification,
|
||||
@@ -118,6 +121,14 @@ function buildGateLockInput(wrapperResult: any): Record<string, unknown> {
|
||||
nextStep: hasConcreteExecutionEvidence ? requiredNextAction : "",
|
||||
requiredNextAction: hasConcreteExecutionEvidence ? requiredNextAction : "",
|
||||
concreteNextAction: hasConcreteExecutionEvidence ? requiredNextAction : "",
|
||||
progressionClaim: claimedProgression,
|
||||
claimedProgression: claimedProgression,
|
||||
statusSummary: claimedProgression,
|
||||
toolCallEvidence: "",
|
||||
dispatchEvidence: "",
|
||||
fileChangeEvidence: "",
|
||||
verificationEvidence: "",
|
||||
checkpointArtifactEvidence: hasExternalizedCheckpointEvidence ? wrapperResult.taskRecord.task_name.trim() : "",
|
||||
externalizedCheckpointPath: hasExternalizedCheckpointEvidence ? wrapperResult.taskRecord.task_name.trim() : "",
|
||||
externalizedTrigger: hasExternalizedCheckpointEvidence ? "hook-preflight-checkpoint" : "",
|
||||
handoffMode: hasButtonPathClosureEvidence ? (wrapperResult.handoff?.mode ?? "button_path") : "direct_reply",
|
||||
|
||||
Reference in New Issue
Block a user