Build Log · July 27, 2026

Mission Foundry — Milestone 1

Missions now go through a real, stewarded shaping process — Spark, structured AI role findings, a synthesized Blueprint, a server-enforced Definition Gate, and seed Workpieces — before they can go live.

  • Alloy
  • Feature
  • Schema
  • AI
lifecycle states (was 4)
8

lifecycle states (was 4)

new DB tables
3

new DB tables

Mission Shaping AI roles
7

Mission Shaping AI roles

blocking bugs caught by adversarial audit
2

blocking bugs caught by adversarial audit

Timeline

  1. Start

    Charge received

    Full Mission Foundry design doc pasted; scoped to Milestone 1 (owner-side only) per explicit instruction to build the complete milestone, no deferral

  2. +20m

    Crucible checkpoint run

    Architect-persona Council pass on Milestone 1 scope before touching schema — flagged naming collision, transactional risk, gate-bypass risk

  3. +40m

    Research pass

    Discovered Commons Mission UI already exists; governance doc's 'no authorization backstop' claim was stale, already resolved same-day

  4. +90m

    Schema + queries + actions + AI engine + UI built

    All Milestone 1 pieces: lifecycle migration, Blueprint/Finding/Gate tables, Server Actions, Anthropic call engine, 4 new/rewritten pages

  5. +150m

    Verification

    tsc clean, npm run build clean, end-to-end activation rehearsal passed against live DB, real AI call path confirmed reaching Anthropic

  6. +180m

    Adversarial audit

    Independent agent found 2 blocking bugs (silent finding-decision no-op, unwired rate limiter) + 2 minor — all fixed and re-verified before close

What shipped

  • Mission lifecycle widened from 4 states (draft/active/paused/archived) to 8 (added spark/shaping/ready/achieved/retired), additive-only, zero backfill needed for the 6 real existing Mission rows

  • missions.origin column (workbench | commons_propose) — only 'workbench' ever written this milestone

  • 3 new tables: mission_blueprints (one canonical synthesized doc per Mission), mission_shaping_findings (structured Fact/Evidence/Assumption/Question/Risk/Decision/Contradiction/Proposed-Workpiece findings from 7 AI roles), mission_definition_gate_results (audit trail of Gate evaluations — never the enforcement mechanism itself)

  • Mission Pipeline page (/missions) — rewritten from a flat list into a lifecycle-column board

  • Spark capture (/missions/new) — one required question, everything else optional

  • Mission Shaping workspace (/missions/[missionId]/shape) — 7 AI roles (steward, researcher, community_voice, skeptic, community_developer, builder_operator, trust_safety), real Claude calls with 3-layer parse/repair/fallback, live Blueprint synthesis, seed Workpiece generation, Definition Gate panel, Activate Privately

  • Mission Definition Gate — 6 server-enforced checks (legible/grounded/bounded/stewarded/actionable/observable), recomputed fresh on every transition attempt, never a cached boolean

  • First-ever Anthropic API call in Alloy (lib/mission-shaping-engine.ts) — AI Route Gate applied for real

  • End-to-end activation rehearsal script (scripts/rehearse-mission-foundry-activation.mjs) proving Spark->Shape->Accept->Seed->Gate->Activate against the real live database