Archetype_Schema_Design
Created: 4/25/2026
Step 2 of the Archetype Builder pipeline. From a completed Discovery brief (archetype_brief_v1 with discovery.completedUtc set), design and register two durable JSON Schema artifacts that the new archetype's skill stack will pin as defaults: a profile schema for durable identity / preferences / inviolables persisted across cycles, and a cycle schema for the per-iteration working artifact with audit fields. Both schemas use JSON Schema draft 2020-12, additionalProperties=false on every object, explicit required arrays, and strict types. Inviolables from discovery become required schema fields with non-overridable descriptions; cycle workflows with approval gates (Martha precedent) get per-item approvalStatus enums plus audit timestamps. Schemas are registered via ARTIFACT_Update op=create with logicalType='schema_openai_structured'. After both register cleanly, advance brief.status from 'schema_designed' to 'app_triage' and hand off.