No significant scope creep detected
Why it matters
Scope creep in AI-generated code is a distinct failure mode from human-authored scope creep: the AI adds entire subsystems — admin dashboards, SSO flows, multi-tenancy layers — that were never requested, each carrying its own attack surface, maintenance cost, and regression risk. An unreviewed team collaboration system added without a PRD requirement means unapproved access control logic is live in production, and any bug in that logic is your liability. ISO 25010:2011 maintainability penalizes excess implementation directly: code that does not correspond to a requirement has no spec to validate it against and no owner to maintain it.
Severity rationale
Critical because unrequested subsystems introduce unreviewed security logic and maintenance burden with no specification to validate correctness against.
Remediation
Audit each out-of-scope addition before deciding whether to keep or remove it. For each flagged module:
- Check whether it is stable, covered by tests, and free of known vulnerabilities.
- If keeping it, add it to your PRD and ensure it has proper access control — check
src/app/routes for missing auth guards. - If removing it, delete the route group, its components, and its schema models, then run a fresh migration:
# Remove the orphaned route and its data layer
rm -rf src/app/(admin)/teams
npx prisma migrate dev --name remove_teams_scope_creep
Leaving unrequested code in place means you own its security posture indefinitely.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Goal Alignment Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- iso-25010:2011 · maintainability.modularity — Maintainability — Modularity
Taxons
History
- 2026-04-18·v1.0.0·Initial import from goal-alignment·automated