Architecture overview
Draft 0.1 — for review
Goals and non-goals
The goal is a safe way to explore ideas, make code changes in an isolated workspace, and deploy through a distinct, reviewable path. In the initial phase, the operator uses this interactive Copilot agent console as the build/deploy interface. The model must not receive raw cloud tokens or have an unattended deployment identity.
This is a demo platform. It must not host production workloads or customer data. Initial testing uses synthetic data and a dedicated demo scope. Customer-tenant connectivity is a future capability, not an assumed permission. A separate hosted chat/API and Copilot SDK service are deferred until review establishes a need for multi-user or unattended operation.
Non-goals for the first reviewed increment:
- Autonomous changes to a customer tenant or production subscription.
- A general-purpose shell exposed to the model.
- Long-lived personal access tokens, client secrets, or shared credentials in agent pods.
- Cross-customer memory, retrieval, files, logs, or workspaces.
Logical architecture
| Component | Responsibility | Must not receive |
|---|---|---|
| Agent console (current) | Provide the operator interface for design, repository edits and explicitly reviewed CLI deployment steps | Raw access tokens in prompts or source |
| Future web chat and API | Authenticate multiple operators, establish tenant context, create conversations and stream results | Cloud deployment credentials |
| Tenant registry | Master approved organizations, tenant IDs, membership, allowed scopes, status and policy version | Secrets or unrestricted user-supplied tenant context |
| Future orchestrator | Apply policy, select a bounded agent session, maintain conversation metadata and audit events | Broad resource permissions |
| Code agent | In the current phase, work through the interactive agent console; a future hosted SDK worker uses mode: "empty" and explicitly registered tools |
Azure deployment identity, arbitrary shell, other tenants' memory |
| Validator | Run deterministic tests, policy checks and artifact inspection outside the model's authority | Ability to approve its own findings |
| Approval service | Bind a human approval to an exact plan, artifact digest, tenant, scope and expiry | Authority to alter the approved artifact |
| Deployment executor | Apply only an approved, validated plan using a dedicated workload identity | Copilot token or interactive user credentials |
| Audit and telemetry | Record actor, tenant, tool, decision, plan/artifact digest, target scope and outcome | Access tokens, secret values, prompt content not required for audit |
Trust boundaries
- The browser is untrusted. The API validates the signed identity token and derives the actor and tenant from claims; it never trusts a
tenantIdsupplied in a request body. - Each conversation runs in a disposable, isolated workspace. Workspace identity and tenant binding are assigned server-side.
- Model output is untrusted input. Tool schemas, policy checks, file-path restrictions and deterministic validation are enforced outside the model.
- The deployment executor is a separate identity and process. It accepts an immutable approved artifact, not free-form instructions or model-generated credentials.
- Customer subscriptions are separate security boundaries. Any future delegation is explicit, scoped, revocable and audited.
Hosting topology
For now, the operator drives build and deployment from the current interactive Copilot agent console. Azure CLI remains signed in as the operator; access tokens are not read out or passed as prompt text. A cloud write is still privileged: review each target and command before execution, and avoid broad role assignments. No unattended deployment service principal or hosted chat/API is part of this phase.
The existing AKS cluster is a later demo runtime option, not the current operator interface and not a production availability design. If a hosted agent is approved later, place it in a dedicated namespace with separate service accounts and workload identities per component; the code agent should have no public ingress. The public architecture site is a separate, static-only Azure Static Web App and contains sanitized material only.
Each agent session should run in a short-lived workspace with CPU/memory limits, a read-only root filesystem, a non-root identity, no privileged mode, restricted network egress, and a hard lifetime. Do not mount the Kubernetes service-account token unless a component explicitly needs it. Prefer one worker per session over a shared mutable pod when concurrency or multiple operators are introduced.
Cloud deployment flow
- The operator uses the current agent console and reviews the target tenant, subscription/resource group, repository and requested change.
- The console edits the private repository or demo workspace. Tool calls are explicitly scoped; no raw Azure token is returned to the model.
- Before any cloud write, the operator reviews the exact CLI action, target and expected effect. The operator's signed-in Azure CLI session performs the operation; there is no unattended deployment identity in this phase.
- Validate code, dependencies, IaC policy and target scope before deployment. Report failures clearly; never treat a plan as a successful deployment.
- Record the change, operator, target scope, command/plan summary, result and rollback reference in the review record.
- If a future hosted executor is approved, require deterministic validation and a separate human approval bound to an immutable plan/artifact digest, target tenant/scope and expiry.
For code publishing, prefer a GitHub App restricted to the selected repository or GitHub Actions OIDC. Do not give the model a user PAT. Protect deployment environments with required reviewers and branch protection.
Availability and recovery
The first increment is single-region demo infrastructure with no production SLA. Persist only state needed to resume a demo; expire workspaces and conversation data by default. Backups and cross-region recovery are not enabled until data classification, retention and restore requirements are reviewed. A failed deployment must leave the prior workload version available and produce a human-readable failure record.
Current implementation boundary
Repository code is a prototype. It does not yet implement the full orchestrator, tenant registry, validator, approval service, deployment executor, or end-to-end identity flow described here. The current agent console is the operator path; design review will determine whether a hosted runtime is needed before building one.