🪭 Scope Harisen
Your AI agent needs a tsukkomi.
Scope Harisen sits inside an AI coding agent and interrupts when a small Mission expands into unrelated refactors, abstractions, tools, subagents, research, or over-verification — with a sharp paper-fan joke, hard evidence, and a clear verdict.
Agent: “While I am here, I will refactor the related modules and build a reusable framework—”
🪭 Scope Harisen: “Why are you renovating the whole building! Where is that in the Acceptance Criteria?”
Reason: outside the current Scope and not required for Production Verify
Verdict: defer → return to the current Mission
한국어
· MIT License
· v0.1.0
32 patterns it catches
Ponytail asks “How can this be simpler?” Scope Harisen asks one step earlier: “Why are we doing this now?” The pattern catalog is the detector; the Mission ladder filters false positives; the harisen interrupts the loop.
| Family | Patterns |
|---|
| Scope expansion | Scope Monster · Refactor Hitchhiker · Cleanup Cascade · Feature Smuggling |
| Solution inflation | Abstraction Fever · Framework First · Future-Proofing Fantasy · Dependency Shopping |
| Investigation drift | Rabbit Hole · Archaeology Expedition · Source Safari · Context Avalanche |
| Meta-work | Tool Swamp · Plan-for-the-Plan · Documentation Theater · Workflow Cathedral |
| Coordination expansion | Agent Fan-out · Delegation Ping-Pong · Consensus Swamp · Orchestration Tax |
| Decision friction | Option Explosion · Clarification Carousel · Permission Pinball · Owner-Override Laundering |
| Verification distortion | Verification Vortex · Benchmark Theater · Read-back Ritual · Green-Test Mirage |
| Completion distortion | Completion Avoidance · Last-Mile Aversion · Local-is-Production · Premature Victory Lap |
Five guard patterns prevent false positives: Acceptance-Criterion Blocker, Production-Verify Requirement, Real P0/P1, Explicit Owner Promotion, and Safety Gate.
Each pattern has observable signals, its seductive rationale, legitimate exceptions, a default verdict, recovery action, and fan cue in the full pattern catalog.
How it catches the pattern
Scope Harisen now has two detection layers:
- Semantic detector — all 32 patterns. The active skill reads the proposed next action, visible action sequence, and completion claim, then applies the pattern catalog.
- Runtime signal detector — seven strong signals. Hooks reduce tool events to a local Action Ledger and raise a candidate when a sequence crosses a deliberately small threshold.
| Runtime candidate | Strong signal |
|---|
| Rabbit Hole | 6 consecutive reads without a write or decision |
| Read-back Ritual | The same target is read 3 times |
| Agent Fan-out | A third agent call occurs before an integrating write |
| Permission Pinball | The same approval question is asked twice |
| Verification Vortex | 4 verification runs occur without a change |
| Local-is-Production | A production claim has only local-test evidence and lacks deploy/live read-back |
| Premature Victory Lap | Completion is claimed before requested PR/CI/deploy/read-back evidence exists |
A runtime candidate is not a verdict. It is injected back into the agent, which must apply the Decision ladder and guard patterns. Signal hooks never deny a tool call. In full and ultra, a completion-evidence mismatch can delay Stop once; the second Stop fails open to prevent a loop. lite remains advisory.
Privacy and limits
The local JSONL ledger stores only event kinds, booleans, counts, pattern names, and SHA-256 target hashes. It does not store a raw prompt, raw command, tool response, secret, or file path. Files use owner-only POSIX permissions where supported, are capped at 256 KB per session, removed on normal session end, and pruned after seven days if abandoned. The detector uses no model call, API key, database, or dependency.
Heuristics are intentionally narrow. They can miss semantic drift, and tool activity outside the host's hook surface is invisible. That is why the 32-pattern skill remains the judge and the seven runtime rules remain candidates.
What it does
| Mode | Behavior |
|---|
| lite | Names the drift and a safer alternative; continues unless dangerous |
| full (default) | Stops the detour, defers/discards it, resumes the Mission |
| ultra | Allows only actions required for Acceptance Criteria or Production Verify |
| off | Deactivated |
Decision ladder