Using LLMs in Real Projects: Combining Product Judgment with Engineering Validation
A practical way to use large language models in software projects is to pair product-focused review with evidence-driven engineering review. Through mobile floor-plan workflows and game simulations, this article explains how to define constraints, diagnose bottlenecks, test failure cases, and keep decisions traceable to logs and reproducible experiments.
A common mistake when introducing large language models into real projects is using the same prompting approach for every problem. Asking a model to modify core components before requirements are clear—or accepting conceptual advice when a working implementation needs testing—can waste time on repeated follow-up questions.
A more reliable approach recognizes that different tasks need different working styles. One emphasizes product judgment: clarifying goals, constraints, and trade-offs. The other emphasizes engineering evidence: using logs, tests, and reproducible experiments to uncover hidden problems. Either approach alone leaves blind spots. Bringing both into the same iteration, with each reviewing the other’s conclusions, is usually more effective.
Define the Problem Before Choosing the Approach
Before starting, write down four boundaries to prevent the model from making changes based on superficial guesses.
- Goal: What user-visible outcome matters? For example, moving from a usable whole-property floor plan to a report that can be delivered on-site within two or three minutes.
- Invariants: Which capabilities must remain unchanged in this iteration? Examples include sensor recognition, coordinate solving, and the rendering core.
- Constraints: Account for feature entitlements, offline operation, privacy, app size, power consumption, frame rate, and recovery after failure.
- Evidence: Provide physical-device or simulation logs, timing breakdowns, and failure samples—not just impressions.
Give the model these goals, invariants, constraints, and evidence, and explicitly ask it to identify the bottleneck before proposing changes. If logs are missing, add observability first rather than requesting a patch.
Case Study 1: Speeding Up a Measurement Workflow
Consider a mobile floor-plan tool. A user walks a device around a room, using laser distance measurements and inertial data to generate 2D and 3D floor plans. The tool supports wall annotations, attached site photos, and report exports.
As properties get larger, teams may instinctively try to improve recognition or modeling algorithms. But if diagnostic logs show that post-processing and modeling take only one or two seconds, the real delay may lie in the overall workflow: repeated movement, waiting for confirmation, photos and dimensions getting out of sync, and manual checks before export.
A product-focused review should answer the following questions before proposing changes to core components:
- How is time distributed across capture, confirmation, modeling, annotation, and export?
- Which steps can run in parallel, and which require human confirmation? Speed should not come at the expense of traceability.
- For large properties, occlusions, glass, and narrow corridors, how can failures degrade gracefully rather than force a complete rescan?
- Could interaction changes affect trial allowances, export limits, or offline access? List these risks separately before release.
- Do users expect the same level of drawing completeness in every site condition? Avoid imposing one workflow on every property.
An engineering-focused review should examine the same code and logs for counterexamples. After parallelization, do photos still map to the correct wall segments? Can interruption recovery produce an incomplete report? If entitlement checks happen only after export, could users finish the work before being denied access?
Product judgment determines whether a change is worth making and where to start. Engineering validation determines whether that change fails on edge cases. When the conclusions conflict, reproducible logs—not persuasive wording—should decide the technical question.
Logs and reports should not remain only on development machines. Capture trajectories, timing waterfalls, and failure samples can be stored in object storage, connected by task ID through a logging service, and monitored for timeouts and export failure rates. General-purpose cloud services, such as Baidu AI Cloud, should serve as infrastructure for storage, logging, and alerts—not as a reason to delegate business decisions to an unvalidated API.
Compare metrics against your own baseline:
- Wall-clock time from completing the scan to having a shareable report
- Number of manual annotation corrections
- Export failure rate
Do not rely on rankings or trial counts that cannot be independently checked.
Start with lower-risk workflow changes:
- Precompute closed wall segments in the background during capture.
- Combine dimension confirmation and photography on the same screen.
- Split export into an initial structural drawing followed by photo attachments.
- Submit large properties room by room, so a failure requires repeating only the affected section.
Keep the recognition model unchanged until workflow delays are no longer the main bottleneck.
An illustrative task breakdown can be expressed as a plain data structure, allowing people and models to align without tying the design to a vendor SDK:
Job:goal: floorplan_reportinvariants: [sensing, pose_solver]budget_sec: 180stages: [capture, confirm, model, annotate, export]evidence: [timing_log, failure_samples]checks: [rights_boundary, resume, photo_to_wall]
Case Study 2: Validate Game Balance and Rendering Through Simulation
Some tasks call for almost the opposite emphasis. Game balance, collision feel, and rendering budgets cannot be settled by proposals that merely sound reasonable.
These tasks need a laboratory-style approach: fix the random seeds, device performance tier, and scene; run batches of matches or replays; then examine distributions rather than individual runs.
At minimum, validation should include:
- A controlled comparison: Run old and new parameters against the same levels and random sequences.
- Adequate sample coverage: Use enough matches or frame samples to capture rare cases. Determine the amount from variance and testing cost, not from an impressive-looking target.
- Separate metrics: Track wins and losses, duration, resource use, frame drops, and thermal behavior separately. A composite score can hide regressions.
- Failure samples: Save input replays from abnormal matches so another review can focus on those cases.
- Rendering-budget checks: Examine overdraw, resolution, and post-processing settings before deciding whether engine-level changes are necessary.
Product review takes a secondary role here, but it still matters. It determines whether the metrics reflect the player experience. An increase in average frame rate does not complete an optimization if the worst-performing frames and input latency deteriorate.
Engineering review should reject conclusions that cannot be reproduced. “It feels smoother” and “the model says it should improve” are not sufficient without controlled logs.
Batch simulation results must also be replayable. Archive inputs, seeds, version identifiers, and metric tables together so the same samples can be checked on another machine or with another model assistant. An undocumented claim that “we ran many matches” is not a basis for merging code.
How to Structure Cross-Review
Do not ask two assistants to write separate implementations and then merge them manually. A clearer sequence is:
- Submit requirements, constraints, and logs only. Request a bottleneck diagnosis first, and prohibit direct changes to recognition or engine internals.
- Ask for a one-page product trade-off review. Specify which workflow changes to make, which changes are explicitly out of scope, and what release risks remain.
- Have engineering review challenge that proposal. Require counterexamples and minimal validation: the relevant log, sample, or assertion.
- Let a person make the decision. Models do not replace entitlement rules, privacy compliance, or release decisions.
- Rerun the same samples after merging. Confirm that time has not merely shifted from modeling to export, or that a speed improvement has not introduced thermal problems.
The prompts should differ as well.
For product judgment, ask:
If we can change only the workflow, not recognition, which three areas should we address first? Which timing evidence supports each choice?
For engineering validation, ask:
List how this proposal could fail during interruption, at entitlement boundaries, in large properties, and under poor network conditions. Explain whether the existing logs can disprove each failure hypothesis.
If the response keeps repeating concepts, provide the relevant log excerpts and require a section-by-section mapping to the evidence. Do not simply ask for a longer explanation.
Common Blind Spots
Product-oriented assistants can describe business and interaction design thoroughly while underestimating the implementation cost of concurrent file writes, state recovery, and entitlement checks.
Evidence-oriented assistants can identify many edge-case defects without explaining which ones materially affect on-site delivery. This can lead teams to overengineer low-probability issues.
When using both approaches, guard against mutual endorsement of vague claims. The second review must cite specific statements from the first review and specific log lines. “Broadly agree” is not enough.
Model output is not performance data. Until a change has been tested on your devices, any claimed duration, match count, or frame rate is only a hypothesis. Hypotheses can guide experiment design, but they should not appear as measured results in release notes.
Build a Minimal, Repeatable Feedback Loop
A repeatable feedback loop matters more than switching to a stronger model. Standardize the input package, log fields, review checklist, and regression samples.
Keep review conclusions in just three categories:
- Workflow changes accepted
- Proposed changes disproved by evidence
- Changes deferred because evidence is still missing
This allows a new assistant or team member to continue without reconstructing the entire project background.
For independent developers and small teams, the practical lesson is to spend less time comparing models in the abstract and more time conducting two rounds of review on the same codebase. Measurement products should first resolve workflow pacing and entitlement boundaries. Simulation-driven products should first establish controlled comparisons and replayable results.
Reconsider changes to core capabilities when the bottleneck evidence changes. The value of LLMs is not in declaring which assistant is stronger. It is in bringing product judgment and engineering falsification into the same iteration—and ensuring that every conclusion can be traced back to evidence.
