Skip to content
Back to skills

Agent Verification

ASecurity

How an agent proves its own world-building work in Unity or Blender. Metrics locate defects, but only a rendered before/after from the same camera proves a fix; every zero-defect result needs a positive control; checks that cannot see the defect they claim to verify; what to give a stage reviewer and how to act on its findings; handoffs between agents sharing one editor. Load before reporting a visual fix, placement pass, material or lighting change, or clean scan as done, when briefing a rev...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgoshellawsgit

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add tsuseki/Agentic-VRChat-World-Development-Kit --skill agent-verification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Verification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Verification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tsuseki-agent-verification/badge)](https://www.skillsdirectory.com/skills/tsuseki-agent-verification)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-verification
description: How an agent proves its own world-building work in Unity or Blender. Metrics locate defects, but only a rendered before/after from the same camera proves a fix; every zero-defect result needs a positive control; checks that cannot see the defect they claim to verify; what to give a stage reviewer and how to act on its findings; handoffs between agents sharing one editor. Load before reporting a visual fix, placement pass, material or lighting change, or clean scan as done, when briefing a reviewer or subagent, when acting on review findings, or when several agents work in one project.
---

# Verifying your own world-building work

Scope: any agent that builds, places, textures or lights in the open Unity editor (or Blender) and
has to show that the result holds. This is the builder's half of the gate. Who reviews which stage
and what SHIP IT requires: `.omp/AGENTS.md` "Visual acceptance gate". Briefing, verdicts, reports
and the fix loop: `.omp/skills/world-pipeline/references/review-protocol.md`; this skill does not
restate them. Self-verification never replaces the reviewer's verdict: scripted passes "succeed"
while burying chairs 99% inside tables. It stops the reviewer spending rounds on defects you could
have caught. Editor tooling (`WorldCapture`, `ZFightScan`, `ZFightRender`, `WorldAudit`, `PropGate`
and its measured checks): `.omp/docs/unity-tools.md`.

## 1. The rule: metrics locate, renders prove

- A number tells you where to look. A visual fix is proven only by a **rendered before/after from
  the same camera** (pose, FOV, resolution), with both images kept and named.
- A metric going green with no visible change is not a fix: `importNormals = Calculate` took bad
  winding from 13.7% to 0% with zero visual change, because the real defect was UVs.
- Before quoting a number, ask whether that check can see the defect at all (§4).
- A mask or pixel set you have not looked at is a hypothesis: render it as an overlay first.
- Questions about appearance (facing, stretch, colour, "reads as lit") are answered by a render;
  geometry answers only geometric questions such as overlap or flush-to-wall.
- **Done rules** (a looked-at close-up of that exact thing; never scale, hide, bury, disable or
  re-shade to satisfy a check; re-check what a fixed part connects to; delete one-shot generator
  scripts): `.omp/agents/world-builder.md` "Done rules". They bind every agent that builds.
- **A look passes only the kinds it listed.** Before calling a state clean, write down the kinds
  of things it contains (lightmapped, Light-Volume-lit, emissive, reflective, pictures and
  screens, areas the job was not meant to touch) and look at one of each; whatever was not on the
  list is reported as "not looked at". For a bake the list is fixed: `bakery-light-baking` "Bake
  loop" step 4, looked at after the whole post-bake sequence and before any slow bake.

## 2. Proving a fix

| # | Step |
|---|---|
| 1 | Read Console errors **and** warnings (bridge `console`) before forming a hypothesis; also read the unfiltered tail. A warning repeated 999+ times often names the object and world position |
| 2 | "This used to look right": diff materials (`git diff <checkpoint> -- '*.mat'`) first, then shaders, then the scene; a material often sits between your change and what the player names |
| 3 | Pin the baseline. Your own before-shot can be the contaminated one: prove inputs against version control and hash lightmap/probe assets against a backup (their folders are often gitignored), then re-introduce the suspect and watch the metric move toward the baseline |
| 4 | Capture with a game camera, never the Scene view: selection outlines and debug draw modes (Mipmaps, Overdraw) never ship. A pure, clamped colour such as (1, 0.4, 0) with no fog or falloff is an overlay; compare it to the editor's outline colours |
| 5 | Capture cameras render with `useOcclusionCulling = false`: baked occlusion culls a moved static object by its old bounds. A moved static puts an occlusion re-bake on the pre-upload list |
| 6 | Shoot before and after from the same pose; quote both numbers next to both images |
| 7 | A targeted fix that leaves the metric byte-identical changed the wrong thing: the edit never produced the number, never reached the renderer, or a bound map (`_EmissionMap`, `_MetallicGlossMap`) overrides it. Find the offender by value: compute what each candidate would produce and match it |
| 8 | Defect found in one state of a toggle (night/day, variant A/B): measure it in the other state too and quote both; fix only what the feature caused. If the fix would make the new state better than the baseline on that object, the finding is pre-existing |
| 9 | After any scripted placement pass: prop-vs-prop interpenetration (AABB overlap sweep), floating or sunken props, materials without albedo |
| 10 | Same pass: print median, p90 and **worst** nearest-light-probe distance with the object name. A worst far above p90 is a coordinate bug (often a position applied twice, every component exactly 2×), not a probe-density problem |
| 11 | Clearances from `Renderer.bounds` (encapsulated over children) with `Intersects` and the gap on every axis, never from transform positions: a position is an anchor, not an extent |
| 12 | Key verification lookups by object identity (the `Renderer` reference or instance ID), not name. A defect larger than the world it lives in means the check is broken |
| 13 | Z-fighting: the stage gate and its scanner control are in `.omp/skills/world-pipeline/SKILL.md` "Z-fighting gate". When verifying a fix, scope `ZFightScan` to the changed roots: a whole world takes minutes (≈ 330 s) |
| 14 | Settle the LOD cross-fade before every capture you compare (review-protocol "Capture rig"): `LODGroup.crossFadeAnimationDuration = 0.001f`, render each pose twice and keep the second, restore the old value. The first render after a camera jump can catch a mid-fade dithered level |
| 15 | After an asset change, find the stored camera shots it affects instead of re-shooting all or eyeballing: render every camera small with the asset's renderers `forceRenderingOff` on vs off and threshold the changed-pixel share; inspect the mask, because animated water and sun glitter give false positives |

## 3. Positive controls: a zero is not evidence on its own

A clean result and a dead check print the same number: camera facing a wall, render never ran,
mask selected nothing, threshold typo. A zero arrives exactly when you most want to stop.

- **Zero-defect results.** Run the identical poses, mask and threshold against a state known to
  fail (pre-fix build, the other toggle state, stashed change, or a value raised until it must
  trip) and quote the pair: "0 px at night, 6.7k-43k px in day on the same poses".
- **Ad-hoc metrics.** Run a check you invented on a broken object against a working sibling first;
  if it condemns the sibling too, the metric is wrong ("800 of 800 vertices buried" on a hidden
  river read "288 of 289" on the visible lake). Report broken and good side by side; with no
  sibling, take the control from version-control history.
- **Toggle-diffs returning 0 px.** Toggle a second object known to be in shot; if that also reads
  0, the camera is mis-framed.
- **Keyed masks.** Render the "all visible" pass with occluders hidden: it is the denominator and
  proves the key is live.
- **Capture repeatability.** Two captures of the same state must differ by 0 px before a
  before/after difference means anything.
- **Pipelines that write files.** After writing, re-check every output (e.g. re-hash all stored
  images and assert no duplicate pairs).
- **Walk tests.** A walk test must fail when the feet are over water with no active renderer below
  them, and runs with an invisible-platform control: an inactive dock deck with a live collider
  once passed as walkable floor.

## 4. Checks that cannot see their defect

| Check | Blind to | Use instead |
|---|---|---|
| % of vertices below ground | floating or arching pieces | ground-skimming camera ~0.2 m high |
| Raycast sampling | sub-pixel slivers | project triangles to screen; thickness `2·area / longest edge` under ~1.5 mm |
| % of pixels below a threshold | a mid-tone band | scanline profile against the local surround |
| Ratios read off a screenshot vs material values | display encoding (about the 1/2.2 power in Linear projects) | compare encoded to encoded, or convert first |
| Re-import into the authoring tool | Unity's axis convention (the round-trip repeats it) | verify in Unity against world axes |
| `RecalculateBounds()` after an index-only trim | orphan vertices | compact vertices or measure triangles |
| Transform-position clearance | extents | `Renderer.bounds`, every axis |
| AABB coverage or occlusion (off by up to 30×) | cutout leaves, air inside bounds | unlit magenta key, pixel count |
| Perceptual-hash match | aspect stretch (it resizes to a square first) | render 1:1 and frame aspect side by side |
| Hash of a raw candidate vs transformed outputs | duplicates | hash after the pipeline's own crop/resize |
| Vertex density to find a front | facing of ribbed or wrapped pieces | head-on render; fronts show as handles, gaps, reveals |
| "Does the ray hit S anywhere" | occluded pixels (fake asymmetries) | nearest hit across all geometry |
| `Physics.Raycast` attribution | visible meshes (it hits collider proxies) | renderer toggle, then ray-triangle for the submesh |
| Sweep over a fixed set of poses | corners no pose framed | add a pose framing every flagged area |
| Hue-masked mean | the object's real statistics (selection bias) | statistics over all its pixels |
| Sky-difference geometry mask | glass (counts as geometry, pins upper percentiles) | exclude glazing by renderer |
| Downward brightness sampler | interiors (lands on roofs) | first walkable floor with a ceiling within ~14 m, reachable cells |
| One shot per room | lighting (facing dominates) | at least 4 yaws, mean and spread |
| Level camera sweep | undercroft and overhang ceilings | sweep pitched up (about -22°) as well |
| Capture with occlusion culling on | moved static objects | `useOcclusionCulling = false` |
| % of frame pixels clipped or changed | *where* the pixels are (clouds vs cushions; one lost object vs speckle) | locate by row or region and by the largest connected blob before quoting a whole-frame % |
| Viewing a PNG downscaled (an image viewer fitting it to the window) | true edge pixels: resampling paints a pale net (fake halo) around every leaflet | inspect 1:1 and 4× nearest-neighbour crops, and a magenta-sky render, before blaming crunch, alpha-to-coverage, cutoff or mips |
| Frozen stills (wind off, one pose) | wind motion, walking cull and pop-in | wind A/B with the keyword on, a `lodBias` step for walking distance; list what stays unchecked |
| Geometric visibility model (crown rays, bounds) to choose what to cull | real occlusion (it over-culled 6× and exposed skyline objects) | the id-buffer hide-and-diff (§5) |
| A look list of lightmap defects (black patches, leaks) after a bake | Light-Volume-lit props, pictures, reflections, areas outside the bake, anything a post-bake step breaks | the bake loop's look list as same-camera pairs, after the whole post-bake sequence (`bakery-light-baking` "Bake loop") |

## 5. Measuring rendered frames

- **Lighting grade.** Eye-height station grid (the WORLD.md reference eye height), 4 yaws, mean
  luminance, dark % (L < 0.05), blown % (L > 0.9); keep one fixed pose for A/B across bakes and
  screenshot the worst station before "fixing" it: it may sit inside dark geometry.
- **Which renderer owns a pixel.** Toggle-diff the suspect, or swap an unlit magenta material onto
  it and restore `sharedMaterials`; bucket changed pixels by delta (>0.01 / >0.15 / >0.30 / >0.50)
  instead of averaging the feathered rim. For a near-black surface, cast ~256 hemisphere rays and
  count escapes: zero means the fix is geometry, not material.
- **Pixel sweeps.** Gate on two conditions (brightness and hue); per-pixel max means nothing on
  creased soft furnishings; hide UI by disabling `Canvas` components (it is not a `Renderer`);
  compare thin members to the surface they abut (~1.2× reads as trim, ~2× as a fixture); scope
  toggle loops to one room, since a scene-wide loop locks the editor past the bridge timeout. Report
  a number a later session can reproduce.
- **Visible area.** Key the judged surface's material as unlit magenta, render from real player
  cameras, divide by the occluders-hidden render, then restore the material from version control,
  never by re-typing values; select by material, not by name.
- **Camera placement.** Raycast to the ground for height and linecast eye-to-target, rejecting
  blocked bearings; offsets from a bounds centre on a slope put cameras inside rocks.
- **Hide-and-diff (prove a cull or a hidden set changes nothing).** Render per-object ids with a
  replacement shader from every reachable eye point × 8 headings × 2 pitches (e.g. 0° and 30° up);
  objects never present in any id buffer are the unseen set. Hide that set, then diff beauty renders
  of sampled views with it shown vs hidden, LOD cross-fade frozen first (§2 step 14), and run a
  positive control (hide one known-visible object) through the same diff. Pass: no pair ≥ 30 px
  while the control trips. A geometric crown-ray model chose 799 objects where the id buffer found
  131 truly unseen.
- **Retouch verification (2-D edits to a still).** Diff the final against the graded raw and render
  the changed pixels (> 8/255) as a magenta overlay: only the title block and the named spots may
  change. For streak removal, compare the high-pass column-profile std and peak
  (`col_mean − uniform_filter1d(col_mean, 41)`) in the treated band before and after, against an
  untreated control band.

## 6. Handing work to a reviewer

What the brief contains and the order of reviews: review-protocol "Inputs the orchestrator must
give you" and "For the agent that dispatches reviewers". On top of that, the builder:

- Runs §2 on its own work first, so the reviewer finds design problems, not trivia.
- Runs `PropGate` on every root it touched and attaches the output folder (pipeline skill
  "Measured gate: PropGate"); places only models with a model-gate SHIP IT.
- **Quotes** the art direction from the project's design document, re-read before each brief, and
  passes reference image paths, never a paraphrase from memory: the reviewer has no other source
  and will grade confidently against an invented target for several rounds.
- Names a failing case as an example and asks for the whole defect class to be swept.
- Attaches the scan output with its positive control (§3), and says where it deviated from a
  previous reviewer's number and why.
- In a sunlit exterior, says up front that no artificial lights are expected; "enough lights, each
  with a fixture" is an interior criterion.
- Sends screenshots as JPEG (quality ~85) or with the long edge capped near 1600 px, attaching only
  the ones discussed: request limits are in bytes, not tokens, and a PNG can trip HTTP 413. Review
  sheets you read back yourself: save with `optimize=True` and downscale when the file is over
  19 MB; the image reader refuses files over 20 MB.
- Before any commit, bake or build: deletes every `__*__` capture object and asserts the
  realtime/mixed light count is 0; both checks, since either can miss alone, and the SDK saves the
  open scene on build.

## 7. Acting on findings

The loop itself (fix, re-bake, probes, re-review, three rounds then change approach) is in
review-protocol. Per finding:

1. Query the named objects' current state first; the review may predate a fix. Record
   already-fixed findings as closed with the measurement that proves it.
2. Check the cited camera pose against a reachability model (raycast-down grid, player capsule
   clearance, flood fill with a ~1.0 m step); re-measure from the nearest reachable pose before
   re-baking geometry no player can see.
3. Take the reviewer's diagnosis, recompute its numbers. Coordinates: against the bounds of every
   part of the assembly (frame and canvas, planter and foliage) and whatever stands beneath.
   Rotations: from measured facing (for seating, backrest centroid minus seat centroid), applied as
   a delta; quote the new measured facing as proof, never the transform value.
4. Never dismiss a finding because your own metric disagrees; check what that metric is blind to
   (§4). The reviewer's diagnosis is usually right even when its arithmetic isn't.
5. Classify toggle-state findings in both states (§2 step 8), then prove the fix with a
   same-camera before/after (§1).
6. After a fix passes re-review, record symptom → cause → rule before the next task, in the
   project's own instructions. Only the user's verdict, never a reviewer's, makes a lesson shared:
   promoting it to the kit follows `.omp/skills/world-pipeline/SKILL.md` "Lessons capture".

## 8. Handoffs between agents

- **One editor, several sessions.** Worktrees do not isolate the editor. Re-query the hierarchy
  and confirm an object is yours (e.g. its mesh asset path) before modifying or deleting it; after
  a long bake, import or batch edit, re-verify that the objects it covered still match what you
  built before measuring. If another session has taken an object over, stop and surface it.
- **Editor scripts compile as one assembly.** One `error CS` in `Assets/Editor/` stops every
  agent's tooling. Give each parallel agent exclusive ownership of its own script; blocked by
  someone else's error, check the file's modification time and wait, never stub it.
- **Subagent briefs.** Named cameras, objects and values become the ceiling of what gets checked.
  Name them as examples, ask for the class, and pass measured constants with the method to
  re-measure them locally.
- **Tell subagents the rule.** A builder passes its own work; say explicitly that a same-camera
  render is the proof, and route the result to a separate reviewer.
- **Reviewer briefs come from the dispatcher,** quoted from the design document; mid-run
  corrections go to the running reviewer as a message, with the difference called out as a finding.
- **Shared working tree.** Commit by pathspec (`git add -A -- <paths>`, `git commit -m … --
  <paths>`), never stage files another agent modified, and check `git status` on the folders a
  package export includes before exporting: exports carry uncommitted foreign edits.
- **Long jobs.** Use the host's async/background job facility and wait for its completion notice;
  a job started with `cmd &` inside a tool's shell dies with the call (a backgrounded `git add`
  once never landed: confirm with `git log --oneline -1`). Eval kernels die on long calls and lose
  their state, so write specs and survey results to disk as you go.
- **Re-read images under a new name.** Reading an image regenerated at the same path can show the
  old picture; copy it to a new file name before viewing, and retry once if the first read of the
  copy fails.
- **Store and gallery copies as hardlinks.** Keep copies of one render as hardlinks so a re-render
  updates every copy. Writing in place (PIL `save` to the same path) keeps the link;
  delete-and-recreate (`os.replace`, temp-then-rename, `git checkout`) silently breaks it. Verify
  with `os.path.samefile` or matching hashes; re-link with `os.link`.

## 9. What a "done" report carries

- Same-camera before/after image pairs, file paths and the pose used.
- Every number as a pair: result and positive control (or broken and good sibling), same poses,
  mask and threshold.
- Scan output with its final status line (`PAIRS=0 COMPLETE` for the z-fight gate) and the
  PropGate summary for the touched roots.
- Per visual item: the close-up you opened, or the words "changed, not looked at".
- Findings closed, already-closed (with the proving measurement), pre-existing (with numbers from
  the other state), and deviations from reviewer numbers with the reason.
- Findings-ledger cases worked on, by id; only a reviewer marks them verified.
- For a bake: the QUICK evidence list of `bakery-light-baking` "Bake loop" (pose list, pair sheets
  per area, outside-scope sheet, play-mode sheet, look table, fingerprint output), for the QUICK
  and again for the normal bake.
- The verdict of every gate that applies (`.omp/AGENTS.md` "Visual acceptance gate"). Without
  SHIP IT the work is not done.

Verification lessons checklist: [references/lessons-verification.md](references/lessons-verification.md).

Files in this skill

  • SKILL.md19.3 KB
  • references/lessons-verification.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.