Skip to content

audit-all

/octopus:audit-all is the umbrella audit command. It runs audit-security, audit-money, audit-tenant, and audit-contracts in parallel against a single ref, then merges their output into one consolidated severity report with a cross-audit hotspots table.

What it solves

Running four separate audits by hand is slow and easy to skip under time pressure. More importantly, the output lives in four separate threads β€” so a file that trips both a money finding and a tenant finding never gets flagged as a priority. audit-all solves both problems: one command, shared file discovery, parallel execution, and a dedicated hotspots table that surfaces files flagged by more than one audit. Those are the files that need attention first.

How it works

  1. Shared file discovery β€” runs git diff --name-only once, tags each changed file with domain labels (money, tenant, auth, api-contract, etc.) using the same heuristics the individual audits use.
  2. Parallel dispatch β€” sends each audit skill only the files relevant to its domain. audit-money sees money-tagged files; audit-tenant sees tenant-tagged files; and so on.
  3. Consolidation β€” merges the four sub-reports under a single severity structure. Files flagged by more than one audit appear in a hotspots table at the top so reviewers know where to look first.
  4. Optional persistence β€” with --write-report, the full consolidated report is saved to docs/reviews/.

If an audit finds no domain-matching files in its slice, it emits a single <audit>: no domain-matching files line. If one audit errors, the rest continue and the summary notes the failure.

Usage & parameters

/octopus:audit-all [ref] [--base=main] [--only=<audits>] [--write-report]
  • ref β€” PR number (#123), URL, branch name, or commit SHA to audit. Default: current HEAD vs its upstream.
  • --base=<branch> β€” base branch for the diff. Default: main.
  • --only=<list> β€” comma-separated subset of security,money,tenant,cross-stack. Runs only the listed audits. Default: every installed audit.
  • --write-report β€” persists the consolidated report to docs/reviews/YYYY-MM-DD-audit-all-<slug>.md.

Source: commands/audit-all.md