Why shouldn't an incident log become an agent's standing instructions?
Why shouldn’t an incident log become an agent’s standing instructions?
Would an agent diagnose the next outage better if every previous incident report were permanently attached to its instructions? Prior symptoms and remedies can be useful. But giving a model the entire archive on every turn is different from finding the evidence that matters now. Last month’s repair may be wrong today. As the archive grows, it becomes harder to tell which record informed an answer.
Consider an application slowdown affecting production. IT asks an agent, “Which earlier incident looks like this?” An answer depends on finding relevant records and distinguishing when they occurred. Then comes “Okay, compare those.” Treating that continuation as a greeting could discard needed material. If the next message says, “Change this setting,” a prior incident can support the reason for a change, but cannot authorize it. This is hypothetical, not a shipped incident-response workflow.
Keep standing context apart from working evidence
Accepted ADR-0020 in agentic-organization replaces a single growing prompt string with named sections. The implementation separates identity, company, department, job, policy names, skills, memory and retrieved knowledge. Stable material comes first; memory and retrieved material that can vary by turn follow. An incident report does not need to become permanent company instruction merely because it was useful in one investigation. The order aims to make a stable prefix reusable by provider caches. It is a design choice, not a measured savings guarantee for every deployment.
Company goals and a person’s job do not change with today’s error; retrieved records should change with the question. The chat runtime tries to load memory summaries and retrieved knowledge before composing a prompt. If retrieval fails, the session can still start. That does not prove the correct incident was found. “No similar incident in the answer” must not become “no similar incident exists.”
Each section has an estimated token size. If the configured budget is exceeded, optional sections can be removed in a known order, starting with retrieved knowledge and memory. Identity and the closing instruction remain, as do rule names when that section exists. The assembly report records section names, estimated sizes and reasons for omissions, without writing incident text to the prompt log. These are approximations, not a provider’s billing figures. Required material can even leave a prompt over the nominal budget. An incident result returned by search therefore does not prove that the result survived into the final prompt. IT should ask two different questions: did search find the record, and was that record still present when the agent answered?
Why classify the first message, not every reply?
ADR-0020 also provides optional intent classification, limited to the first user message in a session. It can identify a task type and estimate whether company knowledge is needed, then omit optional prompt sections. A greeting may not require retrieved incident notes; a sufficiently low knowledge-need score can skip retrieval. The later “okay, compare those” is not classified as a new opening. Repeatedly changing the stable prefix during an ongoing conversation could also undermine caching. The limitation is deliberate: later turns do not receive a fresh intent-based narrowing decision.
Classification is off by default. It requires an installation setting and access to an external service; the capped first message, not its attachments, leaves the installation. Incident reports can contain employee or operational details, so enabling this step calls for a separate data-transfer decision. A timeout or error falls back to ordinary prompt assembly. There is a cost as well. The ADR’s small-prompt trial spent more classifier tokens than it saved, even when content was omitted. The implementation gates the call on an estimated minimum prompt size, but that gate has not been shown to produce net savings across real workloads. Our earlier article on context budgets covers the general design; an incident investigation adds the question of whether the right evidence made it into the answer.
A past instruction is not permission for a new action
An old record might say “restart the service first.” It is still evidence about a past event, not authority for the agent to restart anything now. The policy names in the prompt are guidance, not an execution decision. ADR-0020 and the runtime keep policy enforcement at the supported tool-call boundary. Intent classification may narrow visible context; it cannot grant more authority. Testing an incident workflow means checking that boundary independently. A well-composed prompt is not a universal safeguard for every possible output or external action.
Appending the archive to permanent instructions inflates text and obscures which revision the model saw. Reducing every record to a sentence may lose a decisive date or condition. Classifying every message adds transfers and paid steps while risking a misread of short continuations. The ADR discusses looking up longer content and deferring tool schemas, but these remain unfinished directions. Today, inspect retrieval and section reports separately.
Different departments see different consequences. Production can specify when a symptom began and what was interrupted. Procurement should not treat a prior supplier-system outage note as a current contract decision. Finance must distinguish evidence about a payment-system incident from approval to change payment records. HR may object to sending text containing employee information to an optional external classifier. IT can check which records were retrieved, which sections remained and what decision was made at a tool boundary. These are not prebuilt departmental automations. They are the responsibilities the same incident crosses inside an organization.
A modest trial needs one recurring type of incident, not an entire archive migration. Ask a first question with known relevant records and verify whether search returned them. Inspect whether the knowledge section remained in the assembled prompt. Follow with a brief continuation and check that the answer still has the needed context. Finally, test an action request at the tool boundary rather than inferring permission from the wording of the answer. Keep a record’s existence, its presence in a prompt and authorization to act as three distinct checks. Otherwise a confident explanation can hide a missing retrieval or an untested control.
Incident history matters precisely because it can be consulted as evidence rather than carried as permanent instruction. ADR-0020 in agentic-organization makes that distinction visible through sectioned assembly. For a team building an agent around operational records, the better starting question may not be how to fit every incident into a prompt, but which record this decision needs and where permission for the next action is actually decided.
Verification note: This discussion was checked against ADR-0020, backend/services/context_assembly.py, backend/services/intent.py, backend/services/agent_runtime.py and the agent-context guide. The incident example is hypothetical; on-demand lookup discussed in the ADR is not presented as a completed feature.