Skip to content
Agent Field Notes
Practice topicsFilter practice questions by topic.All practice →
knowledge unit 44AdvancedSystem designAbout 18 minutes

Understand → Implement → Debug → Design

Separate plan revisions from external facts

Examine dynamic plans, completed side effects, dependencies, and acceptance invariants.

planningState versionApproval

Knowledge content check2026-10-03 · Check the source of the original question2026-10-02

Which step do you want to learn from this knowledge point?

Select the starting point based on the current basis, or you can go deeper one by one. When you encounter an unfamiliar concept, go back to the core principles first; use the knowledge exercises to check your understanding when you are finished.

Understand first

New to this knowledge point

Complete the prerequisite concepts, read the principles and counterexamples, and then explain why in your own words.

Start with core principles →

Implement next

Prepare to write the principles into code

Understand implementation steps and boundaries, complete small tasks, and check results against acceptance requirements.

Reading implementation and trade-offs →

Debug failures

Need to handle failures and changes in conditions

Follow the continuous questioning to locate the failure premise, and then compare the migration cases to explain how the plan should be adjusted.

Continue to delve deeper into the problem →

Compare designs

Need to design or review plans

Combine engineering deductions and senior self-evaluation standards to explain the applicable conditions, costs and alternatives of the plan.

Analyze engineering scenarios →
Knowledge unit directory

LEARN · PRACTICE · REFLECT

Knowledge learning and personal records

My notes and review ↗

First read along the principles, Q&A and migration cases. When you need to check your understanding, switch to reinforcement exercises or start personal recording.

Answers and personal notes

Each modified commit will be kept as an independent history. Your level of mastery is up to you to evaluate yourself against the standards.

Core concept · Separate plan revisions from external facts

Understand the core principles first

Preparatory concepts:Dependencies, Operational ledger, version approval

Plans are modifiable assumptions about future actions, and ledgers are facts that have already occurred. Replanning can only adjust the remaining work; when the goals, dependencies, or parameters change, the artifact and approval should be invalidated along with the dependencies, and cannot be undone by deleting the plan.

Visual guide · Replan remaining work from actual facts

Replan remaining work from actual facts

Editing a plan cannot undo an effect. Invalidate changed dependencies and review changed actions while keeping existing operation facts. Select the figure to open it at full size.

A plan is not an execution ledger

An agent can edit its own checklist, so the checklist cannot also establish what happened. Removing a payment from plan v2 does not return the money. A timed-out action cannot simply disappear from the failed-step list.

Replan from changes in assumptions

Distinguish transient network errors from invalid premises. The former may need an idempotent retry; the latter may require changed dependencies or steps. Record additions, removals, and parameter changes, then invalidate dependent artifacts. Budget repeated replanning on unchanged evidence; thinking again does not necessarily advance the task.

Approval binds an action, not a plan name

Moving from v1 to v2 neither invalidates nor inherits every approval automatically. Compare actual actions, targets, and content versions. Reordering reads may preserve approval; changing a recipient, publication text, or amount requires reassessment under the approval policy. The application contract determines reuse.

Check understanding with a question

Halfway through the execution, it is discovered that the plan is wrong. Should the Agent re-plan or continue?

Compare with the reference answer

Plans are editable proposals; goals and authorization remain independent contracts. Inspect completed actions, pending requests, and artifacts before revising remaining dependencies. Do not repeat completed writes for cosmetic plan consistency or reuse approval after changing targets or permissions. Bound replanning and explain each change and which results remain valid.

Implementation and trade-offs

What situations deserve re-planning?

Divide triggering reasons into environmental changes, failure of an original assumption, temporary unavailability of tools, and goal clarification. If the network fails temporarily, you can retry in a controlled manner without generating a new plan every time; if you find that the target account does not exist, you need to re-confirm the entity or stop. The plan includes step IDs, dependencies, input versions, completion criteria, and whether side effects can occur, making it easy to determine which parts are failing.

Freeze the facts and adjust the remaining work

Pause new actions at the security boundary and read the operation ledger. The fact that an email has been sent is an external fact and cannot be "undone" through the deletion step. For requests whose outcome remains unknown after a timeout, check the receipt first. Completed artifacts can only be reused if the dependencies have not changed; for example, after the measurement definition changes, the old summary figures should be marked as expired, but the original counting evidence can still be retained.

How to handle versions and approvals

When generating plan_v2, record the differences relative to v1 and save the reason for the replacement. Approval should be bound to specific actions to be executed and parameter versions; the new plan only changes the display order and the actions remain unchanged. Approvals can be reused according to the established strategy. If the amount, recipient or content changes, the approval will be re-entered. The final state is determined by the original business acceptance, and the acceptance conditions cannot be secretly lowered in order to complete the plan.

Prevent infinite re-planning

Set a replanning budget, identify recurring failure fingerprints, and define termination conditions. When both plans require the same unavailable tool, the reason for the blockage should be given or clarification requested. In the test, the data injected in the second step becomes invalid, the write request is unknown in the third step, and the parameters are modified after approval. It is checked that the system has no repeated side effects, and the user can trace each plan change.

Engineering deduction

scene
Interview hypothesis: Halfway through the report generation, the user changed the statistical scope from one subsidiary to the entire group.
design decisions
Keep the original data collection evidence, invalidate the old aggregation and approval, and recalculate the remaining steps.
Verify target
The new report covers the new scope, and the old publishing action will not be repeated.
applicable boundary
Whether scope changes can be processed automatically depends on the original authorization and business rules.

Continuous questions and answers

Continue reading along with the premises and constraints of the problem. Understand the reference answers first, then try to put away the answers and explain the cause and effect and trade-offs in your own words.

Draw inferences from one example: If the conditions change, how to deduce it?

First find out the conditions for change, and then determine which premises in the original plan still hold true. The following cases are teaching deductions to facilitate the transfer of principles to new problems.

You only need to change the display order

Changing conditions:Plan changes do not change artifact content or writing actions

Extended question:Can old approvals be retained?

Derivation and reference solutions

If the policy approves fixed artifacts and goals, and the sequence change does not change the external behavior, it can be retained after comparing the digest. If the sequence affects payment, dependency or resource occupation, it itself belongs to action semantics and needs to be re-examined. It is clear which fields affect approval and cannot be judged by the plan version number.

The principles that remain unchanged:Approval validity is determined by actual action invariants.

Tool permanently offline

Changing conditions:Environmental failure rather than user goal changes

Extended question:How to revise remaining tasks?

Derivation and reference solutions

Query the alternative capabilities and their contracts to determine whether they meet the same acceptance; if the adaptation is determined, new dependencies will be generated and related artifacts will be re-inspected. If there is no alternative ability, the completed part will be retained and marked as blocked. You cannot replace it with a weaker result but continue to use the original success criteria. Executed operations are still reconciled from the ledger.

The principles that remain unchanged:Plans are variable, and goals and facts are not automatically rewritten because the tool is unavailable.

Easy to make mistakes

  • Treat the plan as a fact book
  • Perform all steps again
  • Manufacturing success by lowering acceptance conditions

References

It is designed based on public technical information; the reference materials support the technical mechanism, and the scenarios and scoring standards are designed by this website and do not represent the original interview questions of a certain company. New Q&A and migration cases are added for principle explanation, and source verification and case operation verification are recorded separately.

Check how far you understand

After reading, you can explain the principles, boundaries, and trade-offs against these standards. It is up to you to evaluate your mastery; if further verification is needed, complete the small tasks below.

Basic standards met
Be clear about the separation of goals and plans, and know that external facts cannot be undone.
Intermediate and advanced signals
Able to invalidate dependencies and handle unknown requests.
Senior criteria
Provide plan versions, approval bindings, reuse rules and replanning budgets.

Hands-on verificationComplete on demand · Suggestions15 minutes

A three-step plan is given: fetch data, generate reports, and publish; modify the measurement definition after generation to mark which states are invalid.

Expand acceptance requirements and checkpoints
  • Dependency changes propagated to reports
  • Revalidate publication approval.
  • Historical execution records can still be traced

Key inspections

  • Distinguish between target contract and plan version
  • Reconcile committed side effects
  • Give replanning trigger and upper limit