Bug Review bug-review
Run a high-signal parallel bug review before finishing an app, feature, or PR: rely on automated checks first, then fan out vertical module and horizontal cross-cutting reviewers to eliminate bugs, leaks, state/rendering issues, inefficiencies, and code smells.
- Our test
- —
- not tested yet
- GitHub stars
- 20k
- elizaos/eliza
- Added by
- 0
- members
- Updated
- Dec 6
- commit e932464
- Content
- 1 file
- no scripts · 10 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: bug-review description: "Run a high-signal parallel bug review before finishing an app, feature, or PR: rely on automated checks first, then fan out vertical module and horizontal cross-cutting reviewers to eliminate bugs, leaks, state/rendering issues, inefficiencies, and code smells."
Parallel bug review
Run this review before declaring an application, feature, or non-trivial change done. Read in full first, once per session.
Formal proofs and static checks catch model, type, token, barrel, dead-code, cycle, and duplication failures. This workflow catches what sits past them: where the verified core meets React, DOM layering, VibeLang/Effect concurrency, storage, external boundaries, and runtime performance.
Phase 0: Pre-flight automated gate
Never spend reviewer effort on anything tooling already catches.
- Run the project's automated suite first:
pnpm verifywhen defined, otherwisepnpm check,pnpm lint, andpnpm analyze(when present).- If
pnpm checkshows a✗, follow the first. - Fix every automated failure before launching reviewers.
- Record the baseline commit (
git rev-parse HEAD) so follow-up verification rounds only re-audit changed files and touched seams.
Phase 1: Choose scope and shard in parallel
Skip generated and build directories (gen/, generated/, dist/, .vibe/, .cache/, .spec-cache/, node_modules/).
- Full review (finishing an app, major milestone, or first audit): cover every active non-generated source, spec, test, and config file in the repository.
- Incremental review (default for PRs and post-fix verification rounds): collect changed files (
git diff --name-only <base>...HEADplus untracked files) together with their owningspec/modules, direct callers, and any shared runtime or UI contracts they touch.
When your harness supports parallel subagents or swarm workers, launch both axes in parallel in one turn; otherwise run the same passes in sequence without skipping either axis. Restate the user's goal in every reviewer brief, and cap each shard to ~10–40 files or ~2–5k LOC ().
Axis A: Vertical module shards (disjoint partitions)
Partition active files by domain, app, or package so every file in scope is read line-by-line by exactly one vertical reviewer. Each reviewer audits these six defect classes:
- Spec ↔ shell fidelity. Unit or scale mismatches (
intseconds vs. milliseconds, debounce durations), unwired specs or events, no-op emitted effects (Effect.succeed(undefined)), swallowedRejectederrors, missing hydration from restored/synced snapshots, missing session/account reset cleanup, controls callingsend()without gating oncan(), and optimistic side-store writes that run beforeMachine.sendaccepts. - VibeLang / Effect concurrency and leaks.
Stream.callbackorFiberMapjobs missingaddFinalizer/acquireRelease(leaking listeners, watchers, or mutating state after superseding),Semaphoredeadlocks on failure or interruption, empty streams completing cleanly without notifying anInFlightmachine, missing timeouts orAbortSignalpropagation on network/bridge calls, module-level mutableMap/Set/letside-stores leaking across runtimes/tests/sessions, and TOCTOU races (issued + 1, mutable remote-sync flags). - React state, rendering, and UX. Render-time
runtime.runSync(...)or side effects, unstablekeyprops unmounting inputs mid-edit, async controlled inputs causing caret jumps or dropped keystrokes, components subscribing to many whole machines without selectors or sending at 60Hz,<Suspense fallback={null}>blank routes, unrecoverable error boundaries stuck atnull, stripped or clipped:focus-visiblerings, missingprefers-reduced-motion, borderless dark-mode floating surfaces, and interactive touch targets under 44px. - Boundaries, security, and persistence resilience. External data (HTTP, IPC, URLs, JSON, storage, env, CLI args) trusted without schema/
decodeEvent/decodeStatevalidation,localStoragequota or corrupt-JSON errors crashing viaorDieor silently resetting user data to empty, cross-originpostMessageor path-prefix (startsWithwithout separator + symlink) or plain-object prototype (obj[key]) bypasses, producer↔consumer encoding/schema mismatches (base64urlvs.base64vs. hex), and sensitive data leaking on hidden/locked views. - Runtime inefficiencies. Unconditional syncs or fetches on unrelated events, repeated
structuredClone/serialization/parser/formatter (Intl.*,RegExp) allocations in hot paths, unbounded caches or unrevokedblob:URLs, and eager imports defeating route code-splitting. - Verification honesty. Tests mocking internal application services instead of network/platform boundaries, fakes leaking real network traffic, vacuous or false-negative Bombadil properties, orphan modules tested instead of production code, or missing drivers/journeys for stateful shells.
Axis B: Horizontal cross-cutting reviewer
Launch one cross-cutting reviewer (two on very large monorepos) focused strictly on seams no single module shard can see:
- State, caching, and lifecycle architecture. How
Machinestate interacts with side-stores, persistence quotas, eviction bounds, and sign-out/reset/owner-switch isolation across the whole app. - Global UI layering, focus, and navigation. Unified
z-*stacking order across overlays, alerts, sheets, dialogs, and docks; portals vs. viewport/keyboard bounds;inert, Escape, and Back-navigation consistency. - Cross-package contracts and build/cache keys. Producer↔consumer schemas, route tables, manifests, shared runtime helpers, and Turbo/CI env or input keys that could poison caches.
Live UI verification (apps serving a web interface)
For any package with an index.html, do not rely on static reading alone (). Confirm pnpm test:browser and pnpm check's explore stage pass, and inspect the running build across mobile/desktop viewports and light/dark themes for:
- zero uncaught page errors, console errors, or failed requests,
- no blank cold-route frames or broken hit-testing (
elementsFromPoint) under overlays, - visible, unclipped
:focus-visiblerings and legible contrast on floating surfaces, - real interactive controls responding and respecting disabled/loading states.
Do not commit screenshot-comparison tests ().
Phase 2: Evidence and severity bar
Report only verified, high-signal defects. Every finding must include:
- Severity:
P0— crash, data loss/corruption, deadlock, security/privacy bypass, broken core journey, or unusable critical UI.P1— race condition, resource/memory leak, spec↔shell mismatch, cross-session state leak, render/perf storm, or accessibility/layering break.P2— edge-case error gap, missing timeout/eviction bound, meaningful inefficiency, or concrete bug-inviting smell (silent error swallowing, duplicated business rules outsidespec/).- Exact `file:line` citation verified by reading the code on disk.
- Concrete failure path: trigger → line executed → observable user/system breakage.
- Root-cause fix (), never a symptom guard.
Never report:
- style preferences, bikeshedding, or requests for code comments (comments are banned by ),
- issues already caught by
pnpm check,pnpm lint, orpnpm analyze, - hypothetical failures already ruled out by proved Quint/Dafny rules or TypeScript types.
Keep shard notes in conversation or temporary scratch output; never commit new Markdown audit documents to the repository ().
Phase 3: Deduplicate, fix in waves, and incrementally re-verify
- Deduplicate. Collapse overlapping vertical and horizontal findings into one canonical list, keeping the highest severity and all
file:linecitations. - Fix in non-overlapping waves.
- Wave 0 (when needed): land shared contracts, design tokens, or runtime primitives first.
- Wave 1: fix module defects in parallel on strictly disjoint file globs ().
- For each real shell bug fixed, extend the existing journey test that cites its story or rule ().
- When the same defect repeats across modules, encode the guard structurally in
spec/, types, or lint config (). - Re-run automated gates. Run
pnpm check(following the if any spec changed),pnpm lint, andpnpm analyze(when defined). Turborepo and.spec-cache/skip untouched packages automatically. - Incremental re-review. Run a diff-scoped review over only the files modified since the Phase 0 baseline plus any contracts they touch. Confirm every fixed
P0/P1/P2is resolved at its root cause and introduced no regression. - Stop condition. Stop when automated gates are green and zero unresolved
P0orP1findings (and zero regressions) remain. Cap at three fix-and-reverify rounds; if an architectural tradeoff remains unresolved, stop and escalate it clearly to the user.
Report
Summarize concisely when done:
- Scope and automated gates: full vs. incremental, commands run and status.
- Findings resolved: grouped by
P0/P1/P2withfile:lineand root-cause fix. - Regression coverage: journey tests, spec rules, or structural checks added.
- Remaining or escalated items: any deferred
P2s or architectural decisions needing user input, or state explicitly that none remain.