Skip to content

AI engineering & delivery

Start with the work.

Understand how an AI system works, or plan its requirements, capacity, deployment and cost. These illustrative patterns use synthetic assumptions; select a stage to inspect its responsibilities and controls.

System pattern

One request. Six stages.

Follow a support draft from input to an accepted result. Select a stage for detail.

Permissions: the application, data sources and tools enforce access. A prompt cannot grant permission.

Current path: Chat → reviewed draft. A reviewer accepts and sends the draft; acknowledgement is not completion.

Read the request path in order. Data and control relationships are below.

Data foundation

Source records → preparation when needed → optional derived stores → authorized reads. Ingestion and serving have separate contracts.

Security, evaluation & operations

Untrusted input, data permissions, tool authorization and recovery apply across all six stages, alongside evaluation, cost and operating ownership.

Path and trust boundary details

The client, application, data sources and model provider can have different owners. Every crossing needs an identity, permission decision, protected payload, retention rule and accountable owner. A logical stage may share a process with its neighbours.

Untrusted input passes admission and output checks; a reviewer accepts and sends the draft. Acknowledgement is not completion.

View link and preferences

View preferences are remembered on this device. Share links include navigation only; notes and numeric assumptions stay in this session.

Assumptions, limitations & sources

Illustrative support-draft learning exercise with synthetic data. Proposed controls and targets require implementation and measurement; this map does not establish production readiness or independent assurance. The shared foundation, predictive ML and generative AI views describe logical responsibilities. Agents and tools describes bounded execution, approval and recovery as a separate interactive simulation.

Shared foundation — complete text record

Illustrative support-draft architecture. Synthetic assumptions, not a production benchmark. Selected input: Chat. Action boundary: reviewed suggestion only.

Selected input contract: Authenticated session; bounded message/history; cancellation and streaming response contract. First token and completed answer are different events. Failure to plan for: Session identity does not establish source-data permission. Expired sessions, excess history and partial/canceled streams need explicit states.

Input channel contracts

Chat

Authenticated session; bounded message/history; cancellation and streaming response contract. First token and completed answer are different events. Failure to plan for: Session identity does not establish source-data permission. Expired sessions, excess history and partial/canceled streams need explicit states.

API

Versioned schema, tenant/request ID, authentication and deadline; idempotency key for retriable mutations. Failure to plan for: Reject invalid or oversized payloads; bound rate/concurrency and document timeout/retry behavior.

File

Authorized object reference, checksum, content type, schema/version, uploader, classification and size limit. Failure to plan for: Unsafe or malformed content goes to quarantine. Avoid moving large file bodies through every message.

Batch

Manifest, schedule, partition key, checkpoint, completion deadline and result location. Failure to plan for: Define partial completion, resume, duplicates, late data and reconciliation; acknowledgment does not mean completed batch.

CDC

Source database, change position/version, operation, key, schema and deletion semantics; distinguish snapshot from ongoing changes. Failure to plan for: Detect lag, schema changes, gaps and duplicates; define replay retention and propagate deletions.

Webhook

Verified signature, replay protection, event ID, source and delivery attempt; acknowledge promptly for asynchronous work after verification. Failure to plan for: Reject invalid signatures/replays before enqueueing; repeated deliveries require idempotent handling.

Stream

Event schema, event/processing times, partition/order key, retention and replay; use retained streams when independent consumers/replay/windowing justify them. Failure to plan for: Define late/out-of-order handling, consumer lag and partition skew; a broker is not required for every input.

Client, application, source systems and model provider may be separate trust boundaries. Identify identity, permission, transport, retention and ownership at every crossing. A prompt is not authorization.

SF1 · Inputs

What triggers the work, and what arrives? Handoff: A channel submits a defined payload to Admission. Intake acknowledgment is separate from task completion.

Receive a defined input

Turn a trigger into a request with an explicit delivery contract.

Boundary & controls

Bound history, payload and file size; verify integrity/signature as applicable. Protect transport and state retention ownership.

Contracts, evidence & ownership

Reference: SF1-INPUT

When needed
Every task starts through chat, API, file, batch, CDC, webhook or stream.
Inputs
Versioned payload or authorized object reference; channel identity, correlation ID, classification and deadline.
Outputs
An intake envelope for Admission; acknowledgment, cancellation and completion states remain distinct.
Metrics
Offered requests, invalid inputs, delivery duplicates, payload lengths and source lag.
Evaluation evidence
Test each selected channel's malformed, duplicate, late and canceled cases with synthetic payloads.
Failure & fallback
Unsafe files, replay or missing history: reject or quarantine with a clear status rather than silently proceeding.
Cost drivers
Ingress, parsing, object storage and delivery operations.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Messaging distinctions; Microsoft: Queue-based load leveling

SF2 · Admission

Who may submit what, and at what rate? Handoff: Authenticate, validate and admit bounded work before the business workflow runs.

Authenticate and authorize

Establish who is requesting work and what they may submit.

Boundary & controls

Verify tokens and tenant boundaries; least privilege, secret rotation and audit. Source and action services enforce their own authorization.

Contracts, evidence & ownership

Reference: SF2-IDENTITY

When needed
At external intake and again when crossing a new protected boundary.
Inputs
Verified identity claims, tenant, request scope and current permission policy.
Outputs
A scoped principal or explicit rejection; no credentials travel as ordinary task content.
Metrics
Authentication/authorization failures, cross-tenant denials and policy-version coverage.
Evaluation evidence
Negative permission, expired identity and tenant-isolation cases; inspect redacted audit evidence.
Failure & fallback
Missing or stale authorization: fail closed and give a safe status; never delegate authority to a prompt.
Cost drivers
Identity checks, policy administration and security audit retention.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Model data and privacy considerations

Validate schema, scope and duplicates

Reject malformed or mis-scoped work before it consumes downstream capacity.

Boundary & controls

Schema/version, size and business checks; safe parsing; tenant binding and bounded deduplication retention.

Contracts, evidence & ownership

Reference: SF2-VALIDATE

When needed
After identity verification and before routing or enqueueing.
Inputs
Intake envelope, versioned schema, tenant, integrity metadata and deduplication key.
Outputs
Validated typed request or structured validation error with a correlation ID.
Metrics
Invalid/oversized requests, duplicate suppression and validation latency.
Evaluation evidence
Malformed, oversized, mismatched-tenant, repeated and incompatible-version cases.
Failure & fallback
Poison or incompatible payload: reject/quarantine; preserve safe diagnostic metadata without raw sensitive content.
Cost drivers
Validation runtime, quarantine storage and deduplication state.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Messaging distinctions; AWS: Timeouts, retries and backoff with jitter

Admit bounded work

Accept only work the system can process within its contract.

Boundary & controls

Per-tenant rate/concurrency, payload/token budgets, cancellation and bounded queue age; constrain dependency load.

Contracts, evidence & ownership

Reference: SF2-ADMIT

When needed
At every externally reachable or asynchronous intake.
Inputs
Validated request, principal, tenant, workload estimate, deadline and current capacity policy.
Outputs
Admitted work or an explicit reject/defer status with retry semantics.
Metrics
Offered/admitted/rejected rate, active work, oldest-work age and deadline misses.
Evaluation evidence
Realistic offered-arrival burst, fairness, cancellation and deadline tests.
Failure & fallback
Overload: reject, clearly defer or use an acceptable cheaper path. Queueing cannot repair an infeasible interactive deadline.
Cost drivers
Admitted work, gateway/runtime and queue operations.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Queue-based load leveling; MIT: Queueing models lecture; Google SRE: Implementing SLOs

SF3 · Business workflow

Route and coordinate work within explicit limits. Handoff: Route to rules, prediction or generation; queueing and model-directed loops are conditional. Read-only tools return observations. Effectful proposals cross Decision and action.

Business rules and routing

Choose and coordinate the method that fits the business request.

Boundary & controls

Explicit route conditions, attempt/call budget, cancellation and compatible versions; preserve correlation and retention rules.

Contracts, evidence & ownership

Reference: SF3-ROUTE

When needed
Every admitted task; model selection is one routing decision.
Inputs
Validated request, permissions, acceptance policy, authorized data and route/configuration version.
Outputs
A bounded rules, prediction, generation, queue or agent task with a deadline and fallback.
Metrics
Route/model-path fraction, per-route quality, call fan-out, retries and latency.
Evaluation evidence
Compare routes with baseline on representative classes; test escalation and unavailable dependencies.
Failure & fallback
Misrouting or dependency failure: bounded retry, simpler acceptable path or clear review/failed status.
Cost drivers
Application runtime and downstream work selected by routing.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning; AWS: Timeouts, retries and backoff with jitter; Anthropic: Building effective agents

Optional bounded asynchronous work

Decouple accepted work from processing when the completion contract allows it.

Boundary & controls

Bound depth/age, expiry, backpressure, retry/dead-letter policy and idempotent consumers; no business exactly-once claim.

Contracts, evidence & ownership

Reference: SF3-QUEUE

When needed
Durable asynchronous commands need buffering, retry or replay; an ordinary request may suffice otherwise.
Inputs
Validated task or object reference, identity scope, correlation/deduplication ID, deadline and schema version.
Outputs
Explicit acknowledgment, processing state and eventual completion/failure; repeated delivery remains possible.
Metrics
Oldest-work age, depth, offered/processed rates, dead letters and recovery/drain time.
Evaluation evidence
Burst recovery, duplicate/poison delivery, consumer crash and deadline-expiry cases.
Failure & fallback
Arrival rate exceeds capacity: backlog grows; reject/defer safely and reconcile poison work with an owner.
Cost drivers
Message operations, retained payload/state and processing reserve.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Queue-based load leveling; Microsoft: Messaging distinctions; AWS: Timeouts, retries and backoff with jitter

Optional bounded model-directed loop

Let a model choose limited steps only when a fixed workflow is insufficient.

Boundary & controls

Explicit stop conditions and budgets; read-only observation tools; generated arguments are untrusted. A prompt cannot grant permissions.

Contracts, evidence & ownership

Reference: SF3-AGENT

When needed
A baseline comparison justifies dynamic coordination; explore the agent Build and Run views for responsibilities and synthetic execution scenarios.
Inputs
Task/outcome criteria, scoped observations, durable state, allowed tools and time/call/spend budgets.
Outputs
A validated result, abstention or effectful proposal sent through SF5; verified action receipts may resume the loop.
Metrics
Steps/attempts, budget exhaustion, completion quality, unsafe proposals and loop/recovery rate.
Evaluation evidence
Fixed-workflow comparison, adversarial observations, repeated-step, budget and timeout-after-action scenarios.
Failure & fallback
Loop, unsafe proposal or uncertain action state: stop, preserve state and reconcile or request review. Tool success alone is not completion.
Cost drivers
Model/tool fan-out, durable state and correction/review effort.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Anthropic: Building effective agents; AWS: Timeouts, retries and backoff with jitter; FinOps Foundation: FinOps for AI

Read-only allowlisted tools

Provide scoped observations without granting the agent side-effect authority.

Boundary & controls

Allowlist tools/destinations, enforce authorization at gateway, validate arguments/results and protect secrets. Route effects through SF5.

Contracts, evidence & ownership

Reference: SF3-TOOLS

When needed
A selected loop needs permitted external information.
Inputs
Typed tool request, scoped principal, deadline and validated arguments.
Outputs
Bounded observation with source, timestamp and typed error; no committed business change.
Metrics
Tool latency/errors, denials, result size, timeouts and calls per outcome.
Evaluation evidence
Permission-negative, malformed-argument, hostile-observation and unavailable-tool tests.
Failure & fallback
Untrusted content or failed lookup: reject/label the observation and stop or use a bounded fallback.
Cost drivers
External read API usage, application runtime and returned context tokens.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Anthropic: Building effective agents; AWS: Timeouts, retries and backoff with jitter; Microsoft: Model data and privacy considerations

Durable workflow state

Record enough progress to resume and reconcile work safely.

Boundary & controls

Authorized state access, tenant isolation, concurrency/version checks and idempotent transitions; define RTO/RPO and deletion.

Contracts, evidence & ownership

Reference: SF3-STATE

When needed
Work crosses requests, retries, review pauses or optional agent steps.
Inputs
Task/version IDs, validated transition, checkpoint, action receipt and permitted retention metadata.
Outputs
Durable current state, attempt history and explicit pending/completed/failed/canceled status.
Metrics
Transition failures, stuck-work age, reconciliation lag and recovery time.
Evaluation evidence
Crash/resume, duplicate transition, concurrent worker and compatible-version restoration exercises.
Failure & fallback
Conflicting or uncertain state: halt duplicate work and reconcile against the action system before retry.
Cost drivers
State writes/reads, audit history, backup and recovery work.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: AWS: Timeouts, retries and backoff with jitter; Anthropic: Building effective agents; Google SRE: Implementing SLOs

SF4 · Intelligence

Use the simplest justified method. Handoff: Rules, prediction or generation return results to validation. An optional agent can request a bounded generation call and inspect its result.

Deterministic execution

Use explicit rules, SQL or search where they can meet the outcome.

Boundary & controls

Version rules, enforce data permissions and bound runtime; preserve reproducible decision evidence.

Contracts, evidence & ownership

Reference: SF4-RULES

When needed
The task can be expressed and checked without learned prediction or generation.
Inputs
Validated request, authorized records and versioned business rules.
Outputs
Typed deterministic result or explicit no-match/failure status for SF5 validation.
Metrics
Coverage, rule errors, accepted outcomes and complete-result latency.
Evaluation evidence
Boundary cases and regression examples against the same task rubric as more complex methods.
Failure & fallback
No applicable rule or conflicting data: abstain or route to an approved fallback.
Cost drivers
CPU/database work and rule maintenance.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning

Predictive inference

Return a task-specific class, score, forecast or ranking.

Boundary & controls

Feature compatibility, data access, bounded runtime, version pinning and threshold/abstention policy.

Contracts, evidence & ownership

Reference: SF4-ML

When needed
A learned prediction improves the defined task over a simple baseline; explore the Predictive ML Build and Run views for the lifecycle.
Inputs
Validated authorized features, feature/schema/model versions and prediction contract.
Outputs
Typed prediction with relevant calibrated uncertainty/abstention policy and provenance.
Metrics
Task metric by relevant slice, calibration where meaningful, drift, latency and throughput.
Evaluation evidence
Held-out representative data, leakage checks, baseline comparison and version-specific workload benchmark.
Failure & fallback
Missing/drifted features or model outage: abstain, use an acceptable baseline or request review.
Cost drivers
Inference compute, feature retrieval, monitoring and correction. CPU/GPU selection requires a benchmark.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning; NVIDIA: LLM benchmarking concepts

Bounded generation

Produce a draft only when generation adds value to the task.

Boundary & controls

Context/output/time/call limits, scoped data and processing/retention policy; model text does not authorize actions.

Contracts, evidence & ownership

Reference: SF4-GEN

When needed
Free-text synthesis is needed and evaluated; retrieval and tuning remain conditional.
Inputs
Authorized context, task instructions, prompt/model/data versions, schema and length/time limits.
Outputs
Draft or typed failure/abstention, with versions and evidence references when required.
Metrics
TTFT, inter-token/full latency, length distribution, task quality, truncation and input/output usage.
Evaluation evidence
Rubric and baseline comparison; groundedness where relevant, hostile-context and realistic-length cases. Self-reported confidence is not calibrated probability.
Failure & fallback
Unavailable model, timeout or bad/truncated output: bounded retry, abstention or reviewer fallback.
Cost drivers
Billed input/output tokens or dedicated serving capacity, plus evaluation and correction.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: NVIDIA: LLM benchmarking concepts; Google: Rules of Machine Learning; Microsoft: Model data and privacy considerations

SF5 · Decision and action

Check what may be accepted, reviewed or committed. Handoff: Validated suggestions can become outcomes. Side effects require downstream authorization and idempotency, plus review where policy requires it. Verify action receipts before an agent continues.

Output and policy validation

Check whether a result or proposal may proceed.

Boundary & controls

Schema/business/evidence checks, destination permissions and abstention rules; never execute generated arguments directly.

Contracts, evidence & ownership

Reference: SF5-CHECK

When needed
Before accepting model output, publishing a suggestion or performing an action.
Inputs
Untrusted result/proposal, evidence references, requester scope and schema/business policy version.
Outputs
Validated suggestion, review request, authorized-action candidate or explicit rejection/abstention.
Metrics
Invalid/blocked outputs, unsupported claims, policy violations and accepted-result rate.
Evaluation evidence
Permission-negative, invalid-schema, unsupported-evidence and adversarial-output cases.
Failure & fallback
Validation fails or evidence is missing: reject, ask for correction within budget or route to review.
Cost drivers
Validation runtime, optional evaluator calls and escalated review.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Anthropic: Building effective agents; Google: Rules of Machine Learning; AWS: Timeouts, retries and backoff with jitter

Review and conditional approval

Give a named reviewer the context needed to approve a specific result or action.

Boundary & controls

Verify reviewer authority; show proposed effects and evidence; expire changed/stale approvals and avoid implied consent.

Contracts, evidence & ownership

Reference: SF5-REVIEW

When needed
Risk or policy requires review; the learning example produces a draft for a reviewer to send.
Inputs
Validated proposal, supporting evidence, target/action scope, uncertainty and relevant policy.
Outputs
Recorded approval/rejection/correction tied to the exact proposal/version and reviewer.
Metrics
Review wait, acceptance/correction rate, agreement and reviewer minutes per outcome.
Evaluation evidence
Reviewer comprehension/agreement and changed-proposal, expired-approval and unavailable-reviewer scenarios.
Failure & fallback
No reviewer or ambiguous approval: remain pending or reject within the documented completion contract.
Cost drivers
Loaded review/correction hours and queue/state retention.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Anthropic: Building effective agents; FinOps Foundation: FinOps for AI

Authorized idempotent action

Commit a permitted business change with durable status.

Boundary & controls

Recheck downstream permission at execution, scoped credentials, schema/business checks, deduplication and action audit.

Contracts, evidence & ownership

Reference: SF5-ACTION

When needed
There is an explicitly permitted side effect; a draft-only task does not execute it.
Inputs
Validated arguments, requester identity, approval reference if required, target and idempotency key.
Outputs
Durable committed/failed/pending status and audit reference; a verified receipt may return to an agent.
Metrics
Commit success, duplicate suppression, action latency and reconciliation lag.
Evaluation evidence
Permission-negative, duplicate delivery, timeout-after-commit and compensation/reconciliation scenarios.
Failure & fallback
Unknown commit state: query/reconcile before retry and alert the owner. Rollback does not automatically reverse external effects.
Cost drivers
Tool/API usage, durable state/audit and manual reconciliation.
Accountable role
Founder is the named action owner now; establish backup and coverage. The model has no implicit authority.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: AWS: Timeouts, retries and backoff with jitter; Anthropic: Building effective agents

SF6 · Outcome

Return a result with a clear completion and success contract. Handoff: A response, stored result or downstream event reaches its destination. Business acceptance feeds evaluation; transport success alone does not establish usefulness.

Response, stored result or event

Deliver a result whose completion and business success can be understood.

Boundary & controls

Validate destination and output schema, redact appropriately and define retention/cancellation; preserve feedback provenance.

Contracts, evidence & ownership

Reference: SF6-OUTPUT

When needed
Every admitted task reaches a terminal outcome or explicitly documented pending state.
Inputs
Checked result or action receipt, task/version IDs, destination permissions and completion status.
Outputs
Authorized response, stored result or downstream event with provenance and defined accepted-usable-outcome criteria.
Metrics
Eligible/completed/accepted outcomes, delivery errors, end-to-end latency and correction effort.
Evaluation evidence
Task rubric, delivery/retry cases and feedback provenance; separate transport success from usable business acceptance.
Failure & fallback
Delivery failure or unusable result: explicit failed/pending status, bounded redelivery and reconciliation.
Cost drivers
Response/event delivery, result retention and feedback/review work.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google SRE: Implementing SLOs; Microsoft: Messaging distinctions; FinOps Foundation: FinOps for AI

Cross-cutting context

Authoritative records and objects

Keep a named source of truth with explicit access and lifecycle rules.

Boundary & controls

Enforce source ACLs, tenant isolation, retention/deletion and transport protection; inventory each copy and processing location.

Contracts, evidence & ownership

Reference: DF-SOURCE

When needed
The task reads records, documents or stored objects.
Inputs
Owned records/objects, schema/version, classification, permissions and source timestamps.
Outputs
Authorized records or object references with integrity and provenance for preparation or direct lookup.
Metrics
Read errors, permission denials, age, deletion completion and source availability.
Evaluation evidence
Permission-negative and deletion tests; verify provenance and restoration on synthetic records.
Failure & fallback
Unavailable or unauthorized source: abstain or use an explicitly permitted stale-data policy.
Cost drivers
Storage quantity-time, reads, backup and transfer.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Model data and privacy considerations; Google SRE: Implementing SLOs

Parse, validate and transform

Prepare source data without losing provenance or permission context.

Boundary & controls

Safe parsers, classification rules, reproducible transforms, checkpoints and deletion propagation.

Contracts, evidence & ownership

Reference: DF-PREP

When needed
Ingestion, cleaning or transformation is needed; inference does not require re-ingesting every record.
Inputs
Authorized objects/changes, schema, checksums, source ACLs and deletion/version information.
Outputs
Validated normalized data plus lineage, rejection records and freshness metadata.
Metrics
Ingestion lag, invalid records, transform failures, duplicates and schema drift.
Evaluation evidence
Malformed, duplicate, schema-change and delete/replay cases; inspect lineage through a synthetic record.
Failure & fallback
Partial or unsafe ingestion: quarantine, resume from checkpoints and reconcile before serving stale material.
Cost drivers
Parsing/transform compute, ingestion operations and intermediate retention.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning; Microsoft: Messaging distinctions

Optional features or search index

Maintain a derived copy only when retrieval or feature requirements justify it.

Boundary & controls

Propagate ACLs and deletions; version/rebuild reproducibly; separate derived storage from the authoritative record.

Contracts, evidence & ownership

Reference: DF-DERIVED

When needed
Measured benefit exceeds SQL, exact IDs, filters or keyword search; vectors are optional.
Inputs
Prepared records, source ACLs, provenance, transform/index version and deletion events.
Outputs
Queryable features/index entries with source references, freshness and permission metadata.
Metrics
Freshness lag, stale/deleted entries, index coverage and permission-filter failures.
Evaluation evidence
Retrieval/feature quality and access tests; verify source deletion reaches all derived copies.
Failure & fallback
Stale or incorrectly scoped index: block unsafe results, rebuild or fall back to authorized source lookup.
Cost drivers
Index/feature storage, updates, embedding if selected and query compute.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning; Microsoft: Model data and privacy considerations

Permission-aware lookup and retrieval

Return only relevant data the current requester may use.

Boundary & controls

Enforce source permissions independently of model instructions; bound query/result size and exclude secrets from prompts/logs.

Contracts, evidence & ownership

Reference: DF-ACCESS

When needed
Rules, models or tools need existing records, features or grounding material.
Inputs
Scoped principal, tenant, typed query, source/index version, filters and freshness requirement.
Outputs
Authorized records/snippets/features with provenance, timestamp and explicit missing/stale status.
Metrics
Denied lookups, retrieval relevance, freshness, latency and empty-result rate.
Evaluation evidence
Cross-tenant negatives, stale/deleted data and relevance cases; trace permitted data into model context.
Failure & fallback
No permitted or current evidence: abstain or route to a reviewer; do not expand permissions to fill context.
Cost drivers
Database/search reads, retrieval compute and context tokens.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Microsoft: Model data and privacy considerations; Google: Rules of Machine Learning

Offline and operational evaluation

Provide evidence that the whole task works within defined limits.

Boundary & controls

Synthetic/anonymized provenance, held-out cases, reviewer agreement and protected traces; builder self-review is not independent assurance.

Contracts, evidence & ownership

Reference: RAIL-EVAL

When needed
Before promotion and after relevant data, model, prompt, policy or workflow changes.
Inputs
Versioned task cases, baseline, acceptance rubric, workload manifest and protected operational feedback.
Outputs
Evaluation report with sample counts, uncertainty, failure slices and explicit generalization limits.
Metrics
Task quality, permission failures, acceptance, tail latency and cost by meaningful slice.
Evaluation evidence
Reproduce baselines, adverse cases and realistic offered-arrival benchmarks; document evaluator limitations.
Failure & fallback
Coverage gaps or regressions: block promotion, revise cases and keep known limitations visible.
Cost drivers
Evaluation calls/compute, datasets, reviewer time and evidence retention.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google: Rules of Machine Learning; NVIDIA: LLM benchmarking concepts; Google SRE: Implementing SLOs

Metrics, traces, SLOs and incidents

Detect when user-visible behavior leaves its operating contract.

Boundary & controls

Avoid raw sensitive logging; scope access/retention and distinguish availability, latency, quality and freshness indicators.

Contracts, evidence & ownership

Reference: RAIL-OBS

When needed
During load experiments and any operated runtime.
Inputs
Redacted correlated events, offered/admitted/completed rates, dependency health and defined good/bad request indicators.
Outputs
Dashboards, protected traces, actionable alerts, incident evidence and recovery follow-up.
Metrics
Error budget, p95 complete latency/TTFT, oldest-work age, dependency quota and recovery time.
Evaluation evidence
Inject overload, dependency timeout, stale data and release regression; verify detection, safe status and reachable owner.
Failure & fallback
Silent failure or unavailable coverage: constrain operation to supported hours and a tested fallback.
Cost drivers
Telemetry volume/retention, monitoring and incident labor.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Illustrative logical responsibility, not a deployed service. Contracts and evidence must be tested with synthetic data before real use.

Sources: Google SRE: Implementing SLOs; NVIDIA: LLM benchmarking concepts; Microsoft: Queue-based load leveling

Allocated cost per successful outcome

Explain the resources and human work consumed by accepted business outcomes.

Boundary & controls

Choose hosted or dedicated serving for the same work; include retries, review and operations; explain idle share without adding it twice.

Contracts, evidence & ownership

Reference: RAIL-COST

When needed
For experiments and deployment decisions within a named reporting window.
Inputs
User-supplied rates, usage, attributable shared-cost allocation, labor hours and successful-outcome definition/count.
Outputs
Total allocated cost, currency per success, attempts/outcome and separate marginal/full-cost assumptions; zero successes is undefined.
Metrics
Cost/accepted outcome, accepted/eligible fraction, review minutes/outcome and spend against ceiling.
Evaluation evidence
Reconcile worksheet lines with dated verified terms and records; test workload, success-rate and rate sensitivities.
Failure & fallback
Missing allocation or denominator: label the estimate incomplete; stop runaway calls with bounded budgets.
Cost drivers
Serving, data, application, network, evaluation/security, training allocation, licenses and attributable labor.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
No provider prices or currency conversion are supplied. Every amount is a user assumption in generic currency units (CU) for one reporting window.

Sources: FinOps Foundation: FinOps for AI

Identity, policy, secrets and audit

Apply protection at every trust crossing rather than relying on model instructions.

Boundary & controls

Payload, identity, authorization, transport, retention and ownership per crossing; inventory prompts, indexes, logs and outputs as copies.

Contracts, evidence & ownership

Reference: RAIL-SECURITY

When needed
Across client, application, sources, provider, tools and operations boundaries.
Inputs
Data inventory, identities, permissions, classifications, retention obligations and approved action policy.
Outputs
Enforced scoped policies, protected secrets, audit evidence and an explicit boundary owner.
Metrics
Unauthorized access attempts, policy-test coverage, secret rotation and deletion/audit completeness.
Evaluation evidence
Cross-tenant, hostile-context, secret-exposure and unauthorized-action tests; verify processing and storage terms before selection.
Failure & fallback
Suspected disclosure or unsafe action: contain access, preserve protected evidence and follow the incident/recovery policy.
Cost drivers
Policy implementation, audit storage, security review and incident response.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Synthetic data only in the example. Tenant ownership alone proves neither processing location nor no retention; verify each exact service and feature before use.

Sources: Microsoft: Model data and privacy considerations; Anthropic: Building effective agents

Version, release, rollback and ownership

Promote and recover a compatible system with named accountability.

Boundary & controls

Version compatible artifacts together; require evidence gates, supported hours, tested rollback and explicit recovery ownership.

Contracts, evidence & ownership

Reference: RAIL-RELEASE

When needed
Any change to code, configuration, model, prompt, routing, schema, retrieval or evaluation artifacts.
Inputs
Compatible artifact manifest, quality/capacity/cost evidence, rollout scope and reachable primary/backup.
Outputs
Release decision, gated rollout, stop/rollback triggers and a recovery record.
Metrics
Release regressions, rollback/recovery duration, gate failures and unresolved compatibility risks.
Evaluation evidence
Restore the compatible artifact set; rehearse dependency outage, failed rollout and already-committed-action reconciliation.
Failure & fallback
Regression: stop rollout, restore a known compatible set and reconcile external effects separately.
Cost drivers
Evidence review, release tooling, reserve capacity and maintenance/recovery labor.
Accountable role
Founder accountable now; name a reachable backup and supported hours before unattended operation.
Assumptions
Founder owns these roles now. Founder plus two people is a future capacity assumption, not current staffing or 24/7 coverage.

Sources: Google SRE: Implementing SLOs; Google: Rules of Machine Learning; AWS: Timeouts, retries and backoff with jitter

Requirements & evidence

Baseline: rules. Accepted support draft; a reviewer sends the response. Compare a task rubric and reviewer acceptance against a simple baseline. Synthetic support requests; named retention and access owner. Founder; backup coverage to be established.

Business outcome
Proposed: an accepted usable draft helps a reviewer produce a response. Evidence: Define accepted/eligible request and a task rubric; compare with the simple baseline.
Automation boundary
Proposed: draft only; a reviewer sends it. Evidence: Verify tool permissions and visible review/action states.
Risk and failure impact
Proposed: incorrect drafts, permission leakage or misleading completion could affect a reviewer or recipient; no sensitive autonomous action is permitted. Evidence: Identify affected people, test adverse/permission-negative cases and define escalation, abstention and review thresholds.
Input mix
Illustrative: API/chat primary; optional batch exercise. Evidence: Record a representative synthetic workload by channel.
Normal arrivals
Illustrative: 10 business requests/s. Evidence: Measure an arrival trace; user count alone is insufficient.
Burst
Illustrative: 60 business requests/s for 30 s. Evidence: Test offered arrivals, burst-end backlog and recovery.
Deterministic fraction
Illustrative: 0.60 of business requests. Evidence: Measure router correctness and observed fraction.
Model fraction
Illustrative: 0.40 of business requests. Evidence: Measure by request class and peak; do not assume a constant mix.
Calls per model-path request
Illustrative: 1 original model call initially. Evidence: Count tool, validation and loop calls separately; account for fan-out.
Retry factor
Illustrative: 1.00 attempts/original call; sensitivity 1.10. Evidence: Observe causes and workload distributions; use class-specific expectations when needed.
Input size
Illustrative mean: 1,000 tokens/call, including instructions, history and retrieval. Evidence: Measure length distribution and tails; check provider quota accounting separately.
Output size
Illustrative mean: 400 tokens/call; maximum is a separate control. Evidence: Measure truncation, accepted quality and output length tails.
Mean model-path time
Illustrative: 8 s for a stated consistent concurrency boundary. Evidence: Measure mean time with queueing scope stated; Little's law does not derive p95 concurrency.
Streaming responsiveness
Proposed p95 time to first token: at most 2 s. Evidence: Client-observed timing under representative offered load.
Complete result
Proposed p95 end-to-end latency: at most 12 s. Evidence: Include admission, retrieval, tools and validation; a mean-fluid estimate cannot establish this target.
Availability
Proposed: 99.5% good eligible requests over a calendar month. Evidence: Define good/bad and exclusions. At 1,000,000 eligible requests, the illustrative error budget is 5,000 bad requests.
Quality
Target to establish from a baseline; no measured result supplied. Evidence: Stratified task evaluation, sample counts, uncertainty and reviewer agreement.
Freshness
Proposed maximum source/index age: 5 min for the exercise. Evidence: Track source timestamps, pipeline lag and deletion propagation.
Residency and retention
Synthetic data and short explicit retention in this example. Evidence: Inventory processing location, storage, telemetry, tools and every derived copy before real data.
Recovery
RTO and RPO remain to be defined per stored state, with units. Evidence: Perform restoration and action-reconciliation exercises.
Spend ceiling
No price assumed; define CU/time and CU/success for a reporting window. Evidence: Use dated verified rates, allocation method and attributable cost records.
Ownership
Founder now; founder plus two people is a future capacity assumption. Evidence: Name reachable primary/backup, supported hours and tested fallback before unattended use.

Current capacity assumptions & estimate

Normal business arrivals (requests/s)
10
Burst business arrivals (requests/s)
60
Burst duration (seconds)
30
Model-path fraction (0–1)
0.4
Model calls per model-path request
1
Attempts per original model call
1
Input tokens per model call
1,000
Output tokens per model call
400
Mean model-path time (seconds)
8
Measured throughput per replica (calls/s)
4
Target replica utilization (0–1)
0.7
Available serving capacity (calls/s)
12
End-to-end p95 target (seconds)
12

Normal calls: 4/s. Burst calls: 24/s. Replicas: 9. Backlog: 360 calls. Drain: 45 seconds. Queue: 30 seconds. Queue plus mean time exceeds the target. Fluid mean estimates cannot establish p95 latency or production capacity.

Deployment options & responsibilities

Hosted model API

Investigate when a supported model meets quality/data constraints and demand varies. Verify quality, quotas, processing location, retention, version stability and bill distribution; application and model hosting are separate choices. Owner: Own application behavior, data policy, quota management, evaluation and fallback. Failure exercise: Provider outage, changed version or quota exhaustion: bounded retry, explicit status and an evaluated fallback.

Serverless application runtime

Investigate for event-driven validation, routing, light preprocessing or suitable inference. Measure cold starts, execution duration, package size, concurrency, scale-up and downstream limits. Owner: Bound calls and scaling; own retry/state behavior, observability and releases. Failure exercise: Cold start or scale burst misses deadlines or overruns dependencies: admission/backpressure and a tested recovery path.

Long-running CPU service

Investigate for rules, tabular inference, preprocessing or smaller suitable models. Benchmark CPU/memory, warm/reserve behavior, throughput and tail latency against total operations cost. Owner: Own runtime patching, capacity, releases, monitoring and recovery. Failure exercise: Process/host loss or memory saturation: restart/recover compatible state with justified ready capacity.

Dedicated GPU service

Investigate when measured acceleration/control needs and sustained workload justify it. Benchmark model memory/KV cache, batching, context tails, startup, availability, utilization and idle reserve; concurrency alone does not size GPUs. Owner: Own serving runtime, drivers/images, scaling, isolation and incidents. Failure exercise: Out-of-memory, slow startup or replica loss: bound contexts/concurrency and test reserve/fallback behavior.

Managed inference endpoint

Investigate for custom-model serving with managed lifecycle capabilities. Verify supported runtime/model, network/auth, quotas, autoscale, deployment health and current service maturity. Owner: Own model/application quality, configuration, spending and operational escalation. Failure exercise: Unhealthy deployment or slow autoscale: use release health gates, compatible rollback and explicit unavailable status.

Customer-controlled tenant deployment

Investigate when placement, ownership, integration or access constraints require it. Agree resource ownership, network routes, outbound services, access, support and updates. Tenant ownership alone proves neither processing location nor no retention. Owner: Record a shared-responsibility agreement and access to operational evidence; no customer deployment is claimed here. Failure exercise: Blocked routes, revoked access or unclear support: use named escalation and a tested supported-hours recovery agreement.

On-premises or disconnected deployment

Investigate for required locality/control or constrained connectivity. Prove hardware capacity/lifecycle, model licensing, secure updates, power and restoration feasibility. Owner: Own substantial local operations, security, spare capacity and support coverage. Failure exercise: Hardware/power loss or unavailable updates: test local restoration and recovery within explicit RTO/RPO.

Current cost assumptions

Serving accounting: hosted; consistent period and user rates in CU, no market quote. Hosted OR dedicated. Idle already included.

Input workload (million tokens)
0
Output workload (million tokens)
0
Input rate (CU per million tokens)
0
Output rate (CU per million tokens)
0
Data and storage cost (CU)
0
Application compute cost (CU)
0
Network cost (CU)
0
Evaluation cost (CU)
0
Training or adaptation cost (CU)
0
Licenses cost (CU)
0
Human review hours
0
Operations hours
0
Labor rate (CU per hour)
0
Successful outcomes in this period
0

Total: 0 CU. Per success: undefined with zero successes. Idle share: 0 CU already included.

Sources & review dates

  • Google: Rules of Machine Learning — https://developers.google.com/machine-learning/guides/rules-of-ml (reviewed 2026-11-01)
  • Microsoft: Queue-based load leveling — https://learn.microsoft.com/en-us/azure/architecture/patterns/queue-based-load-leveling (reviewed 2026-11-01)
  • Microsoft: Messaging distinctions — https://learn.microsoft.com/en-us/azure/architecture/guide/technology-choices/messaging (reviewed 2026-10-31)
  • Anthropic: Building effective agents — https://www.anthropic.com/research/building-effective-agents (reviewed 2026-10-31)
  • AWS: Timeouts, retries and backoff with jitter — https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ (reviewed 2026-11-01)
  • Google SRE: Implementing SLOs — https://sre.google/workbook/implementing-slos/ (reviewed 2026-11-01)
  • MIT: Queueing models lecture — https://web.mit.edu/1.041/www/lectures/L8-queuing-models-2026sp.pdf (reviewed 2026-10-31)
  • NVIDIA: LLM benchmarking concepts — https://developer.nvidia.com/blog/llm-benchmarking-fundamental-concepts/ (reviewed 2026-10-31)
  • FinOps Foundation: FinOps for AI — https://www.finops.org/wg/finops-for-ai-overview/ (reviewed 2026-11-01)
  • Microsoft: Model data and privacy considerations — https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/data-privacy (reviewed 2026-10-31)