workflow-failure-auto-issue
Workflow Failure → Auto-File Issue
Section titled “Workflow Failure → Auto-File Issue”workflow-failure-detector.cjs (SubagentStop hook) auto-detects failures; this rule is the fallback path, and the ONLY path for a routed delegation (a routed spawn fires no SubagentStop). A standing duty: it binds without any frame.
If you observe a failure mode the hook didn’t auto-detect (no [t1k:workflow-failure-detected] stdout), emit the matching marker BEFORE moving on, then dual-action (#341) spawn /t1k:issue (skill-bug/mcp-gap) or /t1k:sync-back (lesson) in the SAME turn; the marker MUST be in assistant message text, not a tool call or a file:
[t1k:skill-bug kit="<kit>" skill="<skill-or-agent>" bug="<one-line>" evidence="<path-or-id>"][t1k:lesson kit="<kit>" skill="<skill>" fragment="<file-or-section>" reason="<one-line>"][t1k:mcp-gap kit="<kit>" tool="<tool>" gap="<one-line>" evidence="<reproduction>"]Do NOT emit for
Section titled “Do NOT emit for”Tool errors the hook already handles · partial markers · inline /t1k:issue calls · a correct skill · evergreen guidance · a preference · trivia, transient errors, already-documented issues. Examples and the markSubmitted writeback: docs/workflow-failure-auto-issue.md.