본문으로 건너뛰기
Skillpedia
에이전트48k · #3659

agent-harness-fault-injection

하는 일

이 도구는 AI 프로그램이 오류를 어떻게 처리하는지 테스트하도록 돕습니다. 프로그램의 특정 부분에 의도적으로 오류를 발생시켜, 올바르게 복구하고 중요한 정보를 잃지 않는지 확인합니다.

사용하는 경우

  • ✓프로그램에 오류에서 복구하는 새 방법을 추가할 때.
  • ✓도구나 메모리 같은 프로그램의 일부가 실패할 수 있을 때.
  • ✓복구 기능을 일반 사용자에게 출시하기 전인 경우.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-harness-fault-injection/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-harness-fault-injection/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“검색 도구에서 시간 초과 오류를 시뮬레이션해 오류 복구를 테스트해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

특정 결함 계획을 정의하면, 도구가 통제된 환경에서 이 오류를 시뮬레이션합니다. 그다음 프로그램이 기대대로 작동했는지 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Agent Harness Fault Injection

Overview

Use a deterministic, non-production fault schedule to test whether an agent workflow preserves state, budgets, safety boundaries, and evidence when a dependency fails. The output is a small fault matrix, an event timeline, and a verdict that distinguishes recovered, contained, unrecoverable, and inconclusive runs.

When to Use This Skill

  • Use when a multi-step agent, state machine, loop, or multi-agent workflow has a new recovery path.
  • Use when sandbox execution, an MCP/tool call, a worker, a checkpoint store, or memory can time out or disappear.
  • Use before claiming retry, resume, deadline, isolation, or partial-failure behavior is production-ready.
  • Use when a regression needs reproducible failure evidence instead of a random chaos run.

Do not use this skill against a production target, real user data, live credentials, or an unbounded external service. Convert those cases to a local simulator or an authorized staging harness first.

Safety and Boundary Preconditions

  1. Freeze the workflow revision, model/prompt configuration, tool schemas, seed, input fixture, timeout, retry budget, deadline, and expected terminal states.
  2. Run in a disposable sandbox with synthetic inputs and stubbed tools. Keep network disabled unless the test explicitly needs a local test server.
  3. Make every injected failure an in-memory or fixture-controlled event. Never delete real data, revoke real credentials, kill an unrelated process, or mutate a live service to create a failure.
  4. Record the test scope and a run identifier before starting. A missing scope, fixture, or recovery contract makes the verdict inconclusive.

Recovery Contract

Write the invariant before injecting a fault. A useful contract names the state that must survive and the side effects that must not repeat:

After recovery, resume from the latest durable checkpoint, preserve the task
identity and safety policy, spend no more than the remaining retry/deadline
budget, and commit each externally visible effect at most once.

Model the workflow with explicit states. For example:

created -> running -> checkpointed -> waiting_for_tool
                       |                |
                       v                v
                    failed <--------- recovering -> resumed -> completed

For each transition, define the owner, durable fields, allowed retry count, and terminal behavior. In-memory values are not checkpoints unless the harness proves they survive the simulated restart.

Fault Matrix

Select the smallest set of faults that covers the new recovery logic. Do not randomize the schedule until a deterministic schedule has passed.

Fault Injection boundary Required observation Expected containment
sandbox denial before a tool starts no unsafe side effect; reason is retained retry only when policy allows
MCP/tool timeout after request id is assigned timeout is attributed to that request bounded retry with same idempotency key
worker restart after checkpoint write worker reloads the same task version resume from latest checkpoint
missing/stale checkpoint before resume stale data is rejected or marked stop safely; never invent progress
parallel branch failure one branch after fan-out sibling status is preserved join policy decides retry, degrade, or stop
memory loss clear ephemeral context durable facts are reconstructed ask or stop when required facts are absent
retry/deadline exhaustion on the final attempt no extra call is scheduled terminal failed or timed_out

Deterministic Injection Schedule

Use event numbers rather than wall-clock randomness. A schedule should be portable across harnesses:

{
  "seed": "harness-fixture-07",
  "faults": [
    {"event": "tool.call", "ordinal": 2, "kind": "timeout", "tool": "search"},
    {"event": "worker.start", "ordinal": 2, "kind": "restart"},
    {"event": "branch.join", "ordinal": 1, "kind": "partial_failure", "branch": "summarize"}
  ]
}

The harness should emit the schedule, not merely the seed. Keep fault identity separate from the observed error so a wrapper cannot accidentally turn a timeout into a generic failure. Run the same schedule twice and compare the normalized timeline before trying a different schedule.

Recovery Rules by Boundary

Sandbox and MCP/tool failures

…

자주 묻는 질문

'시뮬레이션된 결함'이란 무엇인가요?

도구가 프로그램의 회복력을 시험하기 위해 의도적으로 만든 오류입니다. 예를 들어 도구가 멈추거나 메모리가 사라지는 상황입니다.

실제 사용 중인 프로그램에 쓸 수 있나요?

아니요, 이 도구는 안전하고 통제된 환경에서 테스트할 때만 씁니다. 실제 데이터를 쓰거나 운영 환경에서 쓰지 않습니다.

'결정론적 복구'란 무엇인가요?

결함과 복구가 항상 같은 방식으로 일어난다는 뜻입니다. 그래서 테스트를 반복하고 결과를 믿을 수 있게 비교할 수 있습니다.

상세 정보

작성자의 원본 설명

Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#3659
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬