Repository navigation
Description
What happened
A consuming project (SW2030, Windows/Git Bash + PowerShell) dispatched /discovery:explore during a
10-session /ticket-workflow chain. The discovery:explorer agent returned to its parent with
status: completed — the success terminal — but its payload was a mid-stream status line:
- no
preload_token(the pointer the return contract exists to deliver), - no summary,
- no path to a persisted
EXPLORE.mdor its sidecars.
The parent had no way to distinguish this from a real completion other than noticing the payload was
malformed. Recovery required a SendMessage resume against the agent and a wait of ~8 minutes.
Why this is worse than a crash
/discovery:explore's whole value proposition is that the file reads stay out of the parent's
context and only a pointer plus a bounded summary crosses back. That makes the return payload
the single load-bearing artifact of the dispatch. A completed status with an empty payload fails
in the worst available direction: the parent's default reading is "exploration is done, proceed",
and a less attentive caller carries on with no exploration findings at all while believing the
step succeeded. A hard failure would have been strictly better — visible and recoverable.
Why prose alone will not fix it
Two of the reporter's four suggestions were already present at HEAD as prose contract when the
failure happened, and had been since 78e89e12 — four days earlier:
agents/explorer.mdtells the agent to echo the preload token and, failing that, to set
preload_token: MISSINGand stop withstatus: truncated.skills/explore/SKILL.mdtells the parent a missing or mismatched token is "a hard failure: the
parent discards the run".
The agent returned status: completed with a mid-stream line anyway, and the parent proceeded. So
this is not a fix awaiting a version bump; it is evidence that instruction-only enforcement did not
hold. Another paragraph is the same category of thing.
Residual, and the shape a fix has to take
- Make the persisted artifact the source of truth. The parent never checks that
EXPLORE.md
exists and is non-empty — the one check that is robust to any return-path defect, present or
future. Two constraints on it:- The path must come from the memory-slice path the parent resolved before dispatching, not
fromartifact:. A payload with no pointer is the exact failure being fixed, so a check that
sources its own input from the payload cannot see it. - Non-empty alone is too weak: a mid-stream stub passes
test -s, and so does an index whose
sidecars the run died before writing.
- The path must come from the memory-slice path the parent resolved before dispatching, not
- A payload with no pointer field is a failed dispatch regardless of the reported status. The
parent's stated rule covers only a missing or mismatchedpreload_token. - Document the recovery. If a resume is the intended recovery for a stalled explorer, the skill
should say so — the consuming session discoveredSendMessageresumption by trial, which is
where the 8 minutes went.
Acceptance
An explorer dispatch that produces no usable payload results in a visible failure at the
dispatch site — never a completed status the caller can mistake for a finished exploration —
and the caller halts rather than proceeding to research, planning, or an edit.
Provenance
Behavioral observation from session d2f0d6f6 of the chain, captured in a per-session transcript
analysis and filed to this repo's file-based handoff inbox as
20260730-182801-discovery-explore-return-contract-accepts-empty-payload. Audited at
[email protected], which was the installed version when the chain ran, so no version drift applies.
The exact returned payload text was not preserved verbatim; what is recorded is its shape and the
recovery cost.
Activity
fix(discovery): make explorer completion verifiable at the dispatch s…