Black-Box Autonomous Coding Test: Comparing Two AI Programming Capabilities

    This article reports a 30-day black-box experiment comparing two AI coding capabilities under zero human code review. It defines the test setup, five quantifiable evaluation dimensions, and results across design, coding, defect diagnosis, end-to-end testing, and quota endurance, then shares reusable engineering practices for running AI in unattended pipelines.

    1. Experiment Background: Pushing AI Autonomous Development to the Limit

    Over the past two years, the capability boundary of AI coding tools has kept expanding: from single-line completion, to cross-file rewriting, to today’s “autonomous execution” that can take on a complete task package. Yet most teams still use these tools in a collaborative mode where “humans write the main body and AI fills in the details.” Scenarios where the steering wheel is fully handed over are still rare.

    The goal of this experiment was to push that boundary to the limit: under zero human code review, let the model independently complete the full loop of “solution design → coding implementation → debugging and fixing → end-to-end verification,” and observe its stability on long-cycle, high-consumption, high-complexity tasks.

    1.1 Development Paradigm Definition

    The experiment used an “AI supervisor + containerized Worker” scheduling bus structure: the upper layer had the model handle task decomposition and scheduling, while the lower layer consisted of several local containerized execution units responsible for compiling, starting, running tests, and returning logs. The entire process had no front-end interface, and the deliverables were runnable services and scripts.

    The success criterion was deliberately simplified: the final test script passing counts as success. Code readability, naming elegance, and comment completeness were not part of the evaluation. This setup removed subjective interference from “style preferences” and kept the comparison focused on “whether it can actually run.”

    1.2 Resource Model and Fairness Constraints

    • Capability A: Used a top-tier coding subscription from a cloud vendor, consuming roughly 3 billion tokens in total.
    • Capability B: Fully exhausted the weekly quota for four consecutive weeks.

    The two were close in order of magnitude in terms of “total available budget,” but their supply curves differed: the former was a huge one-time pool, the latter a periodic quota. This difference was itself one of the evaluation subjects—when repeatedly trialing over long cycles, the shape of the quota affects output more than its size.

    2. Evaluation Dimensions: Five Quantifiable Observation Areas

    Dimension Observation Focus Criterion
    A. Solution design and code structure Consistency of directories, files, path naming, and the initial plan Proportion matching expectations
    B. Coding accuracy Compile/start success rate, runtime crash frequency Rework count per task
    C. Defect localization and patching Whether it gives root cause and minimal change in one shot Convergence rounds, wrong-patch rate
    D. Test loop autonomy Whether log analysis → modification → retest can run unattended Number of human interventions
    E. Quota endurance Whether it can support long, repeated trialing Effective iterations per unit of quota

    The value of this framework goes beyond this comparison. Any team wanting to assess “whether a tool can enter an unattended pipeline” can reuse these five dimensions to turn subjective impressions into measurable metrics.

    3. Test Results: Close Capability Tiers, Differences in the Deep End

    3.1 Design and Coding Phase: Overall the Same Capability Tier

    Both capabilities could read an existing codebase, output a structured Markdown plan, and clearly list new and modified file paths; the match between directory structure and the expected plan was generally above 80%. The shared problem was over-design: a tendency to generate redundant abstractions, extra configuration, and uncalled branches. In the experiment, after removing a certain class of specification plugins, redundant output dropped significantly, showing that “the fewer the constraints, the more freely the model improvises.”

    Low-level implementation errors (boundary conditions, type mismatches, unreleased resources) appeared in both and required multiple rounds of local fixes. Differences at this stage were not significant and can be seen as the same tier.

    3.2 Defect Diagnosis: The Watershed Appears at the “Root Cause Level”

    Metric Capability A Capability B
    Localization depth Tends to give a design-level root cause at once Often stays at surface-level code errors
    Convergence rounds Average 1.x rounds Often needs 3–5 rounds of guidance
    Solution completeness Gives multiple options first for confirmation Tends to change code directly, needs mid-way interception
    Wrong-patch probability Low Higher, easily triggers cascading new problems

    Key conclusion: surface fixing and deep attribution are two different capabilities. The former relies on pattern matching; the latter requires the model to build a reasoning-capable mental model of the system structure. Capability B’s restraint in “giving a plan before acting” actually reduced the probability of cascading failures; Capability A’s decisive changes were faster on simple defects but tended to make things messier on deep design defects.

    3.3 End-to-End Test Loop: The Real Test of Unattended Operation

    The loop of log analysis → localization → modification → retest tests not single-point intelligence but state retention over long contexts. Three common failure modes appeared in the experiment: forgetting previously ruled-out hypotheses, re-introducing deleted code, and modifying the test rather than the implementation after a test failure. Capability A showed more obvious state drift over long loops and required an external script to forcibly inject an “already-tried list” to keep progressing stably.

    3.4 Quota Endurance: Periodic Quotas Are More Resilient

    A one-time huge pool advanced very fast early on but lacked rhythm constraints and tended to burn rapidly in the wrong direction; periodic quotas forced the process to “settle once per cycle,” which instead improved effective output per unit of quota. The engineering takeaway: adding a budget metronome to an autonomous process is more effective than simply scaling up capacity.

    4. Reusable Engineering Practice Recommendations

    1. Force plan-first: Require outputting the list of files to change and root-cause hypotheses before allowing code, which can significantly reduce the wrong-patch rate.
    2. Externalize state: Write already-tried hypotheses and ruled-out paths into a separate file, injected into context each round to counter state drift.
    3. Minimal-change constraint: Explicitly state in the prompt that “only one module may be changed” to minimize the probability of cascading failures.
    4. Tests cannot self-modify: Test scripts are fixed externally, and the model can only change the implementation, avoiding “changing the exam” style false passes.
    5. Budget in beats: Settle quota per cycle and count effective iterations, using rhythm constraints instead of blind scaling.
    6. Observability first: Unify log formats and structured output so that log services and monitoring alerts act as the “referee” while the model only plays the “contestant.”

    5. Conclusion

    In this extreme black-box experiment of 30 days, 3 billion tokens, and 110,000 lines of code, the two AI coding capabilities were at the same tier in design and coding; the real gap appeared in three places: defect root-cause depth, interaction convergence efficiency, and state retention over long loops. The takeaway for engineering teams is clear: don’t just look at “whether it can generate code,” but assess “whether it can converge stably under unattended operation.” Making evaluation dimensional, externalizing state, and putting the budget in beats is the realistic path to truly bringing AI into the production pipeline.