Skip to main content

Milestone 3.6 — Validation & safe export

Status: Shipped (preview)
Depends on: M2.3, M3.2, M3.5
Architecture: milestone-3-0-catalog-grounded-ai-architecture.md

Goal

Ensure generated artifacts — from chat, /generate, or composed bundles — are checked before export, regardless of which catalog category or suite produced them.

Deliverables

  • Terraform: brace balance, placeholder checks, minimal block heuristics
  • Kubernetes / YAML: PyYAML parse, Deployment policy hints (resource limits, probes)
  • Unified validation_errors / validation_warnings on:
    • POST /chat/generate
    • POST /templates/render
    • POST /modules/render
  • POST /chat/bundle-zip — ZIP export with manifest.json
  • Chat UI: validation banner + Download ZIP (warn, do not hard-block)
  • Generate UI: validation banner on single-file export

Acceptance criteria

  • Every generatable category runs at least one validation step
  • Validation results returned in API response (validation_errors, validation_warnings, export_ready)
  • Documentation states preview validation is not a production SLA
  • M2.3 “Not yet shipped”: full schema validation (kubeconform, terraform validate) — future hardening
  • M3.0 anti-pattern: unvalidated LLM output — prevented by catalog render + this milestone