Design the production boundary

Translate the qualified workflow and mechanism choices into states, contracts, trust boundaries, failures, and recovery behavior.

Self-directed lesson

Field question
Where does evidence become state, where is authority checked, and how does the system fail safely?
Working artifact
Bounded system design packet
Effort
2–3 hours

You will learn

  • How domain state and workflow state remain independent of model output.
  • How context, tools, effects, and human review cross trust boundaries.
  • How retries, idempotency, readback, rollback, and disable paths shape the design.

Field practice

  1. Draw the decision route from source evidence to trusted effect.
  2. Define state transitions, contracts, failure modes, and telemetry for the smallest useful slice.
  3. Bind each model-visible capability to software-enforced scope and recovery.

Before you begin

Bring an approved workflow boundary, mechanism records, data sources, effect limits, and accountable owners.

Learning objectives

  • Model domain state independently from model output and orchestration state.
  • Define typed boundaries for context, tools, effects, human review, and source-of-truth readback.
  • Design retries, idempotency, rollback, disable, and recovery before implementation.

Core lesson

What you need to know

01

Model the system that must remain true

Begin with domain identities, states, transitions, and invariants. A model response may propose a classification or action, but trusted software decides whether it is structurally valid, current, authorized, and safe to apply. Keep workflow state, evidence maturity, proposal state, human disposition, currency, and readiness orthogonal.

For complex systems, use a typed dependency graph to trace source evidence, decisions, artifacts, and downstream effects. The graph is a derived navigation and change-intelligence layer, not an authorization system. Every edge needs provenance, currentness, and a typed relationship so selective propagation can be tested.

02

Draw trust and effect boundaries

Mark where untrusted user input, retrieved content, model output, tools, credentials, and systems of record cross boundaries. Recheck caller identity, tenant, scope, policy revision, approval freshness, and capability version at the effect boundary. A prompt, tool description, or agent plan cannot grant authority.

Specify failure behavior for timeouts, malformed output, duplicate requests, partial effects, stale evidence, concurrent changes, unavailable dependencies, and failed readback. Safe design includes interruption and recovery paths, not just a happy-path sequence diagram.

Bind context to the decision route. For every source, record purpose, source authority, label or expected-output authority, preparation lineage, version and freshness, restricted fields, retention, quality checks, and behavior when required context is missing or contested. Derived context may support a decision; it does not silently become a system of record or permission source.

03

Bind the smallest useful slice

Describe components, contracts, telemetry, and release tests for one vertical slice. Avoid a framework-first topology. The design is complete when a reviewer can trace evidence to decision, authorization, effect, verification, and rollback for the slice.

Worked field case

Recommendation-only denial service

A service classifies denials, retrieves cited evidence, proposes a correction, and hands it to the existing claims workbench.

Evidence available

  • Claims and encounter data remain systems of record.
  • The model can read a bounded evidence bundle but cannot submit claims.
  • Proposed design requirement: any future submission capability would require a fresh specialist approval record and a trusted effect-time recheck; the current candidate has no submission capability.

Reasoning path

  1. Model case, evidence bundle, recommendation, review disposition, and readback as versioned records.
  2. Use typed graph edges to connect evidence and decisions to affected artifacts without granting authority.
  3. Make duplicate recommendation requests idempotent and define stale-evidence, timeout, and rollback paths.
Result

The design preserves the existing authority boundary while making model behavior observable and replaceable.

Practice exercise

Design one vertical slice

Use the mechanism selected in Mission 4 and follow one case from evidence ingestion to verified outcome.

  1. Define identities, states, invariants, typed dependencies, and a decision-bound data/context contract.
  2. Draw data, model, tool, approval, effect, and source-of-truth boundaries.
  3. Specify contracts, telemetry, failures, retries, duplicate safety, rollback, and disable.
  4. List exact release tests for the slice.
Keep

A bounded system design packet another team can implement without inventing authority or recovery behavior.

Review your work

Field rubric

  • Canonical state does not live in prompts or model output.
  • Every consequential effect has a trusted authorization and verification boundary.
  • Dependency edges and context sources are typed, current, provenance-bound, and non-authoritative.
  • Failure, rollback, and disable paths are concrete.

Complete when

  • One vertical slice is traceable from source evidence to readback.
  • All trust boundaries and effect preconditions are explicit.
  • Release tests cover the failure paths as well as success.

Check your understanding

Could the system still preserve authority and recover if every model response were wrong?

Working template

Download the mission artifact, complete it with source evidence, and review it against the rubric above.

Download Bounded system design packet template

Guided study and progress

Open this mission in the guided school to confirm the exercise and rubric, save completion in this browser, and resume the ten-mission path.

Open guided mission

Compare and go deeper

This lesson is self-contained. Compare your work with the calibrated answer, then use the attributed references when you need governed detail or additional implementation practice.

Annotated answerFDE Guide reference ↗Attributed technical depth ↗