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
Copy file name to clipboardExpand all lines: codex/scripts/implement-validate.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,8 @@ if [[ ! -f "${FINAL_PHASE_FILE}" ]]; then
76
76
fi
77
77
78
78
if [[ -f"${PHASE_PLAN_FILE}" ]];then
79
-
if! grep -q'^- Verdict: READY FOR IMPLEMENTATION$'"${PHASE_PLAN_FILE}";then
80
-
issues+=("Precondition failed: ${PHASE_PLAN_FILE} must contain '- Verdict: READY FOR IMPLEMENTATION' before Stage 4 closeout.")
79
+
if! grep -Eq'^- Verdict: (READY FOR IMPLEMENTATION|READY TO LAND)$'"${PHASE_PLAN_FILE}";then
80
+
issues+=("Precondition failed: ${PHASE_PLAN_FILE} must contain '- Verdict: READY FOR IMPLEMENTATION' or '- Verdict: READY TO LAND' before Stage 4/5 validation.")
81
81
fi
82
82
fi
83
83
@@ -138,8 +138,8 @@ if [[ -f "${FINAL_PHASE_FILE}" ]]; then
issues+=("Complexity lock metadata incomplete: missing 'selected_signals_path' in ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh, then enter revalidate.")
200
+
issues+=("Complexity lock metadata incomplete: missing 'selected_signals_path' in ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh, then rerun Stage 3 validation.")
205
201
lock_metadata_complete="false"
206
202
fi
207
203
208
204
if [[ -z"${lock_signals_sha256}" ]];then
209
-
issues+=("Complexity lock metadata incomplete: missing 'selected_signals_sha256' in ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh, then enter revalidate.")
205
+
issues+=("Complexity lock metadata incomplete: missing 'selected_signals_sha256' in ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh, then rerun Stage 3 validation.")
210
206
lock_metadata_complete="false"
211
207
fi
212
208
@@ -218,18 +214,18 @@ else
218
214
fi
219
215
220
216
if [[ !-f"${COMPLEXITY_SIGNALS_FILE}" ]];then
221
-
issues+=("Missing required complexity signals file: ${COMPLEXITY_SIGNALS_FILE}. Remediation: create it, rerun prepare-phased-impl-scaffold.sh, then enter revalidate.")
issues+=("Missing required complexity lock file: ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh for this task, then enter revalidate.")
221
+
issues+=("Missing required complexity lock file: ${COMPLEXITY_LOCK_FILE}. Remediation: rerun prepare-phased-impl-scaffold.sh for this task, then rerun Stage 3 validation.")
226
222
fi
227
223
228
224
if [[ -f"${COMPLEXITY_LOCK_FILE}"&&-f"${PHASE_PLAN_FILE}" ]];then
issues+=("Complexity lock metadata incomplete: selected signals path could not be resolved from ${COMPLEXITY_LOCK_FILE}. BLOCKED; run revalidate after regenerating lock metadata.")
238
+
issues+=("Complexity lock metadata incomplete: selected signals path could not be resolved from ${COMPLEXITY_LOCK_FILE}. BLOCKED; resolve lock metadata before continuing.")
243
239
elif [[ !-f"${complexity_signals_file}" ]];then
244
-
issues+=("Selected complexity signals file not found: ${complexity_signals_file}. BLOCKED; run revalidate after restoring the selected signals file.")
240
+
issues+=("Selected complexity signals file not found: ${complexity_signals_file}. BLOCKED; restore the selected signals file before continuing.")
245
241
else
246
242
if score_json="$("${score_script}""${complexity_signals_file}" --format json 2>&1)";then
if [[ -n"${lock_signals_path}"&&"${complexity_signals_file}"!="${lock_signals_path}" ]];then
272
-
issues+=("Complexity drift detected: selected signals path changed from '${lock_signals_path}' to '${complexity_signals_file}'. BLOCKED; run revalidate before continuing.")
268
+
issues+=("Complexity drift detected: selected signals path changed from '${lock_signals_path}' to '${complexity_signals_file}'. BLOCKED; resolve drift before continuing.")
273
269
fi
274
270
275
271
if [[ -n"${lock_signals_sha256}" ]];then
276
272
if current_signals_sha256="$(sha256_file "${complexity_signals_file}")";then
277
273
if [[ "${current_signals_sha256}"!="${lock_signals_sha256}" ]];then
278
-
issues+=("Complexity drift detected: selected signals content changed since Stage 3 lock. BLOCKED; run revalidate before continuing.")
274
+
issues+=("Complexity drift detected: selected signals content changed since Stage 3 lock. BLOCKED; resolve drift before continuing.")
279
275
fi
280
276
else
281
277
issues+=("Unable to compute SHA-256 for ${complexity_signals_file} to enforce complexity drift policy.")
0 commit comments