suite-gate

v0.5.0
io.github.jacob-adm/suite-gate Checked 2 days ago Published 1 day ago

Lets a coding agent run the installed PR audit tools and read their findings in one format.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_audit_tools

The six audit tools, whether each is installed, its version and the minimum version with --audit-json.

gate

suite-gate: one verdict (pass, warn, fail or error) for ref against base, from the built-in rules: git-surface always, trust-path when workflows changed, release-drift for each changed lockfile (queries registries), git-overlap against the other local branches. Returns every tool's audit result with its evidence.

ParameterTypeDescription
base *stringBase branch, e.g. main
ref *stringBranch to judge
repo *stringRepository directory

git_surface

git-surface: what each ref changes, since its merge base with base, that runs or is trusted (CI, hooks, agent files, install scripts, dependencies, hidden text).

ParameterTypeDescription
base *stringBase branch, e.g. main
refs *arrayBranch, tag or commit names to check
repo *stringRepository directory

git_overlap

git-overlap: pairs of refs that change the same path since base (git footprint, then git overlap). Optional 'with' keeps only pairs that include that ref.

ParameterTypeDescription
base *stringBase branch
refs *arrayBranch, tag or commit names to check
repo *stringRepository directory
withstringOnly pairs that include this ref

git_pairmerge

git-overlap: whether each pair of refs merges (git pairmerge, in memory). Optional 'onto' merges each pair as both would land on that base.

ParameterTypeDescription
pairs *array
repo *stringRepository directory
ontostringBase both refs land on

trust_path

trust-path: paths by which untrusted input reaches a secret, write permission, OIDC token, environment or AI agent action in GitHub Actions workflows.

ParameterTypeDescription
dir *stringRepository directory
refstringRead the workflows from git at this ref instead of the files

release_drift_diff

release-drift: what a new release artifact adds over an old one (install scripts, start-up hooks, native code, new dependencies, URL hosts, encoded strings).

ParameterTypeDescription
new *stringNew artifact file
old *stringOld artifact file (.whl, sdist or npm .tgz)

release_drift_source

release-drift: files of a release artifact that are not, as they are, in git at ref.

ParameterTypeDescription
artifact *stringArtifact file
ref *stringTag or commit the release was built from
repo *stringRepository directory

release_drift_lockfile

release-drift: every package a lockfile change upgrades, downloaded from its registry and compared as release_drift_diff does.

ParameterTypeDescription
new *stringNew lockfile
old *stringOld lockfile

release_drift_provenance

release-drift: whether a new version was published differently from the old one (provenance removed, workflow changed, another npm account).

ParameterTypeDescription
name *stringPackage
new *stringNew version
old *stringOld version
registry *string

pr_merge_audit_report

pr-merge-audit: the findings of a merge-test results file (which PRs merged, conflicted or failed their tests).

ParameterTypeDescription
results *stringResults file written by pr-merge-audit build

glassbox_reach

glassbox: which sensitive locations (credentials, private data) a process started here could read. Opens each location read-only; never reads contents.

ParameterTypeDescription
homestringAudit this directory instead of $HOME
sincestringAn earlier `glassbox reach --json` report to compare with

glassbox_persist

glassbox: persistence points (launch agents, shell startup, git hooks, agent configs) added, changed or removed since a snapshot saved with `glassbox persist --save`.

ParameterTypeDescription
since *stringSnapshot file
homestringUse this directory as $HOME
reposarrayRepositories whose hooks and configs to include