Logo Adversarially Validating Game Repairs

Adversarially Validating Game Repairs

Cộng đồng
abagames
adversarially-validating-game-repairs

Stress-tests an already-written game bug fix with adversarial cases selected from the state, timing, identity, lifecycle, persistence, and input surfaces the patch can actually reach, then returns a PatchEvidence record covering fail-to-pass, relevant pass-to-pass, inverse-case, invariant, and untested-scope evidence. Use when a fix makes the reported symptom go away and it is still unknown whether the fix is the real one or an overfit, coincidental, or plausible-but-wrong one. Not for finding unknown defects in a build (that is runtime smoke testing), checking one mechanic against its written spec, or judging difficulty, fun, or balance.

Tổng quan

Nhà phát hànhabagames
Kho mãagentic-gamedev-skills
Tên kỹ năngadversarially-validating-game-repairs
Sao
39
Bản fork
6
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được abagames công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Adversarially Validating Game Repairs trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/adversarially-validating-game-repairs
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/abagames/agentic-gamedev-skills.git /tmp/agentic-gamedev-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-gamedev-skills/.agents/skills/adversarially-validating-game-repairs .claude/skills/adversarially-validating-game-repairs
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Adversarially Validating Game Repairs trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Adversarially Validating Game Repairs ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Adversarially Validating Game Repairs với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Adversarially Validating Game Repairs

Purpose

A fix that makes the symptom disappear has proven one thing: the symptom disappears under the one condition that was tried. That is compatible with the fix being correct, and equally compatible with it being a guard at the reader, a clamp on the output, a special case that happens to cover the reported input, or a change that works only at 60 fps on seed 2001.

This procedure attacks the fix with conditions its author did not have in mind, and produces a record an independent reader can check without re-deriving the author's reasoning.

When to Use

  • A patch exists, the reported symptom is gone, and confidence in why is low.
  • The fix touches lifecycle, identity, timing, ordering, persistence, or a shared/pooled resource — the areas where a locally correct change is most often globally wrong.
  • Before shipping a repair to a mechanic that players can grind, repeat, or abuse.

When Not to Use

  • No patch yet. There is nothing to attack.
  • The build crashes or throws — establish runtime health first; adversarial conditions on a build that does not run produce noise.
  • The question is whether a mechanic matches its written spec, or whether the game is well balanced. Both are different questions with different instruments.
  • The change is cosmetic and cannot reach game state.

Required Inputs

  • The patch, as a diff.

  • The ReproCase the patch was written against — minimal contract, inlined so this skill needs nothing else:

    yaml
    id:            # stable name for this defect
    seed:          # RNG seed, or "none"
    build:         # commit / build identifier
    setup:         # starting state or save slot
    inputs:        # ordered input events with tick indices — the input tape
    observe:       # the wrong observable, as a value
    expected:      # the healthy value
    determinism:   # always | intermittent(n/m runs)
  • The invariant the patch claims to restore, stated as a checkable predicate.

  • Whatever passing checks existed before the patch, so pass-to-pass has a baseline.

Procedure

  1. Restate the claim without the author's explanation. Write, from the diff alone, what the patch changes and what would have to be true for that to fix the reported symptom. Do not read the author's rationale first, and do not treat it as evidence when you do. An explanation is a hypothesis with a motive; the diff is the artifact.

  2. Establish fail-to-pass and relevant pass-to-pass. Run the ReproCase on the pre-patch build (must fail) and the post-patch build (must pass). A repro that does not fail before the patch invalidates everything downstream — stop and fix the repro. Then run the existing healthy checks whose paths the patch can reach and confirm they still pass. State what those checks exercise; an unrelated green suite is not evidence. Record counts, not adjectives.

  3. Select adversarial cases by reachability and failure cost. Use references/adversarial-conditions.md as a routing catalog, not a universal checklist. Map the diff and restored invariant to the state surfaces they can reach, then run the cheapest cases that cover those surfaces:

    • vary seeds only when the patched path consumes or depends on RNG;
    • vary frame/tick rate only when it reaches elapsed time, frame counts, deadlines, or ordering;
    • exercise pause/resume, scene transitions, or save/load only when it reaches that lifecycle;
    • exercise pooling, identity reuse, same-tick events, or deferred completions only when it reaches identity, ordering, or lifetime;
    • measure performance, memory, or build time only when a prior budget exists and the patch can affect it.

    Do not enumerate catalog rows the patch cannot reach. Record a reachable, high-cost condition in untested_scope when it matters but cannot be run.

  4. Attack the fix's shape, not only its inputs. For each of these, decide yes/no with evidence:

    • Does the patch change the first divergent write, or add a check downstream of it? A guard at the reader leaves the bad write in place and fails the moment a second reader appears.
    • Does it clamp an output (max(0, hp), min(cap, score)) rather than prevent the bad value? Clamping converts a visible defect into a silent one.
    • Does it special-case the reported input — a condition mentioning the exact entity, level, seed, or count from the bug report?
    • Does it change only a constant where the report describes wrong logic? Retuning a number is not a logic repair, and the two are routinely confused because both make the symptom go away.
    • Does it introduce state that a pool, restore, or scene reload can carry across a lifetime boundary?
  5. Test the inverse. Construct a case where the patched code path should not trigger and confirm it does not. A fix that suppresses the symptom by suppressing the whole mechanic passes every test aimed at the bug.

  6. Judge by outcome, never by diff similarity. If a reference or "correct" patch exists, do not compare against it. A different change that restores the invariant is correct; an identical change that does not is not.

  7. Do not let the fix's author supply the verdict. The evidence must be reconstructable from the diff, the ReproCase, and the recorded runs alone. If a claim in the record can only be checked by asking the author what they meant, it is not evidence — rewrite it or drop it.

Stop Conditions

  • The repro does not fail pre-patch. Stop at step 2. Nothing after it means anything.
  • Any adversarial case reproduces the original symptom. Stop and report; the patch is incomplete. Do not extend the patch and re-run in the same pass — a fix shaped around the case that caught it is a bigger overfit than the one you started with.
  • The invariant cannot be written as a predicate. Report that the patch is unvalidatable by this method and say what a human has to judge instead.
  • Behavior is indistinguishable with and without the patch across every case. Report undecidable. Do not resolve it by preferring the patched version.

Output

A PatchEvidence record. Field list and a worked example are in references/patch-evidence.md; the required fields are:

yaml
patch_id:
root_cause_hypothesis:
violated_invariant:
fail_to_pass:
pass_to_pass:
adversarial_cases:
cross_configuration:
performance_impact:
fix_shape:
inverse_test:
untested_scope:
confidence:            # high | medium | low | undecidable
human_decisions_required:

human_decisions_required may not be empty. untested_scope contains important conditions the patch plausibly reaches but this pass did not run; use none identified from patch reachability when there are none. That phrase is scoped to the patch, not a claim of exhaustive game-state coverage.

Validation

  • fail_to_pass names a run that actually failed before the patch.
  • pass_to_pass reaches the patched subsystem, and an inverse case confirms the patched path does not fire when it should not.
  • The restored invariant is evaluated directly on the post-patch repro.
  • Every selected adversarial case names the patch surface that made it relevant.
  • confidence is justified by the recorded runs and downgraded to low when untested_scope covers a condition the patch plausibly reaches.
  • No field cites the author's explanation as its support.
  • Steps 4 and 5 are answered explicitly, not implied by the other results.

Common Failure Modes

  • Grading the explanation. The rationale is coherent, so the patch is accepted. Coherent rationales accompany wrong patches at roughly the rate they accompany right ones.
  • Reporting the pre-existing suite as pass-to-pass. A suite that never covered the mechanic passes before and after and proves nothing. Say what the passing checks actually reach.
  • Skipping a reached source of variation. If the patched path consumes RNG, crosses a lifetime boundary, or depends on event timing, the corresponding condition is relevant even when the diff looks locally deterministic.
  • Confusing "symptom gone" with "invariant restored". These come apart exactly when the patch is wrong, which is the case worth detecting.
  • Extending the patch mid-run. Each extension invalidates the evidence collected so far, and the record ends up describing a patch that no longer exists.

References

  • references/adversarial-conditions.md — the condition catalog, with the setup and the observable break for each.
  • references/patch-evidence.md — full PatchEvidence schema and a worked example.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Adversarially Validating Game Repairs làm được gì?

Stress-tests an already-written game bug fix with adversarial cases selected from the state, timing, identity, lifecycle, persistence, and input surfaces the patch can actually reach, then returns a PatchEvidence record covering fail-to-pass, relevant pass-to-pass, inverse-case, invariant, and untested-scope evidence. Use when a fix makes the reported symptom go away and it is still unknown whether the fix is the real one or an overfit, coincidental, or plausible-but-wrong one. Not for finding unknown defects in a build (that is runtime smoke testing), checking one mechanic against its writ...

Vì sao nên dùng Adversarially Validating Game Repairs trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Adversarially Validating Game Repairs là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Adversarially Validating Game Repairs trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/adversarially-validating-game-repairs. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Adversarially Validating Game Repairs?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Adversarially Validating Game Repairs với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Adversarially Validating Game Repairs với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Adversarially Validating Game Repairs có miễn phí không?

Có. Kỹ năng này được abagames phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇