Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

10.9 KB
Raw Blame

Common Mistakes (generic layer)

This is the GENERIC layer of the living log. It ships with the skill, so a consumer repo's copy is materialized and read-only β€” change it by PR to the skill source. Every entry must be product-independent: no project's packages, routes, schemas, env vars, service names, or business logic. Those go to .agents/acceptance/common-mistakes.md, the writable project layer.

How this file is injected

A mistake catalogue works by having been read β€” you cannot search for a failure mode you do not yet know you are about to hit. But the rule is what must be in context, not the narrative. Its designated acquisition owner reads two tiers:

Tier Read When
Checklist in full β€” one line per mistake once per source version when the target is known; apply retained applicable lines before pass or handoff
Entries by id β€” rg -n '^### M' <file> for line numbers, sed -n '<start>,<end>p' for one entry when detail is needed and not already acquired

Pass applicable lines and acquired entry details to their execution/inspection owner. Other roles do not reread the same file. A case boundary alone does not invalidate the checklist; changed source versions require only affected updates.

Only judgment rules live here β€” the ones no tool can check. Rules an agent skips under pressure are in SKILL.md ("Rules you will be tempted to skip"); rules a validator or a script default can enforce are removed the day that code lands. Every entry therefore carries since (first observed) and holds-while (the mechanism it depends on; always means pure judgment). An entry whose holds-while no longer holds is deleted, not kept as reference.

Apply the same shape to the project layer's file. Never narrate the reading.

Checklist

  • M1 The designated inspector opens every cited screenshot with an image-capable tool before pass, once per artifact version; other roles use its attributable inspection record. Greps and element counts never decide. Presence/absence of a UI section is asserted on structured state, never on page text.
  • M5 Before/after is a comparison pair of pre-change vs delivered code in the same state, with exactly one before and one after; never a stale shot loose in evidence, never a hand-composed image, never sequential flow steps, never loading vs loaded of one build.
  • M6 Prove the running instance loads your working-tree code by measuring a changed value. After a direct fixture write, cold-load and assert at the layer the behavior reads, not where you wrote.
  • M12 A UI chip/badge is supporting evidence; the payload, request body, DB row, or side effect is the proof.
  • M13 A GIF's last frame is its headline β€” end on the asserted state or say in observation why it ends elsewhere.
  • M14 GIF at source resolution, per-frame palette, no dithering on neutral UI; inspect first/middle/last frames.
  • M15 A changed shared component is verified on every surface that renders it; skipped surfaces are marked untested.
  • M16 A change inside a bar/row with overflow is verified in default and collapsed/overflow state.
  • M22 An error-state case needs the failed status AND the user-facing message in the same screenshot.
  • M28 Non-visual behavioral claims carry two text artifacts in the same round: reasoning, then execution record.
  • M30 Electron evidence is the visible viewport, never screenshot --full.
  • M31 A visual case is shot with representative fixture data β€” several groups of several items, long titles, populated settings β€” stated in its plan method or the round's review notes; empty or single-item data only when that state is the criterion.

Entries

M1 β€” Judging pass from heuristics instead of the screenshot

since 2026-07-17 Β· holds-while: always

Trap: deciding "renders fine" from innerText greps plus an element/skeleton count. Layout-shell text is always in the DOM and a blank page also has zero skeletons, so both false-positive. The mirror is worse: grepping page text to prove a feature is absent matches your own report prose naming it.

Rule: the assigned inspector opens each cited screenshot with an image-capable tool and records its visual findings once; other roles use that attributable record. Blank / watermark / shell-only = fail or uncertain; go find the cause. Presence or absence of a UI section is asserted against the state that drives it or a located DOM node, never a substring.

M5 β€” Before/after that is not a comparison pair

since 2026-07-17 Β· holds-while: ingest does not reject a comparison id with a missing or duplicated half

Trap: a stale "before" shot loose in a passed case's evidence (the page headings each image by filename, so it reads as the current result); two shots hand-composed into one image; two sequential steps of a flow tagged as before/after; or two states of the delivered build, such as a skeleton tagged before and the loaded page tagged after.

Rule: the same view in the same state on the pre-change and delivered code = a comparison pair with a shared id, exactly one before and one after, one pair per case; the page owns the labeling. Other states of one build and flow steps are ordered evidence with captions. Shape in report.md.

M6 β€” Verifying against a build or cache that is not your code

since 2026-07-17 Β· holds-while: always

Trap: driving a resident or packaged instance and eyeballing the first screenshot as "changed" β€” it serves a built snapshot, not your working tree. Same shape one layer down: writing a fixture to the DB, reloading, and filing the stale value the persisted client cache still serves as a product bug.

Rule: verify in an instance that loads your code, and prove it by measuring a known-changed value before trusting any screenshot; restart non-hot-reloading layers (server, main process, adapters) and prove which code they run. After a direct fixture write, cold-load (clear client storage, re-seed auth) and assert the fixture in the store before anything downstream β€” probe-mock-patterns.md B.

M12 β€” Verifying the UI state but not the effect

since 2026-07-17 Β· holds-while: always

Trap: an "inject context / apply setting / send data" feature is marked verified because the chip or badge showed, while a later transport gate dropped it.

Rule: assert the last mile β€” the transformed request body, the DB row, the downstream call. UI state is supporting evidence.

M13 β€” A GIF that ends on an expected-failure frame

since 2026-07-17 Β· holds-while: always

Trap: a loading/streaming GIF records through to the terminal error the test data inevitably produces; it loops on that frame and reads as the case failing.

Rule: end the GIF on the asserted phase, or make a static shot the primary evidence. If the terminal state is worth showing, say so in observation before the viewer sees it.

M14 β€” One global palette destroys neutral UI

since 2026-07-17 Β· holds-while: the GIF encoder in use does not default to per-frame palettes without dithering

Trap: downscaling by default and encoding with one shared 256-color palette plus dithering turns pale skeletons and thin borders into speckle.

Rule: keep source resolution, generate palettes per frame, disable dithering for neutral UI, inspect first/middle/final frames at readable size. Downscale only when file size forces it.

M15 β€” Verifying only the entry surface of a shared component

since 2026-07-17 Β· holds-while: always

Trap: a shared component changed; one surface is screenshotted; the same component composed with different wrappers elsewhere still shows the old behavior.

Rule: enumerate every surface that renders it, attach separate evidence for each, mark skipped surfaces blocked or untested.

M16 β€” Default state only, never collapsed / overflow

since 2026-07-17 Β· holds-while: always

Trap: a change inside a toolbar/action bar/list row is checked expanded only; a narrower container or a saved collapsed preference hides the affordance.

Rule: force and capture both states.

M22 β€” A status badge is not the error message

since 2026-07-17 Β· holds-while: always

Trap: a Failed badge is on screen, the error alert with the translated message is not, and the case passes.

Rule: an error-presentation case requires the failed status AND the alert containing the expected user-facing text in the same screenshot. An unrelated warning does not count.

M28 β€” Explanation and raw output as interchangeable text evidence

since 2026-08-03 Β· holds-while: ingest does not warn on a non-visual case with fewer than two text artifacts

Trap: only a polished explanation with no observations; only a green transcript the reviewer must infer a claim from; or the explanation in one round and the logs in a later one.

Rule: two ordered text artifacts per non-visual behavioral case β€” a reasoning document (claim, setup/threat model, attempt, pass criteria, interpretation, limitations) and an execution document (exact command/request, raw observations, mapping to the criteria). Republish both in every follow-up round.

M30 β€” Full-page screenshot of an Electron window

since 2026-08-16 Β· holds-while: ingest does not flag a desktop screenshot whose aspect ratio or black margin is implausible

Trap: agent-browser screenshot --full follows the renderer's document extent, not the BrowserWindow, producing a giant mostly-black image in which the UI is a tiny corner.

Rule: capture the visible viewport without --full (or the project's CDP window-capture helper). Open the image; reject it if the app occupies a small fraction or black margins dominate. Never crop evidence in post-processing.

M31 β€” Minimal fixture data in a layout screenshot

since 2026-11-20 Β· holds-while: always

Trap: a layout case is shot with the least data that renders: a settings width change on the "no devices" page, or a sidebar group with one guest and one topic. The shot cannot show wrapping, truncation, row alignment or the populated width, so it proves nothing about the layout. Follow-up rounds skip the plan review and repeat it unseen.

Rule: before capture, state each visual case's fixture data (counts, title lengths, state mix) as real users see it β€” in the plan method, or for a frozen plan or a follow-up recapture, in the round's review notes β€” and seed to it. Empty or single-item data only when that state is the criterion.