Skip to content

v1.1.0

Choose a tag to compare

@Sandaal Sandaal released this 24 Nov 02:36
· 16 commits to main since this release

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 eval runs them against the deployed app with its real models and stores each run. --min-pass and --no-regress turn it into a CI gate. aiapp eval --history lists past runs.
    • Where results show: the console's Evals tab and the aiapp_eval_pass_rate metric.
    • Templates: new knowledge-chat, document-extraction and classification apps include starter cases.

    (ADR 0031)

  • MCP gateway:

    • What it does: apps publish their tools.py tools and routes (such as their chat) to MCP clients at /apps/APP/mcp, with mcp_server: in ai-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 APP shows the endpoint, the tools and ready-to-paste client config.

    (ADR 0032)

  • 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, and app.events.ack(batch, group) commits.
  • Dead letters: aiapp dead lists, 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, including api_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 REF checks a reference without showing its value.

    (ADR 0034)

  • 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-config or Helm console:.
    • Audit: sign-ins and actions are recorded in the audit log.
    • Local console: aiapp console gets the same actions.
  • Audit export:

    • Destinations: audit-export.yaml (or Helm auditExport:) 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 audit reads the log with filters, and aiapp audit export shows each sink's status.

    (ADR 0035)

  • 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), and app.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_ENDPOINT set, metrics and logs are exported over OTLP as well as traces.

    (ADR 0036)

  • 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: and events:. 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_id is 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 a tenants: allow-list are supported, and tenant_isolation keeps each tenant's KV, memory and vectors apart, jobs included.
    • New flag: --public-url.

    (ADR 0038)

  • 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 --pytest gets aiapp_client, aiapp_models, aiapp_key and aiapp.
    • Console on the JS SDK: the console is built on the new ConsoleClient in @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