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
{{ message }}
Repository navigation
session-flow/handoff: hardening audit vs mattpocock/skills handoff issue corpus (#186/#306/#617/#482) #1477
Audit our session-flow:handoff against the sharpest findings from mattpocock/skills' handoff evolution corpus (29 issues); adopt what is missing, confirm what we already cover. Audit-first: several items look already-covered — verify before changing anything.
Fetch upstream at audit time. The bullets below cite upstream issues with a one-line gist only; the issues live and evolve (get edited, commented, closed). Read each one fresh when this audit runs — do not work from this issue's gists.
Type: Task (audit/hardening — see taxonomy: "Task = any other tracked work — maintenance, refactor, tests, docs, audits, chores")
Priority: priority: medium (left as-is — no blocking dependency or external deadline stated; assessed-default tier)
Work class: C3 — scoped change (work-class: scoped). The audit itself is read-only, but the acceptance criteria explicitly allow adopting template/prompt-language changes to session-flow:handoff verified against its evals — a repository mutation with blast radius bounded by the brief, so this is not pure C1.
Redundancy / rejected-concept check
No docs/out-of-scope/ ledger exists in this repo — skipped.
Searched session-flow:handoff's SKILL.md and companion docs for prior coverage of the four cited findings — no existing per-finding audit trail found. Not already implemented; the audit itself is the open work.
Routing: human-gated
Per plugins/autonomy/reference/guardrails/admission-policy.md, work class C3 is human-gated under the shipped defaults regardless of how well-specified the brief is (blast-radius/reversibility risk properties gate admission, not decision-openness alone) — no repo-local security binding in this repo promotes that cell. Additionally, whether to adopt prompt-language changes for findings #186/#306/#617/#482 is editorial judgment about how an LLM reads its own handoff-writing instructions — a human should confirm the audit verdicts before any template edit ships.
Agent Brief
Type: Task Summary: Audit session-flow:handoff against four specific failure modes from the mattpocock/skills handoff corpus (#186 "summarise is the bug", #306 verify-vs-assumed discipline, #617 end with orders not a path, #482 durable location); adopt what's missing, confirm what's covered.
Current behavior: session-flow:handoff writes save-point files to <memory_dir>/handoffs/ and produces a clear-and-resume prompt. Whether its prompt language explicitly counters the four cited failure modes (silent-drop categories under "summarise" framing, unverified-claim tagging discipline, orders-not-path resume framing, cross-handoff referencing) has not been audited against this specific corpus.
Desired behavior:
For each of the four findings, a recorded verdict: covered (with evidence from the skill's own text), adopted (a concrete template/prompt-language change), or rejected (with rationale). Any adopted change is verified against the skill's own evals before merge.
Key interfaces:
session-flow:handoff's save-point template and resume-prompt generation — the surfaces a "decision-archive framing" fix or "orders not path" fix would touch
The skill's evals/evals.json — the acceptance gate for any adopted change
Why human-gated:C3 work class per admission policy (bounded scoped change, but a real repo mutation to a widely-used skill is in scope) + editorial judgment on whether the audit verdicts justify a prompt-language change.
Audit verdicts — session-flow:handoff vs upstream corpus (all four issues fetched live 2026-07-26)
Upstream state at fetch time: #186 CLOSED (maintainer closed on a "long-context limitation" argument, nothing adopted); #306, #617, #482 OPEN with no maintainer response; none of the four adopted upstream.
Finding 1 — mattpocock/skills#186 ("summarise" is the wrong verb): covered (with two sub-items adopted / two rejected)
Evidence: our template is already decision-archive-shaped, not summary-shaped. reference/structure.md mandates 13 always-present sections including 7 (Decisions already settled, rationale as a field of the decision), 8 (Approaches tried and abandoned — upstream's "rejected alternatives"), 9 (Findings that cost effort to discover — "This is the section that beats compaction. Write it long."), and 10 (Remaining actions, in order — upstream's lost implementation-order). Anti-compression is explicit: "Layering is not truncation… Sections 7, 8, and 9 exist specifically for what a summarizer discards first." The only two "summarize" instructions (structure.md File-roles section) are pointer-not-copy rules for already-committed work ("the commit range is the diff"), not lossy compression of decisions; SKILL.md closes with "Does not summarize the whole conversation — task-relevant state only."
Per-suggestion sub-verdicts from #186's five proposals:
but/except/unless edge-case re-scan → adopted (no recall step existed for constraints buried inside accepted decisions; added to "Constraints that must hold").
Self-audit "what would a fresh agent ask" → rejected: the 13-mandatory-sections walk with "a section with nothing to report reads None. plus a half-line of reason" is the structural counterpart; a second open-ended recall pass duplicates it without a defined output.
Top-of-file disclaimer → rejected: structure.md already opens with "The reader is a session with NO prior context. It will act on this file" as a WRITE-side rule, and sections 11/12 give ambiguity a routed destination (open questions / blockers) instead of a blanket "ask the user" hedge.
Finding 2 — mattpocock/skills#306 (verify-vs-assumed discipline): adopted (write-side gap was real)
Covered before this audit: run-commands-not-memory (SKILL.md pre-computed git injections; "TaskList captured … from a live TaskList call this turn"; "fresh reads this turn" checklist items; gotchas' evidence rule for met/unmet marks), and the resume-side drift protocol lives in session-flow:reanchor (anchor-vs-HEAD, re-probe premises).
Gap confirmed: nothing governed claims the writing session inherited and could not probe — exactly upstream's laundering incident ("not built yet" forwarded as fact → feature rebuilt). Adopted: a provenance rule in structure.md — plain statement only for claims verified this session; anything inherited carries UNVERIFIED (<source>); "an inherited claim is a claim to falsify, not a fact to forward."
Evidence: the rails resume prompt leads with the execute instruction — "Read @/-handoff-.md and continue its remaining next steps." (reference/save-point.md, "Emit the copy/paste resume prompt"), with the skill-specific variant "…and execute /." Delivery is /clear-then-paste, so the orders arrive as the fresh session's opening message — never a bare path. Upstream's cd … && claude "$(cat …)" launcher shape is their delivery mechanism; ours has a dedicated gated sibling (continue-in-background launches a detached claude --bg seeded with the same resume prompt). No change.
Evidence: save-points write to <memory_dir>/handoffs/ (default .work/handoffs/) — repo-local, reboot-safe, self-gitignored via the memory-root guard, timestamped <TS>-handoff-<topic>.md so successive handoffs order and reference cleanly; cross-handoff referencing exists as the previous_handoff frontmatter chain with the same-task-only continuity rule; no-repo fallback is ${CLAUDE_PLUGIN_DATA}/topic-docs/handoffs/, also durable — never OS temp. The #482 comment thread's "delete after pickup" suggestion → rejected: previous_handoff chain-walking (retro), find-handoff recovery, and "a continuing handoff carries the prior one's unfinished work forward" all depend on retained files; the directory is gitignored and timestamp-ordered, so accumulation is cheap and ordered. The #306 comment's post-Write existence probe → rejected: its root cause was macOS temp-sweep of $TMPDIR, a location class we never write to; in this harness a failed Write surfaces as a tool error.
Changes
The two adoptions land as a template-hardening PR (session-flow 0.17.13, reference/structure.md + CHANGELOG). Verification per acceptance criteria: markdownlint clean; evals/evals.json schema-valid against skill-quality's evals.schema.json (the repo CI's eval verification bar — evals are schema-validated, not model-executed, per skill-quality's own scope); the skill contract gate does not fire for reference-doc-only diffs.
Activity
kyle-sexton commentedon Jul 26, 2026
This was generated by AI during triage.
Triage
Classification
Task(audit/hardening — see taxonomy: "Task = any other tracked work — maintenance, refactor, tests, docs, audits, chores")priority: medium(left as-is — no blocking dependency or external deadline stated; assessed-default tier)C3— scoped change (work-class: scoped). The audit itself is read-only, but the acceptance criteria explicitly allow adopting template/prompt-language changes tosession-flow:handoffverified against its evals — a repository mutation with blast radius bounded by the brief, so this is not pureC1.Redundancy / rejected-concept check
docs/out-of-scope/ledger exists in this repo — skipped.session-flow:handoff'sSKILL.mdand companion docs for prior coverage of the four cited findings — no existing per-finding audit trail found. Not already implemented; the audit itself is the open work.Routing: human-gated
Per
plugins/autonomy/reference/guardrails/admission-policy.md, work classC3ishuman-gatedunder the shipped defaults regardless of how well-specified the brief is (blast-radius/reversibility risk properties gate admission, not decision-openness alone) — no repo-local security binding in this repo promotes that cell. Additionally, whether to adopt prompt-language changes for findings #186/#306/#617/#482 is editorial judgment about how an LLM reads its own handoff-writing instructions — a human should confirm the audit verdicts before any template edit ships.Agent Brief
Type: Task
Summary: Audit
session-flow:handoffagainst four specific failure modes from the mattpocock/skills handoff corpus (#186 "summarise is the bug", #306 verify-vs-assumed discipline, #617 end with orders not a path, #482 durable location); adopt what's missing, confirm what's covered.Current behavior:
session-flow:handoffwrites save-point files to<memory_dir>/handoffs/and produces a clear-and-resume prompt. Whether its prompt language explicitly counters the four cited failure modes (silent-drop categories under "summarise" framing, unverified-claim tagging discipline, orders-not-path resume framing, cross-handoff referencing) has not been audited against this specific corpus.Desired behavior:
For each of the four findings, a recorded verdict: covered (with evidence from the skill's own text), adopted (a concrete template/prompt-language change), or rejected (with rationale). Any adopted change is verified against the skill's own evals before merge.
Key interfaces:
session-flow:handoff's save-point template and resume-prompt generation — the surfaces a "decision-archive framing" fix or "orders not path" fix would touchevals/evals.json— the acceptance gate for any adopted changeAcceptance criteria:
Out of scope:
session-flow:reanchor's resume-side drift handling (already covers docs: codify the fresh-eyes checkpoint rule in plugin doctrine #306's resume-side check per the issue body — audit only the write side)session-flow:orchestrate(referenced only as related context in sibling session-flow/workflow: end-of-phase continuation router (continue / clear / handoff / subagent / compact) #1476)Why human-gated:
C3work class per admission policy (bounded scoped change, but a real repo mutation to a widely-used skill is in scope) + editorial judgment on whether the audit verdicts justify a prompt-language change.kyle-sexton commentedon Jul 26, 2026
Audit verdicts — session-flow:handoff vs upstream corpus (all four issues fetched live 2026-07-26)
Upstream state at fetch time: #186 CLOSED (maintainer closed on a "long-context limitation" argument, nothing adopted); #306, #617, #482 OPEN with no maintainer response; none of the four adopted upstream.
Finding 1 — mattpocock/skills#186 ("summarise" is the wrong verb): covered (with two sub-items adopted / two rejected)
Evidence: our template is already decision-archive-shaped, not summary-shaped.
reference/structure.mdmandates 13 always-present sections including 7 (Decisions already settled, rationale as a field of the decision), 8 (Approaches tried and abandoned — upstream's "rejected alternatives"), 9 (Findings that cost effort to discover — "This is the section that beats compaction. Write it long."), and 10 (Remaining actions, in order — upstream's lost implementation-order). Anti-compression is explicit: "Layering is not truncation… Sections 7, 8, and 9 exist specifically for what a summarizer discards first." The only two "summarize" instructions (structure.md File-roles section) are pointer-not-copy rules for already-committed work ("the commit range is the diff"), not lossy compression of decisions;SKILL.mdcloses with "Does not summarize the whole conversation — task-relevant state only."Per-suggestion sub-verdicts from #186's five proposals:
None.plus a half-line of reason" is the structural counterpart; a second open-ended recall pass duplicates it without a defined output.Finding 2 — mattpocock/skills#306 (verify-vs-assumed discipline): adopted (write-side gap was real)
Covered before this audit: run-commands-not-memory (SKILL.md pre-computed git injections; "TaskList captured … from a live
TaskListcall this turn"; "fresh reads this turn" checklist items; gotchas' evidence rule for met/unmet marks), and the resume-side drift protocol lives insession-flow:reanchor(anchor-vs-HEAD, re-probe premises).Gap confirmed: nothing governed claims the writing session inherited and could not probe — exactly upstream's laundering incident ("not built yet" forwarded as fact → feature rebuilt). Adopted: a provenance rule in structure.md — plain statement only for claims verified this session; anything inherited carries
UNVERIFIED (<source>); "an inherited claim is a claim to falsify, not a fact to forward."Finding 3 — mattpocock/skills#617 (end with runnable orders): covered
Evidence: the rails resume prompt leads with the execute instruction — "Read @/-handoff-.md and continue its remaining next steps." (
reference/save-point.md, "Emit the copy/paste resume prompt"), with the skill-specific variant "…and execute /." Delivery is /clear-then-paste, so the orders arrive as the fresh session's opening message — never a bare path. Upstream'scd … && claude "$(cat …)"launcher shape is their delivery mechanism; ours has a dedicated gated sibling (continue-in-backgroundlaunches a detachedclaude --bgseeded with the same resume prompt). No change.Finding 4 — mattpocock/skills#482 (durable, cross-referenceable location): covered (cleanup sub-item rejected)
Evidence: save-points write to
<memory_dir>/handoffs/(default.work/handoffs/) — repo-local, reboot-safe, self-gitignored via the memory-root guard, timestamped<TS>-handoff-<topic>.mdso successive handoffs order and reference cleanly; cross-handoff referencing exists as theprevious_handofffrontmatter chain with the same-task-only continuity rule; no-repo fallback is${CLAUDE_PLUGIN_DATA}/topic-docs/handoffs/, also durable — never OS temp. The #482 comment thread's "delete after pickup" suggestion → rejected:previous_handoffchain-walking (retro),find-handoffrecovery, and "a continuing handoff carries the prior one's unfinished work forward" all depend on retained files; the directory is gitignored and timestamp-ordered, so accumulation is cheap and ordered. The #306 comment's post-Write existence probe → rejected: its root cause was macOS temp-sweep of$TMPDIR, a location class we never write to; in this harness a failed Write surfaces as a tool error.Changes
The two adoptions land as a template-hardening PR (session-flow 0.17.13,
reference/structure.md+ CHANGELOG). Verification per acceptance criteria: markdownlint clean;evals/evals.jsonschema-valid against skill-quality'sevals.schema.json(the repo CI's eval verification bar — evals are schema-validated, not model-executed, per skill-quality's own scope); the skill contract gate does not fire for reference-doc-only diffs.Generated by AI during the #1475–#1479 goal run.
fix(session-flow): wire claim provenance into prompt-only; re-scan lo…
feat(session-flow): adopt claim-provenance and constraint re-scan rul…
feat(context-guard): zone-crossing hooks, token bands, and the workfl…
docs(upstream): close aihero lane 1 (handoff) with provenance rows an…
feat(session-flow): handoff routing signals, artifact rules, worktree…