PlatformArchitectureAI
AI App Builder And GitHub Publisher
Future architecture only. No GitHub publishing workflow is implemented in the
Status
Future architecture only. No GitHub publishing workflow is implemented in the current task.
Role
AI App Builder turns confirmed OS Artifacts into app specs and later code. GitHub Publisher is the future integration boundary that creates branches, opens pull requests, and links deploy previews after explicit user approval.
Proposed Flow
- Alma generates or receives an OS Artifact.
- User pins it to a workspace.
- User chooses Promote to App.
- AI creates an app spec with manifest, route, UI, data, and permission notes.
- User approves repository or branch creation.
- Builder writes files in a controlled scaffold.
- Publisher opens a pull request.
- CI and deploy preview run.
- User confirms app registry installation.
- Audit log records each step and rollback hint.
Default Branch Policy
The default path should be pull request. AI should not mutate production or main branch directly.
Controlled Scaffold
Generated app code should use existing package taxonomy:
- reusable official app candidates under
packages/apps/system-apps - shell-only control surfaces under
apps/os-shell - implementation-neutral protocol under
@prox-os/app-contract - static iframe templates under
@prox-os/app-registry
Future Backend Services
Future apps/api-worker may coordinate:
- GitHub authorization checks
- app spec storage
- artifact storage
- audit sink
- permission policy engine
- publish job status
It should not expose secrets to model context.
Non-goals Now
- No repository creation.
- No branch creation.
- No file-writing backend worker.
- No pull request automation.
- No deploy preview integration.
- No app registry auto-install.