Government AI Usage

Guidance & Compliance Framework

High-assurance compliance protocol and operational safeguards for autonomous agents and engineering teams working within UK Government and public sector environments.

1. Regulatory Baseline & Standards

Autonomous agents and engineering teams operating in public sector projects must adhere to strict regulatory, statutory, and architectural baselines. In Modern WordPress, all AI-assisted engineering and automated workflows comply with five primary frameworks:

  1. Central Digital and Data Office (CDDO) Generative AI Framework for HMG: Ten core principles governing lawful, ethical, safe, and transparent AI adoption across Central Government.
  2. Algorithmic Transparency Recording Standard (ATRS): Mandatory transparency framework requiring public bodies to record and publish how algorithmic tools and generative models support government decision-making.
  3. Government Digital Service (GDS) Service Standard: Particularly Point 6 (evaluate technologies), Point 8 (iterate and improve frequently), Point 9 (create a secure environment), and Point 10 (respect user privacy).
  4. National Cyber Security Centre (NCSC) Principles for AI Security: Rigorous defence against prompt injection, model evasion, training data poisoning, and supply chain compromise.
  5. Data Protection Act 2018 / UK GDPR & Accessibility Regulations: Statutory compliance with data minimisation, purpose limitation, and the Public Sector Bodies (Websites and Mobile Applications) Accessibility Regulations 2018 (WCAG 2.2 Level AA).

2. The Wolfpack Active Warning Protocol

When working under government governance, silence on non-compliant practices is strictly forbidden. The agent functions as an active compliance interceptor.

The Warning Trigger

Whenever the commander or the agent proposes, writes, or initiates any operation that breaches government AI guidance, the agent immediately pauses execution and outputs an operational interceptor banner:

⚠️ GOVERNMENT AI USAGE WARNING: <Specific Guideline Breach & Rationale>
Policy Reference: <CDDO Principle / ATRS / NCSC / GDPR Citation>
Operational Risk: <Specific security, privacy, legal, or accessibility failure>
Compliant Vector: <Actionable, compliant alternative to proceed safely>

Execution pauses at this gate until the compliant vector is confirmed.

3. Government AI Red Lines

The following activities represent hard boundaries in public sector delivery. Crossing any of these lines triggers an immediate halt.

1. Data Classification & Citizen Data Ingestion

  • Prohibition: Never input protectively marked data (OFFICIAL-SENSITIVE, SECRET, or TOP SECRET), live citizen Personal Identifiable Information (PII), or unredacted public sector operational databases into commercial, public, or unaccredited external LLM APIs.
  • Compliant Vector: Use synthetic laboratory fixtures (make seed), anonymised fixtures, or locally hosted, air-gapped models approved by department security leads.

2. Meaningful Human Control (No Autonomous Policy Decisions)

  • Prohibition: AI models must never make autonomous determinations regarding public policy, individual entitlements, statutory rights, legal advice, or citizen access to services.
  • Compliant Vector: Human-in-the-loop design. AI can summarise, draft, or extract insights, but final decisions, approvals, and publications require explicit human sign-off.

3. Algorithmic Transparency & Auditability

  • Prohibition: Deploying automated scoring, categorisation, or filtering tools without an open ATRS record or clear explanation of inputs, logic, and limitations.
  • Compliant Vector: Complete ATRS documentation before public release, detailing model provenance, training boundaries, bias evaluations, and data pipelines.

4. Hallucination & Fact Verification

  • Prohibition: Passing unverified AI-generated policy references, statutory interpretations, or synthetic code libraries into production repositories or official documentation.
  • Compliant Vector: Deterministic verification. Cross-check all statutory citations against official government publications (legislation.gov.uk or GOV.UK) and verify all dependencies with make audit.

5. High-Assurance Accessibility (WCAG 2.2 Level AA)

  • Prohibition: Generating client-side UI components, block templates, or forms that rely on inaccessible patterns, unlabelled controls, low-contrast palettes, or missing skip links.
  • Compliant Vector: Strict adherence to WCAG 2.2 Level AA standards, semantic HTML5, 44x44px touch targets, and automated verification via Playwright accessibility checks.

6. Security Against Prompt Injection & Supply Chain Compromise

  • Prohibition: Concatenating untrusted user inputs directly into model prompts without validation, or pulling unverified external AI packages without automated security scanning.
  • Compliant Vector: Strict boundary separation between system directives and user data, combined with automated package scanning via composer audit and pnpm audit.

4. Operational Checklist for Government Work

CheckRequirementVerification Method
1. Data ProtectionZero citizen PII or classified data in prompt payloadsInspect payloads; verify mock data with make seed
2. Security PostureZero high/critical CVEs; zero raw SQL; zero unsanitised inputsExecute make audit and make lint
3. Human GovernancePre-execution review gate active for all state changesCommander review prior to affirmative “do it” trigger
4. TransparencyAI involvement clearly declared; ATRS record drafted if neededVerify documentation in static/md/
5. Accessibility100% WCAG 2.2 Level AA compliance on all rendered UIRun automated Playwright accessibility audit