AI Code Guard (Scanner Operations)

Status: Planned Audience: Scanner operators, security owners, CI maintainers Related: AI Code Guard Policy · AI Code Guard Benchmarks

Implementation boundary (2026-07-18): this dossier describes the planned Scanner aggregate. The current bounded production run is owned by Integrations (POST /api/v1/integrations/ai-code-guard/run, AiCodeGuardRunService) and exposes deterministic secrets, attribution-marker, and license checks. The CLI is a client of that contract. Scanner diff/similarity/SBOM/evidence claims below remain planned.

AI Code Guard adds fast, deterministic checks for AI-assisted code changes, so security, IP, and license issues are caught before a release gate. The guard runs inside the Stella Ops Scanner, emits evidence for Policy to consume, and is surfaced through the CLI (stella guard run, including a SARIF export). Posting results back to the SCM as PR/MR annotations is quarantined — not wired in this release; see §4 and PLAN_20260704 (finding A5, decision D3).

1) Checks

1.1 Secrets and unsafe patterns

1.2 Attribution and similarity

1.3 License hygiene

2) Inputs and evidence

Inputs:

Evidence output:

Example (abbreviated):

{
  "status": "review",
  "hunks": 4,
  "secrets": { "new": 1, "pre_existing": 0 },
  "unsafe_apis": 2,
  "similarity": { "max": 0.87, "denylist_hit": false },
  "licenses": { "block": 0, "review": 1 }
}

3) Determinism and offline posture

4) Integration points

5) Overrides

Overrides are Policy-driven and require an issue link plus an expiry. The guard emits override metadata for audit trails; Policy decides whether to allow a time-boxed waiver.

See also