Skip to content

general-audit lessons: 2026-05-02 #552

@intendednull

Description

@intendednull

caveman lessons. master: #513. 53 raw → 38 filed. cargo audit clean.

What worked

  • 9 parallel sweep agents fanned out cleanly. No timeouts. All under 6 min budget. Stream-append-as-found discipline (one finding per Write) held — no batched-write loss.
  • Concern split kept noise low. Security split into 4 sub-areas (validation, auth, web, supply) prevented one agent owning too much. Tech-debt + arch + testcov + general-review filled the rest.
  • Sibling-of-closed pass found 3 real bugs out of 11 PRs. F1 (replay missing storage's heads-cap), F2 (VoiceJoin/VoiceLeave peer_id spoof, dup [security] Voice peer ID spoofing — no signer verification on voice messages #172), F3 (reduced-motion 0.01ms flunks is_zero_duration). High-yield pass — keep first.
  • Dedup subagent caught 7 dups + 6 supersedes out of 53. Narrow search_issues queries (file path, symbol name) avoided 78k-char overflow.
  • Verification subagent caught 2 false-premise findings (F28, F52) that survived dedup. Spot-checking the cited line saved us from filing inaccurate child issues.

What didn't

Suggested edits to .claude/skills/general-audit/SKILL.md

  1. Pass 2 sweep agents must read ±10 lines around any cited line before asserting "missing"/"absent"/"no X exists". Prevents F28/F52-class false positives.
  2. Dedup subagent prompt: never use bare is:issue "general-audit"-style queries. Always pin a file path, symbol name, or RUSTSEC ID. Add to "Hard Rules" → "Synthesis".
  3. Pass 3 cargo-audit: drop the -n flag from the documented one-liner OR document a one-time cargo audit (no -n) prefetch step. First run after toolchain rebuild always fails with -n.
  4. Verification subagent should drop any finding marked partially-verified whose body claim contradicts the verification spot-check, not just FAILED. Currently the rule says "drop FAILED" only — partial-correctness still made it to filing without F28/F52 manual override by the orchestrator.
  5. Sibling-of-closed agent: prefer commit-prefix filter (fix:/feat:/perf:) over PR-by-PR drill when N merged PRs > 5. Auto-fix-batch PRs especially benefit.
  6. Add explicit note: 38 issues × 4 API calls each (create + sub-issue + 2 reads) = 150+ MCP calls — budget for that. Suggest issue creation in batches of 8-10 in parallel; sub-issue link in batches of 14.

Stats

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions