Runtime behavior and operations

Draft 0.1 — for review

Operator experience

  1. The operator uses the current interactive Copilot agent console, already signed in with their own account.
  2. The operator states the repository, demo target and requested change. The console summarizes the intended scope before a cloud write.
  3. The console edits the private repository or demo workspace and reports the diff/plan. It does not receive raw Azure access tokens as prompt content.
  4. The operator reviews each mutating CLI command and explicitly authorizes it. Azure CLI executes under the operator's signed-in identity; there is no unattended deployment identity in this phase.
  5. Validation and deployment outcomes are reported directly. A failed operation is not presented as success and is not retried with broader permissions.
  6. Future hosted multi-user operation requires a separate identity, isolation and approval design before implementation.

Customer-facing flow (future, gated)

Customer users are not enabled for the demo. When enabled in a later phase, an administrator must onboard the customer's Entra tenant and approved scopes. Customer users sign in with that tenant, are mapped to explicitly granted roles, and can see only that tenant's projects and audit history. Azure resource deployment uses an approved delegated scope or a customer-run executor; it does not reuse the customer's interactive token.

Session lifecycle

Deployment lifecycle

In the current phase, the operator console prepares the change and a human reviews every Azure CLI write in context. A future executor must accept an immutable bundle, re-check tests, dependency risk, policy, tenant, allowed scope, expiry, policy version and approval before obtaining a short-lived workload identity token. It must report the actual provider operation and rollback reference.

An approval is invalidated when the source commit, generated artifact, target environment, resource scope or policy version changes. Emergency disablement blocks new approvals and executor starts without deleting evidence.

Auditing and monitoring

Capture authentication outcomes, session creation/cancellation, tool names and typed-input summaries, validation decisions, approval/rejection, scope, artifact digest, deployment result, identity and correlation ID. Keep secrets and access tokens out of logs. Prompt/response storage is off by default; if later enabled, document purpose, access, retention and deletion.

Alert on unexpected tenant IDs, authorization failures, secrets access by non-runtime identities, unusual tool volume, policy bypass attempts, deployment outside the demo scope, and failed credential rotation. Operators need a tested way to stop the service and disable the deployment identity.

Recovery and support

The demo has no production SLA. Document the cluster, static site and Key Vault recovery owners and restore steps before using the platform for external demos. A cluster rebuild must recreate workload identity bindings and namespace policies from reviewed IaC; it must not restore old session workspaces by default. Public documentation remains available independently of the runtime cluster.