AOSIQ reference architecture
Reference Architecture: Governed AI for Long-Lived Systems
Stephane Jolicoeur · AOSIQ · November 2026
A general design pattern for long-lived business systems. It doesn't describe any one organization's environment, and the examples are fictional composites.
A design pattern for letting AI help run long-lived business systems safely. Answers come from cited, verified knowledge. Live evidence comes through read-only, typed tools. Changes happen only through a broker that holds no standing power. A verification loop keeps the documentation honest.
At a glance
The assistant asks; each part answers one question. Verification sits between the documents and the live systems: its checks run read-only, and a failed one expires the document it guards.
Why this architecture
In a business that has run on the same platform for decades, the knowledge needed to operate it lives in three places that don't talk to each other:
- Documents: vendor manuals, release notes, runbooks and in-house notes. There are thousands of pages, much of it out of date and hard to search.
- Running systems: the actual truth about what is installed, configured and failing. Only people with the right access and the right command syntax can reach it.
- People: a few experienced engineers who know which document is wrong and which command answers which question.
Incidents, changes and audits need all three at once. Today that combining is manual, slow, and concentrated in a handful of people.
An AI assistant can do the combining, but only if it's built so that it can't make things worse. The pattern has five design goals:
- Answers come from evidence, not memory. Every claim points to a document or a live observation.
- Observation is safe by construction. Reading a live system can't change it, whatever the AI asks for.
- No one holds standing power. Not the AI, not its operators, not its service accounts.
- Knowledge notices when it's wrong. Documentation that has drifted from the live system says so.
- Everything is attributable. Who asked, what ran, under what authority, and what happened.
The four separations
The pattern rests on keeping four jobs apart. Each part answers one question, and none of them is allowed to do another's job.
| Part | Answers | Must never |
|---|---|---|
| Knowledge | "What is this supposed to do?" | Write the final answer itself, or present an unapproved document as fact |
| Live observation | "What is actually happening?" | Change anything, or run a command the AI composed freely |
| Governed action | "Can this be done safely, and by whom?" | Hold power between calls, or act without a record written first |
| Verification | "Is what we know still true?" | Treat "could not check" as "false", or let a failed check go unnoticed |
The assistant sits on top and reasons across all four. It decides which part to ask. Each part decides how its job is done safely. When documentation and the live system disagree, the live system wins, and the disagreement becomes a correction to the documentation.
How this maps to the AOSIQ ecosystem
The home page describes the same design as two stacks: system discovery (T1 to T4) and knowledge (K1 to K4). They're two views of one design. The stacks say what gets built; the four parts say how each piece behaves safely.
| Ecosystem layer | Part in this architecture |
|---|---|
| T1 What exists, T2 How it's connected, T4 What happens at runtime | Live observation |
| T3 What the code means | Knowledge: explanations are stored and cited like any other source |
| K1 Platform knowledge, K2 Your documents, K3 Your experts' knowledge | Knowledge |
| K4 Delivery and upkeep | Verification (kept current and tested), plus delivery to people and agents |
| Evidence-first answers | The assistant's rule: cite a source, or say "not found" |
| Governed access | Governed action |
Where the assessment fits. An AOSIQ knowledge risk assessment is read-only from start to finish. It covers Stages 0 to 2 of the adoption sequence: foundations, read-only discovery, and a gated knowledge-base pilot. Verification and governed action (Stages 3 and 4) are later work. The assessment delivers a plan for them, not an implementation.
Chapter 1: Knowledge you can trust
A language model on its own answers from what it absorbed in training. It has never seen your vendor's manuals, your house conventions or last month's incident, and when it doesn't know, it can sound just as sure. Retrieval changes the order: find the relevant passages first, then write the answer from them, with citations. If the library doesn't hold the answer, the right outcome is "not found".
Design principles
- Retrieval only. The knowledge service returns ranked passages with their sources. It never writes the answer, so every claim stays traceable.
- One canonical store, a rebuildable index. Documents live as plain, reviewable files under version control. The search index is derived from them and can be rebuilt at any time, so it can't drift silently from the truth.
- Exact identifiers first. Operations questions are full of precise codes: message IDs, object names, release numbers. A near miss is a wrong answer. Keyword ranking with a strong boost for exact identifiers belongs at the core. Meaning-based search earns its place by measurement, as a fallback or a blend, not by default.
- Purpose-built lookups. Common questions get an exact instrument (error-message lookup, playbook retrieval, API lookup) instead of a fuzzy search.
- Collections. Content is grouped by kind (vendor manuals, release records, runbooks, recorded experience), so questions can be scoped and licensing and audience limits enforced per collection.
Trust is part of every result
| Signal | What it does |
|---|---|
| Authority tier | Field-verified > vendor-authoritative > curated > unverified. Higher tiers rank higher. |
| Approval | Unapproved drafts come back with an explicit "unverified: confirm before acting" notice. |
| Staleness | A document past its review date, or one that failed a live check, is flagged and ranked lower. |
| Sensitivity | Each document has a clearance level, checked at a single choke point on every read. |
The effect: the assistant can say not only what the documentation says, but how much to rely on it.
Knowledge flows in, not just out
The library should improve through use. Short episode records capture an incident, decision or lesson with its evidence. A field-test log records whether an answer worked when someone tried it, and a failure is corrected in the source document first. Simple tools let people propose, flag, verify and stop the line on misleading content.
Chapter 2: Live observation
Documents say what should happen. Only the running system says what is happening. The pattern gives the assistant that view through a small set of typed tools: named, documented operations such as "inspect this job" or "list locks on this object", each with typed inputs and a structured result. The Model Context Protocol (MCP) is one open standard for exposing them.
The difference from handing an AI a database login is control. The assistant chooses which tool answers the question. The tool decides how it's done, safely, with known behavior, known cost and known output.
Design principles
- One server per system. Every question is explicitly scoped to one machine, so it can never drift from test into production unnoticed.
- Read-only by construction, not by request. The connection itself is read-only, and ad-hoc queries are limited to pure reads. Any write capability lives in a separate server, so read and write access are never granted together.
- Guard the cost, not just the content. Parse statements and refuse anything outside an allow-list. Cancel long-running work, and use the platform's own cost governor where it has one. A refusal is reported as a refusal, never as "no data".
- Identity on every call. Each call carries who asked and writes one audit line: who, which tool, which arguments, what outcome, how long. Live access runs under a dedicated service identity, never a person's account, so AI activity can be told apart from human activity.
- One result envelope. Every tool returns the same shape: success flag, timestamp, duration and provenance (which server, which system, which release). Failures are structured results, never silence.
- Mask at the source. Personal data is masked before results leave the server. Masking by field name isn't enough once free-form queries exist, so restrict those on production or mask the output itself.
- Treat everything returned as untrusted data. Log lines, job messages and report text reach a model that holds tools. Nothing the assistant reads may become an instruction.
How it combines with knowledge
- Verify the current state on the live system.
- Explain it from the documentation, with citations.
- Where they disagree, trust the live system, and turn the disagreement into a correction.
Chapter 3: Governed action
Running a system properly needs elevated authority: seeing every job, ending one that runs away, answering a waiting message. Traditionally that means standing privilege: powerful authority held all day by operator and service accounts, whether used or not. It's shared, hard to attribute, and attractive to an attacker. Adding an AI sharpens the question: how do you let a tool act without giving the tool, or its users, standing power?
The answer is a broker: a gatekeeper that proves who is asking, checks they're allowed, writes the record, then borrows exactly the authority needed for that one operation, and nothing more.
Three identities, kept apart
| Role | Holds | Purpose |
|---|---|---|
| The caller account | No authority of its own | Makes the connection. A stolen credential can do nothing, and it should only work from the broker's host. |
| Owner accounts | Narrow, purpose-split authority | Reachable only through registered broker operations, which borrow their authority only while running. A compromised operations path yields operations authority at most. |
| The person | A verified identity, resolved on the server from their token | Checked against a per-person, per-operation allow-list. Never a value the caller can type. |
A request, step by step
- A person asks the assistant to act.
- The broker resolves who they are from their token.
- The target system checks the allow-list for that person and that operation.
- The audit record is written, before anything runs.
- The operation runs under borrowed authority, then the authority is gone.
- A structured result comes back, including denials, which are hard errors, never silent.
Design principles
- Every operation is registered. A named statement with a sensitivity level. Nothing runs that isn't registered.
- Approvals bind to real records. A change reference must be checked against the actual change system, with requester and approver different people. Otherwise the AI can invent a plausible-looking one.
- The audit trail lives elsewhere. Records go to an append-only store that the authority being recorded cannot alter.
- Data is denied until it's classified. Customer data is public, masked or denied, and anything unclassified is denied.
- Ask first. Every tool that can change something asks a person before it runs.
Native mechanisms differ
The control plane (identity, registry, approvals, audit) is portable. The mechanism that borrows authority is not, and the guarantees are not equivalent:
| Platform | Native way to borrow authority |
|---|---|
| IBM i | Programs that adopt their owner's authority while they run |
| Relational databases | Definer-rights functions and procedures |
| Cloud platforms | Short-lived, narrowly scoped credentials |
| Applications and APIs | Integration accounts with narrow scopes, plus built-in approval workflows |
Each adapter needs its own threat review before any production write. Applying the pattern to other systems goes further.
Chapter 4: The verification loop
Retrieval with citations proves where an answer came from. It doesn't prove the source is still true. Documentation about a living system goes stale silently: a library moves, a schedule changes, a vendor fix alters behavior. The verification loop is what makes the knowledge base notice when it's wrong. It's the part that separates this pattern from citation-only RAG.
Five mechanisms
- Living documents with embedded checks. Documents that describe current state carry small executable checks next to their load-bearing facts: "this object exists here", "this setting has this value", "this job runs on every production system". A freshness run executes them read-only against the live systems. If any check fails, the document expires that day: flagged stale in every result and ranked lower until a person reviews it.
- A review clock. Every living document also needs periodic human review. Its validity ends at whichever comes first: the review deadline or the last passing check plus its window.
- Machine-verified identifiers. Every error code and message ID in the documentation is checked against the platform's own definitions. IDs that don't exist, or whose stated meaning doesn't match, are flagged automatically.
- A golden-question gate. A fixed set of questions with verified answers is replayed against every change to the knowledge base or its ranking. It checks that the right document comes back with the right fact, and that known wrong answers haven't resurfaced. Test the candidate index before it goes live, and keep a fast rollback. A second, reworded set checks how well retrieval copes with everyday phrasing. Questions about content not yet loaded stay in as deliberate failing reminders.
- A field-test loop. People remain the final check. When someone acts on an answer, the outcome is logged: worked, failed or partial. A failure is corrected in the source document first, then becomes a new golden question and, where possible, a new check.
Three outcomes, not two
Every check reports pass, fail or could not check. Keep the third separate. A permission or connectivity problem isn't drift, and treating it as "false" teaches people to ignore real failures.
What it buys
- Staleness that reports itself instead of rotting silently.
- Evidence a reviewer can inspect: when, where and how a fact was last confirmed.
- Safe change to the knowledge base: a ranking or content change can't quietly make answers worse.
- Honest gaps: missing knowledge is marked as missing, not papered over.
The working method
The four parts matter most in how a problem gets worked. The method is evidence first, and it ends by leaving the next person better off:
- Question. Take the report at face value and frame it as where the failure sits.
- Live evidence. Read the running system and the logs before forming a theory.
- Documented intent. Find what the system is supposed to do, with citations.
- Fill the gap. If the documentation is silent, say so, and load the missing source rather than guess.
- Hypothesis, stated as one. Combine the evidence into an explanation, and mark it unconfirmed until it's checked.
- One owned change. The smallest change that tests the hypothesis, made by the people who own the system.
- Measured verification. The same instruments as the diagnosis: before and after numbers, not "seems fine".
- Knowledge captured. Record what was learned with its evidence, then add checks and golden questions so the next person starts from the verified answer.
Two habits make it work. Separate problems are separated: several real faults often hide behind one symptom, and each gets fixed or parked on its own. Wrong turns are withdrawn in writing: a theory the data contradicts is retracted openly, which is what makes the rest of the record believable. The worked examples show both.
The rest of the set
This page covers the overview and the four design chapters. The companion documents:
- Capability patterns by role: operations, change and release, development, security and audit, knowledge stewardship.
- Adoption sequence and controls checklist: the five stages, their gates, every control, and the stop signals.
- Threat model for governed AI: trust boundaries, the threats to each part, and what risk remains.
- Worked examples: four composite cases: the working method on a fictional distributor.
- Applying the pattern to other systems: databases, servers, cloud, mainframe, network, ERP and SaaS.
- Glossary.
Want to know where your own system stands? The knowledge risk assessment covers Stages 0 to 2, read-only from start to finish.
Request a 30-minute call