THE EVOLUTION OF SHARD ENGINES
From Distributed Knowledge to Modular Artificial Intelligence
A Secretary Suite Project
John Swygert
December 3, 2026
Abstract
Contemporary large language models typically distribute intelligence as fixed, densely coupled parameter sets. Secretary Suite proposes an evolutionary alternative: begin with independently addressable, validated knowledge shards, progress toward reusable computational capabilities, and ultimately investigate native shard engines whose functional composition can change without wholesale replacement. The three stages are cumulative, yet each remains useful independently. This paper defines the three stages, distinguishes semantic shards from conventional storage and tensor partitions, and proposes interfaces, certification, distribution, orchestration and empirical evaluation. The central hypothesis is that intelligence can become increasingly modular without unacceptable loss of coherence or capability. Near-instantaneous availability is a conditional objective of caching and incremental transfer, not an established property of the proposed architecture. No claim is made that arbitrary existing model weights can already be separated into independently functional units.
Keywords: knowledge shards; shard engines; modular inference; distributed intelligence; provenance; Echelon Architecture; Secretary Suite.
1. The problem of monolithic distribution
A local workstation may download several gigabytes for each language model even when its applications need overlapping capabilities. Multiple interfaces can share one installed model through a common runtime, but distinct model releases still carry distinct parameter packages. Updating an engine may require transferring a substantial replacement. This is a distribution and lifecycle problem, not proof that the underlying mathematics is unnecessarily redundant. Learned representations are frequently distributed across many parameters and layers.
Secretary Suite therefore proposes a progression from sharing knowledge to sharing capabilities and eventually composing engines. The governing principle is to transfer what is missing, not everything that exists. The Great Streamlining Process supplies the governance discipline: propose improvements, preserve recoverable backups, obtain approval, validate changes and retain rollback paths.
2. What a shard means today
In established computing, a shard can be a partition of a database, a portion of a checkpoint, or a tensor partition distributed across devices. Such a partition need not be meaningful by itself. A Secretary Suite knowledge shard is different: it is a bounded, independently identifiable information object with a declared scope, provenance, version and validation status. It may contain a factual proposition, a method, a structured relationship, an equation, a passage, or a documented contradiction. Its boundaries should preserve enough context for responsible reuse.
A shard is not simply a chunk of text, a token, an embedding, or a slice of model weights. An embedding is a derived search representation; a shard is the governed object to which that representation points. Validation is scoped to evidence, method and date, and does not imply permanent truth. Competing claims can coexist with explicit contradiction relationships.
Working definitions: a storage shard partitions bytes; a knowledge shard preserves a governed semantic object; a capability shard performs a declared computational transformation; a native shard engine composes compatible computational components within its inference architecture. A composition manifest specifies the exact versions, interfaces and dependencies of that engine.
3. Three stages of evolution
Stage I — knowledge shards: external information objects retrieved by conventional engines. Stage II — capability shards: executable or learned modules invoked through declared interfaces. Stage III — native shard engines: an inference architecture designed from inception to compose compatible computational shards. Each stage remains useful even if the next proves impractical. The term shard engine is reserved here for the third stage, not merely a conventional model with a retrieval plugin.
4. Stage I: knowledge shards in current systems
The first implementation requires no novel neural architecture. A local or hosted language model receives a question; a retrieval service searches authorized shards using lexical, vector and relationship-based indexes; a coordinator selects evidence and supplies it within the model context. The engine produces a response with references to the underlying shard identifiers. New evidence changes the library rather than the model weights. Retrieval-augmented generation provides an established technical precedent [1].
A minimal shard manifest contains a stable identifier, content digest, schema version, type, payload or payload reference, source and rights, creation and revision dates, validation status, scope, dependencies, contradiction links and access policy. Derived indexes can be rebuilt without altering the canonical object. An update creates a new version and retains the previous version for reproducibility. A signed manifest can establish origin and integrity, but not factual accuracy.
The ingestion pipeline separates extraction, normalization, deduplication, evidence review, indexing and publication. A retrieval request checks permissions before ranking. The coordinator records which versions were used and distinguishes direct evidence from generated inference. Sensitive content must not be sent to an external inference provider without authorization.
5. Immediate utilization in Secretary Suite
A shared local model service, such as Ollama, can expose conventional engines to multiple applications. A workspace such as AnythingLLM can serve as an initial interface while the dedicated Secretary Suite retrieval layer evolves. A single canonical shard repository should be independent of both the model runtime and any particular retrieval workspace, so changing engines or workspaces does not require re-ingesting the canonical library. Derived indexes may still require rebuilding when retrieval representations change.
For example, a question about a Secretary Suite design decision retrieves the approved architecture statement, its dependencies, relevant revisions and any unresolved objections. A second engine can evaluate the response against the same evidence. The Echelon Architecture routes tasks according to capability and cost, escalating uncertain results to independent verification. Independence should consider model family, training lineage, evidence source and method, rather than simply counting agreeing engines.
The immediate deliverable is a usable knowledge service with provenance, versioning, authorization, local caching and repeatable evaluation. No neural weight modification is required. The proposed MDDF interface can evolve alongside this service; its exact schema and implementation remain to be specified.
The intended role of MDDF is to provide a structured interface for authorized discovery and retrieval of shard objects and their relationships. Its data model, query semantics and implementation are separate design work, not established features.
6. Stage II: from knowledge to capability shards
A capability shard is a versioned computational component with a declared function and compatibility contract. Unlike a knowledge shard, it performs a transformation: symbolic calculation, structured extraction, code analysis, classification, planning, or a learned domain-specific operation. Its output may be text, structured data or an internal representation. The initial implementations may be ordinary tools, small models, adapters or separately hosted specialists.
Existing techniques offer partial precedents. Mixture-of-experts architectures route tokens to selected learned experts [2]; low-rank adaptation modifies a base model through compact learned updates [3]; model stitching studies compatibility between neural representations [4]. These techniques do not establish that independently trained experts or adapters can be freely exchanged. Experts often depend on joint training, adapters on a particular base checkpoint, and stitched layers on alignment.
A capability manifest must add input/output schemas, runtime and hardware requirements, base-model compatibility, representation dimensions, tokenizer assumptions, numerical precision, resource estimates, test suite, security policy and known failure modes. The coordinator may invoke a module only when the contract is satisfied. Modules with side effects require explicit permission and isolated execution.
Treat every capability shard as untrusted code or an untrusted learned artifact until reviewed and certified. Before invocation, the coordinator must enforce explicit capability-based permissions for data, network, filesystem, tools and side effects; deny undeclared access by default. Certification does not remove runtime isolation, resource limits or monitoring. Prefer safe serialization formats and test adversarial inputs and dependency substitution.
7. A practical hybrid prototype
Start with a stable language model and three independent capabilities: a deterministic calculator, a structured-document extractor and a specialized coding model. Route each through a common request/response envelope containing task identifier, input, permitted resources, result, confidence indicators and provenance. Compare the hybrid system with the base model alone.
Then replace one capability with a compatible version while holding the remaining components constant. Verify that quality, latency, security and unrelated tasks do not regress. A later experiment may replace a learned adapter on a fixed base checkpoint. This isolates the scientific question of replaceability before attempting native neural composition.
The hybrid stage is not yet a native shard engine. It establishes reusable interfaces and operational discipline, while demonstrating whether independently maintained capabilities produce measurable benefits.
8. Stage III: the native shard engine
The ultimate objective is a new class of inference engine whose computational organization is designed around shards. A native shard engine would assemble an executable inference graph from a stable coordinating substrate and compatible learned or deterministic components. Knowledge and computation would be separately addressable but capable of cooperating within the same task. The engine would be defined by its active composition and manifest, not exclusively by a single monolithic checkpoint.
A minimal proposed substrate provides tokenization or input encoding, shared representation contracts, routing, state management, composition validation and output decoding. Computational shards may implement learned transformations, attention or feed-forward functions, specialist experts or other architectural units. Their boundaries must be discovered and tested rather than assumed to correspond neatly to human concepts such as mathematics or reasoning.
One possible research path is to train a small modular network jointly under explicit interface constraints, freeze its common substrate, then train replacement modules against the same contracts. A second path is to distill compatible specialists from larger teachers using common intermediate representations. A third is to combine deterministic and learned nodes in a typed execution graph. These are candidate experiments, not established solutions.
Boundary discovery should compare candidate partitions under a frozen substrate using activation clustering, gradient sensitivity and causal interventions (such as ablation or replacement). Mutual-information estimates may help identify dependencies but do not establish functional independence. Constrained joint training can penalize interface mismatch while preserving task quality. Compare candidate boundaries against random and conventional layer partitions, then test replacement on held-out tasks; reject boundaries whose apparent independence disappears under distribution shift.
Representation contracts must specify versioned tensor shapes, numerical types, normalization, semantic assumptions and compatible substrate versions. Establish reference activation distributions on a fixed calibration corpus and monitor drift using distribution-distance measures, paired activation comparisons and downstream task regressions. Thresholds must be calibrated before evaluation; statistical similarity alone does not establish semantic equivalence. Incompatible modules are quarantined, re-aligned or retrained and recertified, never silently substituted.
9. Dynamic composition and functional continuity
For a task, the router identifies required capabilities, resolves dependency versions, checks permissions and selects a compatible execution graph. Locally cached modules are loaded first; absent modules are fetched or invoked remotely when authorized. A verifier checks graph compatibility before execution. The system records the composition, input provenance and output evaluation so a result can be reproduced or investigated.
The composition manifest is the interface between the native engine and Echelon: it advertises certified capabilities, dependencies, resource estimates and verification requirements to the routing layer. Echelon selects eligible compositions and assigns independent verification; the execution record binds the actual manifest digest to the result and verification evidence.
Persona Percenta, conversation state, project continuity and knowledge records should remain independent of engine replacement. Functional continuity requires a measured capability baseline and regression tests. When no compatible replacement meets the baseline, the system must retain the previous composition, communicate limitations or defer the task rather than silently degrade performance.
A native engine need not assemble every component for every token. Stable cached compositions, prefetching and task-level routing may be preferable to expensive fine-grained dynamic loading. The architecture should select granularity empirically.
10. Distribution, caching and the speed hypothesis
Content-addressed storage permits identical immutable payloads to be reused by digest. A manifest describes the required composition; the receiver compares its cache with the manifest and requests only absent payloads. Dependencies can be prefetched, and common compositions retained. Storage deduplication is useful today even without semantic modularity. OCI content descriptors offer a precedent for digest-addressed distribution [5].
Let M be the total bytes of a required composition, C the bytes already available locally and compatible, B the effective transfer rate in bytes per second, and L the combined request, verification and loading overhead. A simplified serial transfer estimate is T = (M − C)/B + L. For a hypothetical 24 GB composition with 99% of its bytes cached, the missing payload is 240 MB. At 100 Mbps, transfer alone takes about 19.2 seconds rather than 32 minutes. At a complete cache hit, network payload transfer may be unnecessary, but loading and inference still take time.
Near-instantaneous availability is therefore plausible for small missing payloads or warm caches, not guaranteed for first installations, cold starts, large updates or slow links. Remote execution can avoid transferring weights but introduces network latency, availability and privacy constraints. Fine-grained shards may incur excessive request and synchronization overhead; coarse shards may sacrifice reuse.
For a simple serial remote boundary carrying A bytes per generated token, effective bandwidth B bytes/s and round-trip synchronization latency r seconds, the added time for N tokens is approximately N(A/B + r), assuming one blocking exchange per token and no overlap. For example, a 4,096-element FP16 activation is 8,192 bytes; at 100 Mbps and 20 ms round-trip latency, 1,000 such exchanges add about 20.7 seconds before remote compute. Multiple boundaries, return payloads and prefill can increase cost; batching and overlap can reduce it. Prefer local cached compositions and task-level remote routing unless measured token-level execution demonstrates a net benefit.
11. Certification and controlled evolution
Each released shard version should be immutable by digest. Certification is an internal approval decision for a stated scope, not a claim of universal correctness. Knowledge certification checks provenance, evidence and scope; capability certification checks behavior, compatibility, resource usage and security. Native engine certification additionally evaluates the complete composition because individually passing modules can interact badly.
The Great Streamlining Process proposes improvements but does not autonomously deploy them. After verifying recoverable backups, a replacement is staged in isolation, compared with the certified baseline, reviewed, approved, deployed and monitored. A recoverable prior manifest and payload set support rollback. Revocation lists identify unsafe or invalid versions without rewriting historical records. Security updates may require urgent review, but should not bypass integrity checks.
12. Research program and falsifiable criteria
Phase A: construct a representative knowledge library and compare conventional retrieval with governed shards using identical engines and source material. Measure retrieval recall, citation correctness, unsupported claims, update bandwidth, access-control failures and latency. Phase B: evaluate hybrid capability replacement using fixed task sets and held-out examples. Measure task accuracy, unrelated-task regression, module reuse, integration effort, memory and throughput.
Phase C: train a small native modular network and a parameter- and compute-matched monolithic baseline. Evaluate frozen-substrate module replacement, cross-composition compatibility and generalization to unseen tasks. Record training compute, inference compute, activation transfer, peak memory and cold/warm latency. Use repeated runs and report uncertainty. Prevent benchmark leakage and compare against simple caching and conventional adapters.
Operationalize coherence at two levels: interface coherence (contract compliance, activation drift and stability under module replacement) and task coherence (consistent conclusions, valid intermediate reasoning steps where observable, and successful multi-hop tasks crossing module boundaries). Use held-out tasks with known answers, contradiction checks, blinded human ratings with a predefined rubric, and reproducible automated scoring. Compare against the matched baseline across multiple seeds; report confidence intervals, failure categories and separate scores rather than hiding regressions in a single aggregate.
Illustrative acceptance gates, to be finalized before testing, are no unauthorized disclosure in the security test suite, no critical regression, and a predefined non-inferiority margin for task quality. A bandwidth benefit must survive accounting for metadata, dependencies and synchronization. If independently replaced modules consistently degrade coherence or cost more than full-model replacement, the native architecture hypothesis is weakened. Negative results should be published.
Before any Phase C training begins, archive a timestamped preregistration document or publish its cryptographic digest while retaining the underlying document for subsequent verification. Preregister the non-inferiority margin, drift thresholds, critical failure definitions, sample sizes and scoring procedures. Compare the lower confidence bound of the quality difference with the negative margin, and report cold and warm performance separately. A passing interface test cannot override a failed end-to-end coherence or security gate.
13. Limitations and governance
Neural capabilities are often entangled. Shared latent representations may drift, routing may fail, and independently optimized modules may interact unpredictably. Distributed execution can be slower than local inference because activation transfers recur during generation. A shard may expose proprietary training artifacts or carry malicious executable content. Use signed manifests, sandboxing, least privilege, dependency pinning, resource limits and independent review.
Secretary Suite can develop open interfaces while preserving authorized access to proprietary shard collections. Licensing, contributor rights and data governance must be resolved before distribution. No economic valuation or cryptocurrency mechanism is required to test the architecture. Early prototypes should prioritize existing hardware and free or low-cost infrastructure; original large-scale model training may demand substantial resources.
14. Conclusion
The evolutionary objective is not simply to attach a better library to a conventional LLM. It is to make the engine itself increasingly composable. Knowledge shards are the practical beginning; capability shards are the bridge; native shard engines are the research destination. The long-term promise is intelligence that can be maintained, distributed and improved at the level of its compatible components rather than repeatedly replacing everything. Whether this can be achieved without unacceptable losses is the central engineering question.
References
[1] Lewis, P., et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, 33. https://arxiv.org/abs/2005.11401
[2] Shazeer, N., et al. (2017). Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer. International Conference on Learning Representations. https://arxiv.org/abs/1701.06538
[3] Hu, E. J., et al. (2022). LoRA: Low-Rank Adaptation of Large Language Models. International Conference on Learning Representations. https://arxiv.org/abs/2106.09685
[4] Bansal, Y., Nakkiran, P., & Barak, B. (2021). Revisiting Model Stitching to Compare Neural Representations. Advances in Neural Information Processing Systems, 34. https://arxiv.org/abs/2106.07682
[5] Open Container Initiative. Image Format Specification: Content Descriptors. https://github.com/opencontainers/image-spec/blob/main/descriptor.md
Terminology summary
Storage shard: a partition of data or weights, not necessarily independently meaningful. Knowledge shard: a governed semantic information object. Capability shard: a compatible executable or learned computational component. Native shard engine: a proposed inference system designed to compose computational shards. Composition manifest: the versioned specification of the components and dependencies required to execute an engine.
The Secretary Suite concepts in this paper are architectural proposals. The external references establish relevant precedents, not validation of the proposed native shard engine. No experimental results are reported.