agentleFS
XORwellXORwell/archeflow/skills/shadow-detection/SKILL.md

shadow-detection

Skill0 starsChanged 52 days agoMITView on GitHub

Corrective actions for ArcheFlow failure modes ("shadows") of agents and of the run, plus the escalation protocol and Wiggum Break.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    Read this when archeflow-shadow.sh detect or check-system exits 0.

    line 9

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Failure Modes: Corrective Actions

Read this when archeflow-shadow.sh detect or check-system exits 0. The scripts do the detecting and log each hit as shadow.detected; the rules, the Wiggum Break triggers and the policy boundaries (checkpoints, budget) are in reference.md in this directory, on demand.

Agent failure modes

RoleFailure modeCorrective prompt
ExplorerRabbit Hole"Summarize top 3 findings and one recommendation in 300 words."
CreatorOver-Architect"Design for the current order of magnitude. Remove abstractions for hypothetical requirements."
MakerRogue"Read the proposal. Write a test. Commit. Revert out-of-scope files."
GuardianParanoid"For each CRITICAL: would a senior engineer block a PR? If not, downgrade. Every rejection needs a specific fix."
SkepticParalytic"Rank by impact. Keep top 3 with alternatives. Delete the rest."
TricksterFalse Alarm"Delete findings outside the diff. Rank by likelihood x impact. Keep top 3-5."
SageBureaucrat"Limit to issues affecting maintainability in 6 months. Every finding needs a specific action."

Intensity alone is not a failure mode: a Guardian blocking on two genuine vulnerabilities, or a Trickster with five in-diff findings that all have reproduction steps, is doing its job. A failure mode is behaviour disconnected from the goal.

Run failure modes (check-system, archetype system)

ShadowCorrective action
Tunnel Vision"Redistribute attention. Are we missing quality, testing, or design concerns?"
Echo ChamberSuspicious fast consensus: re-run the Guardian with an adversarial prompt.
Gold PlatingFix CRITICALs first; park INFO items.
Analysis ParalysisStop researching; ship a proposal with known gaps.
Cargo CultThe injected lesson did not work: reword, strengthen or remove it.
Broken WindowAccumulated tech debt: suggest a cleanup sprint to the user.
Scope CreepRevert to the proposal's scope; more files need an updated proposal first.

Escalation

OccurrenceAgent failure modeRun failure modePolicy boundary
1stcorrective prompt, the agent continuescorrective action, run continuesboundary action (downgrade, checkpoint)
2nd (same issue)replace the agentpause, report to the userstop with clean state
3rdask the user to re-scope the taskreport a systemic issuereport that resource limits are reached

Wiggum Break

The circuit breaker: <archeflow-root>/lib/archeflow-convergence.sh wiggum-check <run_id> exits 0 with {"wiggum_break": true, "type": "hard"|"soft", "triggers": [...]} and logs a wiggum.break event. Hard: stop now, keep the branch. Soft: finish the current step, then stop. Either way the open findings are in the latest findings-cycle-<N>.json; report them.

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.