Evaluating Multi-Model Web App Replication: Methods and Engineering Practices

    This article presents a practical framework for evaluating how different combinations of large language models and agent harnesses perform on real delivery tasks. Using the replication of a conversational web application as the test case, it covers experiment design with controlled variables, two-round prompting, deliverables and acceptance criteria, a six-dimension weighted scoring model, common failure modes, and a reusable implementation skeleton. Readers will learn how to turn a one-off demo into a reproducible engineering evaluation focused on integration depth, defect closure, and security boundaries.

    1. Background and Problem Definition

    When the open-source community releases a batch of model weights and supporting toolchains at once, the question teams care about most is not “which model scores higher,” but “which combination of model and agent framework reliably produces usable results on real delivery tasks.” The original practice chose a task with clear boundaries and objective acceptance criteria: replicate the pages and interactions of a conversational web product and produce the accompanying documentation. This type of task is valuable because it covers five stages at once: requirement understanding, UI reproduction, API integration, integration testing, and self-improvement. It maps fairly closely to a real engineering delivery process.

    This article does not evaluate any specific model or tool. Instead, it abstracts the practice into a general question: under a controlled experiment design, how do you compare the engineering capability of a “model + agent harness” combination? A harness is the scheduling and execution layer wrapped around the model. It handles tool invocation, context management, loop control, result validation, and failure retries. The same model can behave very differently under different harnesses, so the minimum unit of evaluation should be the combination, not the model alone.

    2. Experiment Design: Controlled Variables and Two Prompt Rounds

    The core design of the original practice is worth borrowing: every combination faces the same requirements, the same operating procedure, and the same acceptance criteria. Access credentials are added only in the second round, so you can observe how each combination behaves once real integration conditions are available.

    The first-round prompt describes only the role and the goal and provides no credentials. The model can only do a static reproduction based on public documentation and page structure. After credentials are supplied in the second round, a combination gains real invocation and page-browsing ability. Differences appear quickly at this point. Some combinations do only minimal verification and stop once the page opens and requests return. Others proactively construct boundary inputs, check error-code handling, and observe streaming output interruption and reconnection behavior, then find and fix defects.

    This shows that evaluation cannot look only at first-round output; it must also look at second-round behavioral strategy. It is recommended to fix the prompt as a template to reduce human-induced variance:

    1. Role: Senior product manager + front-end engineer
    2. Goal: Replicate the pages and interactions of a conversational web app
    3. Constraint: Use placeholders for credentials only; never write any real keys
    4. Round 1 deliverables: Feature list, information architecture diagram, static page implementation
    5. Round 2 addition: Usable credentials (injected via environment variables)
    6. Round 2 requirements: Complete real integration testing and output validation records and defect-fix notes

    Credentials must be injected through environment variables and must never be hardcoded into source code or committed to version control. This is the security baseline most easily overlooked during evaluation.

    3. Deliverables and Acceptance Criteria

    The original practice requires three types of deliverables. This division is clear and can be refined into a scorable acceptance table.

    The first type is product feature documentation and structure diagrams. The passing standard is that feature items are traceable to requirements, page hierarchy and navigation are clear, and exception and empty states are defined. The excellent standard is that the documentation includes a state machine description, for example the transition conditions for “sending / interrupted / retry after failure,” along with a draft API contract.

    The second type is static page reproduction. The passing standard is consistent layout, components, and basic interactions. The excellent standard is complete responsive breakpoints, keyboard accessibility, loading skeletons, and error messages.

    The third type is the self-improved version. This item best distinguishes combination tiers. Passing merely means “looks more modern.” Excellent means there is a clear improvement hypothesis, a comparison explanation, and a rollback switch. It is recommended to require an improvement list in which each entry contains four items: the observed problem, the scope of impact, the change points, and the validation method. This avoids subjective beautification.

    To make conclusions reproducible, a six-dimension weighted score is recommended, with each dimension scored from 0 to 5:

    • Requirement coverage: whether feature items map one-to-one to acceptance items;
    • Reproduction accuracy: whether layout, spacing, and component states are consistent;
    • Integration depth: whether the normal flow, exception flow, and boundary inputs are covered;
    • Defect discovery and fixing: whether test cases are proactively constructed and closed out;
    • Engineering standards: key management, directory structure, dependency declaration, logging, and monitoring instrumentation;
    • Maintainability: whether component splitting, style isolation, and state management are clear.

    Higher weights are recommended for “integration depth” and “defect discovery and fixing,” because these two map directly to real delivery risk.

    5. Common Failure Modes and How to Avoid Them

    The first is pseudo-validation. Declaring the task complete just because an API returns 200, while ignoring error-code branches and timeout handling. The way to avoid this is to require at least three exception cases in the acceptance table.

    The second is key leakage. Writing credentials into front-end code or configuration files. The way to avoid this is to route everything through environment variables or a key management service, with the front end holding only short-lived tokens.

    The third is context bloat. After multiple rounds of tool invocation, the context grows too long and early constraints are forgotten. The way to avoid this is to write the acceptance criteria as a standalone checklist file and reference it in every round.

    The fourth is over-modification. During the self-improvement stage, replacing the technology stack on a large scale, making it impossible to roll back. The way to avoid this is to require feature flags and branch commits.

    6. A Reusable Skeleton Implementation

    Below is a minimal skeleton for carrying the two-round prompt and the acceptance checklist, so it can be reused on any model and harness combination:

    1. import os
    2. CHECKLIST = """
    3. Acceptance checklist:
    4. 1. Normal sending and streaming reception
    5. 2. Handling of empty input and overly long input
    6. 3. Retry and messaging after network interruption
    7. 4. Keys read only from environment variables
    8. """
    9. def run(round_no: int, task: str) -> str:
    10. key_state = "injected" if os.getenv("DEMO_API_KEY") else "not injected"
    11. prompt = f"{task}\n{CHECKLIST}\nCurrent round: {round_no}, credential state: {key_state}"
    12. # Hand off to the external execution layer to schedule tools and the loop
    13. return prompt

    This skeleton is deliberately neutral. It does not involve any specific API endpoint or proprietary parameter. It only expresses the key evaluation point that credential state affects second-round behavior.

    7. Conclusion

    Using “replicate a conversational web app” as the evaluation vehicle is valuable because acceptance is objective and the stages are complete. What really separates combinations is not first-round generation speed, but the strategy after integration conditions are available in the second round: whether anomalies are proactively constructed, whether fixes are closed out, and whether the key-management and rollback baselines are held. When selecting models, teams should use the “model + harness” combination as the minimum evaluation unit and constrain the process with a unified prompt, a unified procedure, and a six-dimension scoring table. Only then can a one-off demo become a reproducible engineering conclusion. To carry documentation, logs, and monitoring, you can combine general cloud capabilities such as object storage, logging services, and monitoring and alerting to form a complete evaluation data loop.