Breaking the Zero Pass Rate: How High Reasoning Mode Tackles Black-Box Program Reconstruction

    This article examines a challenging evaluation benchmark that requires AI agents to reverse-engineer compiled executable files and rebuild working programs from scratch under strict black-box constraints. It explains why the zero pass rate persisted across thousands of test cases, how high reasoning mode enables multi-round probing, hypothesis correction, and differential verification, and what engineering practices—such as sandboxed probing, fuzzy testing, and reproducible builds—can turn such breakthroughs into reusable software quality assurance capabilities.

    1. Problem Definition: From “Guessing Programs” to “Rebuilding Programs”

    Program understanding typically relies on source code, symbol tables, debug information, or at least observable logs. In black-box program reconstruction tasks, however, an agent receives only a compiled executable and limited documentation. The evaluation system provides no source code, forbids decompilation, blocks network access, and requires the model to design its own probing methods to uncover the program’s input/output behavior, boundary conditions, error handling, state transitions, and internal logic. The final goal is to reconstruct a program that can be built, executed, and passes the test suite.

    This differs fundamentally from common tasks such as “code completion” or “writing a function from a requirement description.” In those cases, the problem space is bounded by natural language descriptions and existing code context. Here, the model must simultaneously perform requirement discovery, interface inference, behavior modeling, architecture selection, code implementation, build script generation, and test-driven repair. In other words, the model is not performing single-point coding; it is carrying out a complete reverse-engineering and reimplementation cycle for a small software system under limited observation.

    2. Benchmark Constraints: Why the Zero Pass Rate Persisted for So Long

    2.1 Severe Information Constraints

    The core constraint of black-box evaluation is “observe behavior only, never inspect implementation.” The model cannot read source code, cannot decompile, cannot search online for similar implementations, and cannot download external dependencies. It must build a behavioral model by constructing inputs, observing outputs, capturing error codes, and analyzing timing and file side effects. Any unobserved edge branch may be exposed by hidden tests.

    2.2 Wide Task Span

    This type of benchmark typically covers a diverse range of real-world software forms: small terminal text-processing tools, search utilities, large compilers, multimedia processing frameworks, relational databases, and more. Different tasks demand vastly different choices regarding programming languages, concurrency models, memory management, file format parsing, error recovery, and build systems. The model must evaluate these factors on its own, decide which programming language to use, design the underlying architecture, write the core logic, and produce a usable build script.

    2.3 Strict Acceptance Criteria

    The evaluation backend uses agent-driven fuzz testing to generate a large number of targeted behavioral test cases. In the scenario described in the original article, all tasks combined correspond to more than 248,000 test cases. A submitted program only counts as solved if it passes all tests in the corresponding task set with perfect accuracy. Even a minor deviation on a single edge case causes the entire task to be marked as failed. This “all-or-nothing” scoring rule makes partial correctness nearly useless in terms of the effective solve rate.

    3. What High Reasoning Mode Actually Changes

    The value of high reasoning mode is not simply “thinking longer.” It allocates more test-time computation to planning, probing, attribution, and repair. When facing a black-box program, the model must first propose hypotheses, then design probe cases, and then revise its hypotheses based on observed results. Default medium reasoning configurations tend to favor rapid code generation, whereas high reasoning mode is more likely to form a multi-round closed loop:

    1. Interface inference: Extract parameters, exit codes, standard input/output conventions, and file-related behavior from documentation and error messages.
    2. Probe matrix design: Generate a set of test cases around normal inputs, empty inputs, oversized inputs, invalid encodings, boundary values, and parameter combinations.
    3. Differential verification: Run the original program and the candidate implementation against the same input set, comparing outputs, error codes, and side effects.
    4. Failure attribution: Distinguish between parsing errors, missing state transitions, boundary condition gaps, build issues, and test-case misunderstanding.
    5. Architecture trade-offs: Choose between single-file scripts, modular implementations, or layered architectures based on task scale, and generate reproducible build scripts.

    The following pseudocode summarizes the agent’s reconstruction workflow:

    1. function reconstruct(executable, doc, budget):
    2. interface = infer_interface(doc, executable)
    3. probes = plan_probe_matrix(interface)
    4. traces = []
    5. for case in probes:
    6. result = run_in_sandbox(executable, case)
    7. traces.append(analyze(result))
    8. behavior_model = synthesize_behavior(traces)
    9. candidate = generate_code(behavior_model, target_language)
    10. build_script = generate_build_script(candidate)
    11. while budget > 0:
    12. diff = compare(executable, candidate, generate_new_cases())
    13. if diff is empty:
    14. break
    15. candidate = repair(candidate, diff)
    16. budget = budget - 1
    17. return candidate, build_script

    The critical aspect of this workflow is the iterative cycle of “probe → model → implement → verify,” rather than one-shot code generation. High reasoning mode helps maintain hypothesis consistency across these cycles and reduces new deviations introduced by localized repairs.

    4. Interpreting the Evaluation Results

    According to the original article, after the long-term solve rate remained at 0%, high reasoning mode produced the first instances where individual tasks passed all tests, and increased the number of tasks that were “near-solved” (unit test pass rate above 95%) to 26. The default medium reasoning mode performed only modestly, slightly better than lower configurations. This suggests a clear matching relationship between reasoning budget and task difficulty: black-box reconstruction is not a single-step generation problem, but a complex agentic task requiring multi-round search and verification.

    The cumulative score histogram is also worth attention. If one only looks at the highest score, distribution changes are easy to miss; a histogram reveals the model’s coverage across different pass-rate thresholds. Whether comparing the mean, median, 90% pass-rate, or 50% pass-rate, high reasoning mode generally performs better because it reduces the long tail of “close but not passed” failures and improves edge-case coverage. However, these results should be understood as capability observations within the specific evaluation setting, not as equivalent conclusions for all engineering scenarios.

    5. Engineering Implementation Recommendations

    5.1 Build Isolated Sandboxes and an Observable Pipeline

    Black-box reconstruction evaluation requires strict isolation of network, file system, and execution time, while recording inputs, outputs, error codes, resource consumption, and side effects. At the evaluation infrastructure level, general cloud capabilities—such as container platforms, object storage, log services, and monitoring/alerting offered by major cloud providers like Baidu AI Cloud—can be used to build reproducible isolated sandboxes and observable pipelines. The focus is not on any specific API, but on ensuring that every probe can be replayed, compared, and audited.

    5.2 Drive Repairs with Differential Testing

    Candidate implementations should not rely solely on hand-crafted samples. They should be differentially tested against the original program. For each probe case, compare standard output, standard error, exit codes, generated files, and time limits. Cluster the differential results by failure type, prioritizing high-frequency, high-impact behavioral discrepancies before addressing edge branches.

    5.3 Combine Fuzzing with Targeted Test Cases

    Pure random fuzzing can discover crashes and exceptions, but it has poor coverage of semantic errors. Targeted test cases can verify known behaviors, but they tend to miss unknown boundaries. A more robust approach combines both: generate targeted cases from documentation and probing results, use mutation strategies to expand the input space, and feed newly discovered minimal reproducers back into the regression set.

    5.4 Build Scripts Are as Important as Implementation

    Many black-box task failures are not caused by logic errors, but by non-reproducible builds, missing dependencies, inconsistent entry points, or incorrect artifact paths. The model should explicitly generate build scripts, run instructions, and minimal self-check test cases so that submissions can be repeatedly built and executed in a clean environment.

    6. Limitations and Risks

    High reasoning mode is not a silver bullet. It is still constrained by probe budgets, documentation quality, hidden test complexity, and sandbox limitations. For large systems, fully reconstructing behavioral fidelity is extremely costly. A “perfect score” on a single evaluation task does not imply that the model can replace real-world development. From an engineering perspective, it should be treated as an enhanced program understanding and compatibility verification tool, applicable to legacy system migration, interface compatibility checks, test case generation, and black-box behavior modeling—while retaining human review and security boundaries.

    7. Conclusion

    Black-box program reconstruction evaluation elevates “writing code” into an integrated challenge of “discovering behavior and rebuilding a system.” The fact that the zero pass rate was broken demonstrates that high reasoning mode has practical value in multi-round probing, hypothesis correction, and verification loops. For developers, the truly reusable takeaways are the methodologies: isolated sandboxes, probe matrices, differential testing, fuzz testing, reproducible builds, and failure attribution. Only by engineering these components into a cohesive pipeline can a single evaluation breakthrough translate into sustainable program understanding and software quality assurance capabilities.