Beyond RAG: Building Persistent Organizational Context for Autonomous AI Agents
An engineering case study of Pollen and Lattice. Evidence reviewed on 23 November 2026.
Abstract
An autonomous enterprise agent needs more than relevant text. It needs to distinguish an accepted decision from a proposal. It must track changed commitments, uncertain identities, source revisions, and access rights. These requirements make organizational memory a persistent systems problem.
Pollen supplies organizational memory and agent interfaces. Lattice supplies its Rust graph, storage, retrieval, and governance infrastructure. This article examines the implemented boundaries between source evidence, model interpretation, published memory, and permitted action. It also examines the limits of the available evidence.
The strongest internal Morgan result is 193 passes from 200 tasks, or 96.5%. All 3,400 Morgan messages were eventually published. However, the task score combines three source checkpoints and several serving configurations. Only 90 tasks ran after the complete import. The result does not measure the correctness of every ingested claim. A separate partial-history result is 120/124.
The engineering lesson concerns explicit state and evidence boundaries. Durable storage can preserve an incorrect claim. An exact citation can support an incorrect interpretation. A useful memory system must expose these differences and test them separately.
1. Motivation: information changes while agents continue to work
Consider a release owner who reads three messages. The first proposes a Friday launch. The second approves Monday, subject to a security review. The third reports that the review remains open. A useful agent must preserve the approval condition. It must also distinguish the launch date from the date of each message.
Document retrieval can find all three messages. It does not, by itself, determine which statement controls the current decision. Vector similarity can rank all three highly because they discuss the same release. A transcript summary can remove the condition or collapse the sequence into a single date. Conversation memory can preserve one person's account while missing a later correction in another source.
These are limits of a basic retrieval configuration. They are not limits of every system that uses retrieval-augmented generation. The original RAG work combines parametric generation with external retrieval. It does not claim to provide a complete organizational state system. Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.
The central question is therefore precise: How can an autonomous system maintain a reliable, evolving, evidence-backed representation of organizational knowledge, decisions, commitments, and state?
Reliability has several meanings here. Storage must preserve acknowledged changes. Interpretation must retain source meaning. Retrieval must deliver relevant evidence within a bounded context. Authorization must permit its use. An action must satisfy the applicable instruction and current permission.
These properties interact, but none implies the others. A storage consistency test cannot establish correct entity resolution. A question-answer score cannot establish complete ingestion. A successful tool call cannot establish that the organization authorized its effect.
2. Representing organizational state
Organizational state is an interpretation of evidence at a specified time and under a specified authority. A document is evidence. A statement extracted from it is a claim. A current view selects claims under explicit rules. An agent then uses that view for a task.
This distinction matters for decisions and commitments. A request for approval is not approval. A stated intention is not completion. A forecast is not an observation. A repeated statement can add evidence without creating a second event. Two similar names can refer to different people or objects.
The implemented memory contracts retain claim text, participants, values, date expressions, modality, event state, identity uncertainty, and supporting source spans. They also retain original sources. This permits later review when an extracted claim omits a condition or assigns the wrong actor.
A graph provides useful structure for these records. Entities support identity references. Relationships support traversal. Source links support provenance. Events and claim history support interpretation over time. The graph structure does not establish the truth of its contents. Knowledge graphs have long separated representation, acquisition, and quality concerns. Hogan et al., Knowledge Graphs.
Pollen also stores exact user records, such as goals and rule definitions. Their immediate availability does not depend on model extraction. A saved goal establishes what the user recorded. It does not establish progress toward that goal or create automatic monitoring.
3. Architecture and responsibilities
Pollen is the application and organizational control layer. The current implementation includes source connections, account access, memory tools, monitoring, and delivery integration. Its main application code resides with Lattice. Pollen OS is a separate client project and is outside this article's system claims.
Lattice supplies typed graph operations, temporal views, storage, search, and governance. A memory service above it handles source intake and model stages. This separation lets the storage engine enforce deterministic rules while models propose interpretations.
| Component | Responsibility | Important boundary |
|---|---|---|
| Pollen application | Identity, memberships, connections, consent, and agent tools | Source access remains separate from memory access |
| Source adapters | Preserve source content, revisions, dates, and metadata | Intake does not establish successful interpretation |
| Memory service | Extraction, identity proposals, reconciliation, and publication | Model output remains subject to validation |
| Lattice | Durable graph operations, indexes, temporal views, and policy checks | Stored content can still be semantically wrong |
| Evidence reader | Produce an answer from selected evidence | Citation validity does not prove entailment |
| Monitoring and rules | Assess changes and evaluate explicit expectations | An inferred concern does not grant action authority |
| Delivery integration | Send a permitted response and retain its outcome | A dispatch attempt does not prove external completion |
The application keeps identity and operational state outside the graph content authority. Exact user records and their accepted revisions belong in native Lattice storage. Source archives and the memory journal have separate roles. The November deployment records show this division in a running system. They do not establish a distributed transaction across every store.
4. Time, durability, and the storage substrate
Lattice edges carry two time axes. World time records when a fact applies. System time records when the substrate learned or retracted it. This follows established bitemporal database practice. MariaDB, for example, combines application-time periods with system versioning. MariaDB, Bitemporal Tables.
The native implementation provides current, all-history, system-time, and world-time views. System-time selection can recover the substrate's recorded belief at a time. World-time selection asks about a validity interval under its latest knowledge. These are distinct operations. The API does not provide a complete SQL bitemporal query language or every combination of both axes.
There is another important boundary above the engine. Pollen's shared-memory history API explicitly does not promise a strict knowledge-time snapshot. A question's reference time helps interpretation. It does not prove that every source and derived record obeys that cutoff. Native temporal primitives therefore exceed the temporal guarantee of some application paths.
Lattice's standalone engine uses a shared write-ahead log and group commit. An acknowledged mutation follows durable log commit. Recovery combines a graph snapshot with later log records. Snapshots use a canonical representation. Checks detect corruption and distinguish a recoverable final partial record from damage inside retained history.
An unacknowledged mutation can appear after recovery. Callers must therefore preserve operation identity when they retry. This is a normal ambiguity at a durable request boundary. It prevents a lost response from becoming permission to create a second logical operation.
Hot graphs reside in memory. Warm snapshots use local storage. Cold graphs can use a blob store. This design reduces the resident working set when most graphs are inactive. It introduces promotion costs and maintenance work. A soft hot-memory target does not bound total process memory.
The repository includes an executable reference model and property tests for core behavior. It also includes crash and restart checks. These support specific contracts. They do not establish universal power-loss durability or correct behavior under every filesystem fault.
Replication requires a separate status statement. The standalone server remains a local-storage path. Separate replicated services implement Openraft groups, gateways, control roles, and authenticated transfers. Process and cluster checks exist. Later group-scale tests exposed limits that tiny graph fixtures had missed. The revised path subsequently passed larger local recovery tests.
These results establish implemented replication work with bounded qualification. They do not establish million-graph capacity, general production fault tolerance, or a distributed consistency guarantee for the full Pollen workflow.
5. Ingestion and reconciliation
The first ingestion requirement is to preserve the source. A durable intake receipt confirms that preservation. It does not confirm that extraction finished or that derived memory is available.
The independent memory path then applies model stages through explicit contracts. Extraction proposes structured claims. Identity stages propose links between mentions and existing entities. Temporal stages interpret date expressions. Source review can identify omitted or unsupported material. Reconciliation can classify relationships between claims.
This diagram shows responsibilities. It omits recovery internals and does not prescribe a fixed model sequence.
Source identity includes a revision and content binding. Evidence links retain exact spans. A quote must identify available source text. These checks can reject invented quotations, stale bindings, and malformed records. They cannot establish that the claim follows from the quote.
Identity resolution is especially consequential. A false merge can attach later decisions to the wrong person or object. Preserving an unresolved mention is often safer than asserting an unsupported identity. Conversely, excessive separation can prevent retrieval from connecting relevant history.
The project explored local ingestion classifiers for identity and claim labels. A recorded identity regression merged distinct objects. The production profile then returned those decisions to its main ingestion model. The local models remain research artifacts. This change preserves a failure record; it does not repair identities that earlier jobs already published.
A separate retraining study now tests these classifiers on different source families. Its results require their own evaluation boundary. They do not establish a replacement production profile.
Claim relations include duplication, added detail, changed state, unresolved conflict, and independence. The current implementation can preserve a conflict while deriving a current view from supported state transitions. It does not make every later statement authoritative. A correction also differs from an event that ended: the former challenges an earlier assertion's correctness.
Candidate selection remains bounded. An independent relation decision therefore means that no supplied candidate was selected. It does not prove that the entire organizational history contains no related claim.
The memory service retains recoverable stage records and controls derived publication. Queries check publication state and source bindings. The service can refuse reads that would expose incomplete changes. Configured source access can also expose preserved source evidence before derived interpretation finishes. These are different readiness states and require different labels.
The current service assumes one active owner for its operating partition. Recovery tests cover interrupted stages and partial writes under that model. They do not establish safe concurrent ownership across an arbitrary distributed worker fleet.
6. Retrieval, context selection, and verification
Lattice implements keyword search with BM25, exact vector search, rank fusion, and graph operations. The native search contract also supports optional graph reranking and a reranker hook. These signals serve different needs. Keywords preserve identifiers and exact terminology. Vectors support paraphrases. Graph links expose relationships and source connections.
Exact vector search has predictable semantics but its cost grows with the searched vector set. Graph traversal depends on correct identities and relationships. Keyword ranking depends on tokenization and corpus statistics. Hybrid retrieval combines these strengths without removing their failure modes.
The independent query path adds model planning above native search. Trusted code binds the request scope and evidence limits. A planner cannot gain authority by proposing another tenant or a mutation.
Reranking and context selection are not equivalent to candidate retrieval. A search can find the needed passage, yet the final context can omit it. The reviewed implementation uses several selection and ranking stages. This article makes no claim that a separate learned reranker improves general accuracy.
A concrete failure demonstrated this distinction. A follow-up planner received passages that answered two diagnostic questions. Later lexical selection removed those passages before the reader call. The planner and reader had different evidence. The repair retained checked supporting evidence through that handoff, subject to the existing limits.
Limits still matter. Sources compete for the complete reader-request budget, including metadata and instructions. Character or byte limits are not exact token limits. An omitted source must remain visible in the trace. A valid bounded context does not establish complete answer coverage.
Reader citations bind source identity, revision, content, and span. The current validator can retain exact citations and record dropped or repaired citations. It does not check every answer proposition for semantic support. A long answer with one valid quote can still contain unsupported details.
Evidence verification also has a time boundary. Read guards and discovery-state checks reduce mixing across publication states. They do not make an agent's complete reasoning and action sequence a transaction. Evidence can change after the reader receives it. A caller must recheck material evidence and authority before an irreversible effect. The current task scores do not systematically measure that interval.
The native governance layer applies Cedar policies to graph access. Retrieval gates exclude hidden objects from returned candidates. Pollen adds application membership, source grants, and audience checks. These layers require separate tests. The newer memory-scope registry currently provides a shadow check; it does not establish universal native enforcement of application scopes.
Finally, source text is untrusted input. Retrieval permission does not convert a document's instructions into agent authority. Current research also treats memory search as a trust boundary because relevant memories can redirect tool use. Pollen has no demonstrated general defense against all such attacks. Zhang et al., Beyond Similarity: Trustworthy Memory Search for Personal AI Agents.
7. Worked example: a conditional release commitment
The following example is synthetic. It describes required interpretation, not a new measured system run.
| Source time | Evidence | Required interpretation |
|---|---|---|
| 2 June, 09:00 | Release lead proposes launch on 5 June | Proposal; no approval yet |
| 2 June, 14:00 | Approver accepts 8 June if security review passes | Conditional decision and planned date |
| 3 June, 11:00 | Security owner reports an open finding | Condition remains unsatisfied |
| 4 June, 16:00 | Security owner reports the finding resolved | Evidence of resolution; approval policy still applies |
| 5 June, 10:00 | Release lead commits to publish the checklist by 17:00 | Commitment with owner and deadline |
On 3 June, an agent should report the conditional 8 June plan. It should also state that the security condition remains open. It should preserve the earlier proposal for historical questions.
On 4 June, the new message changes the available evidence. It does not prove that every launch prerequisite is complete. The agent must distinguish resolution of one finding from authorization to launch.
At 17:05 on 5 June, a missing checklist raises another issue. Search failure does not prove non-delivery. The agent can report that it found no receipt. An exact missed-deadline finding additionally requires defined coverage of the relevant delivery stream.
A historical question has two possible meanings. What did the organization believe on 3 June? What now appears true about 3 June? A late correction can change the second answer without changing the first. The native temporal model supports this distinction. The application must explicitly provide the necessary historical boundary before it promises either answer.
Access remains current. A person who loses permission to read the security source must not receive its details through an old summary. A historical request does not restore a revoked source grant.
8. Continuous intelligence and safe response
Pollen's monitoring layer extends memory beyond explicit questions. Implemented paths process published changes, schedules, expectations, findings, and responses. Exact rules use structured observations. Semantic assessment uses models.
The exact Rust rules engine supports thresholds, counts, sums, deadlines, prerequisites, and pause periods. It records rule versions and evidence. It makes no model calls and executes no domain action. An inferred pattern remains advisory. It cannot silently become a user instruction.
The design separates detection from delivery. A relevant change can exist without a permitted recipient. A queued response can become stale before dispatch. Current evidence, finding state, and permission therefore matter again at delivery time.
An archive-based monitoring implementation can consume durable change history through a separate projection. It avoids making slow model work part of primary request processing. Its local correctness checks do not establish production throughput or detection latency. Deployment records also show a separate live Pollen input-monitoring path. These paths must not share an unqualified performance claim.
Deadlines illustrate why deterministic and semantic work need different inputs. A model can propose that a sentence expresses a commitment. An exact rule can evaluate a deadline once the commitment and relevant observations have a valid contract. A timer alone cannot establish that an event failed to occur.
The available live monitoring records contain operational examples and corrected decisions. They do not provide a representative precision, recall, urgent-miss, or owner-burden study. Successful alert delivery proves a delivery path, not reliable autonomous organizational judgment.
9. Evaluation: four different objects of measurement
An ingestion audit asks whether stored claims preserve source meaning. Retrieval evaluation asks whether required evidence enters the candidate and delivered context. Answer evaluation asks whether a reader uses that evidence correctly. Agent-task evaluation also includes tool choice, arguments, and action content.
The available results cover different parts of this chain. Their percentages cannot be combined into one reliability score.
Morgan: what 96.5% actually means
The internal Morgan package contains all 3,400 released source messages and all 200 resolved task specifications. DolphinBench uses simulated personas and applications to test memory-dependent actions. Its task checks combine deterministic and semantic grading. DolphinBench repository.
The saved Morgan aggregate is 193/200, or 96.5%, with seven failures and no ungraded tasks. Its cohorts are:
| Published source checkpoint | Graded tasks | Passes | Treatment |
|---|---|---|---|
| 264 messages | 10 | 10 | Reused grades |
| 1,500 messages | 100 | 95 | Reused grades |
| 3,400 messages | 90 | 88 | New completed grades |
| Aggregate | 200 | 193 | Three checkpoints |
Thus, the entire source history was eventually ingested. The entire task set was eventually graded. The result is not a fresh 200-task evaluation after full ingestion. It also does not evaluate every extracted claim. Calling it “97% ingestion accuracy” would be incorrect.
The new action model was openai/gpt-6.1-sol. The judge was openai/gpt-5.6-sol, with medium reasoning. A task passed only when all its checks passed. Ingestion used mixed model routes. Serving builds and query routes also changed. The continuation included provider recovery, two service restarts, and a query-schema repair.
Source receipts stayed fixed during question execution. Derived enrichment was not frozen. Queue depth was not saved. The run shared a backend with production work. Some import profiles also omitted prior candidate reads or later identity-consolidation stages. The aggregate cannot isolate the effect of history size, consolidation, or a particular model.
Two failed tasks lacked required application tools in the released configuration. Both remain failures. Other retained failures include action and content checks, an overly broad escalation condition, and a source-label requirement. The saved record does not justify attributing every failure to retrieval.
The earlier 1,500-message report had 86 passes among 91 graded tasks. It selected 142 tasks and left 51 ungraded. Nine saved answers later received passing grades. This history explains the later 100-grade cohort. It must remain separate from the original 94.5% figure.
The artifact audit for this article verified 200 unique task IDs, the cohort totals, and all 400 referenced execution and grade hashes. It also verified the source-master checksum and 3,400-record count. These checks establish record integrity. They do not independently validate semantic grades or establish repeatability under a frozen deployment.
There is no matched competitor arm. There is no complete claim-support audit. This is an internal measurement, not an official submission or peer-reviewed result. Public readers cannot reproduce it from the article alone because the complete implementation and run package remain private.
Separate partial-history result: 120/124
The 120/124 result used 849 published records: 271 for Alex, 264 for Morgan, and 314 for Riley. Task selection required referenced history to fall within those available prefixes. The persona results were 50/52, 21/21, and 49/51.
The corrected run reused seven checked grades and executed 117 tasks. Earlier invalid attempts remain recorded. One setup error had omitted shared application state. Another defect concerned optional tool defaults in traces.
The four retained failures cover answer completeness, unsupported date inference, a disputed rubric outcome, and preference selection. The earlier 113/124 result used different action and judge models and a different retrieval workflow. It cannot establish the causal gain from the evidence-handoff repair. The 96.77% fraction is a selected partial-history task result.
Classifier retraining and transfer
A separate ModernBERT study reproduced four classifier tasks within a declared tolerance, using three seeds per task. Their original sources were synthetic and model-labelled. Family-disjoint splits therefore did not establish transfer to a different source generator or document style.
The Morgan diagnostic exported 25,212 published claims from the 3,400-message import. It sampled 200 rows for each of three claim-label tasks. Sampling balanced the pipeline's proposed labels where possible. Each task allowed at most one row per source message.
| Task | Agreement with pipeline labels across three seeds | Rows per seed |
|---|---|---|
| Modality | 141–156 | 200 |
| Identity status | 88–102 | 200 |
| Event state | 95–105 | 200 |
These counts measure agreement with model proposals, not validated classification accuracy. The marked evidence spans differed from training. Speaker information also differed between some classifier and reference-label inputs. A blind model review supplied another opinion. Agreement between two models still does not establish a correct label.
Later identity retraining exposed a different trade-off. On 816 external mention pairs, one three-seed comparison reduced false identity matches against mapped annotations from 60–144 to 39–44 per seed. Mean recall and overall accuracy also fell. The candidate failed its saved selection rule. Its precision gain did not exceed the larger observed seed range. That rule is an engineering screen, not a statistical significance test.
Human review had started at inspection. It covered only one task and deliberately included many model disagreements. It cannot yet supply a representative accuracy estimate. New relation-type experiments also remain incomplete. Semantic relation types are separate from duplicate, conflict, and state-change reconciliation decisions.
These studies strengthen the failure analysis. Training distribution, label meaning, input context, and false-merge cost need separate qualification. Repeated use of the same transfer sets also makes them development evidence. A final claim needs untouched sources and adjudicated labels. None of these classifier results changes the Morgan agent-task score.
Storage measurements are separate
A later single-node cloud test compared selected database operations under matched resource limits. At 4,800 offered requests per second, both backends had zero errors in three one-minute repeats. Successful-request p99 was 7.02–7.62 ms for Lattice and 12.01–13.99 ms for FalkorDB. Both failed the declared error target at 9,600 offered requests per second.
The workload combined point reads, neighbors, exact vector searches, and probe writes. Protocols and governance features differed. Neither tested service was replicated. These measurements establish no answer-quality gain, maximum sustainable capacity, or monitoring-overhead result.
10. Failure analysis and remaining limits
| Failure | Consequence | Required evidence or control |
|---|---|---|
| Identity conflation | A decision attaches to the wrong subject | Source-supported links and false-merge review |
| Temporal error | A plan becomes a completed event | Separate report time, event time, and state |
| Unresolved contradiction | One account silently replaces another | Preserve both sources and expose the disagreement |
| Unsupported extraction | Stored memory invents a commitment | Independent source review and claim-support scoring |
| Selection loss | The reader misses a retrieved passage | Candidate-to-context coverage checks |
| Permission failure | A summary discloses a revoked source | Current access checks across derived evidence |
| Reader overreach | A valid quote accompanies an invalid conclusion | Proposition-level source review and abstention tests |
| Incomplete observation | Missing evidence becomes a false deadline breach | Explicit stream coverage and an unknown state |
Several limits remain structural. The memory service's ownership model constrains horizontal scaling. Native graph policy does not automatically provide every application audience boundary. Historical application queries do not always enforce knowledge-time cutoffs. Recovery checks do not prove general distributed linearizability. Exact source retention also creates lifecycle obligations for summaries, journals, backups, and monitoring projections.
The next evaluation should freeze one complete build and rerun every Morgan task after full ingestion. It should add untouched personas and a matched source-retrieval baseline. A separate source audit should measure omissions, unsupported claims, false identity merges, and temporal errors before measuring answers.
Further tests should inject late corrections, source withdrawal, permission revocation, process failure, and delayed model results. Monitoring needs representative event streams with reviewed negatives, coverage gaps, delivery outcomes, and owner burden. Repeated trials should report variation across histories and model calls. A single aggregate percentage cannot replace these measurements.
11. Prior art and contribution
Pollen and Lattice build on established techniques. Knowledge graphs supply explicit relationships. Temporal databases separate valid time from system history. Durable logs, snapshots, idempotent operations, and materialized views supply standard recovery tools.
Graphiti and Zep directly precede this work. Zep describes temporal graph memory, evolving facts, and evidence retrieval for agents. Lattice's README explicitly acknowledges Zep's published Konig architecture. Its small-graph workload, storage tiers, hybrid retrieval, and governed temporal edges must not be presented as original concepts. Konig's published production claims also cannot be transferred to Lattice. Rasmussen et al., Zep; Graphiti; Chalef, Why we built a graph database service for agent memory.
Microsoft's GraphRAG addresses corpus-level questions through graph indexes and community summaries. MemGPT studies context management across memory tiers. Mem0 and A-MEM study extraction, consolidation, and linked memory. These are related contributions with different contracts and evaluation targets. Edge et al., From Local to Global; Packer et al., MemGPT; Chhikara et al., Mem0; Xu et al., A-MEM.
Recent work also challenges the assumption that model-written memory always improves retrieval. FlexA-Mem studies immutable history and context construction under different budgets. Its reported results motivate simple source-preserving baselines. They do not supply a comparison with Pollen. Xu et al., FlexA-Mem.
The contribution documented here is an engineering integration and its failure evidence. It connects temporal storage, source-preserving interpretation, controlled publication, bounded evidence delivery, and monitored response. The results support continued investigation. They do not establish a new graph model, a new consensus algorithm, or superiority over managed memory products.
Conclusion
Persistent organizational context requires explicit relationships between evidence, interpreted state, time, and authority. Pollen and Lattice implement parts of that system across application and storage layers. Their records also show where those parts fail or remain unqualified.
The strongest evidence supports specific implemented contracts and bounded task results. The next step is to test those contracts together under frozen builds, changing sources, revoked permissions, and operational faults. Reliable autonomy depends on preserving these distinctions throughout the agent's work.

Comments
Post a Comment