0The journey
1Six layers, not one prompt
Part 1: An agent needs a map of the service world
| Layer | Question it answers | Where it lives in this design | Owner | Only in a prompt? |
|---|---|---|---|---|
| Language | What words were produced? | |||
| Knowledge | What approved information is relevant? | |||
| Ontology | Which entities and relationships are involved? | |||
| Policy | What is allowed? | |||
| Workflow | What should happen next? | |||
| Authority | Who may decide? |
2Starter entities
Parts 1, 4 and 8. Five to fifteen entities for the first journey.
| Entity | One-line definition officials agree with | Authoritative source | Critical fields | Owner |
|---|---|---|---|---|
| Application | A service request with a type and a lifecycle | Case system | Reference, type, status | Service owner |
| Applicant | ||||
| Service case | ||||
| Identity or supporting document | ||||
| Appointment | ||||
| Office | ||||
| Official | ||||
| Interpreter | ||||
| Language session and route | ||||
| Translation or transcript | ||||
| Service instruction | ||||
| Consent record | ||||
| Escalation |
3Starter relationships
Parts 1 and 8. Keep only relationships that change the next action.
| Relationship | What it means for the next action | Positive test | Negative test |
|---|---|---|---|
| Applicant submits Application | If an application exists, find it before explaining anything else | ||
| Application requires Document | |||
| Application has Status | |||
| Appointment occurs at Office | |||
| Official handles Service case | |||
| Language session supports Service case | |||
| Session escalates to Interpreter |
4Statuses and valid transitions
Parts 4 and 8. Only the states the first journey uses.
| Entity | From state | To state | Who may make the move | Test of a valid move | Test of an invalid move |
|---|---|---|---|---|---|
| Translation | Provisional | Confirmed | Applicant, and official where required | Confirmed after read-back | Written to record while provisional: blocked |
5Meaning and evidence
Parts 2 and 3. Map first, then retrieve. Score language and meaning separately.
| Question the agent must answer | Evidence (retrieval), meaning (ontology) or authority (policy)? | Source of truth |
|---|---|---|
| What does the approved guidance say? | ||
| Which concept does the person mean? | ||
| Does this person have an existing case, and in what state? | ||
| Is this action allowed now, and who may decide? | ||
- Meaning fixtures exist for negation, dates, quantities, family relationships, document references and application versus appointment, per language direction.
- Each fixture's expected result is a mapping (entities, relationships, states, critical fields, next action), owned by the service owner.
- Language accuracy and service meaning are scored separately.
- Approved content is tagged with the concepts it serves; glossary terms link to concepts per language.
6Executable rule cards
Part 5. If a rule cannot be written on a card, it is not yet a rule.
| Rule | Ontology terms | Trigger and check | Enforced where (outside the model) | On failure | Owner, version |
|---|---|---|---|---|---|
| A translation session cannot approve an application | |||||
| A provisional translation cannot become the official record without confirmation | |||||
| A missing or contradictory critical field requires clarification or escalation | |||||
| An interpreter handoff contains only the minimum required context | |||||
| A session expires after inactivity or a configured maximum duration | |||||
| The system stops when provider confidence is unavailable or a route is not approved |
7Guardrail pattern for the agent loop
Part 6
| Risk | Check that controls it | Tested? | Evidence |
|---|---|---|---|
| Infinite loops | |||
| Goal drift | |||
| Unauthorised actions | |||
| Wrong tool selection | |||
| Unsupported certainty | |||
| Unbounded cost | |||
| Silent changes to official records |
8Role and authority matrix
Part 7. Handoff to a person is a normal state transition.
| Role | Authority or responsibility | Transitions it may make | Must never | Named holder or group |
|---|---|---|---|---|
| Applicant | Confirms, corrects or rejects what the system understood | |||
| Official | Controls the service interaction and the accountable decision | |||
| Interpreter | Handles cases beyond approved machine capability | |||
| Supervisor | Reviews exceptions, incidents and service quality | |||
| Language specialist | Approves terminology, fixtures and model changes | |||
| Information officer | Approves data use, retention and access controls | |||
| Agent | Explains approved information, proposes, asks for clarification | Approve, decide or write to an official record | n/a |
9First-version checklist
Part 8. Start with a bounded service, not an enterprise-wide knowledge graph.
- Five to fifteen core entities, each used by a decision in the journey.
- Only the statuses the first journey uses, with valid transitions.
- The relationships that change the next action, each with a positive and a negative test.
- Approved terminology, per language in scope, signed off by a language specialist.
- Critical fields, each with a confirmation rule and a wrong-value test.
- Permitted actions per entity type, state and role, each with an allowed and a refused test.
- Escalation states, including "cannot represent", each reachable by a test.
- A named owner for every entity, state set and rule, who has accepted their rows.
10Version record
Part 9. Every important agent trace names the ontology, policy and model versions used.
| Field | This release |
|---|---|
| Ontology version | |
| Effective date | |
| Owner | |
| Source authority | |
| Change reason | |
| Affected workflows | |
| Approval status (draft, approved, in force, retired) | |
| Test results | |
| Retirement date | |
| Change class (compatible, breaking, deprecation) |
11Claim provenance
Part 10. A model inference never becomes an official record without human confirmation.
| Kind of claim | Provenance recorded | May the agent act on it? | Route to the record |
|---|---|---|---|
| Directly observed fact | |||
| Retrieved policy statement | |||
| User claim | |||
| Model interpretation | |||
| Inferred relationship | |||
| Human-confirmed fact |
12Four implementation phases
Phase 1: ontology discovery
- Choose one bounded service journey.
- Interview officials, language specialists and service owners.
- List nouns, verbs, statuses, exceptions and decisions.
- Identify which relationships affect the next action.
- Separate facts, policy and assumptions.
Phase 2: controlled model
- Create a versioned ontology in a readable format.
- Link terms to approved glossary entries.
- Define valid status transitions.
- Define permitted and prohibited actions.
- Create test cases for each relationship.
Phase 3: agent integration
- Extract entities from confirmed or provisional text, and label which.
- Validate required fields.
- Retrieve relevant service knowledge, filtered by the mapped concept.
- Check policy and authority before tool calls.
- Ask for confirmation where a relationship is uncertain.
- Escalate when the ontology cannot represent the situation safely.
Phase 4: evaluation
- Measure entity extraction accuracy.
- Measure relationship accuracy.
- Test wrong-language and ambiguous cases.
- Test critical numbers, names and dates.
- Test unauthorised actions.
- Test loops, retries, timeouts and cost limits.
- Require human review for high-impact meanings.