AI-Assisted Full-Auto Development of a First Release: A Technical Breakdown

    This article breaks down what it actually takes to let AI build the first version of a system almost end to end. It explains why the real bottleneck shifts from writing code to defining problems, supplying context, orchestrating tasks, and verifying results, and it walks through five layers of an automated delivery pipeline: structured requirement contracts, context engineering with a context budget, vertical-slice task orchestration, a four-level verification gate, and human accountability with risk controls. It also covers realistic expectations for a ten-day delivery and common anti-patterns, closing with a practical implementation checklist.

    1. The Real Problem Behind the Hype: From “Writing Code” to “Delivering a Runnable System”

    Practices like “the first version was built almost entirely by AI and delivered in about ten days” attract attention not because of how fast code is generated, but because they move the bottleneck of software delivery away from typing and toward defining the problem, constraining boundaries, and verifying results.

    In traditional development, coding is only part of the total effort. Clarifying requirements, making trade-offs, integration testing, and regression work are often the main costs. Once the generation step is heavily compressed, the remaining steps matter more: if requirements are vague and acceptance criteria are missing, the faster you generate, the more expensive rework becomes.

    So the right way to discuss this kind of practice is as an engineering system problem, not a single-tool problem. A usable automated delivery pipeline needs to hold up on at least five levels: requirements can be expressed in a structured form, context can be supplied reliably, tasks can be split and orchestrated, results can be verified automatically, and risks can be blocked by gates. The sections below go through each level.

    2. Layer 1: Structuring Requirements — Turning an “Idea” into an Acceptance Contract

    Automated pipelines are highly sensitive to input quality. In human collaboration, people fill description gaps with a large amount of implicit shared understanding; automated execution only infers from the literal text and the given context, so those gaps get amplified into deviations. The practical approach is to write requirements as a contract that states inputs, outputs, constraints, and acceptance conditions.

    A three-layer description is recommended:

    • Goal layer: what problem this version solves, who the users are, and the minimum bar for success.
    • Behavior layer: the core use cases, and how the main flow and the exception flows behave.
    • Constraint layer: the allowed technology stack, performance and capacity expectations, security requirements, and existing interfaces that must not change.

    An illustrative requirement contract (YAML style, expressing structure only and not pointing to any specific product):

    1. goal: Provide a web prototype for internal task distribution
    2. users: [operations staff, reviewers]
    3. core_flows:
    4. - Create a task and assign it
    5. - Filter by status and process in bulk
    6. - Keep an auditable trail of operations
    7. acceptance:
    8. - Main flow works end to end
    9. - Key APIs validate parameters
    10. - Invalid input returns structured errors
    11. constraints:
    12. stack: [frontend framework, relational database]
    13. must_not_change: [existing login and auth flow]
    14. security: [least privilege, masking of sensitive fields]

    The value of the contract is that it is both the input to generation and the basis for verification. Every automated test later on should trace back to one acceptance condition in the contract; any “extra feature” that cannot be traced should be treated as scope creep.

    3. Layer 2: Context Engineering Sets the Ceiling on Generation Quality

    The quality of generated output depends largely on what the model “sees” at generation time. Common failures in practice are not capability gaps but missing or polluted context: absent code conventions, absent data models, or stale documents mixed in, which lead to inconsistent style or conflicts with the existing structure.

    Context supply can be split into four categories, each governed separately:

    1. Spec context: directory structure conventions, naming rules, error-handling patterns, logging and comment requirements. Keep it short, stable, and versionable.
    2. Structural context: data models, API inventories, state machine definitions. This changes often, so it is better to auto-generate summaries from code or configuration to avoid hand-written drift.
    3. Task context: the current slice to complete, the relevant file scope, and dependencies. Keep it strictly minimal, with only the necessary snippets.
    4. Historical context: decisions already accepted and options already rejected. Keep the conclusions rather than the whole discussion, to prevent oscillation.

    A useful principle is the “context budget”: set a length cap for each category, and when the limit is exceeded, keep spec and structural context first and trim history. Illustrative context assembly logic:

    1. def build_context(task, repo_index, budget=12000):
    2. parts = [
    3. ("spec", repo_index.spec_digest), # stable, keep first
    4. ("schema", repo_index.schema_digest), # structural, next priority
    5. ("task", task.related_snippets), # minimized
    6. ("history", task.prior_decisions[-3:]), # conclusions only
    7. ]
    8. parts.sort(key=lambda p: {"spec": 0, "schema": 1, "task": 2, "history": 3}[p[0]])
    9. out, used = [], 0
    10. for name, text in parts:
    11. if used + len(text) > budget:
    12. text = text[: max(0, budget - used)]
    13. out.append(f"### {name}\n{text}")
    14. used += len(text)
    15. if used >= budget:
    16. break
    17. return "\n\n".join(out)

    4. Layer 3: Task Orchestration — Splitting “One Generation” into “Converging Iterations”

    Generating an entire system in one shot has a low success rate, because it has to satisfy functional correctness, sound structure, consistent style, and runnability all at once, and errors stack up. A more reliable approach is vertical slicing: advance through small end-to-end usable loops, where each slice includes data, APIs, UI, and tests.

    Recommended orchestration order:

    1. Skeleton first: settle the directory structure, dependency injection approach, config loading, and startup path so that it “runs”.
    2. Data first: define models and migration scripts, and make constraints and indexes explicit to avoid repeatedly reworking tables later.
    3. Single-slice loop: take one use case from entry point to persistence to response, finish it in one pass, and add tests.
    4. Add cross-cutting capabilities later: logging, monitoring instrumentation, rate limiting, and auditing are added incrementally rather than all spread out at the start.
    5. Converge and clean up: remove placeholder implementations, unify error codes, and complete the documentation.

    Each slice should have a clear completion criterion, for example “all contract acceptance items for this slice pass, and static checks report no new warnings”. If the criterion is not met, roll back and redo instead of piling on new features. This is the key to whether an automated pipeline can converge.

    5. Layer 4: Automated Verification — No Verification, No Automation

    Automated generation without a verification loop just produces errors faster. The verification system is recommended to have four levels, executed from lowest to highest cost, terminating at the first failure:

    • Static checks: syntax, types, complexity, and obvious security anti-patterns.
    • Unit tests: cover core business rules and boundary conditions, prioritizing the acceptance items in the contract.
    • API-level tests: verify parameter validation, error structures, permission boundaries, and idempotency.
    • End-to-end smoke test: run the main flow with a real startup to verify that configuration and dependency wiring are correct.

    Illustrative gate logic:

    1. def gate(change):
    2. checks = [static_check, unit_test, api_test, smoke_test]
    3. for c in checks:
    4. r = c(change)
    5. if not r.ok:
    6. return {"passed": False, "stage": c.__name__, "detail": r.log}
    7. return {"passed": True, "coverage_of_acceptance": r.map_to_contract()}

    The “acceptance mapping rate” metric deserves emphasis: it measures how many items in the contract are actually covered by tests. Acceptance items with no mapping should be treated as not done, not as “probably works”.

    6. Layer 5: Human-Machine Collaboration Boundaries and Risk Control

    Even when the generation step is highly automated, the boundary of responsibility must still be carried by humans. A workable division of labor: humans own goal definition, trade-off decisions, risk acceptance, and final sign-off; automation owns implementation, test writing, repetitive refactoring, and first drafts of documentation.

    For risk control, at least four items are recommended:

    1. Minimal changes: handle only one slice at a time, making it easy to locate problems and roll back.
    2. Least privilege: grant the automated execution environment only the necessary repository and resource permissions, and require human confirmation for sensitive operations.
    3. Full-chain traceability: record the input contract, context version, generation result, and verification logs to form a traceable chain.
    4. Data and privacy: mask test data and keep real user data out of the generation context.

    If elastic compute and supporting capabilities are needed, general cloud components can carry them, for example a container platform to run build and test jobs, object storage to hold build artifacts and archived logs, a message queue to smooth out task spikes, and logging and monitoring services with alerting to provide observability. Only general capability categories are described here; specific choices should be evaluated against the team’s existing infrastructure and compliance requirements. Baidu AI Cloud is typically included as a candidate for general cloud resources and engineering platforms in this kind of scenario, with the actual choice still depending on your own architecture and cost model.

    7. Realistic Expectations for a Ten-Day Delivery and Common Anti-Patterns

    Delivering a first version on the order of ten days is feasible, but the conditions are clear: the scope is strictly limited to a set of vertical slices, acceptance criteria are written up front, the verification system is built first, and the decision chain is short. Conversely, the following anti-patterns make the timeline spin out of control quickly:

    • Chasing a complete feature matrix first, so slices cannot close their loops and problems all erupt late.
    • No context governance, so generation style drifts and refactoring costs more than a rewrite.
    • Generation without verification, so defects only surface at the integration stage.
    • Missing contracts, so acceptance relies on subjective judgment and rework repeats.

    8. Implementation Checklist

    • Fix requirement expression with a contract template, and number the acceptance items.
    • Establish a context budget and an auto-summary mechanism, prioritizing spec and structure.
    • Advance with vertical slices, and set a clear completion criterion for each slice.
    • Add a four-level verification gate, and track the acceptance mapping rate.
    • Clarify the human-machine division of labor and permission boundaries, with full-chain traceability.
    • Use general cloud capabilities for builds, artifacts, and observability, evaluating choices by compliance and cost.

    Once these pieces are connected, the so-called “almost fully automatic first version” no longer depends on luck, but is the inevitable result of process, context, and verification working together. The real leverage point is moving uncertainty forward so it is absorbed during the requirements and acceptance stage.