Architecture & Docs Overview
Purpose
This page describes the unified approach used by the master framework: implement Tools, Agents, and Workflows to solve platform problems, and expose project-specific extensions (K12, TAP) that use those primitives.
High-level philosophy
- Unified approach: Problems are solved by composing Tools, Agents, and Workflows. Keep each piece small, testable, and well-documented.
- Project-specific surfaces: K12 and TAP provide domain-specific tools and workflows that extend the core framework.
- Project-agnostic components: Examples: Reasoning Engine, Admin tools, database artifacts — document these centrally so they can be reused.
Quick links
Projects:
Core components:
Database:
Deployment & Azure:
Recommended docs structure (what is included here)
- Overview (this page)
- Services & Authentication — Managed Identity-first guidance and APIM patterns
- Environment variables matrix — Common + per-project (skeleton included below)
- Database — ER diagrams, table list, DACPAC deployment flow, migration guidelines
- Reasoning Engine — architecture, inputs/outputs, how to run and test locally
- Admin tools — debugging tools, health checks, and example workflows
- Project pages (K12 & TAP) — tool / workflow docs, test harnesses, and troubleshooting
- Templates & checklists — docs templates, authoring checklist, and linting rules
Env-var matrix (skeleton)
Below is a starter matrix. A dedicated page (architecture/env-vars) holds the full, exportable table and sample .env snippets — see the Environment variables matrix for details.
Common variables
AZURE_SQL_CONNECTION_STRING— Connection string used by all services to reach Azure SQLAZURE_INFERENCE_ENDPOINT— Endpoint for tenant-hosted LLM deployments (Managed Identity recommended)AZURE_CONTENT_SAFETY_ENDPOINT— Content Safety endpoint when usedAZURE_CONTENT_SAFETY_KEY— Optional: content safety API key (fallback only)AUTH_API_BASE_URL— Base URL for auth API used in tests and local development
Per-project variables (examples)
- K12:
K12_DB_SCHEMA,K12_TEST_SERVER_URL,K12_QUEUE_CONNECTION_STRING - TAP:
TAP_API_BASE_URL,TAP_QUEUE_NAME,TAP_STORAGE_ACCOUNT
Tip: All env var definitions should indicate: scope (common/project), required/optional, sample value, and short description.
Database docs (summary)
- Document schema per project and core schema (
Core,Platform) with a short ER diagram and a table list that explains purpose and key columns. - Include DACPAC build/publish steps from
db/sqlproj, seed scripts fromdb/sqlproj/seeds, and the admin DB health-check tool used for runtime SQL validation.
Reasoning Engine & Workflows
- Add an architecture diagram and minimal
how-to-run(local command, example payload, expected result) plus a link to sample tests.
Admin & Debugging Tools
- Catalog admin tools (
packages/platform-runtime/src/tools/admin) with example commands and expected outputs.
Templates & checklists
- Link to Authoring checklist and run the Docusaurus builds (
npm --prefix docusaurus-docs run build:internalandnpm --prefix docusaurus-docs run build:external) to catch broken MDX and navigation regressions.
Next steps
- Environment variables matrix - Complete environment variable reference
- Database overview - Schema structure and ER diagrams
- Reasoning Engine - Architecture and usage guide