|
| 1 | +# CAS Reference Product |
| 2 | + |
| 3 | +## What This Is |
| 4 | + |
| 5 | +A public, production-oriented reference application showing how a CAS workload integrates with Microsoft Foundry Next Gen Agents while running on the `cas-platform` Container Apps foundation. It demonstrates canonical lifecycle events, managed identity, observability boundaries, probes, tests, and a safe local workflow without provisioning Azure resources. |
| 6 | + |
| 7 | +## Core Value |
| 8 | + |
| 9 | +Developers can run and inspect one complete, traceable CAS workflow locally, then deploy the same container through the `cas-platform` interface without changing its security model. |
| 10 | + |
| 11 | +## Requirements |
| 12 | + |
| 13 | +### Validated |
| 14 | + |
| 15 | +(None yet - ship to validate) |
| 16 | + |
| 17 | +### Active |
| 18 | + |
| 19 | +- [ ] Expose a useful workflow API with local and Foundry Next Gen modes. |
| 20 | +- [ ] Emit canonical `cas-contracts` v0.1 lifecycle records with W3C trace context. |
| 21 | +- [ ] Use system-assigned managed identity in Azure and no embedded secrets. |
| 22 | +- [ ] Define OpenTelemetry and Application Insights boundaries. |
| 23 | +- [ ] Provide health, readiness, tests, Docker, CI, architecture, threat model, and local workflow. |
| 24 | +- [ ] Match the workload interface expected by `cas-platform`. |
| 25 | + |
| 26 | +### Out of Scope |
| 27 | + |
| 28 | +- Azure resource deployment - explicitly prohibited for v0.1. |
| 29 | +- Classic Assistants APIs - violate the Foundry Next Gen mandate. |
| 30 | +- Production authorization and persistence - require product-specific policy and data design. |
| 31 | + |
| 32 | +## Context |
| 33 | + |
| 34 | +`cas-contracts` v0.1 is the authoritative lifecycle contract. `cas-platform` hosts a port-8080 container with a system-assigned managed identity and workspace observability. The application must remain useful without Azure access, while making the cloud integration explicit and testable. |
| 35 | + |
| 36 | +## Constraints |
| 37 | + |
| 38 | +- **Identity**: Managed identity only in Azure; no embedded credentials. |
| 39 | +- **Platform**: Linux AMD64 container listening on port 8080. |
| 40 | +- **Cloud safety**: No Azure deployment or resource mutation. |
| 41 | +- **Public repository**: Examples and defaults contain no sensitive data. |
| 42 | + |
| 43 | +## Key Decisions |
| 44 | + |
| 45 | +| Decision | Rationale | Outcome | |
| 46 | +|----------|-----------|---------| |
| 47 | +| Python, FastAPI, and Pydantic | Compact public reference with strong contracts and testability | Pending | |
| 48 | +| Local deterministic adapter by default | CI and contributors can run without Azure | Pending | |
| 49 | +| Foundry project Responses client with agent reference | Demonstrates Next Gen Agent invocation without Classic Assistants | Pending | |
| 50 | +| Production uses `ManagedIdentityCredential` | Deterministic system-assigned identity boundary | Pending | |
| 51 | + |
| 52 | +## Evolution |
| 53 | + |
| 54 | +Review requirements, decisions, and scope at each phase transition and milestone. |
| 55 | + |
| 56 | +--- |
| 57 | +*Last updated: 2026-06-11 after initialization* |
| 58 | + |
0 commit comments