Skip to content

8.6 Rules for AI-assisted generation

Generated code violating any of these is corrected or rejected, and the decision is recorded:

  1. No extraction path that lets a value count as confirmed without verified evidence — a value whose citation fails is kept only flagged UNSUPPORTED, forced into review, and leaves the extraction incomplete; no path bypassing schema validation of a model response.
  2. No confidence threshold or release decision implemented inside a prompt — thresholds are deterministic code.
  3. No contract content in any log, at any level — no prompt or response payloads, no values, no passages; log internal IDs instead.
  4. No direct database access from an MCP tool or agent-facing endpoint.
  5. No mutation of an existing audit-trail record.
  6. No provider-specific SDK or managed-service client referenced from domain or application modules — inference, storage, messaging and identity are reached through ports only.
  7. No new infrastructure dependency or deployable unit introduced without an ADR (ARC-Q6.1).