Repository navigation
v1.1.0
Phase 1.x, the production hardening of v1.0. All nine milestones in the plan, ADRs 0031–0039.
Platform
-
Evaluations:
- Cases: golden cases go in
evals/*.yaml, with checks for contains and not-contains, regex, JSON fields, citations, latency, and a model judge. - Running them:
aiapp evalruns them against the deployed app with its real models and stores each run.--min-passand--no-regressturn it into a CI gate.aiapp eval --historylists past runs. - Where results show: the console's Evals tab and the
aiapp_eval_pass_ratemetric. - Templates: new knowledge-chat, document-extraction and classification apps include starter cases.
(ADR 0031)
- Cases: golden cases go in
-
MCP gateway:
- What it does: apps publish their
tools.pytools and routes (such as their chat) to MCP clients at/apps/APP/mcp, withmcp_server:inai-app.yaml. Clients include Claude, Copilot and IDE agents. - Protections: each call goes through the app's keys or sign-in, roles, quotas and guardrails, and is audited, traced and counted. Tools that need a person's approval are never published.
- Commands:
aiapp mcp APPshows the endpoint, the tools and ready-to-paste client config.
(ADR 0032)
- What it does: apps publish their
-
Partitions and consumer groups:
- Partitions:
topics: { orders: { partitions: 4 } }splits a topic by key. Each key keeps its order, and subscriptions handle partitions in parallel. - Consumer groups:
app.events.fetch(topic, group, member=…)shares a topic's partitions among live members, andapp.events.ack(batch, group)commits.
- Partitions:
-
Dead letters:
aiapp deadlists, shows, replays (after a fix) and purges the records subscriptions gave up on. The console has a tab for them too.(ADR 0033)
-
External secrets:
- References:
${kv:NAME}reads from Azure Key Vault and${vault:MOUNT/PATH#KEY}from HashiCorp Vault. They work wherever a secret name does, includingapi_key_env: "vault:secret/hr#openai". - Sign-in: managed or workload identity, or a service principal, for Key Vault; a token, AppRole or Kubernetes auth for Vault.
- Caching: values are cached for
AIAPP_SECRET_TTL(5 minutes by default), and the last value keeps working if the vault goes down. - Checking:
aiapp secret test REFchecks a reference without showing its value.
(ADR 0034)
- References:
-
Console sign-in:
- Hosting: the server can host the console at
/_console/. Sign-in uses Entra ID or any OIDC provider, through the code flow with PKCE and a sealed session cookie. - Roles: viewer, auditor (adds the audit log), operator (adds replaying or purging dead letters, retrying or cancelling jobs, running cron and syncing sources) and admin. They are mapped from app roles or groups.
- Setup: configure it in
console.yaml,--console-configor Helmconsole:. - Audit: sign-ins and actions are recorded in the audit log.
- Local console:
aiapp consolegets the same actions.
- Hosting: the server can host the console at
-
Audit export:
- Destinations:
audit-export.yaml(or HelmauditExport:) sends the audit log to a SIEM over syslog (RFC 5424 over TCP, TLS or UDP), HTTP (JSON lines or Splunk HEC) and OTLP logs. - Delivery: records are sent in batches, retried, and counted.
- Privacy: PII is redacted, and listed fields are dropped.
- Commands:
aiapp auditreads the log with filters, andaiapp audit exportshows each sink's status.
(ADR 0035)
- Destinations:
-
Observability:
- Spans from handlers:
app.span("name", key=value)adds a step to the request's trace. Spans nest, and model, storage and tool calls inside a span appear as its children. - Trace context: handlers get the request's trace context (
req.traceparent), andapp.trace_headers()passes it to services the handler calls. - Jobs are traced: ingestion jobs (per file: parse, embed, store) and connector syncs are traced.
- OTLP export: with
OTEL_EXPORTER_OTLP_ENDPOINTset, metrics and logs are exported over OTLP as well as traces.
(ADR 0036)
- Spans from handlers:
-
Guardrail providers:
presidio: redacts names, places and other entities with Microsoft Presidio (spaCy NER), running in the system worker.azure-content-safety: checks text by harm category and severity, against custom blocklists, and with Prompt Shields. It signs in with a key or Entra ID.- Job results and published records: output guardrails can now check these too, with
jobs:andevents:. A blocked job fails without retries.
(ADR 0037)
-
Auth and pages:
- Page sign-in: built-in pages sign people in with the OIDC code flow and PKCE when
auth.oidc.client_idis set, with a sealed, app-scoped cookie session. Cross-site calls made with the cookie are refused. - Token introspection: opaque access tokens are validated through RFC 7662 introspection.
- Multi-tenant Entra apps: a
{tenantid}issuer and atenants:allow-list are supported, andtenant_isolationkeeps each tenant's KV, memory and vectors apart, jobs included. - New flag:
--public-url.
(ADR 0038)
- Page sign-in: built-in pages sign people in with the OIDC code flow and PKCE when
-
Platform:
- Windows memory limits: a job object per worker (started suspended so the interpreter is inside it) caps its commit, and the memory watcher replaces workers over the limit, counting the whole job. Closing the job ends the worker.
- pytest fixtures:
aiapp test --pytestgetsaiapp_client,aiapp_models,aiapp_keyandaiapp. - Console on the JS SDK: the console is built on the new
ConsoleClientin@aiapp/client. - Browser tests: Playwright tests cover the built-in pages,
<aiapp-chat>and the console (scripts/e2e-browser.sh; in CI on tags and manual runs).
(ADR 0039)
-
Docker image: published to
ghcr.io/sandaal/aiapp-server(amd64 and arm64) by the new publish workflow, which can also publish npm and VS Code once their tokens are set.
Install: https://sandaal.github.io/ai-app-server/install/ · Checksums: SHA256SUMS