From AI Agents to Domestic Compute: Practical AI Engineering in Production
A practical guide to AI engineering: building reliable desktop-operating agents, evaluating image generation for production, optimizing 3D mesh assets, and migrating model training to domestic chips—with verification-first workflows for each.
Back to Engineering Value: Focus on Deliverability
AI news often mixes capital market trends, agent progress, and compute roadmaps into one narrative, but these operate at different levels: markets reflect expectations, benchmarks reflect performance under specific conditions, and engineering delivery depends on whether a system runs reliably in real business workflows.
For developers and enterprise users, three questions matter most: Can models complete cross-application tasks? Can generated content enter production pipelines? Can training and inference run on a sustainable compute supply? These correspond to agent execution, content production, and computing infrastructure.
A note on scope: this article deliberately avoids repeating unverified valuations, rankings, and predictions. Instead, it abstracts these topics into general engineering problems and discusses implementation principles, evaluation methods, and deployment constraints.
Desktop-Operating Agents: From Giving Answers to Completing Tasks
Close the Loop of Observation, Decision, Execution, and Verification
Traditional Q&A systems generate text. Desktop-operating agents must change the state of external applications—reading spreadsheets, organizing data, filling in business systems, and generating summaries.
A reliable system forms a closed loop:
Task goal → Capture interface state → Plan next step → Execute action → Verify result → Continue or stop.
The observation stage uses screenshots, UI structure information, or controlled interfaces provided by the application. The decision stage identifies the gap between the current state and the goal. The execution stage converts plans into clicks, typing, scrolling, or other authorized actions. The verification stage checks whether the actual result matches expectations.
Verification deserves special attention. Clicking a submit button doesn’t mean the submission succeeded; entering a file path doesn’t mean the file was saved; a success message doesn’t guarantee all fields are correct. Critical operations should be cross-checked against interface state, business records, or output files.
Separate Desktop Interaction from Background Execution
“Operating applications in the background” is not a single capability. Different applications and environments handle background windows, input events, permissions, and session states differently.
Tasks executed through controlled interfaces typically don’t require window focus. Tasks that rely on the graphical interface may be affected by window occlusion, focus changes, resolution, and pop-ups. Architecture design should first determine whether a task truly requires UI interaction.
A sensible order: prefer stable APIs for any step that supports them; use UI interaction only where no structured entry point exists. For tasks that must run on the desktop, consider isolated execution sessions or sandboxed environments—but confirm the application actually permits this mode of operation.
A single demo does not prove an agent can run unattended in arbitrary environments over the long term.
Break Tasks into Recoverable State Machines
Complex workflows often fail mid-way—due to network fluctuation, UI changes, expired sessions, or the model misjudging the current state.
Engineer tasks as steps with clear inputs, outputs, and completion criteria. For example, a document-processing workflow can be split into five stages: read sources, extract fields, validate formats, write to targets, and verify results. Record execution state per stage, and set timeout and retry boundaries.
Retries must consider idempotency. Repeated reads are usually low-risk, but repeated order submissions, message sends, or record creations can cause real losses. For actions that aren’t naturally idempotent, confirm whether the previous attempt took effect before retrying.
Recovery shouldn’t just restore text context—it should re-observe the real state of external systems to avoid acting on stale judgments.
Build Permissions and Security into the Execution Path
Web pages, documents, and emails that agents read are external data and may contain content designed to induce unwanted actions. Such content must never be elevated to system instructions.
Security design should include least privilege, action whitelists, confirmation for sensitive operations, and audit logging. Reading documents and deleting files should require different authorization levels; preparing a payment and actually submitting it should be separated. Permission checks are best enforced by an independent execution layer, not left to the model’s own judgment.
Log scope needs control too. Full screenshots may contain accounts, personal data, or internal business information. Apply masking, access control, and retention policies to balance auditability with privacy.
Evaluating Image Generation: Rankings Can’t Replace Business Acceptance
Subjective Preference Isn’t Production Quality
Image benchmarks help understand generative capability, but rankings are influenced by prompt distribution, reviewer pools, sample sizes, and scoring rules. High preference in one benchmark doesn’t mean a model suits every production task.
Enterprise scenarios need finer acceptance criteria:
- Semantic compliance: Do subjects, counts, actions, and relationships match requirements?
- Structural correctness: Are perspective, occlusion, object connections, and local forms plausible?
- Text readability: Is text in images accurate, complete, and legible?
- Style consistency: Does a series of assets maintain a unified visual language?
- Editability: Can results be easily adjusted and composited?
- Rights risk: Do inputs or outputs involve licensing issues requiring further review?
Weights should be set by the business. Product showcases prioritize visual realism; process diagrams prioritize relational accuracy; campaign asset series prioritize stylistic continuity. A single aesthetics score cannot cover all requirements.
Build Representative Test Sets and Layered Review
Test sets should cover common, complex, and high-risk tasks, and retain a fixed subset for regression testing across versions. Prompts should describe goals and constraints clearly, but should also include the incomplete phrasing real users might provide, to test handling of ambiguous requirements.
Evaluation can be layered. Layer one checks basics like dimensions, format, and file integrity. Layer two checks semantic and structural issues. Layer three has business stakeholders confirm actual usability.
Automated checks catch rule-based problems but shouldn’t be treated as full quality assurance. Model-assisted review can itself be biased; important content still needs human verification.
Beyond single results, observe stability across multiple generations. Occasionally producing an excellent image and consistently producing acceptable assets are two different engineering capabilities.
Turn Feedback into Reusable Constraints
When generation fails, feedback shouldn’t stop at “it looks bad.” Record specific defects: wrong subject count, missing text, overly complex backgrounds, inconsistent series style.
These issues can be converted into input templates, validation rules, and revision strategies. As feedback accumulates, the system evolves from one-off trials into a manageable content production pipeline. For images involving business facts, review visual quality and factual accuracy separately—don’t let “looks credible” substitute for “is correct.”
3D Mesh Optimization: Reducing Polygon Count Is Only Step One
The Goal Is Lower Total Runtime Cost
High-precision 3D models contain many vertices, faces, materials, and textures. Reducing face count reduces some storage, transfer, and rendering load, but the actual benefit depends on the real bottleneck.
If the main cost comes from high-resolution textures or complex materials, cutting triangle count alone may yield limited improvement. Before optimizing, measure geometric complexity, texture memory, material count, draw-call overhead, and load time—don’t just set a uniform decimation ratio.
For interactive scenarios, the goal is “reducing resource consumption while keeping visual loss acceptable,” not minimizing face count.
Use Error Constraints to Protect Critical Structures
Common mesh simplification approaches iteratively collapse edges or vertices, selecting candidates based on geometric error. During simplification, protect silhouettes, sharp edges, thin walls, holes, material boundaries, and texture seams.
Different assets need different constraints. Mechanical parts need dimensional relationships and hole positions preserved; architectural models need boundaries and planar surfaces protected; character models need topology, skin weights, and deformation behavior near joints preserved.
A smaller overall geometric error doesn’t necessarily mean a smaller visual error. A slight change on a silhouette can be more noticeable than losing large amounts of detail in flat areas. Acceptance should combine geometric distance metrics with multi-view render comparisons.
Check Textures, Normals, and Animation Together
After geometry reduction, original normals and texture mappings may no longer fit the new mesh. Common issues include shading artifacts, texture stretching, visible seams, and animation deformation.
The pipeline should include degenerate-face checks, normal validation, texture mapping checks, and necessary detail baking. Normal maps can supplement some surface detail, but they can’t restore genuinely lost silhouettes, nor can they replace the geometry needed for collision or dimensional measurement.
Animated models must be tested in representative poses. Looking fine at rest doesn’t mean joints won’t collapse or surfaces won’t interpenetrate during motion.
Use Multiple Levels of Detail, Not a Single Version
Close viewing needs more detail; distant display can use lighter models. A LOD strategy selects assets of different precision based on display distance or screen coverage.
Level transitions need to handle visual popping, and should be tested per target device. High-end machines and resource-constrained devices shouldn’t share a single unverified configuration. Final acceptance should combine frame time, memory footprint, load time, and visual consistency.
Training on Domestic Chips: From Hardware Selection to Software Stack Adaptation
Training Capability Isn’t Just Peak FLOPS
Training on domestic chips is a systems problem, not a procurement problem. Whether training runs efficiently depends on operator coverage, numerical precision, memory management, communication efficiency, compiler execution, and distributed training support.
Different training workloads hit different bottlenecks—some are compute-throughput bound, some memory bound, some dominated by cross-device communication. Even with high theoretical compute, if key operators frequently fall back to inefficient implementations, overall training efficiency may remain poor.
Therefore, projections about future compute share should be discussed separately from currently verifiable engineering capability. Concrete projects must be evaluated against real workloads, not migration plans based on trend statements.
Verify Correctness First, Then Optimize Performance
Adaptation can proceed in four stages:
- Establish a baseline on the existing setup: record loss curves, validation metrics, throughput, peak memory, and running cost.
- Validate key operators and numerical behavior on small-scale data and models—check for gradient anomalies and training stability.
- Scale up gradually to the target training size, evaluating data loading, checkpointing, device communication, and failure recovery.
- Optimize batch size, precision strategy, compute-communication overlap, and memory usage once correctness is stable.
Floating-point computation generally doesn’t require bit-for-bit consistency across hardware, but you must confirm that differences don’t harm convergence or output quality. Acceptable error should be defined based on the task nature—successfully starting a training run is not proof of successful migration.
Include Observability and Recovery in Cost Evaluations
Long-running training requires logging, monitoring, checkpoints, and failure recovery. Beyond model parameters, track optimizer state, training progress, and necessary random states to avoid unexplained behavior changes after recovery.
Total cost isn’t just hardware price. It includes adaptation development, energy consumption, storage, communication, failed reruns, and maintenance. The more meaningful metric is the total cost of completing one quality-compliant training run, plus the efficiency of continuous iteration.
An Executable Adoption Path
These technologies span different layers but can follow the same engineering route: define objectives, establish baselines, verify correctness, then optimize and scale.
Agent projects can start with reversible, low-risk tasks and gradually add cross-application workflows. Image production should establish acceptance samples and review mechanisms before scaling output. 3D asset optimization should locate performance bottlenecks before deciding how much to adjust geometry, textures, and materials. Compute migration should validate key operators and convergence before large-scale training.
Enterprises can define clear admission criteria for each capability: task completion rate and human intervention frequency, asset pass rate and review cost, runtime performance and visual loss, training stability and total cost. Metrics should come from your own business baseline, not borrowed from external demos.
The core of AI engineering is not making models do everything, but placing them inside systems with boundaries, verification, and recovery mechanisms. Only when capability demonstrations become repeatable delivery can agents, generated content, and compute adaptation become long-term production capabilities.
