Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Separate plan revisions from external facts
- 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.
How does the mechanism work?
Step-by-step explanation
- If the new plan deletes the steps that have already been paid, how will the system status be displayed?
Replanning tends to confuse future action lists with past facts.
- Which artifacts can be reused?
Reuse requires a validity judgment, not just a completion flag or sunk-cost argument.
- How does it end when the plan changes five times in a row?
Allowing revisions also requires protection against loops that make no progress.
Debugging · Diagnose failures
Diagnose failures · Separate plan revisions from external facts
Objectives of this level: Able to invalidate dependencies and handle unknown requests.
Visual guide · Revise the future, retain the past
A plan revision changes remaining work, not committed effects. Compare actual action semantics for approval reuse and bound repeated replanning. Select the figure to open it at full size.
1
Treat the plan as a fact book
Distinguish between target contract and plan version
2
Perform all steps again
Reconcile committed side effects
3
Manufacturing success by lowering acceptance conditions
Give replanning trigger and upper limit
code example
You only need to change the display order
Plan changes do not change artifact content or writing actions
Can old approvals be retained?
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.
Approval validity is determined by actual action invariants.
Acceptance task for this level
A three-step plan is given: fetch data, generate reports, and publish; modify the measurement definition after generation to mark which states are invalid.
Reading this browser’s record…
Hide the answer and check your understanding
If the new plan deletes the steps that have already been paid, how will the system status be displayed?
Expand reference derivation
This step in the plan can be marked as "no further required", but the ledger retains the payment success, amount, target and receipt. If the new target requires a refund, create a compensation action associated with the original payment, and go through refund permission and acceptance. The final status of the task also indicates that the payment has been made and is pending refund, and the deletion step cannot be interpreted as payment being revoked.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.