Skip to content

feat(triage): add deflection protocol and pre-spawn checklist#6

Merged
mrdavidlaing merged 2 commits intomrdavidlaing:mainfrom
zgagnon:triage-hardening
Mar 21, 2026
Merged

feat(triage): add deflection protocol and pre-spawn checklist#6
mrdavidlaing merged 2 commits intomrdavidlaing:mainfrom
zgagnon:triage-hardening

Conversation

@zgagnon
Copy link
Copy Markdown
Contributor

@zgagnon zgagnon commented Mar 17, 2026

Summary

  • Adds a deflection protocol to skills/yak-triage/SKILL.md: when an operator responds to triage questions with a task instead of answering, Yakob acknowledges, parks it, and re-asks — falling back to defaults after a second deflection.
  • Adds a pre-spawn checklist to agents/yakob.md: a mechanical gate requiring session yak, heartbeat loop, and WIP check before any shaver is spawned.

Motivation

Prevents Yakob from skipping triage when operators deflect with task requests. Without this gate, the dopamine loop of "just spawn the thing" bypasses the pre-commitment questions that make sessions tractable.

Test plan

  • Review yak-triage skill — deflection protocol appears in Phase 1
  • Review agents/yakob.md — pre-spawn checklist present before shaver spawn steps
  • Run a triage session and attempt to deflect with a task request; verify Yakob parks it and re-asks

🤖 Generated with Claude Code

Prevents Yakob from skipping triage when operators deflect with task requests.
Adds a mechanical pre-spawn gate requiring session yak, heartbeat, and WIP check.

Co-Authored-By: Yakoff (Claude) <noreply@anthropic.com>
Copy link
Copy Markdown
Owner

@mrdavidlaing mrdavidlaing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to think though the implications of this change a bit more; especially since my longer term vision is that shavers only have access to files below their yak-box/@home/... folders

Comment thread agents/yakob.md Outdated
Comment on lines +344 to +346
12. **Never cross repo boundaries.** Always `--cwd .` from release-workspace.
Never `--cwd repos/X` or `--yak-path` pointing elsewhere. Shavers navigate
to sub-repos in their prompt, but yx stays rooted in the workspace.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets pull this into a separate PR for more discussion

Comment thread agents/yakob.md Outdated
1. Session yak exists: `yx ls` shows a `session-` yak in wip state
2. Heartbeat is running: `/loop` was started after triage
3. WIP count < limit: count wip yaks (excluding session yak) against wip-limit field
4. `--cwd` is `.` or the workspace root: NEVER `repos/X` — see rule 12
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets pull this into a separate PR for more discussion

Remove rule 12 and pre-spawn checklist item mrdavidlaing#4 from yakob.md — these
will be proposed in a separate PR for focused discussion.

Co-Authored-By: Yakueline (Claude) <noreply@anthropic.com>
mrdavidlaing added a commit that referenced this pull request Mar 21, 2026
Add rule 12 (never cross repo boundaries) and pre-spawn checklist
item #4 (--cwd constraint) — extracted from PR #6 for separate
discussion.

Co-Authored-By: Yakueline (Claude) <noreply@anthropic.com>
mrdavidlaing added a commit that referenced this pull request Mar 21, 2026
Add rule 12 (never cross repo boundaries) and pre-spawn checklist
item #4 (--cwd constraint) — extracted from PR #6 for separate
discussion.

Co-Authored-By: Yakueline (Claude) <noreply@anthropic.com>
@mrdavidlaing mrdavidlaing merged commit 35adac7 into mrdavidlaing:main Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants