[research@ai4se] : ~ $
cd ../
[methodology] | | 16 min

# AI4SE End-to-End Software Delivery Best Practices

The 2025-2026 industry consensus: AI is an amplifier, not a cure-all — end-to-end success depends on the closed loop of spec -> context -> execute -> verify -> measure, not IDE autocomplete.

[e2e-delivery][methodology]

Between 2025 and 2026, Anthropic, OpenAI, Cursor, Google (DORA), Microsoft, GitHub, and others converged on a strikingly consistent set of conclusions about AI-assisted software engineering:

  1. AI is an amplifier, not a cure-all — an organization’s existing delivery capability sets the ceiling on AI’s value
  2. End-to-end success depends on a closed loop — spec → context → execute → verify → measure
  3. Harness and the human-machine division of labor — Planner / Generator / Evaluator is the key to long-running delivery
  4. Organizational enablement and engineering practice must move together — policy, Champions, platforms, and the Inner Loop all matter equally

AI Amplifies an Organization’s Existing Capability

DORA 2025’s core thesis:

AI’s primary role in software development is that of an amplifier. It magnifies the strengths of high-performing organizations and the dysfunctions of struggling ones.

StageWeak organizational foundationStrong organizational foundation
Requirements/specAI amplifies requirement ambiguityAI helps clarify and produce acceptance criteria
DevelopmentMore code that’s hard to reviewSmall batches + code review boost throughput
Testing/releaseDefects and MTTR worsenFlow efficiency and quality improve together

See DORA 2025: AI as an Amplifier for details.

The DORA AI Capabilities Model (Seven Amplifiers)

#CapabilityE2E implication
1Clear AI stanceAvailable tools, boundaries, and room for experimentation are clearly communicated
2Healthy data ecosystemsInternal data quality, consistency, discoverability
3AI-accessible internal dataThe foundation of context engineering
4Strong version controlHandles the change volume and PR size AI brings
5Working in small batchesOffsets the risk of AI generating large chunks of code at once
6User-centric focusKeeps acceleration aligned with business value
7Quality internal platformsConverts individual productivity into organizational flow efficiency

AI tends to inflate PR size; small batches are the safeguard.

Plan First, Then Code

Cursor’s official guidance summarizes E2E feature delivery as:

  1. Plan Mode — research the codebase, clarify requirements, produce an editable plan
  2. Independently verifiable small steps — the agent can confirm completion of each step on its own
  3. Roll back on plan failure — revert and revise the plan, rather than patching repeatedly in the wrong direction
  4. The five-step TDD flow — write the test → confirm it fails → implement → pass → commit
  5. Verifiable targets — type system, linter, tests

The biggest risk when building features quickly is skipping verification.

Structured specs and acceptance criteria form the interface across BA → DEV → QA. See SDD: The Single Source of Truth.

Context Engineering

Anthropic defines context as the highest-signal set of tokens within a finite attention budget:

ComponentPrinciple
System promptMinimal but sufficient, clearly sectioned
ToolsFew and precise; avoid a bloated tool set
Rules / CLAUDE.mdProject conventions, commands
Just-in-time retrievalLightweight references + runtime fetching, not pre-loading the entire codebase

Three mechanisms for long-running tasks: compaction, structured note-taking (PROGRESS.md), and sub-agents (returning a summary to the main agent).

BA’s requirement packages, DEV’s context packs, and QA’s acceptance intent should all be designed to be referenceable, versionable, and incrementally loadable — corresponding to the Middle Loop Harness.

Harness and the P/G/E Triad

RoleResponsibilityE2E mapping
PlannerTurns a short prompt into a product specBA + architecture outline
GeneratorImplements in small steps against the specDEV Inner/Middle Loop
EvaluatorIndependently verifies; hard pass/fail thresholdQA + automation

The key insight:

Separating the agent doing the work from the agent judging it.

The Evaluator should use runtime tests (Playwright, pytest), not just LLM self-assessment. A sprint contract aligns on “what counts as done” before coding begins. See Planner-Generator-Evaluator and the HITL/HOTL/HOOL Spectrum.

A Multi-Layer Verification Stack

LayerMechanism
L1 LocalUnit tests, type checking, linters
L2 TaskSprint contract / acceptance criteria
L3 RuntimePlaywright, integration tests
L4 ProcessPR agent review
L5 OrganizationalContextual evals, golden sets
L6 ContinuousCI/CD gates, SAST

OpenAI’s Evals framework has three phases: Specify → Measure → Improve. Don’t hope for “great” — specify it, measure it, improve toward it.

An End-to-End Reference Architecture

ORGANIZATION LAYER
  AI stance · Enablement · DORA 7 caps
        |
        v
MIDDLE LOOP -- Spec & Harness
  Planner/spec · Context packs · Review · Permissions
        |
        v
   BA/PM    DEV (Gen+CR)    QA (Eval)
        |
        v
OUTER LOOP -- Delivery System
  Git PR · CI/CD · Platform · Metrics · Feedback -> Eval

Favor the Simplest Solution

From Anthropic’s Building Effective Agents:

Find the simplest solution possible, and only increase complexity when needed.

ComplexityPatternBest fit
LowAugmented LLM (retrieval + tools)Single-step classification, generation
MediumWorkflow (chaining, routing, parallel)Decomposable, fixed subtasks
HighAgent (dynamic tool loop)Open-ended, unpredictable number of steps

Favor workflows plus human review first; escalate to agent autonomy only with evaluation evidence supporting it.

Organizational Adoption Is Change Management

From the GitHub AI Playbook:

Companies fail at AI adoption because they treat it like installing software when it’s actually rewiring how people work.

Eight pillars of enablement: executive support, policies, AI advocates, communities, learning & development, DRI, right-fit tooling, and metrics. A license is not the same as realized value at scale.

Key Cautions

TopicPoint of view
Agent complexityAs models get stronger, some scaffolding may become obsolete
PR sizeAI can inflate PR size, conflicting with small batches and code review
Individual vs. organizational effectivenessindividual effectiveness up ≠ organizational performance up
Number of toolsmore tools ≠ better

References