One bounded function per layer

How to Combine AI Models, Specialized Tools, and Automation Software

A model-agnostic component design for assigning retrieval, generation, transformation, routing, storage, evidence, and review to the right layer.

By WhichAI. Published 2026-07-12. Updated 2026-07-12.

Methodology: Editorial synthesis of workflow design patterns and implementation constraints. Public control references provide context, not proof of a deployment or legal advice. Where a versioned evidence pack appears, its evidence class, method, and limitations govern what the artifact can support. Read the full method. Report a correction.

Built for

Technical and nontechnical operators designing a model-agnostic stack

The decision

Assign each workflow function to a component with explicit input, output, evidence, permissions, and fallback.

Answer first

Use models for bounded reasoning or generation, specialized tools for domain functions, and automation for deterministic movement and rules. The handoff contracts matter more than the product count.

Self-serve workflow planner

Bring your own concrete task

For Technical and nontechnical operators designing a model-agnostic stack. Start a brief for this task: Assign each workflow function to a component with explicit input, output, evidence, permissions, and fallback.

Create your brief

The capacity leak

What the team is doing before anyone calls it a systems problem

Headcount pressure rarely starts with one giant task. It starts when ordinary work is split across inboxes, tabs, handoffs, and undocumented judgment calls. These are the signals to map first.

SIGNAL 01

One model is asked to retrieve, decide, transform, and act.

SIGNAL 02

Automation steps pass free-form text where downstream fields are required.

SIGNAL 03

Specialized tools duplicate functions without a clear source of truth.

SIGNAL 04

A component failure stops the workflow because no fallback or reconciliation exists.

The implementation

The system should prepare the decision, not pretend the decision disappeared

A complete implementation connects the intake, context, transformation, review, and record. The output of one stage becomes the controlled input to the next. A human owns the exceptions and the final consequence.

StageCurrent dragSystem responsibilityHuman responsibilityEvidence kept
1. Function partitionProducts define architecture roles.Split retrieval, extraction, generation, deterministic rules, routing, storage, review, and action.The workflow owner approves which functions can influence action.Function map, consequence, owner, and boundary.
2. Component contractComponents exchange loosely defined prompts and responses.Define structured input, output, source, version, permission, timeout, and error for each component.System owners approve contracts and minimum access.Contract schemas, access, tests, and approvals.
3. Evidence chainGenerated fields lose their origin across components.Carry stable case identity, source references, and transformation history through every handoff.Reviewers verify material evidence before approval.Case ID, source map, versions, and reviewer action.
4. Orchestration and fallbackAutomation retries blindly or fails silently.Use deterministic validation, duplicate safety, bounded retries, reason-coded exceptions, and a manual fallback.Incident owners resolve failures and authorize restart.Rules, retry log, exception packet, recovery, and reconciliation.
5. Whole-stack testEach component passes its own demo.Test ordinary, incomplete, conflicting, timeout, permission, duplicate, and downstream rejection cases end to end.The downstream owner approves acceptance and rollback.Frozen tests, results, corrections, incidents, and decision.

What the human keeps

The goal is not zero humans. It is zero avoidable preparation around the judgment only a responsible owner should make.

  • The workflow owner sets functional and action boundaries.
  • System owners approve component contracts and access.
  • Reviewers and incident owners approve consequential output and recovery.

Controls before volume

A workflow is not ready because the happy path worked once. It is ready when access, review, fallback, and evidence are explicit.

  • Use structured contracts and minimum permissions between components.
  • Carry case identity and source lineage end to end.
  • Bound retries and prevent duplicate downstream action.
  • Test fallback, reconciliation, and rollback for every critical component.

The scorecard

Measure capacity, not activity

A system can produce more messages and still make the operation worse. Measure movement through the workflow, the quality of review, and the load that still reaches a person.

Contract validity

Handoffs passing schema, identity, and evidence checks.

End-to-end acceptance

Cases accepted downstream without reconstruction.

Component failure recovery

Failures detected and recovered within target by component.

Duplicate prevention

Retries or redeliveries that create duplicate action.

What a fake implementation looks like here

These patterns create an AI demo while leaving the labor, risk, and accountability in the same place.

  • Letting a model perform deterministic control logic.
  • Passing free-form output into consequential action.
  • Losing sources across component transformations.
  • Testing components separately but not the full failure path.

Two ways to act

Use the path that matches the decision

Questions

What operators ask before they build

Should the workflow use one model vendor?

Not by default. Choose components by the task and current requirements, and preserve a fallback where dependence would create material risk.

What belongs in automation logic?

Deterministic validation, routing, scheduling, acknowledgements, retries, duplicate control, and logging, not unreviewed consequential judgment.

What is the most important handoff field?

A stable case identifier, followed closely by source references, schema version, and explicit status.

Primary references

Controls should come from the specific operating environment

These are broad public control references, not article-specific evidence, vendor endorsements, or legal advice. Validate the current rules, contracts, system configuration, and organization-specific risk before deployment.

Keep mapping

Related implementation guides

Use this evidence with