0% read on this device
Browse the curriculum

Start Here

Vision

First Principles

Operating Model

Domain Model

Agent Factory

Runtime Architecture

AI Engineering

Autonomous Workflows

Verification & Delivery

Factory Platform

Quality Engineering

Security & Governance

Case Studies

Labs

Interview Practice

Research Journal

Reference

Curriculum/Factory Platform/A rapid review of the chapter’s existing Quick Read, principles, definitions, lessons, and review material.
Factory Platform15 min readchapterQuick Read

Workflow and Event Contracts, Schema Evolution, and Factory Storage

Define the durable contracts that connect triggers, workflow state, asynchronous events, artifacts, evidence, and retrieval stores.

Status: Review readyRisk: highLifecycle: plan · execute · verify · learnContent reviewed 2026-08-30Maturity guide →
Claim boundaryThis is curriculum guidance. It does not by itself prove a production implementation.
study mode

A rapid review of the chapter’s existing Quick Read, principles, definitions, lessons, and review material.

Quick Read

The chapter in one pass.

~3 min
  • Purpose: Define the durable contracts that connect triggers, workflow state, asynchronous events, artifacts, evidence, and retrieval stores.
  • Best for: Platform, data, runtime, and integration architects.
  • Prerequisites: Runtime Orchestration and State Machines.
  • Reading time: 15 minutes.
  • You will learn: How to version workflows and events, evolve schemas, compensate partial effects, and choose authoritative versus derived storage.
  • Keep three ideas: events are observations, not automatic authority; schema evolution is a rollout; and each store needs an explicit truth boundary.
Whiteboard exercise

Reconstruct and defend this chapter’s architecture.

Reconstruct the architecture, name each boundary, and defend the tradeoffs.

platformoperations15 min chapter
Open the source exercise

Connect a repository webhook, worker queue, artifact store, deployment provider, evidence store, search index, and analytics warehouse. Add duplicate and out-of-order events, a schema upgrade, and an ambiguous publication. Mark truth and reconciliation boundaries.

3. Enduring Principle

Version the workflow definition

A workflow contract or DSL declares nodes, inputs, outputs, dependencies, triggers, timeouts, retries, budgets, cancellation, compensation, human gates, completion states, and required evidence. Running WorkOrders remain bound to their approved version unless an authorized migration creates a new decision and replay-safe transition.

Treat triggers as intake, not authority

Schedules, webhooks, messages, API calls, and repository events create or update proposed work through authenticated, idempotent intake. Admission verifies current owner, scope, policy, risk, readiness, and budget before execution.

Use typed event envelopes

Every event includes canonical type and version, event and correlation identity, producer identity, tenant, subject, causation, occurred and received times, payload schema, integrity, and trace context. Consumers deduplicate and tolerate defined ordering. Unknown incompatible versions fail visibly.

Evolve schemas through compatibility windows

Additive changes usually precede consumer migration; semantic changes require explicit new versions. Producers and consumers advertise supported ranges. Backfill, dual-read or dual-write, validation, cutover, and contraction are monitored states rather than one deployment step.

Compensate partial effects explicitly

Distributed workflows cannot assume global rollback. Sagas record completed effects and approved compensations. Compensation is a new action with its own authority and failure path. Reconciliation handles ambiguous effects whose result is unknown.

Assign each store a truth boundary

StoreAppropriate contentImportant limit
Transactional control storeAuthority, state, policy decisions, leases, approvalsAvoid large unbounded artifacts
Event log or message brokerDurable facts and asynchronous deliveryDelivery does not equal acceptance
Object or artifact storeLogs, diffs, test output, packages, evidence blobsMetadata and digest must remain authoritative elsewhere
Search indexDiscoverable projectionsDerived, stale, rebuildable
Vector databaseSemantic retrieval candidatesSimilarity is not authority or evidence
Analytics warehouseAggregates and trendsDelayed projections cannot drive immediate authority blindly

8. Notes and lessons learned

An event is evidence that a producer reported something. The control plane still decides whether that report is authentic, current, relevant, and sufficient for an authoritative transition.

9. Interview and discussion questions

  1. How do you migrate an active workflow version?
  2. Why is exactly-once delivery not the same as exactly-once outcome?
  3. What belongs in the event envelope?
  4. When should a vector database be rebuilt?
  5. How does compensation differ from rollback?
External review

Review this chapter.

Challenge a claim, boundary, missing failure mode, unclear term, or unsupported evidence statement.

  • Claim
  • Boundary
  • Failure
  • Evidence