# LEGBA And KAE Follow-Through - 2026-07-18

## Brief

The VPS layer moved from "hardening completed" to "repeatable operating pattern established."

## New truths

1. **KAE role split now exists in code.**
   - `full`
   - `watcher`
   - `server`
   - This is the enforcement needed before the laptop and VPS can both run KAE without duplicate scheduled output.

2. **Public subdomains are now first-class system records.**
   - `legba`
   - `proposals`
   - `gaia`
   - Each now has a canonical domain record, service record, nginx definition, and public surface source file.

3. **Public-surface deployment is now registry-driven.**
   - `deploy-public-surfaces.js` reads the domain registry plus fallback surface template and syncs `/var/www/kujenga-public`.

## Why this matters to GAIA

Before this change, DNS could exist before a canonical public surface existed.
That is operational ambiguity.

After this change:

- a public domain is a declared system object
- a public surface is a deployable artifact
- a runtime role is a coded execution choice, not just a plan sentence

## Open infrastructure note

The cloudsky9 GitHub deploy-key path is still failing on direct `git pull` for `/home/kujenga/Kujenga11` with `Permission denied (publickey)`.

That is not a design ambiguity anymore.
It is a concrete infrastructure repair item.
