Skip to content
Directory
GitHub Star
Evidence, tags & source code

How Agent Development Differs from Backend Development: From One Request to a Long-Term Personal Assistant ​

If you have built backend applications, an Agent can look familiar at first: receive a request, retrieve information, call APIs, save a result, and return it to the user. Put a model in the middle, and it seems like a business system with a natural-language interface.

The real change appears during execution: model output starts helping determine what the program does next. Which document to read, which tool to invoke, how to divide the work, when to ask a person, and whether to finish may all be proposed by the model in response to material it has just seen. Context, tool descriptions, historical summaries, and user preferences therefore become inputs to the formation of an execution path.

The runtime uncertainty considered here has concrete engineering consequences: the complete path may be unknown when the task starts, later observations can change the next action, and an unproductive attempt need not mean the task has failed. Concurrency, network timeouts, and unknown external effects already exist in backends. A model adds another input that can determine the direction execution takes.

Beyond verifying established flows, engineering must now constrain paths that form at runtime and retain evidence of the decisions and effects that actually occurred. Exploration can change the order of work; it must not reinterpret authorization, reset cumulative allowances, or rewrite effects and stopping conditions. A personal assistant extends that responsibility across time and changes in the user's circumstances.

The first half uses a teaching task to compare control: read two fund disclosures and produce a report, examining tools, state, and mature frameworks. The second turns to asynchronous delivery, human responses, memory consumption, and daily rereading already implemented in our private research application. Actual successes and counterexamples explain why the horizon expands. Teaching examples, scripted-model verification, and small real-model observations remain distinct; they do not establish live investment-research or automated-trading capabilities.

The first half’s public teaching implementation baseline is Open ETF Agent v0.19.0, verified on November 3, 2026. References to other systems use official documentation consulted on the same date. Open ETF Agent is a local teaching project whose mechanisms can be inspected; Claude Agent SDK, Codex, OpenAI Agents SDK, and LangGraph provide different levels of runtime capability. They serve as points of comparison here, rather than a product ranking. Release and source entry point

1. Start with One Task to See How Control Changes ​

Suppose a user asks: “Compare these two fund documents, explain what changed, include sources, and save a report.”

When the rules are clear, a backend program can do this perfectly well: read the specified files, validate dates and fields, perform fixed calculations, and populate a report template. Missing fields produce an error; cases requiring human judgment enter an approval workflow. This approach is straightforward to test and reproduce.

An open-ended task may reveal its real problem only after the documents have been read. The reporting dates may differ, a table may disclose only some items, or the two documents may use different denominators for “growth.” The system must decide whether to read more of the original text, find a comparable basis, choose another analytical method, or present a qualified conclusion.

This is where a model can help: it can propose new research actions based on what it observes. It can also misunderstand the gap, choose the wrong tool, or produce a fluent conclusion without enough evidence.

Engineering questionA rule-driven business workflowAdditional responsibility when a model makes decisions
How is the next step chosen?Code, rules, and workflows define the branchesValidate actions proposed during execution and observe whether they advance the task
How does input affect behavior?Fields and business state enter explicit logicNatural-language material, summaries, and tool results also influence decisions
What state must be saved?Business objects, transactions, and workflow progressAlso retain the actual model input, original proposals, original results, and uncertain effects
What happens when a call fails?Retry, compensate, or escalate according to the API's semanticsFirst distinguish not dispatched, completed, and outcome unknown, then decide whether to continue
What counts as completion?Explicit business conditions are satisfiedCheck execution facts, answer quality, and the deliverable the user can actually obtain
How are costs controlled?Requests, resources, queues, and quotasAlso bound the cumulative work of searching, summarizing, subtasks, and review

These are not mutually exclusive approaches. Workflow engines already support dynamic branches, asynchronous work, and long-running tasks. An Agent can also sit inside a fixed workflow. The comparison concerns where control decisions come from: in a prescribed business path, developers specify how inputs map to the next step; in a model-directed segment, the model performs part of that mapping from the current context. Anthropic's Building effective agents similarly distinguishes predefined code paths from model-directed processes, while acknowledging that definitions of an Agent vary.

Paths Form at Runtime; Stable Constraints Need an Independent Basis ​

With the same two fund documents, one run may notice different reporting dates first and read a historical version. Another may first notice different denominators and check their definitions. A third may establish that a reliable comparison is unavailable and ask the user. When these choices fit the evidence and delegation, there need not be one inherently correct fixed order.

The variation goes beyond wording an answer differently. When output chooses tools, it changes real execution: the objects read, action arguments, number of subtasks, and stopping point can all vary. Even fixing one model response would not establish that later observations cannot change the research path.

Developers therefore have two connected responsibilities: make useful next steps visible to the model, and let the system independently check whether a proposed step may occur. The model can propose more research, while resource management checks the original task's remaining allowance. It can choose a different comparison method, while tools remain restricted to authorized material. Its preference to think for another turn cannot override cancellation or an effective hard deadline.

Stability belongs in the conditions every transition must satisfy; freezing the tool order from one successful demonstration is insufficient. This does not require a new service for every decision. Existing tool backends, resource management, and task-lifecycle logic should retain the constraints they can already enforce.

A rule-driven workflow compared with an Agent observation loop: the model proposes actions, the host validates and executes them, and results return to the model, with separate paths for rejection and delivery
Figure 1 · The model can explore possible decisions while the system controls the conditions for execution. These groups describe responsibilities; they do not require separate services. Expand full-size diagram View full diagram

2. A Minimal Agent Is an Observation Loop; the Hard Parts Surround Its Handoffs ​

A model request may return an answer or propose tool calls. The runtime receives the proposal, validates it, invokes the tools, and includes the actual results in the next model input. Each new observation can change the next choice, until the task delivers a result, waits, or stops.

Claude Agent SDK exposes the loop, tools, and context management used by Claude Code. The OpenAI Agents SDK runner likewise continues through tool calls, handoffs, and final output. Today, you may not need to build the loop from scratch, but you still need to understand which responsibilities it leaves to the application. Claude SDK · OpenAI runner

In Open ETF Agent, for example, the model may propose reading a page, performing a calculation, or saving a report. The tool host checks the allowed tools, document scope, and arguments, while the runtime records actual dispatch and results. A model saying “the report has been saved” and a host retaining a file receipt that supports readback are two different kinds of evidence. Public runtime and tool implementation

A tool interface also teaches the model how to act ​

The caller of a conventional API is usually programmed against an established contract. A model also infers a tool's purpose from its name, parameter descriptions, and return format. A universal tool called query may leave the model to guess resource boundaries, pagination, time conventions, and failure semantics.

A better tool interface makes important distinctions visible. “Read one page of an authorized document,” for example, is easier to constrain than “read any path.” Returning the document version, page number, and completeness information also supports later checks better than returning an unexplained string.

Open ETF Agent's read_result reads back an original result already obtained, rather than silently fetching the latest content at the same location. Source-bound calculations retain their input references, and a CSV can consume that same calculation result. This makes it possible to reconcile the numbers in the report, the numbers in the attachment, and the evidence actually read at the time. Tool contract

Skills, MCP, and permissions answer different questions ​

A Skill can package a reusable method: what to check first, how to compare results, how to handle gaps, and which templates or resources to use. MCP provides a protocol for connecting external tools and data. Both can improve how an Agent works, but neither by itself establishes that the current user has authorized a particular action.

We should also avoid presenting one project's rules as universal across platforms. In Open ETF Agent, a Skill does not expand the original grant. Claude SDK allows the host to pre-approve tools through trusted project or personal Skill allowed-tools configuration, subject to organizational settings. Authority comes from trusted configuration and policy accepted by the host; an instruction embedded in external source material cannot claim the same status. Claude Skill mechanism

Codex expresses another useful distinction clearly: the sandbox limits the files, network, and other resources execution can reach, while the approval policy determines when further approval is required. Approval and execution isolation serve different purposes. A more capable model cannot replace either one. Codex execution boundaries

Why an Unproductive Attempt Need Not End the Task ​

An observation loop lets a model adjust direction in response to results, so it must distinguish an unhelpful path from an action that cannot safely proceed. In our teaching task, reading a footnote and finding that it does not explain a denominator still informs the investigation. The model may try another method within the original scope and budget. Treating every such result as a failed task would require exploration to guess the right path on its first attempt.

Current observationConsequence for further execution
A read succeeded, but its content does not answer the questionResearch may change direction; “not found in this material” must not become “the fact does not exist”
Arguments were rejected and no action was dispatchedThe original execution contract determines whether correction is permitted; corrected arguments create neither new authority nor a fresh budget
A document is outside the authorized scopeBlock that access; only independent work that does not depend on it may continue, without switching tools to bypass the restriction
A write was dispatched, but its effect cannot be confirmedReconcile the original operation before proceeding; uncertainty is not a harmless attempt that can simply be repeated

Our private application encountered another kind of obstruction: optional research notes changed after a request had been prepared, and an old check rejected the entire model dispatch. Those notes helped organize the model's work, but their change did not establish that the user identity, tool scope, or resource conditions had become invalid. We subsequently clarified the responsibilities for local rejection and whole-task termination. Run Termination and Safe Recovery records that design history.

The runtime requirement is concrete: provide the local outcome and its effects to the lifecycle logic that holds the task facts, so it can choose continuation, bounded finalization, or stopping. Permission to continue does not require a retry. When essential material is unavailable, an explicitly partial result or a wait for a human decision can also be the correct exit.

3. Manage Both What Happened and What the Model Can See Now ​

Backend engineers are used to treating the database as the source of truth. An Agent also has a limited working view: the context actually supplied to this model request.

A document being in the database does not mean the model has seen it. A passage appearing in one request does not mean it remains visible in every later request. A summary saying “already verified” cannot substitute for the original verification result.

This directly affects execution. If a summary omits “only some holdings are disclosed,” the next model turn may stop looking for supporting material and calculate overall overlap instead. The original text in the database has not changed, but the next action has. Changes to tool descriptions and result formats can have similar effects, so they deserve more attention than ordinary display copy.

Diagnosing why a run took a different path requires connecting the actual input, visible tools, model proposal, dispatch, and result. Keeping only the initial user request and final answer cannot distinguish a model misjudgment from missing input or a runtime that never executed a permitted proposal. Retain the facts necessary to explain behavior; this does not require feeding the entire history into every model request.

After One Run Ends, What Actually Changes in the Next? ​

Conventional backends also update databases, save reports, and accumulate feedback. They do not necessarily start from zero each time, and not every change in an Agent is memory. Section 1 compared how one task runs. Here we compare what a run leaves behind and how the next run uses it. Persistence is not learning, and sharing a database does not give every record the same lifecycle.

What changesWhat backends and Agents share, and what differsLifecycle and conditions for later use
Business data and external actionsBoth update business records, generate files, and call external services. Agent tool calls also need actual receipts; a model saying “done” does not establish an effect.Persist under business rules and inform later queries. Authorization, transactions, idempotency, and receipts are shared foundations.
Task progress and unknown outcomesBackends have workflow steps and retry state. Agents may additionally retain original tool proposals, actual results, call allowances, and unanswered questions.Primarily belongs to the original task and may survive process restarts. A new Run does not automatically inherit execution authority or permission to replay unknown actions.
Current context and working notesPrograms have request variables and intermediate results. A model chooses its next step from the goals, material, tool results, and notes actually supplied to it.Usually serves the current task. Persistence alone does not carry it into another task; explicit conversation continuation or context assembly is needed.
Historical reports, sources, and logsBoth retain history. Agents may also interpret retrieved history as material for a new task, but an old conclusion cannot replace its original evidence.Can persist across Runs. Saving, retrieving, and using are separate steps; a saved report has not necessarily entered a new model request.
Preferences and long-term memoryBackends already use settings, customer profiles, and recommendation features. Agents can bring recalled preferences, facts, and experience into judgment and expression.Cross-task use needs writing, retrieval, scope, correction, and invalidation mechanisms. Mentioning something does not guarantee permanent storage or use in this task.
Tools, Skills, and permissionsBoth can gain capabilities through deployment or configuration. Tool descriptions and method instructions also affect how a model chooses actions.Require explicit configuration and activation rules. Successful use does not automatically install tools, edit Skills, or expand permissions. Version contracts govern whether an existing Run adopts a change.
Model and runtime configurationBackends also update model services, rules, and dependencies. An Agent's model version, prompt, tool schema, and context strategy can change too.Explicit updates change the relevant configuration. An ordinary inference call does not itself update model weights; a different second answer does not establish learning.
Human feedback and experienceBoth collect ratings, corrections, and business metrics. Feedback can inform rules, candidate memories, evaluation, or training; these are distinct mechanisms.Feedback events may persist, but adoption needs its own implementation. One correction does not automatically change every future answer or constitute online training.

Use the same two documents as a teaching example: the first comparison missed the basis of a fee figure, and a week later the user returns with revised documents. Both systems can produce different results because they read updated database records. Whether the Agent improves in another way depends on what actually happens next:

  • Only save the old report: the new Run does not necessarily know about the omission.
  • Explicitly include the report and the user's correction in this input: current context changes, giving the model an opportunity to check the fee basis. This is not new knowledge learned into the weights.
  • Save “state the fee basis separately” as an authorized preference and retrieve it correctly: this creates cross-task continuity. Verify the actual model input, not just the stored record.
  • Explicitly revise the comparison Skill to require this check: the reusable method changes. A backend can likewise add the check to its rules or workflow.

This example explains possible mechanisms; it is not a real quality evaluation. The actual Memory case in section 9 establishes bounded saving and later input consumption, without extrapolating sustained quality gains.

Thus, backends change and Agents change. One additional distinction is that Agents hand selected history and derived material to a model for fresh interpretation as conditions for its next judgment. This adaptability does not replace backend foundations. It increases the need to separate business facts, execution facts, and decision material. Verify not only what was saved, but what the next request actually read, why it was eligible for use, and how it affected action.

Context engineering becomes concrete once these are separated. Select information that is useful for the current decision, still valid, and traceable to a source. Preserve the ability to reread the original when needed, while omitting material that is not currently useful.

This also explains why a larger context window is only part of the answer. More capacity can retain more material, but it does not resolve conflicting content, expired preferences, misleading tool output, or repeated research automatically. Choosing what enters the next request is itself part of application behavior.

LangGraph separates thread-scoped checkpoints from cross-thread stores. Claude SDK also distinguishes conversation history from filesystem state: resuming or forking a conversation does not automatically copy or roll back files. Implementations differ, but the lesson is shared: restoring a conversation, restoring an execution position, and restoring external work products are distinct forms of recovery. LangGraph persistence · Claude sessions

Context management also changes resource allocation. Summaries, specialist checks, and additional retrieval are real work and belong to the same task budget; limiting only the main conversation is insufficient. Open ETF Agent encountered repeated summaries of unchanged material after a report was saved but before the main task ended. Its repair validated and reused a still-applicable summarized range rather than simply increasing the call allowance. The lesson is that context-maintenance mechanisms need stopping conditions too. The teaching implementation primarily bounds call allowances, not a complete token or monetary ledger. Design history

4. Longer Tasks Make “We Do Not Yet Know What Happened” More Important ​

Consider a familiar backend problem. An authorized operation has been sent to an external system. The other side may have completed it, but a network failure prevents the local process from receiving a receipt.

For a query, reading again may be acceptable, although the new result may describe a different point in time. For sending an email, creating an order, or changing a calendar, repeating the operation may create a second effect. Asking the model to think again cannot fill this information gap.

Dispatch is the crucial boundary. If an action was definitively rejected before dispatch, it may be possible to correct the arguments or retry when conditions allow. If dispatch produced a reliable result, continue from that result. If the result is uncertain after dispatch, retain that uncertainty instead of interpreting a local timeout as remote failure.

Dispatch separates an unexecuted operation from one with a receipt or an unknown outcome: reconcile an unknown operation before repeating it, and do not release remote capacity solely because of a local timeout
Figure 2 · An unknown outcome is a real state that needs handling. The local process stopping does not establish that the external action stopped. Expand full-size diagram View full diagram

Since its durable-recovery design, Open ETF Agent has recorded the original Run's proposals, tool dispatch, result commitment, and result consumption separately. If a complete proposal was saved, recovery can continue consuming that proposal. If a tool was dispatched and its outcome is unknown, re-executing it would not establish recovery of the original operation. Only adapters that explicitly support reconciliation can check whether that operation completed. Restarting does not refresh the original authorization, budget, or deadline. Recovery design · Runtime recovery branches

This is not a general guarantee of exactly-once external execution. Database state and an external action usually do not share a transaction. Business idempotency keys, result queries, or an explicit human reconciliation path may still be required. LangGraph's documentation makes the same concern concrete: resuming a node containing interrupt() can rerun code. Even when a side effect is placed after approval, a failure after the external write succeeds but before the node finishes can still cause a duplicate write. LangGraph interrupts and side effects

Runtime uncertainty adds another easily missed distinction: asking the model to answer the original question again does not restore decisions already made. The original run may have selected a particular document version, completed a calculation, and proposed saving the report. Sending the initial question again may lead the model to another version and a different report. Even if that second attempt succeeds, it is a new work process, not a receipt for the original action.

Recovery should first reconnect still-valid proposals, results, and their consumption position, then permit further judgment where the original contract allows it. This does not require reproducing the entire investigation word for word, nor prohibit a new next step after recovery. It requires that new reasoning cannot rewrite an effect that already occurred or make an unconfirmed effect disappear merely by changing the plan.

Durable recovery also widens the horizon toward human collaboration. If the two documents use incomparable reporting conventions, the Agent can explain the difference and ask the user to choose a scope. That is not an execution failure, nor a reason for the model to keep guessing. Preserve the specific question and its options, wait for a reply, then verify that it still belongs to the current task and valid conditions. A checkpoint prevents lost progress; it does not make the user’s decision. Being able to continue does not mean continuing is appropriate now.

For Agents, the appeal of autonomous retries can obscure this problem. Sometimes a good runtime should prevent the model from taking further action: the original operation needs reconciliation before another attempt becomes meaningful.

5. Completion Has Three Layers, and Agent Testing Needs All Three ​

The report task raises at least three different questions: did execution end correctly, are the conclusions defensible, and did the user receive a readable deliverable?

A successful file-read tool only establishes that the file was read. Successfully saving a report establishes that certain bytes were saved. Even a report citing real pages does not automatically establish that every sentence is supported by those pages. Open ETF Agent retains semanticStatus: unreviewed in its result to separate execution completion from semantic review. Results and readback

Conventional testing still has a clear role. Permissions, arguments, calculations, transactions, recovery, and artifact integrity need deterministic assertions. The additional questions introduced by a model need task samples: did it find the right evidence, notice that two figures were not comparable, explain uncertainty, and stop appropriately when evidence was insufficient?

Then return to the user experience. Can the report be opened? Do its attachments agree with the body? If execution fails midway, can the user still read intermediate work that was already saved? A screen saying “completed” while the file cannot be downloaded has not completed delivery.

For research tasks, evaluation should not mechanically require one exact tool sequence. Under the same permissions and business constraints, a model may take different paths to the same evidence. Order can still matter: a write requiring approval must follow valid approval, and consumed results must correspond to the versions actually obtained. Assert business-required ordering without turning an incidental exploration trace into a template for every run.

More revealing tests pair protection with progress. Unauthorized reading must be rejected while independent authorized material remains usable. A tool failure must be recorded without erasing confirmed results. An unknown write must not be repeated while the user can still read a body already saved. Testing only rejection can make stopping on every exception look highly reliable; testing only normal completion leaves prohibited paths unexplored.

The same teaching task can vary one condition: read document A before B, reverse that order, or make optional material temporarily unavailable. Observe whether essential constraints still hold and an eligible deliverable remains reachable. A scripted model can verify these runtime control relationships. Whether a real model finds useful paths, notices incompatible definitions, and produces a good report still requires task evaluation. The two forms of verification serve different purposes.

Conversely, an impressive trace with many tool calls may fail to answer the original question. Observe goal completion, evidence quality, execution reliability, and cost together rather than optimizing whichever is easiest to count.

6. The Shared Lesson from Mainstream Agents: Reuse Runtime Capabilities, Retain Business Responsibility ​

Mature frameworks provide much more than a model call inside a loop. Sessions, tool execution, human approval, context management, recovery, and tracing already have reusable implementations. The important differences concern the unit of execution, who chooses the next step, and where application-specific constraints enter the process. We will keep using the document-comparison task as a teaching example. The comparison describes documented capabilities, not a benchmark we ran for this article.

Claude Agent SDK: give an executable assistant a working environment ​

Claude Agent SDK reuses Claude Code's tools, loop, and context management. Rather than assembling messages, parsing tool calls, and restarting the loop yourself, you embed an executor that can read and write files, run commands, and use extension tools. The framework compacts history as context approaches its limit. This removes loop-management work from the application, but earlier details may be lost; important business constraints should not exist only in an early conversational turn. Agent loop

For our comparison, the application could prepare a separate working directory and let the Agent read two documents, perform controlled calculations when needed, and produce a report. A specialized subagent can investigate a question in a separate context before the main Agent integrates its findings. The benefit is not that more roles automatically produce better reasoning. It is the separation of long material and specialized methods from the main context. Ordinary concurrency can still handle simple parallel file reads. Subagents

The execution environment needs careful design. allowedTools supplies automatic approval rules, not a strict statement that no other tools exist. Calls approved by earlier rules may not reach canUseTool. If a tenant-scope check must run for every relevant call, choose an interception point that actually covers that path, such as a PreToolUse hook, and validate business identity again in the tool backend. Permission rules also do not replace filesystem and network isolation. Permissions · Hooks · Secure deployment

This model fits tasks that require an Agent to keep operating in a working environment. However, resume and fork do not replace workspace management: forking conversation history neither copies nor rolls back the filesystem. Two candidate reports still need separate workspaces or versioned artifacts if they must not overwrite one another. Sessions

OpenAI Agents SDK: connect model collaboration to an application's service calls ​

OpenAI Agents SDK supplies the execution loop, function tools, handoffs, sessions, approval, and tracing. Existing backend services can expose tools for reading authorized material, calculating comparable metrics, and saving a report. Function signatures and descriptions become a model-visible parameter contract, while the services retain their data-access and write rules. The framework accepts model proposals and advances the loop; it does not require the business database to become conversation history. Tools

Collaboration has two distinct structures. With an agent used as a tool, the main Agent retains control, receives the specialist's result, and continues comparing and writing. A handoff transfers conversational control to the recipient. The first fits “check the reporting basis, then let me finish the report”; the second fits “this request now belongs to another service.” Handoffs also require a decision about history: the default conversation may not be suitable for every specialist, so filter inputs deliberately. Compressing history is not the same as removing sensitive information. Handoffs

State support also goes beyond making the application save every message itself. A Session can load and persist conversation history automatically. A run awaiting human approval can pause as a serializable RunState, which the application stores and later resumes. These address conversation history and resumable execution state respectively, not one interchangeable business transaction. Suppose saving a report is allowed automatically but sending it externally needs approval. Bind that approval to the recipient, report version, and action, authenticate the approver on the server, and prevent replay of an old approval. Deserializing a state object does not perform those checks. Sessions · Human approval

For waits that span process restarts or long periods, the SDK also documents integration paths with durable workflow systems such as Temporal. Distinguish three layers: Sessions retain conversations, RunState preserves resumable execution state, and durable orchestration infrastructure supports long-running execution and wake-ups. The SDK is not merely an in-memory loop, but serializing its state alone does not deploy a reliable background execution service. Long-running and durable execution

Guardrails and tracing make checks and diagnosis easier, but their scope matters. The default parallel input check can overlap Agent execution. If no tool may run before the check passes, use blocking validation. An input guardrail is not a check on every tool call; individual actions still need the corresponding tool pipeline or backend validation. Traces expose model calls, tools, and handoffs, but do not replace tenant authorization or establish answer correctness. Their inputs and outputs may contain sensitive material, so the application must decide what to retain. Guardrails · Tracing

LangGraph: put uncertain decisions inside a recoverable process ​

LangGraph organizes work through graph state, nodes, and persistence. It can express a predefined workflow or let a model choose tools dynamically. The comparison task could contain stages for reading, checking the reporting basis, asking the user when necessary, calculating, and drafting. Give the model the decisions that need semantic judgment; deterministic calculations can remain ordinary code nodes. The graph's value is not forcing every task down one path. It makes explicit which transitions may be chosen autonomously and which must stop for input. Workflows and agents

A checkpointer retains execution state within a thread; a store holds cross-thread data. Persistence has tradeoffs too: synchronous and asynchronous writes have different failure windows. Having a checkpoint mechanism does not mean every step has already been durably committed. Choose the persistence mode according to the recovery requirements of approvals and external writes. Persistence modes

An interrupt() can pause for input and resume under the original thread identity, but the interrupted node restarts from its beginning rather than continuing from the paused line. Suppose a report was sent successfully and the process crashed before the node committed. Recovery can reach the send operation again. Placing the send after approval is not enough; the destination still needs a stable idempotency key or a way to query the original result. A query returning no result yet is not proof that nothing happened. If the outcome remains uncertain, preserve that uncertainty rather than automatically repeating the action. The framework answers where work resumes; the business interface answers whether the effect already occurred. Interrupts and side effects

The Agent label does not imply the same division of responsibility ​

Need within the taskReusable framework capabilityDecisions retained by the application
Work inside a file and tool environmentClaude SDK's loop, context, permissions, and subagentsWorkspace isolation, source scope, artifact versions, and business identity
Bring existing services into model decisionsOpenAI Agents SDK's tools, collaboration, Sessions, approval, and tracesApproval targets, business idempotency, sensitive data, and acceptance of results
Embed dynamic research in a long-running processLangGraph's state, checkpoints, conditional paths, and interruptsWhich nodes may repeat, reconciliation of unknown effects, and state migration

Codex likewise illustrates why execution boundaries and approval policy should be distinguished. Permission to run a command does not imply access to every file and network destination. A successful command does not establish that a change meets the product's requirements. Workspaces, validation, and publication have their own conditions. Codex security boundaries

These capabilities overlap; the table offers comparison lenses, not exclusive categories. Open ETF Agent remains an inspectable teaching example: original evidence, shared budgets, unknown outcomes, and bounded compositions can be followed through pinned source. Its limitations must not be projected onto mature frameworks. The useful comparison asks who stores and verifies the same document, approval, and external effect in the chosen framework.

When Is a Dynamic Path Worth Its Cost? ​

When document types, processing steps, and exception exits are already well defined, a fixed workflow is often the more direct baseline. A model can extract or explain material while calculation, approval, and saving follow the prescribed process. This still offers a natural-language experience without opening the whole tool loop.

Expand model-directed execution when new observations frequently require changing the research order, tool combination, or next question, and when that adaptability offers verifiable value. An Agent can first handle just the decision about which additional material to read while other stages stay fixed. A wider autonomous scope adds possible calls, states, and verification costs. Compare it with a simpler baseline on the same task instead of treating a longer trace as an upgrade.

7. After the User Leaves: Separate Continuing Work from Reading Its Result ​

The preceding section compared what frameworks provide. We now turn to problems we actually encountered in our private research application. These are steps toward responsibility across time, not a claim to have completed a personal-assistant product. Separate articles cover the cases in detail; here we focus on the experiences that changed our design judgments. Application verification is not evidence of research quality or real user benefit.

Losing the connection must not redefine completion ​

It is tempting to treat the browser connection as the task's lifetime: while the page remains open, output streams; when it leaves, work seems finished. In an actual disconnect test, research continued. Completion therefore had to be determined from the original task's durable state and published body, not from the connection ending.

Another check exposed a subtler mistake. Execution capacity had been released, yet the first read still showed streaming. The original record subsequently completed and its body was saved. Observing only resource release would have confused “capacity is available” with “the result is readable,” potentially starting duplicate research. We changed the observation to wait for the original durable terminal state and publication, then closed the original runtime and read the same completed result from a separate reader process without new model requests.

The benefit is concrete: a returning user needs the work already done, not another wait for a regenerated answer. This establishes cold reading of a completed result, not lossless recovery from every mid-task crash. Conventional backends also run asynchronous jobs. An Agent adds another concern: preserve the evidence and result of its exploration rather than substituting a new generation for the original deliverable.

“The report is finished” and “notify now” are different facts ​

Timed delivery split completion again. With delivery promised at a time, an early body can be saved without sending the final notification early. Delivery promised by a time permits early completion. If only partial work exists at the deadline, a later final report must not erase the missed deadline.

We verified these distinctions through the real application page, authentication route, and isolated database, using synthetic accounts and scripted model decisions: returning reads the original task, partial and later final delivery retain separate records, and another account cannot read the result. This tests application behavior, not a production latency guarantee or a real model's research ability.

A queue alone is therefore insufficient. Execution progress, readable results, and delivery commitments need distinct records; one “success” field cannot describe the user's experience. Asynchronous Research and Time-Bound Delivery explains this separation.

The separation also suggests a useful next horizon: a persistent goal can span many research runs while each execution retains its own scope and endpoint. What we verified is separation of the task from its connection and independent reading of its result. Organizing these into a revisable, revocable ongoing delegation still requires current authority and conditions for each trigger. The diagram places those time scales alongside an individual model request to show the additional responsibility.

Three timescales for a persistent goal, an individual Run, and model requests: authorized events wake bounded executions, waiting can release compute, and deliverables remain independently available
Figure 3 · From verified task/result separation toward distinct persistent goals, bounded executions, and model requests. Complete ongoing delegation remains a design direction. Expand full-size diagram View full diagram

8. After the User Answers: Receipt Is Not Adoption ​

Once work can outlive the user connection, another wait appears: the model needs material, a scope decision, or approval. Showing a question is easy. The difficult part is getting the answer into the work that actually needs it.

We separated receiving a response from adopting it. Receipt means the system saved it; adoption means the original execution consumed it at an appropriate continuation boundary. Independent work may finish while one decision waits. An answer must not release unrelated work as a side effect.

The difference becomes especially clear with child tasks. The main task paraphrasing “you may continue” is not the same as the original specialist reading the user's full answer. Our controlled verification followed the original application, authenticated HTTP, database, and separate processes: the resumed main task first received the original answer and explicitly continued the original child; the child received it as a distinct user message rather than an arbitrary paraphrase. Retrying the same response identity with unchanged content after a lost acknowledgment returns the original acceptance rather than adding another response or dispatching the original research again. A task that has already ended requires explicit continuation, rather than being silently restarted by a late message.

The value is that a human decision actually changes execution, while “not yet applied” remains visible. A conventional form often treats successful submission as the end of its responsibility. An Agent handoff must also observe the downstream consumer, or the interface can say “answered” while execution proceeds under stale conditions.

These successes used synthetic data and a scripted model gateway through real application paths. They establish response ownership, handoff, and replay behavior. They do not show that a live model asks good questions, and they do not imply that automatic parking and recovery are fully enabled in production. Durable Human Interaction distinguishes receipt, adoption, and explicit continuation.

9. In the Next Conversation: How We Know Memory Was Actually Used ​

The first two steps preserve one task. A personal assistant also needs continuity between tasks: must the user explain the same thing every time? A memory row in a database cannot answer that question.

When optional automatic semantic learning is enabled, we place it after the original response reaching its durable terminal state so that a learning failure would not hold back an answer already ready for delivery. Personal and test memory are separate, and their ownership is bound when the conversation is created. Changing a later interface selection must not reassign an old task. Resetting test storage must not let a late job write old results into the new generation.

In a small real-model verification, we used synthetic user statements and explicit synthetic host permissions. We observed a proposed memory becoming active and then entering another conversation's actual model input. That establishes more than a successful save response: the later consumer really received the information. Other proposals remained candidates. In a separate ordinary self-use path, automatic learning jobs did run, but their proposals were discarded. Those observations establish processing and correct storage ownership, not another successful preference activation.

This also changed what we considered adequate verification. An answer compatible with a preference might have been written that way anyway. Inspecting the actual input establishes that memory participated. Participation still does not establish improvement: these samples did not provide controlled evidence of better long-term answers or a general ability to decide what deserves remembering.

Personalization should therefore not be measured simply by counting saved records. Avoiding repeated explanations is the potential value; provenance, scope, correction, and invalidation are part of its engineering cost. We observed bounded saving and consumption in a real-model path while retaining the cases that were not adopted. Sustained benefit remains a separate question. Context Governance in Practice and The Durable Effects of Forgetting explain why old memory can still affect later input and why deleting a record is insufficient. They are not the original records of this newly described verification.

Following this consumption path points toward an assistant that needs fewer repeated explanations while allowing users to correct old information. Provenance, scope, versions, and authorization in the diagram are not synonyms for storing more history. We verified bounded saving and later consumption; complete cross-task personalization governance and sustained benefit still require further work.

Personalization design relationships: information has provenance, scope, and versions; corrections should revoke later use of obsolete versions and recheck identified dependent summaries; authorization independently controls execution
Figure 4 · How memory participates in later work, and how correction and authorization should constrain it. These engineering relationships do not turn limited samples into a complete personalization product. Expand full-size diagram View full diagram

10. When the User Returns Tomorrow: Ordinary Reading Still Matters ​

Beyond cross-conversation memory, we built something less conspicuous: reliable return visits to daily research. It attracts less attention than automatic notifications, but directly affects whether the user is still reading the research they saw earlier.

The application separates generating today's research from reading it. After successful explicit generation, reopening or clicking again for the same account and server-side UTC date reads the original successful result. Failure and “no suitable items” remain different outcomes. An empty view must not silently count as success, and reopening a page must not authorize another generation.

Two actual problems taught us why this matters. First, long-running research held its generation lock on a normal query-pool connection, leaving its subsequent nested queries unable to obtain a connection. We introduced a separate bounded lock pool to separate lock ownership from query resources, and rechecked for an existing successful result after acquiring the lock. Second, cached cards displayed sources inconsistent with the original report's citations. The original citations were correct; the read projection was wrong. Repairing that projection restored the corresponding sources without rewriting the bodies or adding model calls. Older records lacking precise citation identities still retain their existing permitted view; this is not a claim that every historical record can be precisely rebound automatically.

Agent reliability also lives in the parts that do not call a model. Reading should remain reading. Correcting source display should not produce a different report. Locks, connection pools, and source identity remain backend problems even when a model sits upstream.

Limited review of the original results did not establish that daily selections were consistently good: supported relevance and limited relevance both appeared, while actual follow-up success and real user adoption were not established. We describe the achievement as improved generation, persistence, source display, and rereading, rather than a proven proactive investment-research service. Personalized Daily Research and Its Cache covers the mechanism.

Reliable rereading is a starting point for a more proactive assistant, not its endpoint. A worthwhile next step is checking for change under approved conditions, investigating changes that affect the goal, and separately deciding whether the user needs to hear now. Such proactivity should permit quiet waiting and pausing a delegation. The following cycle is a design outlook motivated by the cases, not an already accepted automatic service.

A future personal Agent design: an authorized event wakes the task, current goals and permissions are reconstructed, bounded work produces checked results, value determines whether to notify or record quietly, and the task returns to durable waiting
Figure 5 · A measured proactivity outlook: events trigger bounded work, value determines notification, and waiting does not require a continuously running model. Expand full-size diagram View full diagram

Looking Back: Each Wider Horizon Began with a Concrete Problem ​

Across the article, the runtime change has one common thread: a model proposes the next step from observations, while the system ensures that the step occurs under valid conditions and preserves its actual effects for later work. Within a task, this concerns tools, state, failure, and recovery. Across time, the same responsibility reaches human responses, old memories, and deliverables already provided.

Initially, finishing a request meant returning a result. As research grew longer, users left, so the connection's end could no longer define the work's end; results needed independent persistence and reading. When a task needed a human decision, saving a response was insufficient: we had to know whether execution had adopted it. In the next conversation, saving a memory was likewise insufficient without checking its actual input. When the user returned tomorrow, we still needed to distinguish the original result, new research, and a source-display correction.

This is how our horizon expanded from backend requests toward a long-term personal assistant. We did not begin with a capability diagram and fill its boxes. We encountered the fact that a successful response, a successful save, and a successful model call do not individually establish that the user's work is done. Each step extends responsibility to another consumer and a later time.

These experiences do not yet constitute a fully mature long-term assistant. Real-model quality, selection value, and sustained benefit require evaluation separate from mechanism correctness. But the direction is concrete: mature frameworks help organize exploration and recovery; backend engineering preserves facts, identity, and effects. The assistant adds responsibility for making the user's decisions and prior results trustworthy in the next piece of work. Continuity is not a model running forever. It is the user returning without having to rebuild trust from scratch.

From one request to continuing work, human collaboration, and a personal assistant: responsibility expands from a result to durable facts, human decisions, and delegations across executions
Figure 6 · The horizon expands from one request to continuing work, human collaboration, and a long-term assistant. Concrete cases support the earlier steps; a complete assistant remains the goal they point toward. Expand full-size diagram View full diagram

Further Reading and Discussion ​

For deeper exploration, continue with the Six-Layer Invocation Panorama, Long-Horizon Research Panorama, Context Governance in Practice, and Client Interaction Panorama. They examine request handoffs, continuing research, memory consumption, and user control respectively. The comparisons and practical lessons in this article stand on their own.

For the further question of why adding safeguards can make a local failure more likely to halt the whole task, read the Fragility and Antifragility Panorama. It connects termination authority and engineering history to failure propagation and later design decisions.

Chinese edition · Panorama Series. If these articles and runnable examples help you, consider starring Open ETF Agent or the engineering collection. Specific scenarios are welcome as a starting point for discussing different engineering choices.

Engineering notes, evidence and boundaries. · Contact: hpoenixf@foxmail.com · WeChat: hpoenixf0510