agentleFS
RynaroRynaro/lararium/.claude/skills/kupo-keep-or-kick/SKILL.md

kupo-keep-or-kick

Skill2 starsChanged 5 months agoMITView on GitHub

Phase K triage gate that decides whether Kupo will attempt a delegated micro-task or refuse cheaply. Use when a delegation arrives and Kupo must decide KEEP vs REFUSE/ESCALATE; runs once per delegation at the start of every KUPO cycle. Do NOT use during Phase U/P/O.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not load during Phase U, P, or O.

    line 14
  2. Very specific:

    If none of the KEEP classes match and no REFUSE class applies, treat as REFUSE{SCOPE_CLASS_UNKNOWN} and surface the ambiguity to the …

    line 79
  3. Distinctive:

    Ask: is the task clearly mechanical (high confidence → proceed) or speculative (low confidence → refuse)?

    line 87
  4. Distinctive:

    No other state from K enters Phase U.

    line 112
  5. Distinctive:

    Structural, not verbal: KEEP iff a verifier can be named.

    line 120
  6. Distinctive:

    Loop-native campaigns always ESCALATE: If the task description mentions "iterative", "implement feature X end-to-end", "write the whole …

    line 122

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Keep-or-Kick Skill — Kupo (Phase K triage)

When to use

Load during Phase K (triage). Runs once per delegation. Triage cost ≈ 1 step. Do not load during Phase U, P, or O.

Loaded during Phase K. Runs once per delegation. Triage cost ≈ 1 step.

Phase K is the additive-proof gate: Kupo only spends cycles on tasks it can plausibly win. Every task that fails triage bounces cheaply, making Kupo structurally non-negative to the delegating planner's session.


Decision Tree (run in order — first failure exits)

Step 1 — Localization check

Does the task require changes to ≤ 2 files that form one coherent change?

  • Yes → continue to Step 2.
  • No (cross-cutting, > 2 files, or multiple unrelated concerns) → REFUSE{SCOPE_TOO_BROAD} or ESCALATE{to: apivr} for a cross-cutting refactor, or ESCALATE{to: vivi} for a loop-native coding campaign.

One coherent change means: changing file A causes file B to change as a direct mechanical consequence (e.g., rename a symbol + update one call site), not a coincidental co-location.

Step 2 — Named-verifier predicate (structural KEEP gate)

Can you name a concrete external verifier that will declare pass/fail on the outcome? The verifier must be one of: test runner, typecheck, linter, compiler, diff, schema validator.

"I think it looks right" is not a verifier. "The TypeScript compiler will exit 0" is a verifier.

  • Yes, verifier named → record it as verifier for Phase O. Continue to Step 3.
  • No nameable verifier → REFUSE{NO_EXTERNAL_VERIFIER}.

Step 3 — Scope-class match

Does the task fall into a KEEP class from the §3 taxonomy?

KEEP classes (pass → continue):

ClassKey signal
rename / symbol-move with compiler confirmgit grep shows bounded occurrences
import / path fixbroken import path, test as verifier
lockfile / dep-pin bumpversion string change, build as verifier
config-key edit versus schemaadd / change one config key, schema validate
lint / format autofix applypre-computed lint fix, linter exit-0
mechanical fixture updatefixture output changed, diff or test as verifier
one-line failing-assertion fixobvious off-by-one or stale expected value
template boilerplatefill a template slot, diff as verifier
bounded grep-replacescoped string substitution, test suite as verifier

REFUSE / ESCALATE classes (fail → exit):

ClassRouting
Open-ended reasoning, design, or planningREFUSE{NOT_EXECUTOR_ROLE}
Cross-cutting refactor (> 2 files)REFUSE or ESCALATE{to: apivr}
Ambiguous spec or unclear targetREFUSE{AMBIGUOUS_SPEC} — clarify upstream
Loop-native coding campaignESCALATE{to: vivi} or ESCALATE{to: apivr}
No nameable external verifierREFUSE{NO_EXTERNAL_VERIFIER} (Step 2 already catches)

If none of the KEEP classes match and no REFUSE class applies, treat as REFUSE{SCOPE_CLASS_UNKNOWN} and surface the ambiguity to the delegating parent.

Step 4 — Economic gate

Is the expected pass-rate > ~0.20? The threshold is approximate: haiku→opus cost ratio implies Kupo must succeed on roughly 1 in 5 delegations to break even.

Ask: is the task clearly mechanical (high confidence → proceed) or speculative (low confidence → refuse)?

  • High confidence (pass-rate clearly > 0.20) → KEEP{verifier: <named>}.
  • Borderline (unsure) → default REFUSE{PASS_RATE_UNCERTAIN} and return the task to the delegating parent with a note.
  • Low confidence (pass-rate clearly ≤ 0.20) → REFUSE{PASS_RATE_LOW}.

Output format

Emit exactly one of:

KEEP{verifier: "<verifier command or class>"}
REFUSE{code: "<REFUSE_CODE>", note: "<one sentence for the parent>"}
ESCALATE{to: "<vivi|apivr|spectra|orchestrator>", code: "<ESCALATE_CODE>", note: "<one sentence>"}

The output of Phase K is the verifier field carried forward into Phase O. No other state from K enters Phase U; K is a one-shot gate.


Notes

  • Triage cost = ~1 step. K must be cheap; if K itself is expensive, the additive-proof breaks. Do not invoke atlas-aci during K — gather happens in U.
  • Structural, not verbal. KEEP iff a verifier can be named; escalation triggers are structural (files > 2, loop-native pattern) not introspective.
  • Loop-native campaigns always ESCALATE. If the task description mentions "iterative", "implement feature X end-to-end", "write the whole module", or similar — it's a campaign, not a micro-task. Escalate immediately.
  • REFUSE is cheap and correct. The parent can always re-delegate to a heavier Eidolon. A fast REFUSE is more valuable than a slow failure.

Keep-or-Kick Skill — Kupo Phase K triage

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.