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
emit_outcome "(failed — --linked-issue $LINKED_ISSUE_RESOLVED is not a positive integer)" 0
191
219
fi
192
-
# Membership validation applies ONLY when detection actually found candidates
193
-
# (the multi-candidate disambiguation re-invoke). When the candidate set is
194
-
# EMPTY, --linked-issue is the authoritative escape hatch — detection always
195
-
# has gaps (prose-only #N refs etc.), so the override MUST NOT depend on
196
-
# detection succeeding, or both fail together exactly when the fallback is
197
-
# needed (the #170 root cause). (#170)
220
+
# Pure disambiguation semantics (#172): --linked-issue is ALWAYS validated
221
+
# against the candidate set. Empty set = nothing to disambiguate = this is
222
+
# the wrong flag; the authoritative path is --force-linked-issue (which
223
+
# existence-checks instead of membership-checks).
198
224
CANDIDATES=$(detect_candidates "$ARCHIVE_DIR")
199
-
if [ -n"$CANDIDATES" ] &&!echo"$CANDIDATES"| grep -qx -- "$LINKED_ISSUE_RESOLVED";then
225
+
if [ -z"$CANDIDATES" ];then
226
+
emit_outcome "(failed — --linked-issue $LINKED_ISSUE_RESOLVED given but detection found no candidates; if you know the issue number authoritatively, re-invoke with --force-linked-issue $LINKED_ISSUE_RESOLVED)" 0
template = """## Implementation Complete (auto-posted by spectra-archive for {basename})
317
+
template = """## Implementation Complete (auto-posted by spectra-archive for {basename}{force_note})
287
318
288
319
> Auto-posted by `/spectra-archive` after archiving `{change_name}`. This comment is the canonical Implementation Complete anchor for `/idd-close` Step 0 supersession gate.
289
320
@@ -304,6 +335,7 @@ template = """## Implementation Complete (auto-posted by spectra-archive for {ba
(failed — --linked-issue 555 given but detection found no candidates; if you know the issue number authoritatively, re-invoke with --force-linked-issue 555)
0 commit comments