AI Agent Management and Engineering Practices: A Handbook for AI Product Managers

    This handbook explains how AI product managers can turn uncertain LLM capabilities into reliable, governed execution systems. It covers what an agent really is, how to decide whether a task suits agent-based automation, how to write task contracts, design context and tools with least privilege, orchestrate workflows, evaluate quality beyond demo impressions, and operate agents safely in production.

    1. The New Job of AI Product Managers: Designing Manageable Execution Systems

    Traditional software products run on deterministic processes: users provide input, the system processes it according to preset rules, and returns a result. Product managers mainly focus on whether requirements are accurate, workflows are smooth, and features are complete.

    With large language models, systems gain the ability to understand natural language, generate plans, and process unstructured information. But these capabilities do not mean the model can reliably complete business tasks. A model may misunderstand goals, miss constraints, or produce conclusions that sound plausible but lack supporting evidence.

    When the system further gains tool-calling capabilities—querying data, modifying records, or triggering business operations—errors no longer affect just a piece of text. They can affect real data and real business state.

    AI product managers therefore face a new question:

    How do you organize an uncertain model into an execution system with clear boundaries, traceable behavior, and verifiable results?

    Managing agents will become an important skill, but it does not replace requirement insight, domain knowledge, or business judgment. More precisely, the core competency of a product manager is understanding business goals and converting agent capabilities into reliable delivery through well-designed tasks, permissions, and feedback mechanisms.

    2. Understanding Agents: Not Longer Prompts, but an Execution Loop

    In a product design context, an agent can be understood as a system that works toward a given goal, decides the next action based on context, and—within its authorized scope—calls tools, observes results, and adjusts subsequent steps.

    Its typical execution loop is:

    Goal input → Understand constraints → Choose an action → Call a tool → Observe feedback → Decide whether to continue or stop.

    Not every feature that uses an LLM needs this loop. Text polishing can be done in a single generation; fixed-field extraction is often better handled with structured processing. An agent mechanism is only justified when the task path must change dynamically based on intermediate results.

    2.1 Separate Model Capability from System Capability

    The model determines the baseline level of understanding, reasoning, and generation, but final delivery quality also depends on many other factors:

    • Whether the input is complete and includes necessary background;
    • Whether retrieved materials are relevant, current, and trustworthy;
    • Whether tool definitions are clear and their outputs easy to interpret;
    • Whether execution permissions match the task;
    • Whether there are validation, retry, termination, and human takeover mechanisms.

    Therefore, not every failure should be blamed on “the model isn’t strong enough.” If the task goal is ambiguous, or a tool’s response is missing key fields, switching to a more capable model may not solve the problem.

    2.2 What the Runtime Framework Is Responsible For

    Engineering work around the agent—context organization, tool integration, permission control, state management, evaluation and feedback—is often grouped under the discussion of Harness Engineering. There is no fully unified definition of its boundaries yet; it can be understood as the systematic design of the agent’s runtime environment.

    The point is not to give the model “more freedom,” but to provide it with appropriate information, executable actions, and necessary constraints.

    If the model is like an employee, the runtime framework is the combination of work policies, business systems, delivery standards, and audit mechanisms. However, this is only an analogy for understanding—it cannot be applied literally to human team management. An agent’s memory, judgment, and accountability differ fundamentally from a human’s, so reliable control must be implemented through explicit system rules.

    3. First Decide Whether the Task Is Suitable for an Agent

    When initiating a product, you should not start from “which model can we integrate,” but from “which business step is worth improving.”

    A scenario suitable for implementation usually has these characteristics: the goal can be described, the input is obtainable, the result can be checked, the execution boundary can be constrained, and the consequences of errors are controllable.

    3.1 Prioritize Verifiable Tasks

    For example, generating internal reply drafts based on approved materials is far easier to implement than “automatically handling all customer issues.”

    The former has a clear scope of materials, output purpose, and review responsibility; the latter mixes factual lookup, emotional communication, business judgment, and external commitments, making both risk and acceptance criteria much harder to define.

    Verifiable does not mean there must be a single correct answer. Open-ended outputs like summaries and proposals can also be evaluated through factual coverage, constraint compliance, evidence completeness, and the amount of human revision required.

    3.2 Match the Automation Level to the Risk

    Tasks can be divided into three categories:

    • Assisted generation: producing drafts, summaries, and suggestions, with humans deciding whether to adopt them.
    • Restricted execution: performing low-risk operations within a clearly defined scope, with execution traces and corrective mechanisms.
    • High-impact operations: involving money, permissions, sensitive data, or irreversible changes—requiring stricter identity verification, approval, and human confirmation.

    This classification is not a one-time label. Different actions within the same business process should have different control levels. For instance, querying a record and deleting a record should not share the same permission just because they belong to the same workflow.

    3.3 Don’t Ignore ROI

    The manual effort an agent saves does not equal the actual business cost saved. Teams must also account for human review, exception handling, compute resources, knowledge maintenance, and security governance.

    If the system frequently produces results that require substantial rework, fast responses alone deliver little real value.

    4. Write Requirements as a Task Contract

    Traditional requirement documents focus on features, pages, and interactions. Agent products should add a “task contract” that specifies what the system must accomplish, on what basis, and when it must stop.

    A practical task contract contains at least six elements.

    4.1 Goals and Non-Goals

    Goals must be specific to deliverables—for example, “compile a list of requirement discrepancies based on the specified materials,” rather than a vague request to “analyze requirements.”

    Non-goals matter just as much. For example, the system may identify discrepancies but cannot approve changes on behalf of the business owner; it may propose solutions but cannot commit to delivery dates on its own.

    4.2 Inputs and Information Sources

    Specify which materials are required inputs and which are optional supplements; also state each material’s scope of applicability, update time, and access permissions.

    If key information is missing, define whether the system should proceed while noting its limitations, or pause and request the missing input. Never let the model fill in business facts on its own by default.

    4.3 Permitted Actions

    List the objects the system may query, create, or modify, and differentiate permissions by action type. Operations with external impact should have separately defined confirmation conditions.

    Permission restrictions must be enforced on the server side, not just written into the prompt. Even if the model requests an unauthorized action, the execution system must be able to refuse it.

    4.4 Outputs and Acceptance Criteria

    Outputs need content requirements, not just format requirements. For example, a discrepancy list should include the location of each discrepancy, its impact, the supporting evidence, and items pending confirmation.

    The clearer the acceptance criteria, the easier it is to locate failure causes and build a continuous evaluation mechanism.

    4.5 Failure and Stop Conditions

    Define in advance how to handle the following situations:

    • Materials are insufficient or contradictory;
    • Tools are unavailable or access is denied;
    • Multiple attempts fail to make progress;
    • The remaining execution budget is insufficient;
    • The task exceeds its authorized scope.

    Stopping does not mean the system has lost value. Being able to accurately explain “why it cannot proceed and what needs to be supplied” is often more reliable than fabricating a complete answer.

    4.6 Responsibility and Takeover Owners

    The system can assist decisions, but business responsibility must be assigned to specific roles. Who approves high-risk actions, who handles exceptions, and who confirms final results must all be determined before launch.

    5. Designing Context: Relevant Information, Not All Information

    The goal of context design is to provide the current task with sufficient, relevant, and trustworthy information.

    Dumping all conversation history and all available materials into the input does not necessarily improve results—it can add noise, contradictions, and cost.

    5.1 Distinguish Information Layers

    It is recommended to distinguish:

    • Stable system rules and safety boundaries;
    • The current user’s task requirements;
    • Reference materials obtained under authorization;
    • Facts and states returned by tools;
    • Intermediate conclusions and items pending confirmation.

    This distinction helps the model understand the input and helps the system trace information sources. Text inside external documents should be treated as data to be analyzed; merely containing imperative phrasing does not grant it the authority to modify task rules or trigger operations.

    5.2 Keep Evidence for Important Conclusions

    Outputs involving factual judgments should, wherever possible, link to the location, version, or record identifier of the source material.

    Evidence is not just about explainability—more importantly, it lets reviewers verify quickly. If the system cannot find supporting material, it should explicitly flag the uncertainty rather than paper over the evidence gap with fluent prose.

    5.3 Long-Term Memory Needs Governance

    Saving every conversation does not create effective memory. Information retained long-term should have a clear purpose, with user consent, expiration, correction, and deletion mechanisms.

    In particular, avoid permanently crystallizing a one-off request into a user preference, or storing unverified intermediate judgments as business facts.

    6. Designing Tools: Connect to Real Business with Least Privilege

    Tool interfaces are a critical boundary between the model and business systems. The vaguer the interface, the easier it is for the model to misuse it; the broader the permissions, the harder it is to control the consequences of errors.

    6.1 One Tool, One Clear Responsibility

    Actions such as querying, validating, and submitting should each have a clear, separate responsibility. For changes with business impact, a staged flow can be used: generate a change draft → rule validation → authorized confirmation → formal submission.

    This does not mean adding manual steps to every operation; it means matching control measures to risk levels.

    6.2 Parameters Must Pass Deterministic Validation

    Before a tool executes, check required fields, data types, value ranges, identity permissions, and current business state.

    Natural language understanding cannot replace business validation. The fact that the model considers an operation reasonable does not mean it satisfies approval rules or data constraints.

    6.3 Retries Must Account for Duplicate Execution

    A network timeout only means the caller did not receive a result in time—it does not prove the business operation was not completed.

    For write operations, design request deduplication or idempotency mechanisms, and confirm the existing execution state before retrying, to avoid duplicate records or duplicate submissions.

    6.4 Error Feedback Should Enable Recovery

    Tools should not return only a generic “execution failed.” Without leaking sensitive information, they should distinguish parameter errors, insufficient permissions, state conflicts, and transient failures, so the system can choose to fix the input, wait and retry, or request human intervention.

    7. Task Orchestration: Start with Simple, Reliable Flows

    Multi-agent collaboration can divide responsibilities, but it also adds complexity in communication, state synchronization, and error propagation.

    At the start, it is usually better to adopt a single execution主体 with an explicit workflow—a single executor with a clear workflow—and add collaborating roles only after the bottleneck is confirmed.

    7.1 Fixed Flows and Dynamic Decisions Each Have Their Place

    For businesses with clear approval sequences and stable rules, use deterministic flow control for critical paths. For steps requiring semantic judgment—such as material screening and content summarization—let the model participate in decisions.

    The more robust solution is usually a combination: business rules control the boundaries, while the model handles unstructured information and flexible choices within a limited scope.

    7.2 When Collaboration Is Needed, Define Handoff Protocols First

    If multiple agents are genuinely needed for material collection, plan generation, and result checking, define each role’s inputs, outputs, permissions, and completion criteria.

    In particular, avoid giving every role full permissions without a clearly accountable owner for the final result. Adding roles does not automatically improve delivery quality.

    7.3 Set Execution Budgets

    Every task should have configurable limits on time, number of calls, retries, and resources. When a limit is reached, the system should return the completed portion, the reason it could not finish, and suggested next steps—rather than trying indefinitely.

    8. Evaluation: From “Looks Good” to Business Acceptance

    Agent product quality cannot be judged by demo experience alone. Before launch, build evaluation samples covering normal cases, edge cases, exceptions, and permission conflicts.

    8.1 Measure Across Multiple Dimensions

    Observe at least the following:

    • Task completion: did it deliver a result that meets requirements;
    • Factual reliability: are key conclusions supported by evidence;
    • Process compliance: did it follow permission and approval rules;
    • Execution efficiency: time, resource consumption, and degree of human involvement;
    • Recovery ability: can it handle tool failures or missing information correctly.

    A single aggregate score easily hides critical problems. A system with high completion rates that occasionally exceeds its permissions should not pass launch review based on average performance.

    8.2 Build an Error Taxonomy

    Failures should be further classified into problems of goal understanding, retrieval, reasoning, tool selection, parameter generation, rule validation, or output expression.

    Only after attribution can optimization be targeted. Otherwise, teams fall into a loop of repeatedly tweaking prompts without confirming whether changes actually solve the problem.

    8.3 Keep an Independent Test Set

    Cases used for day-to-day debugging cannot fully substitute for independent testing. Continuously tuning the system around a small set of fixed problems may produce adaptation to those cases rather than genuine capability improvement.

    Where feasible, combine offline evaluation, limited pilot runs, and online quality sampling to continuously verify system performance.

    9. Operating in Production: Turn Failures into Improvement Assets

    Launch is not the end—it is the beginning of real feedback.

    9.1 Maintain Complete Task Traces

    The system should record the necessary task versions, authorization scopes, tool calls, execution states, review actions, and final results, with appropriate handling of sensitive information.

    The goal of observability is to answer “what happened, what was affected, and how to correct it”—not to indiscriminately store all data.

    9.2 Expand Automation in Stages

    Start with the system generating suggestions only, then move to human-confirmed execution, and finally open automatic execution for validated low-risk actions.

    Each step should have entry and exit conditions. If error rates, human rework, or business risk exceed acceptable thresholds, the system must be able to degrade or pause the relevant capability.

    9.3 Design Compensation for Irreversible Actions

    Not all business operations can be rolled back directly. For actions that cannot restore the original state, design compensation procedures in advance—for example, appending correction records, pausing subsequent steps, or triggering manual handling.

    “Supports undo” cannot remain a UI button; it must be consistent with the underlying business capabilities.

    10. What Product Managers Should Deliver

    A complete agent product proposal should include at least:

    1. Scenario description: the user problem, business value, and scope of non-applicability;
    2. Task contract: goals, inputs, actions, deliverables, and stop conditions;
    3. Permission matrix: authorization requirements for each role and action;
    4. Flow design: state transitions, exception branches, and human takeover paths;
    5. Evaluation plan: sample sources, quality standards, and release thresholds;
    6. Operations plan: logging, alerting, feedback, version management, and degradation measures.

    These deliverables convert the abstract notion of “intelligence” into engineering requirements that can be discussed, implemented, and accepted—and they allow product, engineering, QA, security, and business teams to collaborate around a common standard.

    Conclusion: What You Are Really Managing Is Uncertainty

    The value of an agent product lies not in how autonomous the system appears, but in whether it continuously completes valuable tasks under clearly defined authorization.

    AI product managers need to grow from feature designers into designers of goals, constraints, execution, and feedback mechanisms: knowing when to hand work to the model, when to use deterministic rules, and when a human must make the call.

    From this perspective, agent management is not about issuing more instructions to the model—it is about building a working system that can detect errors, limit their impact, support correction, and keep learning. Only when this management capability is implemented as engineering mechanisms can model capability be reliably converted into product value.