How My AI Development Workflow Changed: From a Harness to Lightweight Prompts to Enterprise Agents

First a self-built Harness to make up for what models could not do, then a cut down to lightweight Prompts and four gates after Codex 5.6, then the same principles applied to enterprise Agents. What each step removed and kept.

On this page · 20 sections

This is the evolution overview for the AI series. Over one year, my answer to “how do I get AI to do work reliably” went through three stages:

  1. A self-built Workflow Harness: models could not yet plan, hold scope, or recover reliably, so a control plane I built covered for them.
  2. Lightweight Prompts and four gates: after Codex 5.6, native model workflows were strong enough that the Harness itself became the burden, and I cut it down to a few invariants.
  3. Landing enterprise Agents: the question changed from “get an Agent to work reliably in my repository” to “run Agents in an organization, for a long time, in a way someone can be accountable for”.

Between the second and third stages sits evidence-first RAG, which extended “current facts win” from code to documents and tickets.

The Short Version

  • No stage overturned the one before it. Each pushed a principle the previous stage had proven one layer outward.
  • What changes is where control lives: from a self-built runtime, to native model capability plus a few gates, to organization-level control allocation, engineering delivery, and a unified LLM Runtime.
  • Three things stay constant: evidence outranks what the model says about itself, authorization is separate from capability, and every rule is an assumption about model capability that has to be re-checked after each model upgrade.

The evolution map

The AI engineering evolution map: a self-built Workflow Harness becomes lightweight Prompts by removing duplicate control, pushes evidence outward into RAG, then widens from a person to an organization in enterprise Agent landing; stronger models triggered the first turn and a wider scope triggered enterprise landing; click to view the full SVG

Each row below is one stage. Watch how the “Where control lives” column moves:

Stage The question Where control lives Articles
1 Self-built Workflow Harness Planning, scope, and recovery the model could not yet do reliably A self-built control plane: stage graph, state, Workers, write grants Harness series
2 Lightweight Prompts and four gates Once native model workflows were strong enough, the Harness itself became the burden A few invariants and consequence gates This article, Four Safety Gates
3 Evidence-first RAG How to give traceable answers to questions that span repositories, documents, and tickets Separate layers for evidence, projections, and bounded generation RAG series
4 Landing enterprise Agents How to stay reliable and operable across many businesses, models, and tenants Allocating control, engineering delivery, a unified LLM Runtime Agent Landing series

The first turn gets the most detail below, because it shows the method for deciding what to remove and what to keep. After that comes how the same method carried into landing enterprise Agents.

The first turn: what I removed after Codex 5.6

In August 2026, I made a near-rewrite-level reduction to the AI development Harness I had used for several months.

This was not about shortening a few Prompts. It removed a control plane that already worked: the stage DAG (that is, the dependency graph between stages), StateV3, append-only event chains, Worker plans, one-time write authorization, isolated worktrees, Patch Bundles, the Promotion Runtime, Provider receipts, and recovery logic all left the main path of day-to-day development. Both the stable control surface and the Prompts loaded at startup became a small fraction of their previous size.

The numbers are dramatic, but “deleting a lot” is not the conclusion. What is actually worth recording is why a system that clearly improved efficiency with Codex 5.4 and 5.5 began to slow the process down with 5.6—and where rigor and safety went after the runtime was removed.

I removed duplicate control, not engineering discipline

The old Harness got many things right. It turned engineering habits that had depended on experience into explicit contracts:

  • Current source code and real Provider state take precedence over chat memory;
  • clarification, design, implementation, review, and delivery have different authorization boundaries;
  • state, events, and artifacts cannot masquerade as one another;
  • Workers can only provide evidence; the main Agent owns the final synthesis;
  • writes, external calls, and releases must produce results that can be read back;
  • passing tests, a successful Pipeline, and correctness in production are different levels of fact.

What I ultimately removed was the general-purpose orchestration that had grown layer by layer to enforce these principles. The principles remain, but every ordinary change no longer has to enter a self-built workflow engine first.

The new division of responsibility can be summarized as:

The model and platform handle exploration, planning, editing, and verification for common tasks
The repository owns stable domain knowledge and mechanical constraints
Top-level rules define authorization boundaries for high-consequence actions
Git, tests, Providers, and production entry points supply factual evidence

This is not a retreat from a “system” to “one Prompt.” It is a move that puts each kind of control back into the layer best suited to it.

Why the old Harness grew into a control plane

The mature version of Marshall was not a linear checklist. Stable rules lived in a versioned repository-local control directory, while the state and evidence for each run lived in an ignored per-run evidence directory. The former was the Control Plane; the latter was the Runtime/Data Plane.

The actual path of an implementation task looked roughly like this:

The path of one implementation task in the old Harness: from goal routing, Progressive Context, Stage DAG, StateV3, and StageWriteGrantV1 through the isolated Executor, PatchBundleV1, Patch Verification, and Trusted Host Promotion to StageResultV1; open the full-size SVG

For design and review, the system also generated WorkerSelectionV1 and WorkerPlanV1 first, binding risks, roles, context Hashes, output locations, concurrency limits, and convergence barriers together. Workers were read-only by default, and completion did not mean acceptance; the main Agent could synthesize a conclusion only after confirming that a result still matched the current inputs.

This design addressed very real failures:

  • a long task interrupted by Compaction (that is, automatic compression of an overlong context) and executed twice after recovery;
  • a review citing stale code;
  • a late Worker result overwriting a newer judgment;
  • an Executor crossing file-scope boundaries;
  • an external write being submitted again after a timeout;
  • “the patch was applied” being misreported as “it is live.”

During the Codex 5.4 and 5.5 period, the extra mechanisms bought stability, and in my actual experience the tradeoff was worthwhile.

The problem is that once any control plane starts taking responsibility for recovery, isolation, approval, and auditability, it naturally grows Schemas, registries, adapters, compatibility layers, and tests. It stops merely helping the model work and becomes another software product that must be continuously developed.

The turning point was not an article, but several tasks without the Harness

What actually prompted me to act was not a theoretical judgment, but several Codex 5.6 tasks in which I deliberately did not use the Marshall Runtime.

I gave the model only the current goal, repository rules, and safety boundaries, then let it read the code, form a minimal plan, edit files, run tests, and inspect the diff directly. The results did not show the obvious degradation I had expected: the model still maintained scope, proactively traced the real call path, and distinguished implementation, commit, and deployment. At the same time, it reached the domain code faster, produced fewer intermediate artifacts, and accumulated context more slowly on long tasks.

This is only a small sample from my personal workflow, not a controlled experiment. I cannot use it to prove that “5.6 does not need a Harness,” much less that every project should remove its workflow. But it was enough to expose an architectural problem: when the model can already perform a piece of general-purpose orchestration reliably, forcing the repository to implement the same capability again may have negative net value.

OpenAI's GPT-5.6 model guidance later offered a clearer migration direction:

  • compare quality, evidence completeness, Tokens, latency, and cost on representative tasks;
  • remove duplicated instructions group by group rather than clearing everything at once based on intuition;
  • keep explicit authorization boundaries for external writes, destructive actions, cost, and scope expansion.

This guidance aligned with what I had observed, while also reminding me that simplification is an engineering change that must be validated, not an aesthetic preference.

The real bottleneck was the Harness entering the context itself

The old version did not put a hundred thousand lines of documentation into the model all at once. It already had P0-to-P3 Progressive Context: each stage loaded only the necessary commands, relevant domain specifications, risk perspectives, and a small number of runtime artifacts, while large materials were retained as handles whenever possible.

But on-demand loading can reduce domain material; it cannot eliminate the fixed cost of the control plane. On every round, the model still had to understand:

  • which Stage corresponded to the current goal;
  • which Nodes and Completion Barriers had to be satisfied;
  • which authority belonged to State, Event, and Artifact respectively;
  • why Lease, Generation, and Freshness might invalidate a result;
  • how Worker Reports converged;
  • what Write Grants, Patch Bundles, and Promotion each permitted;
  • which logical Artifact Role should receive the current result.

The system then continued to generate state projections, events, receipts, Hash bindings, and verification artifacts. These were not entirely useless, but they competed with requirements, source code, and tests for the same attention budget.

Anthropic's article on Context Engineering treats Context as a finite resource and emphasizes that the marginal value of additional Tokens declines as content grows. It also presents Compaction, structured notes, and multiple Agents as tools for different task shapes, not as a standard bundle that must always be enabled together.

That describes my problem more accurately: although the old Harness helped with recovery, it also caused Compaction to happen sooner; after compression, the first thing the model had to reconstruct was the Harness's own runtime semantics.

The cost of one compression was not merely “losing some text,” but a chain of recovery work: reconfirming the stage, lease, input Hash, incomplete nodes, valid artifacts, and next permitted Transition. When the model was less capable, those costs bought determinism; when it could complete common paths reliably without them, the same costs became a process tax.

I used four questions to decide whether each mechanism should stay

This time, I did not mechanically delete directories. I asked four questions about every mechanism:

  1. Does it constrain model reasoning, or real-world consequences?
  2. Does the platform, Git, or Provider already offer an equally trustworthy capability?
  3. Does failure require cross-process recovery, replay, or auditing?
  4. Is the reduction in risk greater than the context, latency, and maintenance costs it introduces?

The final result is below. The column to watch is the last one: what stays, what becomes on-demand, and what is removed.

Mechanism Problem solved by the mature version Final treatment
Goal routing Separate authorization boundaries for clarification, implementation, review, and delivery Keep as a lightweight Goal Map
Progressive Context Prioritize current source, domain specifications, and risk evidence Keep on-demand loading; remove the complex Loader Runtime
Stage DAG Express parallelism, waiting, re-entry, and completion barriers Let the model plan ordinary tasks; continue to make truly non-interchangeable dependencies explicit
State / Event / Artifact Separate long-task recovery, causal chains, and deliverable results Stop generating by default; adopt them on demand for long-running and auditable automation
Fixed Workers and Team Plan Reduce confirmation bias through independent perspectives Delegate temporarily according to risk instead of maintaining a fixed team
Write Grant and isolated worktree Limit a write to one use, one version, and one set of paths Remove from the daily path; sandboxes/worktrees can still be used in high-risk environments
Patch Promotion Validate transfer between a low-trust executor and the real workspace Remove the self-built Runtime; use native editing, Git diff, and tests
Preview / Approval / Readback Prevent unauthorized external side effects or uncertain retries Keep in full
Protected Branch / Data / Cost / Destructive Gates Control high-consequence actions Elevate into top-level configuration and mechanical Hooks

The key distinction is this: a model can become increasingly capable at planning, but that does not give it the authority to decide on my behalf whether to write to production, incur real costs, or perform irreversible actions. Capability changes with model versions; authorization relationships do not.

The new architecture does not “hand everything to the model”

The simplified Marshall is a very thin Context Router:

The simplified Marshall Context Router: the Marshall Skill parses the user goal, reads one command and on-demand evidence, hands off to Codex's native abilities, and returns results, evidence, and residual risks; open the full-size SVG

The always-loaded layer contains only the project's AGENTS.md, the simplified constitution, and the routing Skill. Commands such as impl, local-review, and pr-submit are loaded separately according to the goal; the full specification tree, historical research, old audit packages, and unrelated domains are no longer preloaded.

Implementation tasks no longer require a Jira item, design file, audit directory, Worker Report, or State Object as a pass. Their common path is only:

The simplified implementation path: confirm, trace the code, minimal plan, modify, validate by risk, inspect the diff, report; open the full-size SVG

This path remains rigorous; it simply moves evidence back to the sources of truth that already exist: current code, git diff, test output, remote Refs, CI status, deployment records, and production readback.

The change to pr_commit best illustrates the new authorization model

The old delivery flow depended on Hash-bound previews, runtime Gates, approval Envelopes, Provider Adapters, and multiple layers of Receipts. The mechanism was rigorous, but the distance between the action named by the user and the internal protocol was too great.

After simplification, commit, push, pr-submit, merge, and deploy are once again five distinct literal goals. For compatibility, pr_commit means only:

  1. validate the accepted scope;
  2. commit on a feature branch without necessarily pushing;
  3. prepare the PR title, body, Reviewer, source branch, and target branch.

Creating or updating the Bitbucket PR still requires an exact preview and renewed confirmation; merge and deployment remain outside the authorization.

This does not reduce control. It places control at the moment immediately before a side effect occurs. Ordinary local work no longer pauses repeatedly, while high-consequence actions still must stop.

Safety contracted from process machinery into a small set of invariants

After removing the Promotion Runtime, safety no longer depends on “every change must first execute in isolation.” Four layers share the responsibility:

  1. Top-level configuration defines confirmation thresholds for protected branches, production or persistent data, cost, destructive actions, and external actions;
  2. repository rules constrain branch, scope, and domain behavior for the current project;
  3. sandboxes, file permissions, and protected-branch Hooks provide mechanical boundaries;
  4. Git, tests, Providers, and production entry points provide independent post-execution readback.

This resembles the direction OpenAI summarizes in Harness Engineering: entry points should work more like maps than like permanent manuals containing all knowledge; at the same time, boundaries that genuinely matter should be mechanically enforced rather than repeatedly asking the model to be careful in a Prompt.

What the current evidence can—and cannot—prove

In a local snapshot of the simplification branch, the structural facts I could confirm were that the old Runtime and fixed Agent/Team/Promotion directories had left the main path; a lightweight Validator still checked structural budgets, resolvable routing, residual Runtime references, Agent migration, read-only RAG markers, diagram validity, and protected-branch Hooks. These details continue to evolve and must not be treated as permanent current truth.

I can also confirm the subjective experience: several tasks reached real code faster, required less intermediate bookkeeping, triggered Compaction later, and were simpler to recover after compression.

But none of this proves that the new approach is superior in long-term correctness. Fewer files are not a quality metric, and a green Pipeline proves only that the contract is internally consistent within the current checks. The next step is to keep recording:

  • Time to First Useful Edit;
  • total Tokens, tool calls, and Compaction count per task;
  • first-pass focused-test success rate;
  • useful-findings and false-positive rates from Local Review;
  • number of post-PR rework cycles;
  • counts of correct and incorrect interventions by safety Gates;
  • post-deployment regressions and time spent on manual intervention.

Only when these metrics remain stable over time across comparable tasks can simplification be said to improve net efficiency. Otherwise, some of the removed mechanisms may need to return on a risk-based basis.

How I would run this simplification on a team

Deleting process is a change like any other, and it deserves the same rollout discipline as deleting a service.

  1. Inventory each mechanism with the assumption behind it. “Plan files exist because the model cannot keep scope across Compaction” is testable; “plan files are good practice” is not.
  2. Remove in reversible slices. Disable one mechanism for one task class, keep the code path, and compare against a baseline on representative tasks.
  3. Keep the consequence gates out of scope. Simplification applies to how the model works, never to what it is authorized to change.
  4. Publish the scorecard. Quality, tokens, latency, interventions, and regressions—before and after. A simplification nobody can audit tends to be reversed by the first incident, whether or not it caused it.
  5. Schedule the next review. Every model upgrade reopens the question. Put the date on the calendar instead of waiting for friction to force it.

What this turn taught me: the Harness must also be questioned version by version

The value of early Marshall was that it turned implicit engineering discipline into a structure visible to the model and enforceable by the runtime. It solved problems that genuinely existed with Codex 5.4 and 5.5, so it was not simply a history of “taking the wrong path.”

But every rule in a Harness contains an assumption about model capability: the model cannot plan for itself, cannot maintain scope reliably, cannot recover after Compaction, or cannot use native tools dependably. After a model upgrade, those assumptions must be revalidated. Otherwise, scaffolding designed around an old capability boundary gradually becomes a burden on the new model.

I now prefer to see a Harness as a set of falsifiable assumptions rather than a permanent architecture:

  • when the model cannot perform a capability reliably and the cost of failure is controllable, help it with context, tools, and evaluation;
  • put mechanically verifiable boundaries into code, Hooks, or Provider Policy;
  • preserve clear and independent authorization for actions with real-world consequences;
  • promote a process to a persistent workflow only when it truly needs recovery, retries, and auditing.

This transition is not a move from rigor to carelessness. It is a move from “using a workflow to constrain every step” to “letting the model own the path, letting evidence prove the result, and letting Gates control the consequences.”

The second turn: from a personal Harness to landing enterprise Agents

After the simplification, the question itself changed. Early on I cared about “how do I get one Agent to work reliably in my repository”. Now the question is “how do Agents run in an organization, for a long time, in a way someone can be accountable for”.

In my own setup I was the requester, the developer, the reviewer, and the person on call, so I could absorb many constraints myself. In an enterprise those roles belong to different people and teams, and new problems appear:

  • Many businesses: the same Agent capabilities must serve scenarios with different goals, risks, and acceptance criteria.
  • Many models: vendors, prices, and capabilities keep changing, and callers should not each handle rate limits, retries, and routing on their own.
  • Many tenants: cost, quotas, and data boundaries have to be separated per tenant, not left to good behavior.
  • Long-term operation: after launch, there has to be evidence that it has not gotten worse, not just a feeling that it is fine.

How the first turn's principles carried over

No stage overturned the one before it. Each took a principle the previous stage had proven and pushed it one layer outward:

  • “Current source and real state win” became, in RAG, “retrieval returns candidate evidence; only versions and readback count as facts”.
  • “Gates control consequences” became, in the enterprise setting, Policy authorization, Verifier acceptance, and keeping “discovering a capability” separate from “being allowed to run it”.
  • “A Harness is a set of retirable assumptions” became, in architecture selection, “Workflow sinks into capabilities and the autonomous Agent becomes the brain”, re-validated on every model upgrade.
  • “State, events, and artifacts must not impersonate one another” became, in the LLM Runtime, checkpointed resumption, stream event cursors, and persisted cancel intent.

Some things came back, in a different place

Interestingly, some mechanisms removed in the first turn came back in the enterprise setting in a different form. The difference is that they are no longer a personal workflow every change has to pass through; they are capabilities the platform layer implements once. Focus on the last column:

Removed in the first turn Its new form in the enterprise Why it pays off this time
Self-built stage DAG Workflow in architecture selection, as a deterministic capability the Agent calls on demand For stable business processes with known exits, a program is cheaper and more controllable than a model
StateV3 and event chains Checkpoints, event cursors, and cancel intent in the LLM Runtime Cross-process recovery, per-tenant billing, and audit are real needs, not just a guard against model forgetfulness
Fixed Worker plans Independent Verifiers and evaluation sets An organization needs acceptance evidence that does not depend on the Agent's own report
Write-grant envelopes Policy authorization separated from tool permissions The organization bears the consequences of side effects, so authorization has to be auditable

So the test has not changed: whether a mechanism deserves to exist depends on whether the failure it prevents is real, and on who pays its cost, at which layer. A cost paid by every change in a personal repository does not pay off. Implemented once at the platform layer and reused by every business, it can.

The five questions enterprise landing answers in order

The Agent landing roadmap breaks enterprise landing into five engineering questions answered in order, each with its own article in the series:

  1. What did one inference actually cost, and where can it go wrong? See Model economics.
  2. Who decides the next step: the program, the model, or a split between them? See Architecture selection.
  3. How do you turn probabilistic generation into delivery someone can stand behind? See Engineering delivery.
  4. Which layer owns model calls? See LLM Runtime.
  5. After launch, how do you know it is still right? Evaluation and evidence, which run through every article.

Looking back: three answers, one thread

Put the whole evolution side by side and what changes is the layer where control lives. The thread stays the same sentence: let the model own the path, let evidence prove the result, and let gates control the consequences.

  • In the self-built Harness stage, a runtime I wrote enforced it.
  • In the lightweight Prompt stage, native model capability plus four top-level gates enforced it.
  • In the enterprise landing stage, control allocation, independent verification, and a unified execution boundary enforce it.

The next model upgrade will shift this division of labor again. The one thing I am sure of is that the work will still be checking the assumption behind each mechanism, one at a time, rather than adding or deleting by feel.

To understand where things stand now, start with the Agent landing roadmap; to see how these principles were first forced into existence, go back to the Harness series.

Further reading

The Harness series continues with the overall architecture and examines the final mature design of the old Harness layer by layer. The top-level safety boundary is covered separately in Safety Gates Before Agent Autonomy.

Related notes

Working on something similar?

I'm always happy to compare notes on distributed systems, delivery, and applied AI.

[email protected]