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
- Shared file discovery β runs
git diff --name-onlyonce, tags each changed file with domain labels (money,tenant,auth,api-contract, etc.) using the same heuristics the individual audits use. - Parallel dispatch β sends each audit skill only the files relevant to
its domain.
audit-moneysees money-tagged files;audit-tenantsees tenant-tagged files; and so on. - 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.
- Optional persistence β with
--write-report, the full consolidated report is saved todocs/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: currentHEADvs its upstream.--base=<branch>β base branch for the diff. Default:main.--only=<list>β comma-separated subset ofsecurity,money,tenant,cross-stack. Runs only the listed audits. Default: every installed audit.--write-reportβ persists the consolidated report todocs/reviews/YYYY-MM-DD-audit-all-<slug>.md.