ALPQ

The Ai–Hi Bridge

DRAFT 0.12026-11-11for preliminary review

AI builds, people operate. This draft splits software work into two sides that meet at one crossing point: an Ai side where AI agents write and test with people supervising, and a Hi side where people run what reaches the public with AI assisting. Code crosses one way, people check it in parallel before release, and checks keep running after it ships. GOVW Foundation calls it the Ai –| |– Hi Bridge and follows it for its own sites.

Status: a draft for review, not a standard. Adopting it is voluntary. MUST and SHOULD say what an organization that adopts it does. Builds on: separation of development, test and production (ISO/IEC 27001:2022, control 8.31), the NIST Secure Software Development Framework (SP 800-218), SLSA supply-chain levels, signed commits in Git, and the static and dynamic testing practices described by OWASP. CI/CD/CV means continuous integration, continuous delivery and continuous verification.

1Goals

  1. Use AI as far as the risk is measured: agents do most of the building and testing, at their own pace.
  2. Protect people as far as the cost allows: nothing an AI agent writes reaches the public until people have checked it.
  3. Keep a fault on one side: a mistake or a compromised agent on the Ai side can't reach production on its own.
  4. Leave a record: every change says who wrote it, who checked it and who released it.

Not a goal: keeping AI away from operations. AI assists on the Hi side too; it just doesn't hold the keys there.

2Two sides

Ai sideHi side
Who leadsAI agents, people supervisingPeople, AI assisting
What happensWriting code, tests, static checks, reviewsStaging, human checks, release, running the service
RepositoryIts own repositoryA separate repository that builds production
Production accessNonePeople only
SecretsNone that open productionHeld by people, in a secrets store

3One crossing point

The two sides meet at a single, named crossing point, the Synapse. Everything that crosses goes through it, and it keeps a record.

4The pipeline

Everything that crosses from the Ai side to the Hi side goes through the same six stages. Each kind of change applies them with its own tools; a failure at any gate sends the change back to the start.

flowchart LR
  BUILD[Ai build] --> AICHECK[Ai checks] --> XREPO[X-REPO handoff]
  XREPO --> GATES[Hi gates: verification, testing, security checks]
  GATES --> RELEASE[Release]
  RELEASE --> CV[Continuous verification]
  GATES -. fails .-> BUILD
StageCodeScripts that change live systems
Ai buildAiDEV: agents (and people) write the change on a feature branchThe agent fills in values for an approved template
Ai checksAiQA (automated tests) and AiSAST (static security testing)A dry run against a copy of the target
X-REPO handoff (Synapse)A person moves the reviewed change to the Hi repositoryA person pulls the values and content to the Hi side; template code never crosses
Hi gatesHiQA, HiGorilla, HiDAST on staging (section 6)ScriptCheck (section 6)
Hi releaseA person promotes it to productionA person applies it by typing what the screen shows
Hi continuous verificationThe same checks keep running on the live site (section 7)The run is logged and its result reported back to the Ai side

5Handing changes over

6The Hi gates

Every change passes three kinds of gate on the Hi side before release. They run in parallel where they can, and the change is released only when all pass with no red result; if any fails, it goes back to the start. When the gates cost little to run, restarting is cheaper than arguing.

GateCodeScripts
VerificationHiQA: people confirm the change does what it says, on a staging copy that matches productionScriptCheck: the runner confirms the template is approved byte for byte, the values are allowed and the content files match their hashes; then it shows the plan, and a person reads it before applying. See Safe Script Handoff.
TestingHiGorilla: unguided use by people: real use cases, the look and feel, anything outside the scope of the security tests
Security checksHiDAST: dynamic security testing of the running staging site with open tools; on a cloud host, follow its testing policy first

7Checks that keep running

Release is not the last check. The tests defined at the start run again on the live site, on a schedule, by monitoring crawlers that follow Disclosing Monitoring Bots.

8Who did what

9How GOVW applies it

GOVW Foundation's AI agent, Kai, works on the Ai side: it writes code on its own branches and never merges or releases. A person reviews each change, hands it over to the repository that builds the sites, runs the Hi gates on staging, and releases it. GOVW's ant colony runs the checks that keep going after release; you can watch them at ant0.org.

10Open questions

11References

Credit where it's due: keeping the people who write code apart from the people who release it is an old idea (separation of duties). What this draft adds is giving AI the building side and people the release side. Corrections and earlier work are welcome at security@govw.org.