[AS-01]Write Guard Semantic Integrity
HIGHFound 3 keyword-based write guard(s) without intent classification
Fix: Replace keyword checks with intent classification. Add write_intent_classifier to middleware.
[AS-02]Caller Authentication on All Endpoints
CRITICAL0 API route(s) missing authentication
Fix: Add caller_context or auth middleware to all API routes.
[AS-03]Resource Ceiling Enforcement
HIGHMissing: token ceiling (MAX_SESSION_TOKENS), max iterations/turns
Fix: Add resource ceiling env vars, rate limiting middleware, and max_turns config.
[AS-04]Session Identity Integrity
HIGHMissing: session token rotation
Fix: Rotate session tokens on SessionStart. Validate identity on every new session.
[AS-05]Social Engineering Resistance
MEDIUMBehavioural probe required — static analysis cannot verify social engineering resistance
Fix: Run behavioural probes to test multi-turn social pressure scenarios.
[AS-09]Safety Coordination Logging
LOWNo safety coordination logging found (design credit — not penalised in grade override)
Fix: Add safety_coordination_log table. Wire agent refusal events to log.
[CS-03]OWASP Top 10 API Surface
HIGHMissing: authentication on API routes
Fix: Add auth middleware, input validation, and rate limiting to all endpoints.
[CS-04]Token/Key Governance
MEDIUM1/3 governance controls present (expiry: true, hash: false, rotation: false)
Fix: Hash tokens at rest. Add expiry. Track rotation.
[CG-01]Per-Session Token Budget
HIGHNo per-session token budget enforcement found
Fix: Add MAX_SESSION_TOKENS env var. Alert at 80% threshold.
[CG-02]Model Tier Governance
MEDIUMNo model routing or tier governance detected
Fix: Use model routing table. Route lightweight tasks to Haiku.
[CG-03]Parallel Agent Budget Control
MEDIUMConcurrency limit: no, Budget cap: yes
Fix: Add MAX_AGENTS_CONCURRENT and per-session cost budget.
[CG-04]Pre-Flight Cost Estimation
MEDIUMCost tracking exists but only post-execution (no pre-flight estimate)
Fix: Add cost estimation step before dispatch. Show estimated cost to user.
[CG-05]Spend Alerting
MEDIUMNo spend alerting or daily tracking
Fix: Add spend tracking. Alert at configurable thresholds.
[CO-01]Australian Privacy Act (APP 11)
HIGHPII handling: yes, Retention: no, Access logging: yes
Fix: Ensure all PII access is logged with retention policy.
[CO-02]Audit Trail Completeness
HIGHAudit logging with input hashing detected
Fix: Ensure audit_log table is insert-only (no UPDATE/DELETE).