~/writing/2026/11/28

On the limits of shared knowledge and computational reuse in AI agents

:: 18 min read :: arcolife.in

ai-agentsdistributed-systemsknowledge-graphskenbytemmoelvs

I came across an interesting observation by Aleksey Smolenchuk (@lxe) earlier today.

Every program you prompt, every harness improvement, every bug, every RSI run, every optimized inference kernel, every science or math proof:

Someone else is doing the same exact thing.

Taking the same exact steps.

Using the AI models provided by the same few companies.

The amount of duplication and waste we’re undergoing is daunting.

How can we solve this?

The conversation subsequently led to the idea of a distributed or hosted knowledge service that different agent harnesses could subscribe to, contribute towards and query. An accompanying suggestion by @broadfield_dev was that a question should only need to be processed once, after which its response could reside in a vector database, potentially saving tokens and providing training data for future models.

I’ve been thinking about variations of this problem while building Kenby, Temmo and ELVS.

The premise is compelling. There is an enormous amount of computation being repeated across independent agent sessions, organisations and harnesses. But the implications of sharing that computation get progressively more complicated as we move from documents to knowledge, from knowledge to inference, and from inference to action.

I wanted to explore some of those complications. Sections 01 to 10 unpack why naive semantic question-response caching breaks down under heterogeneous harnesses, non-compositional contexts, incumbent platform economics, confidentiality risks and distorted incentives. Sections 11 to 14 then reframe the problem around distributed build caches, sketch a dependency-aware artifact architecture and propose a falsifiable benchmark starting from narrow reproducible failures.

01. What exactly are we trying to deduplicate?

Consider two coding agents tasked with investigating a performance regression in a Kubernetes deployment.

They might independently discover the same upstream issue, read the same documentation, identify the same problematic configuration and arrive at similar hypotheses.

There is certainly scope for computational reuse here.

However, they might also be operating under different Kubernetes versions, kernel versions, resource constraints, networking configurations and deployment architectures. One could be running on bare metal, the other on a managed cloud service.

Even if the question is identical, the applicability of the answer may differ considerably.

A knowledge service could help them avoid rediscovering the upstream issue. Whether the diagnosis, proposed remediation or resulting configuration can be reused is a separate matter.

This suggests several different units of reuse:

Unit Conditions for reuse
Source documents Accessibility, freshness
Embeddings Compatible embedding model and representation
Extracted assertions Evidence and temporal validity
Intermediate findings Compatible assumptions
Mathematical lemmas Applicable premises
Code patches Compatible dependencies and environment
Benchmark results Comparable experimental conditions
Complete model responses Equivalent task context and requirements

Some of these units are substantially easier to share than others because they sit on a portability spectrum. At one end are harness-coupled artifacts such as embeddings and complete model responses, which inherit a specific vector space, chunking scheme, system prompt and tool interface. At the other end are harness-agnostic artifacts such as verified assertions, mathematical lemmas and dependency-scoped code patches, which carry their validity conditions explicitly instead of assuming an identical runtime. Treating both ends of that spectrum as interchangeable question-response pairs in a vector database throws away the information needed to determine when an artifact still applies.

02. The question is rarely a sufficient cache key

Semantic caching works particularly well for sufficiently constrained workloads. Frequently asked questions, repetitive classification tasks and relatively stable information retrieval are good candidates.

General-purpose agentic workloads have more degrees of freedom.

An agent’s response is influenced by its model, system instructions, available tools, retrieved knowledge, execution environment, permissions, task history and objectives.

Even the knowledge retrieval process differs across implementations.

Different harnesses may have different:

  • Embedding models and dimensionality requirements.
  • Fixed-size, semantic, recursive or hierarchical chunking strategies.
  • Dense, sparse, hybrid or graph-based retrieval mechanisms.
  • Reranking models and relevance thresholds.
  • Context window sizes and token budgets.
  • Context ordering and assembly strategies.

A 768-dimensional embedding from one model cannot ordinarily be substituted for a 1,536-dimensional embedding from another. Even embeddings of identical dimensionality may inhabit incompatible vector spaces.

Chunking adds another layer of heterogeneity. A passage retrieved as a single unit in one system could span several chunks in another, with different surrounding information influencing its interpretation.

What interests me more here is the context envelope: the collection of information, assumptions, constraints and environmental state within which an inference takes place.

Conceptually:

response=F(query, context, model, tools, state, constraints, time)\text{response} = F(\text{query},\ \text{context},\ \text{model},\ \text{tools},\ \text{state},\ \text{constraints},\ \text{time})

A semantic match on query\text{query} gives us very little assurance that the remaining inputs match. We can reuse portions of prior computation, particularly harness-agnostic artifacts, only if retrieval preserves enough structure to check those remaining variables.

03. The combinatorics and non-compositionality of context assembly

Suppose an agent has n=100n = 100 potentially relevant knowledge fragments available and needs to assemble a context containing k=10k = 10 of them. There are Unordered combinations C(100, 10)C(100, 10) =100!10! · 90!=100 × 99 × 98 × 97 × 96 × 95 × 94 × 93 × 92 × 9110 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1Numerator: 62,815,650,955,529,472,000Denominator (10!): 3,628,800Quotient: 17,310,309,456,440 (~17.31 trillion, short scale) possible unordered selections ((10010)=100!10!⋅90!≈1.73×1013\binom{100}{10} = \frac{100!}{10! \cdot 90!} \approx 1.73 \times 10^{13}). If ordering matters, that count jumps to Ordered permutations P(100, 10)P(100, 10) =100!90!= 100 × 99 × … × 91Exact product: 62,815,650,955,529,472,000Short scale: ~62.82 quintillion (10! × C(100, 10)) permutations (P(100,10)=100!90!≈6.28×1019P(100, 10) = \frac{100!}{90!} \approx 6.28 \times 10^{19}), even before accounting for chunk boundaries, prompt templates or tool outputs.

A systems reader will rightly point out that nobody tries to materialize all (10010)\binom{100}{10} context envelopes: practical systems cache the 100 individual fragments or a handful of frequent subgraphs instead. That objection lands on the combinatorial headline, yet it highlights the deeper obstacle: context assembly is non-compositional. Two fragments that are accurate in isolation can contradict one another when retrieved together, shift meaning once placed beside a different assumption, or degrade model attention depending on ordering and middle-of-context dilution.

Because interactions do not factor neatly fragment by fragment, context assembly resembles query planning and compilation rather than static object lookup. A mature system combines reusable intermediate representations, dynamically constructed contexts and materialized views only for subgraphs with high workload locality and verified compatibility. Determining that boundary between precomputed and compiled context is an optimization problem in its own right.

04. Why wouldn’t Pinecone build this?

Or, for that matter, why wouldn’t someone simply build the proposed service on top of Pinecone?

A large portion of the required infrastructure is already available:

  • Distributed vector search.
  • Hybrid retrieval.
  • Metadata filtering.
  • Regional deployments.
  • Dedicated read infrastructure.
  • Managed ingestion and retrieval pipelines.

A fairly straightforward implementation could expose a shared knowledge corpus through an MCP server, with contribution, discovery and retrieval tools backed by an existing vector database.

There is little reason to rebuild that infrastructure from scratch before establishing the workload and its economics.

Interestingly, Pinecone is already moving beyond traditional vector retrieval. In August 2026, it announced the general availability of Pinecone Nexus, which constructs persistent, task-oriented knowledge artifacts from enterprise data. Its context compiler and KnowQL interface aim to reduce repeated retrieval and synthesis at inference time.

This is meaningful overlap with the proposed direction.

Pinecone’s focus, however, is primarily on compiling knowledge within governed enterprise environments. On the other side of the vise sit the frontier model labs themselves: because agents already route most traffic through models from the same few companies, those providers observe the duplicated traces directly and can absorb recurring discoveries via prompt caching, cross-session memory or post-training distillation.

Extending reuse into an independent network where unrelated agents and organisations contribute and consume discoveries introduces problems neither vector database vendors nor model providers resolve cleanly. Model labs optimize within a single provider ecosystem and cannot safely expose one customer’s trace-derived insights to competitors; vector vendors optimize retrieval primitives inside controlled tenants. An independent reuse layer earns its place only if it owns multi-model portability, explicit cross-organisational trust boundaries, attribution and deterministic verification anchored to the caller’s environment. If a product reduces to a vector database behind a handful of MCP endpoints, existing infrastructure or model providers will absorb it.

05. The economics of geographically distributed knowledge

My initial inclination was that individual developers might be more willing to accept a remote knowledge dependency than businesses running production agent workloads.

I’m less certain about the B2C versus B2B distinction. Businesses potentially have a much greater willingness to pay for computational reuse, particularly at scale. Their tolerance for latency and additional dependencies depends on where retrieval sits in the execution path.

An autocomplete workload has very different latency requirements from an autonomous coding agent executing a 20-minute task.

The latter might happily spend an additional second retrieving a verified discovery if it saves several minutes of exploration and thousands of tokens.

Nevertheless, a shared knowledge network would need to account for:

  • Network round-trip times across geographical regions.
  • Tail latencies under concurrent workloads.
  • Embedding, retrieval and reranking costs.
  • Continuous ingestion and index maintenance.
  • Data replication and freshness requirements.
  • Cross-region traffic and storage costs.
  • Failure handling when the remote service is unavailable.

There is a natural temptation to build something resembling a CDN for semantic knowledge.

Conventional content delivery networks benefit from requests for identifiable resources. Semantic retrieval makes the placement problem more difficult because differently worded queries can overlap substantially in the knowledge they require, while superficially similar queries can require different information.

Customer-specific vector databases also benefit from natural partitioning by tenant. A globally shared knowledge corpus may require additional partitioning based on topics, dependencies, permissions, versions and consumption patterns.

Replicating the entire corpus everywhere would be wasteful. Replicating too little could introduce unpredictable retrieval latencies.

One possible direction is selective replication driven by anticipated agent consumption. A harness working on a Rust repository could subscribe to relevant knowledge about its dependencies, compiler versions and recent upstream changes.

The remote service could push incremental updates to a local index before the agent actually needs them.

This would allow portions of the knowledge service to operate outside the synchronous execution path and potentially remain useful during network failures.

06. Context enrichment and token economics

Another common assumption is that richer retrieved context automatically saves tokens.

Retrieving additional knowledge increases input tokens on every call, and imprecise retrieval introduces distracting or contradictory context. Savings only materialize when reuse eliminates downstream exploration, unnecessary tool calls, failed reasoning branches and repeated verification.

The relevant economic metric is therefore not token reduction in isolation, nor raw execution cost alone:

Ctotal=Cretrieval+Cinput+Coutput+Ctools+Cverification+CretriesC_{\text{total}} = C_{\text{retrieval}} + C_{\text{input}} + C_{\text{output}} + C_{\text{tools}} + C_{\text{verification}} + C_{\text{retries}}

A subtly wrong or stale cached finding rarely costs a single retry. It can anchor an autonomous agent onto a flawed hypothesis for ten or more steps before failure surfaces. Because false hits depress completion probability, systems should optimize expected cost per verified success:

E[C]=CtotalP(success)\mathbb{E}[C] = \frac{C_{\text{total}}}{P(\text{success})}

At the service level, this denominator penalty sits alongside ingestion, storage, index maintenance and the upfront cost of verifying artifacts. A knowledge layer that cuts output tokens by 40% while doubling retrieval overhead or dragging P(success)P(\text{success}) down through stale hits is worse than an independent agent. Conversely, spending a few thousand extra input tokens is negligible when high-precision artifacts short-circuit dead-end experiments cleanly across models and harnesses.

07. PII filtering doesn’t solve knowledge confidentiality

The suggestion of applying PII filtering before making contributed knowledge publicly accessible is reasonable, but personal information represents only a subset of the confidentiality problem.

Imagine a coding agent contributing the discovery that a particular combination of infrastructure configurations produces an unexpected security vulnerability.

Removing names, email addresses, API keys and IP addresses may still leave the commercially sensitive discovery intact.

Contributions could inadvertently disclose proprietary algorithms, internal architectural decisions, business logic, unpublished research and operational patterns.

Even embeddings should not be treated as anonymised representations of their source material.

In their 2023 paper, Text Embeddings Reveal (Almost) As Much As Text, Morris et al. demonstrated exact reconstruction of 92% of 32-token inputs under their experimental conditions. The result doesn’t establish that every embedding system is similarly vulnerable, but it challenges the assumption that converting text into vectors adequately protects it.

There are also less obvious concerns involving the composition of knowledge. Several independently sanitised assertions may collectively reveal something sensitive about the original source.

A contribution system must distinguish between private, organisational, selectively shared and genuinely public knowledge before indexing anything.

Near-term systems can deploy practical confidentiality primitives immediately: local extraction inside the caller’s environment, explicit contribution policies, scoped access controls and federated retrieval that never centralizes raw traces. Longer-term mechanisms such as confidential computing (TEEs) and cryptographically verifiable provenance belong on a separate infrastructure horizon. A zero-knowledge proof, for instance, can establish that a verification procedure ran without disclosing private inputs, yet it solves neither arbitrary semantic truth nor gradual disclosure through combined facts.

The security and scoping model belongs at the foundation, not bolted on after opening a globally writable corpus.

08. Why would organisations contribute their discoveries?

There is an incentive problem underneath the technical architecture.

Suppose an organisation spends $10,000 in inference and engineering time discovering a substantially more efficient implementation of an inference kernel. Other organisations benefit if they can reuse that discovery, yet selling or trading it runs straight into Arrow’s information paradox: a prospective consumer cannot judge what the finding is worth without seeing it, and once they see the finding they no longer need to pay for it.

Public and open-source knowledge avoids much of that friction because maintainers already share patches, benchmarks and write-ups openly. Commercial and proprietary discoveries do not bootstrap as an open cross-company marketplace on day one.

In practice, adoption follows a three-stage wedge:

  1. Intra-org reuse: teams inside one company eliminate duplicate agent spend first, with no confidentiality boundary to negotiate and immediate ROI.
  2. Ecosystem and maintainer publishing: library authors, cloud providers and API vendors publish verified compatibility notes and upgrade fixes anchored to their own releases.
  3. Cross-org federated exchanges: bilateral reciprocity, paid curated feeds or contribution-gated collections emerge only after shared artifact schemas and verification formats prove reliable.

The incentive layer does not need a token or blockchain to start. Intra-org consolidation and maintainer-backed artifacts solve real cost problems long before cross-org markets become viable.

09. Could this become training data for future models?

Potentially. But knowledge that is useful for inference-time retrieval does not automatically constitute useful training data.

A large number of agents using the same handful of frontier models may produce highly correlated errors, biases and solution patterns.

Ten agents arriving at the same incorrect conclusion may provide little additional evidence when their outputs originate from similar models, prompts and source material.

The effects of recursively training on generated data were investigated by Shumailov et al. in their 2024 Nature paper, AI models collapse when trained on recursively generated data.

Their findings concern specific conditions of recursive training and information loss. They do not imply that synthetic training data is inherently undesirable. Carefully generated, filtered and verified synthetic data can be extremely valuable.

For an agent knowledge network, I would place greater emphasis on capturing the evidence surrounding a discovery.

For instance:

  • An implementation accompanied by executable tests.
  • A failed hypothesis and the experiment that disproved it.
  • A proof that can be checked by a formal verification system.
  • A benchmark with reproducible environmental specifications.
  • A model response subsequently corrected by a domain expert.
  • A disagreement between independently developed solutions.

These artifacts contain information about why a result deserves to be trusted, where it applies and what could invalidate it.

A corpus of this kind could potentially serve both inference-time computational reuse and future model improvement, provided its provenance, quality and licensing are accounted for.

10. Is all duplicated computation actually waste?

I think this is another important question.

Independent attempts are an established mechanism for verification in science, engineering and distributed systems.

Two researchers independently arriving at a mathematical proof can increase confidence in a result. Different agents investigating a bug might uncover different failure modes. Multiple implementations of an algorithm can expose assumptions that would remain invisible in a single implementation.

Some duplicated computation is valuable precisely because it is independent.

A shared knowledge network creates epistemic lock-in when it suppresses that independence. If every agent retrieves the same popular explanation before investigating a problem, the network reinforces early errors and shuts down alternative hypotheses before disconfirming evidence accumulates. Popularity quickly turns into circular authority as widely retrieved assertions are cited and re-contributed until they look far better supported than they are.

Preserving epistemic hygiene requires deliberate countermeasures: retaining explicit provenance links, scoring artifact confidence by independent derivations rather than raw retrieval counts, and reserving an exploration rate (ϵ\epsilon-greedy cache bypass) so a controlled fraction of tasks still solve problems from scratch. Eliminating every duplicate is a poor objective when recomputation is what detects drift and keeps the corpus honest.

11. Taking inspiration from distributed build systems

There is a considerable body of systems research that can inform this problem.

Distributed build caches, for instance, have been dealing with the reuse of intermediate computations across independent machines for years.

Bazel’s remote caching allows developers and CI systems to reuse previously generated build outputs. Its action cache associates inputs and execution parameters with output metadata, while the artifacts themselves are stored in a content-addressable store.

The system depends on the reproducibility of the relevant actions and their declared inputs.

Could we construct an analogous representation for agent discoveries?

There are obvious differences. LLM outputs are stochastic, agent environments are frequently incomplete or mutable, and the correctness of a natural-language assertion may not be automatically decidable.

But some intermediate agent actions have much stronger verification properties than others.

A compiler invocation, database query, test execution, symbolic computation or formal proof verification can often be represented in terms of identifiable inputs and observable results.

Even if the surrounding reasoning is probabilistic, individual artifacts could carry stronger guarantees.

There are useful connections here with incremental computation, dependency graphs, content-addressable storage, distributed databases, materialised views, scientific reproducibility and knowledge representation. These disciplines have considerably more to offer collective agent memory than conventional question-response caching.

12. A possible architecture for computational reuse

I’ve been exploring related ideas through the temporal knowledge and memory infrastructure behind Kenby, Temmo and ELVS.

One direction I’m interested in is representing reusable discoveries as structured knowledge artifacts with explicit conditions of applicability.

Conceptually, an artifact might look something like this:

id: artifact_001
type: verified_finding

assertion:
  description: >
    A particular configuration causes excessive
    CPU throttling under the tested conditions.

dependencies:
  runtime: linux
  kernel: tested_kernel_version
  orchestrator: kubernetes
  orchestrator_version: tested_version

evidence:
  - experiment_logs
  - benchmark_results
  - upstream_issue

verification:
  method: reproducible_test
  status: verified_under_declared_conditions

validity:
  observed_at: 2026-11-28
  invalidation_conditions:
    - relevant_kernel_change
    - relevant_configuration_change

access:
  scope: organisation
  redistribution: restricted

provenance:
  contributor: contributor_id
  source_artifacts:
    - source_001
    - source_002

This is an illustrative representation rather than a proposed final schema.

The essential property is that a consuming agent can inspect the result’s dependencies and supporting evidence before deciding whether to reuse it.

A retrieval system locates relevant candidates through hybrid search, after which applicability checking determines which candidates actually satisfy the current environment. That step hides the hardest tradeoff in the design. If applicability guards are strictly deterministic (exact semver ranges, OS/arch tuples, lockfile or config hashes), coverage drops sharply whenever real environments vary slightly. If applicability relies instead on LLM-judged semantic matching, compute simply shifts from reasoning to filtering, eating into CtotalC_{\text{total}} while reintroducing hallucinated reuse. The clean boundary is two-stage: run fast deterministic compatibility guards first to reject incompatible dependencies outright, and reserve bounded semantic checks only for narrow residual constraints.

Dependency authoring carries a matching operational risk. If an agent extracts dependencies and invalidation_conditions freeform from a messy debugging session, it will routinely over-specify incidental environment details (crushing safe reuse coverage) or omit load-bearing constraints (spiking false reuse rates). Wherever possible, dependency metadata should be extracted automatically from container manifests, lockfiles, AST diffs and execution traces rather than guessed in prose.

When a declared dependency changes, affected artifacts are flagged for reevaluation; when two findings conflict, both remain in the graph alongside their evidence and environmental divergence.

Within a distributed system, these responsibilities separate cleanly:

Knowledge representation: Assertions, relationships, assumptions, temporal validity, evidence and provenance.

Knowledge discovery: Hybrid retrieval across compatible indexes and representations.

Applicability checking: Deterministic compatibility checks first, followed by narrow bounded semantic verification when needed.

Knowledge distribution: Local caches, subscriptions, selective replication and federated queries.

Knowledge admission: Automated dependency capture plus review for reliability, confidentiality, duplication and policy compliance.

Execution: Recomputing or independently verifying results whenever reuse cannot be adequately justified or exploration budget calls for a fresh run.

The storage and retrieval components remain interchangeable. Existing providers such as Pinecone, Qdrant and PostgreSQL can serve different deployments without dictating the underlying representation of knowledge.

13. How I would evaluate this

The architecture is only interesting if it produces measurable improvements over simpler baselines.

Before running a sweeping multi-harness benchmark, the minimum falsifiable test compares three conditions on one narrow, reproducible suite such as dependency-upgrade build and runtime bug fixes: Group 1 (independent agents), Group 3 (semantic response caching) and Group 6 (dependency-aware artifact reuse with temporal invalidation). That stripped-down comparison isolates whether tracking exact compatibility conditions raises verified success rate and lowers E[C]\mathbb{E}[C] when surface-similar errors demand different fixes.

From there, the full evaluation spans several hundred reproducible coding and research tasks across heterogeneous harnesses, models and runtime configurations:

  1. Independent agents without shared memory.
  2. Exact question-response caching.
  3. Semantic response caching.
  4. Shared retrieval over source documents.
  5. Shared, verified intermediate artifacts.
  6. Dependency-aware artifact reuse with temporal invalidation.
  7. Local knowledge subscriptions with incremental updates.

The workload should deliberately include cases where apparently similar tasks require different solutions: dependency upgrades, contradictory evidence, changed permissions, alternative runtime configurations and corrections to previously accepted findings.

Key metrics:

Metric What it tells us
Task success rate Whether reuse improves actual outcomes
Expected cost per success (E[C]\mathbb{E}[C]) Whether savings survive token, filter and anchoring penalties
Safe reuse coverage How much prior computation remains applicable
False reuse rate How frequently inappropriate knowledge is reused
Stale knowledge error rate Reliability under changing conditions
Cross-harness portability Whether discoveries survive heterogeneous environments
Invalidation precision Whether updates affect the correct artifacts
End-to-end p95/p99 latency Operational viability
Independent discovery rate Whether sharing suppresses useful exploration

There is also a distributed systems trade-off worth testing directly: whether selectively prefetching dependency-scoped knowledge outperforms purely on-demand retrieval on latency and cost.

14. Building toward structured reuse

Kenby, Temmo and ELVS compose as three layers of one stack rather than separate bets: Kenby stores the temporal, evidence-backed knowledge graph; Temmo projects and verifies that memory across heterogeneous coding agents and CLI sessions; and ELVS orchestrates ingestion and execution workflows between external systems and that graph.

Temporal graphs sit at the center of reliable computational reuse because a finding’s validity depends on when it was observed, which dependencies held at the time and what has changed since. Representing artifacts with explicit evidence, supersession history and scoped access lets agents share discoveries across sessions without confusing stale popularity for truth.

Parts of this architecture already run in production across those tools, while federated cross-organisational exchanges and formal applicability proofs remain open engineering problems. The prize is moving shared agent infrastructure beyond dumping chat answers into a vector store toward a system where agents can verify what was established, check whether its premises still hold and safely build on prior work.

I’d be glad to collaborate with anyone working on distributed systems, knowledge representation, agent harnesses, retrieval infrastructure or computational reproducibility.


References and further reading

  1. Aleksey Smolenchuk (@lxe) and @broadfield_dev, thread on duplicated agent computation, November 28, 2026.
  2. Pinecone (2026). Pinecone Nexus: The Knowledge Engine for Agents.
  3. Pinecone (2026). Nexus General Availability.
  4. Morris, J. et al. (2023). Text Embeddings Reveal (Almost) As Much As Text. EMNLP.
  5. Shumailov, I. et al. (2024). AI models collapse when trained on recursively generated data. Nature, 631, 755-759.
  6. Bazel Remote Caching.
  7. Kenby, Temmo, ELVS.
esc

↑↓ move↵ open/ or ⌘K anywhere