# HIVEMIND: Role-Bound Agent Swarms for Enterprise Continuity — Institutional Memory, Knowledge Commons, and Coordinated Intelligence Under Clearance: v1.7 → v1.8

From v1.7 (2 Jun) to v1.8 (14 Jun): 14,452 words to 17,854 words, 3,498 words in new or rewritten paragraphs and 96 taken out, 47 paragraphs changed.

## Change note of v1.8

**Reversible compression under clearance and a test for leaks**

About 3,400 words added, from items the improvement notes collected on 13 June. The theme is leakage: how to keep and compress memories without breaking clearance, and how to measure what a redacted summary still gives away.

- Related work on memory-compression tools that keep the originals (Compress-Cache-Retrieve), and why they assume a single trust level.
- How to keep originals under clearance without opening a path around it.
- A test that measures how much restricted information survives redaction.
- A "doubt reviewer": a fresh agent that never sees the source tries to guess the hidden facts from a summary, which turns a quality check into a leak test.
- The security model now says that a pre-execution gate (AEGIS) blocks out-of-clearance tool calls, a second layer next to file permissions.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### Abstract

Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions and formally grounded in the Bell-LaPadula security model, a three-level agent hierarchy (employee, department, executive), and structured inter-agent communication protocols that enforce information flow strictly downward. We ground the architecture in a detailed case study: a mid-sized family business (~50–200 employees) with Sales, IT, HR, Finance, and Production departments, each with distinct clearance requirements. We present the Sales Coordination Model as a worked example of cross-agent collaboration under clearance constraints, including customer ownership routing, redacted summary generation with template-based leakage controls, and competitive intelligence aggregation. We {+strengthen the declassification boundary with a fresh-context adversarial "doubt reviewer" that, by running across a clearance boundary, turns a quality check into a sound information-flow test for implication-leakage, and we specify a seeded-corpus eval that measures residual leakage directly. We show that clearance-domain memory compaction can be made reversible without breaking the lattice — a Compress-Cache-Retrieve-Under-Clearance variant in which the retrieve step *is* the clearance gate — and we update the enforcement model to reflect that the application layer now has a pre-execution gate that *denies* violating tool-calls rather than merely logging them, giving HIVEMIND two independent enforcing layers. We+} address privacy and legal considerations (GDPR, EU AI Act, employee transparency, right-to-be-forgotten), compliance architecture (nightly audit cron jobs, communication logging, automated quarantine), and a comprehensive risk model covering curious agents, inter-agent social engineering, memory contamination, and model capability variance. We include performance estimates, failure recovery procedures, a phased deployment strategy, and a sketch-level inter-agent protocol specification. We also distinguish clearly between what is proposed, what is operationally specified, and what remains to be empirically validated, framing HIVEMIND as an architectural design paper rather than a deployment evaluation. We conclude with future directions toward federated enterprise agent networks.

### 2.5 Memory-Compression Systems — Reversible Caching and the Single-Trust-Domain Assumption

{+### 2.5 Memory-Compression Systems — Reversible Caching and the Single-Trust-Domain Assumption+}

### 2.5 Memory-Compression Systems — Reversible Caching and the Single-Trust-Domain Assumption

{+The related work above concerns *coordination topology*; a separate line of contemporaneous work concerns the *cognition layer* HIVEMIND runs on every agent, and one project in particular bears directly on the memory subsystem of Section 1.5. headroom (Chopra, 2026; chopratejas/headroom, ~24.7k stars, Apache-2.0) is a production context-compression system built on a primitive it calls **CCR — Compress-Cache-Retrieve**. Where HIVEMIND's ENGRAM compaction is *lossy by design* (a summary stands in for many original events, originals shunted to cold storage, and a compacted pointer is explicitly "not a capability"; Section 3.7), headroom does the opposite: it *caches the originals* and lets the model *retrieve them on demand*, with per-content-type compressors — statistical crushing of JSON arrays, AST-aware code compression via tree-sitter, and dedicated log/diff/text handlers — reporting 60–95% token savings at near-zero accuracy delta on standard benchmarks (GSM8K, TruthfulQA, SQuAD, BFCL), and shipping a runnable evaluation harness together with a trained compression model.+}

### 2.5 Memory-Compression Systems — Reversible Caching and the Single-Trust-Domain Assumption

{+headroom matters to HIVEMIND for two reasons, one a tension and one a template. The tension: reversibility collides head-on with the lattice. A *reversible* summary is precisely the "compacted pointer that, when dereferenced, returns content above the holder's tier" that Section 3.7 names as the dangerous confused-deputy failure. headroom optimizes token economy and, by construction, assumes a *single trust domain* — retrieval is always permitted to whoever holds the cache. HIVEMIND cannot make that assumption, and Section 3.8 develops the clearance-aware variant that resolves the collision. The template: headroom is an existence proof that an agent-memory transform can ship with a *reproducible accuracy-delta eval*, which is exactly the artifact HIVEMIND's Limitations 2 and 10 admit it lacks. We borrow the discipline (a runnable eval over a named corpus) while rejecting the trust-domain assumption (every compression output must be a first-class classified object, not a freely retrievable cache).+}

### 2.6 Engineering-Discipline Systems — Adversarial Review with Stripped Context

{+### 2.6 Engineering-Discipline Systems — Adversarial Review with Stripped Context+}

### 2.6 Engineering-Discipline Systems — Adversarial Review with Stripped Context

{+A second open-source body of work targets *review discipline* rather than coordination or memory, and one mechanism within it maps unexpectedly well onto HIVEMIND's hardest unsolved problem — implication-leakage at the declassification boundary. addyosmani/agent-skills (Osmani, 2026; ~56.8k stars) is a disciplined-engineering plugin whose **doubt-driven-development** loop runs CLAIM → EXTRACT (produce an artifact whose originating reasoning is stripped, leaving only the contract/output) → DOUBT (a *fresh-context* adversarial reviewer that sees only the artifact, never the source or the reasoning that produced it) → RECONCILE (classify findings against the artifact text) → STOP (explicit trivial-findings / cycle-limit / override criteria). Most of this is a code-review loop and is not what HIVEMIND borrows. The reusable kernel is the *fresh-context-adversarial-reviewer-with-stripped-context* primitive: a reviewer deliberately denied the source can only reason from the artifact, which is the correct threat model for a recipient who is likewise denied the source. Section 5.4.1 re-purposes this primitive as a leakage oracle at the clearance boundary. The honest differentiation: addyosmani's loop is a *quality* check (does the artifact meet its contract); run across a clearance boundary it becomes an *information-flow* test (can a party without clearance infer the secret from the artifact alone). The repository's broader authoring conventions — every skill declares a "When NOT to use" anti-trigger and a "Loading Constraints" scope — are good practice we note but do not depend on.+}

### 2.7 The Convergence Argument

### [-2.5-] {+2.7+} The Convergence Argument

### 3.4 Formal Security Model

[-**Enforcement layers.** The BLP properties are enforced at two independent layers:-]

### 3.4 Formal Security Model

[-- **Primary (kernel-level):** Linux filesystem permissions and POSIX ACLs enforce the Simple Security Property. The \*-property is enforced by restricting write permissions: agent users have write access only to their own workspace and approved output directories at or above their classification level. - **Secondary (application-level):** Gateway routing rules, agent system prompts, and clearance validators provide defense-in-depth. These can be bypassed by model errors; the kernel layer cannot.-]

### 3.4 Formal Security Model

{+**Enforcement layers.** The BLP properties are enforced at two independent layers, and a recent capability change sharpens what "two layers" buys. Earlier versions of this architecture treated the application layer as pure advisory defense-in-depth — useful for logging, but bypassable by model error, with only the kernel able to actually *prevent* a violation. That asymmetry has narrowed: a pre-execution tool-call gate (AEGIS, the security subsystem of Section 1.5) can now *deny* an action before it runs, even under a permissive host configuration, by returning a hard block decision that the runtime honors rather than merely a logged warning. HIVEMIND therefore has **two independent layers that can each prevent, not merely record, a violation**:+}

### 3.4 Formal Security Model

{+- **Kernel-level enforcement.** Linux filesystem permissions and POSIX ACLs enforce the Simple Security Property. The \*-property is enforced by restricting write permissions: agent users have write access only to their own workspace and approved output directories at or above their classification level. The kernel denies an out-of-clearance *read*. - **Tool-boundary enforcement (application-level).** Gateway routing rules and the AEGIS pre-execution clearance gate deny the out-of-clearance *tool-call* — the action that would synthesize or launder restricted content even when every constituent read was individually authorized. This layer is no longer assumed bypassable: a denied tool-call does not execute. Agent system prompts and the clearance validators of Section 9.2 remain genuinely advisory (a model can phrase its way around an instruction), and that softer sub-layer is still treated as defense-in-depth — but the AEGIS gate itself is enforcing.+}

### 3.4 Formal Security Model

{+The two enforcing layers are complementary, not redundant: the kernel stops the read; AEGIS stops the action that would aggregate or exfiltrate across authorized reads (Section 9.1) and the social-engineering response that a prompt instruction alone might not (Section 9.2). The earlier framing — application-layer enforcement is an observe-only "physics limit" of the runtime — proved to be a configuration assumption rather than a hard constraint, and the architecture is stronger for retiring it.+}

### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice

{+### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice+}

### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice

{+Section 3.7 reached its safety by *throwing originals away*: compaction is lossy, the cold-storage copy is dereferenced only for retention/audit, and a pointer is deliberately not a capability. That is the conservative choice, and it pays a price — every compaction permanently degrades what the agent can later recall. A contemporaneous production system suggests the price may be avoidable. headroom's Compress-Cache-Retrieve (Section 2.5) keeps the originals in a cache and *retrieves them on demand*, recovering most of the lost fidelity at 60–95% token savings. The obvious question is whether HIVEMIND can adopt reversibility without reintroducing the confused-deputy hazard §3.7 was built to avoid.+}

### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice

{+It can, but only by making one substitution: **the retrieve step must be the clearance gate.** We call the variant **Compress-Cache-Retrieve-Under-Clearance (CCR-UC)**, and it is governed by two invariants that mirror the lattice rather than the single-trust-domain assumption headroom is free to make:+}

### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice

{+- **The cache inherits the maximum classification of what it compressed.** A cache built from T4 events is a T4 object. There is no such thing as a "low-tier cache of high-tier originals" — that object would be precisely the reversible pointer that launders a tier on dereference. - **Retrieve resolves under the *reader's* clearance against the *cache's* classification — the Simple Security Property, unchanged.** A holder of a CCR-UC pointer can expand it only into stores it could already read directly. Expansion on behalf of a lower-clearance requester is forbidden for exactly the reason server-side pointer dereferencing is forbidden in §3.7: a capability that returns content above the requester's tier is a leak regardless of how compactly it was encoded.+}

### 3.8 Compress-Cache-Retrieve Under Clearance — Keeping Originals Without Breaking the Lattice

{+Under these invariants, CCR-UC is not a new exception to Bell-LaPadula; it is the §4.5 mediated-retrieval machinery pointed inward at an agent's own compacted memory. The retrieve request is a clearance-checked query, not a grant — and when a privileged agent expands a cache whose contents span tiers for delivery to a lower-clearance reader, the expansion passes through the same template-based declassification pipeline (Section 5.4) as any other downward flow. The reframing is worth stating plainly because it strengthens the design: §3.7 said "we throw originals away to stay safe"; CCR-UC says "we can keep originals and stay safe *if and only if* the retrieve gate is the clearance gate." The honest boundary against headroom is that headroom ships this transform with a runnable accuracy-delta eval and a trained compressor and has no notion of classification; HIVEMIND adds the classification semantics and the clearance-checked retrieve but, as Section 12 concedes, has not yet shipped the eval. Section 3.9 specifies the eval that would close that gap.+}

### 3.9 A Redaction-Fidelity Eval — Measuring Residual Leakage Directly

{+### 3.9 A Redaction-Fidelity Eval — Measuring Residual Leakage Directly+}

### 3.9 A Redaction-Fidelity Eval — Measuring Residual Leakage Directly

{+headroom demonstrates that an agent-memory transform can be shipped with a reproducible benchmark; HIVEMIND should hold its declassification transforms to the analogous standard. The quantity to measure is *not* task accuracy — the redaction pipeline's job is the opposite of fidelity-preservation — but **residual leakage**: how much a reader can recover about the restricted source from the redacted output alone. We specify a seeded-corpus eval with three parts:+}

### 3.9 A Redaction-Fidelity Eval — Measuring Residual Leakage Directly

{+1. **A seeded leakage corpus.** A synthetic set of source records spanning the §5.4 template categories (pricing authority, legal status, margin data, personnel information), each paired with the restricted fact it must conceal and a set of "forbidden inferences" (existence, direction, magnitude of an authorization; identity of a party to a legal matter). 2. **The measured quantity — residual mutual information.** For each template category, estimate the mutual information between the redacted output and the restricted source fact, operationalized via a fresh-context inference test (Section 5.4.1): the fraction of forbidden inferences a clearance-blind reviewer recovers from the redacted text. A perfect template scores zero; the §5.4 worked failure ("the CFO has authorized significant flexibility…") scores high on the *direction* inference even though it leaks no restricted token. 3. **Acceptance thresholds per category.** Each template category gets a published residual-leakage ceiling; a template that exceeds it is rejected and returned to the compliance authors before it can enter the pipeline.+}

### 3.9 A Redaction-Fidelity Eval — Measuring Residual Leakage Directly

{+This is the artifact Limitations 2 and 10 call for, narrowed to the property HIVEMIND actually cares about. It does not establish information-theoretic *bounds* — that remains open — but it replaces an untested claim of leakage control with a measured one, and it makes redaction templates regression-testable after every model or rule change, exactly as headroom's eval makes a compressor regression-testable.+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+The template pipeline defends against leakage by *construction* — no LLM generates the redacted text, so no LLM can be coaxed into over-disclosing. But the pipeline still has a residual failure mode that §5.4 itself names as the real danger and that the §9.2 clearance validator cannot catch: **implication-leakage**, where the output contains no restricted token yet still "reveals the existence and direction of the authorization." The validator inspects for *known restricted formats* (salary ranges, credential patterns, document IDs); a sentence like "pricing on this account is unusually flexible right now" carries none of those formats and sails through, while leaking exactly the fact the recipient should not have. A format-aware checker is structurally blind to inference-leakage because the leak is in what the text *lets you conclude*, not in what it *contains*.+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+HIVEMIND closes this gap with a mechanism adapted from the doubt-driven-development loop of addyosmani/agent-skills (Section 2.6): a **doubt reviewer** — a fresh-context adversarial agent whose decisive property is *ignorance of the secret*. After the template pipeline produces a redacted package, and before it is delivered, the package — and *only* the package — is handed to a reviewer agent that has **no clearance to the source**, never sees the originating reasoning, and is asked a single adversarial question: *"From this text alone, what can you infer about restricted facts — the existence, direction, or magnitude of any pricing authority, legal matter, margin position, or personnel decision affecting this account?"*+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+The reason this is a *sound* leakage test, and not merely another quality check, is the clearance boundary it is run across:+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+- **The reviewer's threat model is the recipient's threat model.** The recipient (LUNA, T3) also has no access to the T4/T5 source. So anything the clearance-blind doubt reviewer can infer from the package alone is, by construction, something the recipient could infer too — a leak. Anything the reviewer cannot infer is, by the same construction, safe to deliver. The doubt reviewer is deliberately denied the secret so that "what the reviewer infers" is a faithful proxy for "what the recipient infers." This inverts the §9.2 validator, which *knows* the restricted formats and hunts for them; the doubt reviewer is *ignorant* of the secret and probes for inference, which is the only way to surface implication-leakage. - **The STOP criterion is the existing human-review escalation, not improvisation.** If the doubt reviewer recovers a forbidden inference, the disposition is not to silently soften the wording in a loop until the reviewer goes quiet — that path risks an arms race between two models with no ground truth. Instead, the template authors are given the finding; if the template can be tightened to defeat the inference it is, otherwise the request halts to human review via the `ERR_HUMAN_REVIEW_REQUIRED` escalation (Section 8.3.5). This preserves the architecture's first rule at the downgrade boundary: never improvise a best-effort partial summary; when in doubt, escalate. The doubt reviewer's cycle-limit and trivial-finding criteria map directly onto that halt-or-deliver decision rather than an open-ended rewrite.+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+The honest scope of the borrowing: addyosmani's loop is an engineering-discipline mechanism for code review, with a fully specified multi-cycle reconcile/stop machinery HIVEMIND does not reproduce. HIVEMIND takes only the fresh-context-reviewer-with-stripped-context primitive and re-purposes it as an *information-flow* oracle by running it across a clearance boundary — turning a quality check into a leakage test. It is also the runtime counterpart to the offline redaction-fidelity eval of Section 3.9: the eval measures residual leakage over a seeded corpus before deployment; the doubt reviewer measures it per-package at delivery time. A template that passes the offline eval but still leaks on a novel record is caught here.+}

### 5.4.1 The Doubt Reviewer — A Fresh-Context Leakage Oracle

{+One cost must be stated: the doubt reviewer is an additional LLM call on the declassification path, and it operates near the capability ceiling of a local model (Section 6.6). It should therefore gate only T3+ declassifications where the template pipeline produced a non-trivial output, and its own failures must fail *closed* — a doubt reviewer that errors or times out routes the package to human review, never auto-delivers.+}

### 7.3 Nightly Compliance Sweep

{+**An empirical anchor for how to build the detectors.** The separation above is an architectural argument; recent offline measurement gives it a concrete, cautionary shape and should steer how the semantic scan (Section 7.3.2) and the clearance validator (Section 9.2) are actually constructed. In a controlled evaluation of safety detectors over *frozen* sentence-embeddings (a frozen MiniLM encoder, measured on a single consumer GPU), a **supervised "is-this-harmful/restricted-content" classification head scored AUROC 0.286 — below chance.** The lesson is sharp: a frozen embedding does not carry "restrictedness" or "harmfulness" as a linearly-readable supervised target, so a detector built as a supervised head over frozen embeddings can be *worse than a coin flip* while appearing principled. By contrast, two *unsupervised structural* signals over the same embeddings validated strongly: **k-NN novelty — how unlike an item is to the agent's own history — scored AUROC 0.875**, and **clause-cosine incongruity — how poorly a message coheres with its declared channel/clearance — scored AUROC 0.896.**+}

### 7.3 Nightly Compliance Sweep

{+Translated into HIVEMIND's detectors, this argues against the naïve build and for a specific one. The semantic memory scan should *not* be a supervised "does this look like restricted content" head over embeddings — that is the configuration measured below chance, and it would also generate exactly the alert-fatigue burden Section 7.3.1 warns about. It should instead favor structural detectors that are cheap and that the measurement supports: **novelty** (a memory entry unlike anything in this agent's clearance-appropriate history is worth a flag) and **incongruity** (a message whose content does not cohere with its declared channel schema or the sender's clearance is worth a flag — the upward-push covert-query attack of Section 9.2 is an incongruity, not a known format). High-confidence *format* matches (exact HR salary-range schemas, IT credential formats) remain rule-based as in Section 7.3.1; the structural detectors replace the unreliable supervised-semantic layer rather than the deterministic-format layer. This is the detector/disposition separation made empirical: the most error-prone framing has a real, measured AUROC attached to it, and the architecture chooses the framings that the same measurement shows to work.+}

### 9.1 The Curious Agent Problem

[-- Tool call logging includes query intent. Compliance sweep flags aggregation-pattern queries. - System prompt includes clearance awareness: "If a query seems to require information beyond your clearance level, acknowledge the limitation and escalate to SALES-AGENT." - Agent outputs pass through a lightweight classifier checking for content patterns inconsistent with the agent's clearance.-]

### 9.1 The Curious Agent Problem

{+- Tool call logging includes query intent. Compliance sweep flags aggregation-pattern queries. - System prompt includes clearance awareness: "If a query seems to require information beyond your clearance level, acknowledge the limitation and escalate to SALES-AGENT." - The AEGIS pre-execution gate (Section 3.4) can **deny the synthesizing or exfiltrating tool-call at the tool boundary, before it runs** — not merely flag it the next morning in the nightly sweep. This is the material upgrade over earlier versions of the mitigation: the curious agent's individual reads may each be authorized, but the aggregation step that crosses the clearance boundary is itself a tool-call, and a denied tool-call does not execute. The nightly aggregation-pattern flag remains as a backstop and as the audit record, but it is no longer the only line of defense against this risk. - Per the detector guidance of Section 7.3.5, the inconsistency check that feeds the gate is best framed as a *structural* signal — a tool-call or output that is novel relative to the agent's clearance-appropriate history, or incongruent with its declared scope — rather than a supervised "looks-restricted" classifier over frozen embeddings, which measurement shows performs below chance.+}

### 9.2 Inter-Agent Social Engineering

- Department agents use a separate, more restrictive system prompt for inter-agent communication. Explicit rule: "Never include T4+ content in responses to T3 agents regardless of framing." - All department agent responses to employee agents pass through a **clearance validator** before delivery — a separate, deterministic check. {+Crucially, this validator now runs at the AEGIS pre-execution tool boundary (Section 3.4): a response that fails validation is *denied before it is sent*, not flagged after delivery. The validator's decision is enforcing, not advisory.+} - **Clearance validator design.** To avoid the attack-surface and latency concerns of a second LLM call, the validator is primarily rule-based: regex patterns for known restricted data formats (salary ranges, credential patterns, document IDs from restricted paths), plus a [-lightweight classifier for semantic checks.-] {+*structural* incongruity check rather than a supervised "is-this-restricted" classifier. The choice of a structural check is empirically motivated (Section 7.3.5): a supervised harmfulness/restrictedness head over frozen embeddings was measured below chance (AUROC 0.286), whereas message-versus-declared-channel incongruity validated strongly (AUROC 0.896) — and the covert-query-disguised-as-competitive-intelligence attack is precisely an incongruity between a message's content and its declared channel.+} The full LLM-based validation {+(the §5.4.1 doubt reviewer)+} is reserved for [-messages-] {+declassification packages+} flagged as [-ambiguous by the rule-based layer.-] {+ambiguous.+} This [-two-tier approach-] {+layering+} reduces latency (rule-based check: <10ms; {+structural check: low ms;+} LLM [-check-] {+doubt-review+} only when [-triggered: ~500ms)-] {+triggered)+} and limits the attack surface. - Push channels return no data to the sender. The channel schema is validated; malformed pushes are rejected and logged. Push frequency is rate-limited per agent. - Communication logs capture request-response pairs. Patterns where a specific agent consistently receives more sensitive-seeming responses are flagged.

### 9.5 Model Capability Variance

- Clearance enforcement is infrastructure-first: filesystem permissions and gateway routing are kernel/gateway-level constraints the model cannot override. - [-Model-level clearance-] {+There are now two *enforcing* layers, not one (Section 3.4): the kernel denies an out-of-clearance read, and the AEGIS pre-execution gate denies the out-of-clearance tool-call — so a model that+} is [-defense-in-depth, not primary enforcement.-] {+*willing* to violate a rule is still stopped at the tool boundary before acting. What remains defense-in-depth is only the softest sub-layer: the model's own clearance-aware *prompting*, which a sufficiently confused or manipulated model can phrase its way around. That softer layer must never be the sole barrier — but it is no longer the case that the application layer as a whole is bypassable.+} - Smaller models excluded from T4+ operations, even as supporting steps. Model capability requirements scale with clearance tier. - Periodic red-team exercises: extract restricted data via social engineering, prompt injection, and aggregation attacks. Findings feed into prompt improvements and infrastructure hardening.

### 12. Limitations

2. **Redaction reliability is [-unproven.**-] {+measurable but not yet measured, and not formally bounded.**+} The template-based redaction pipeline (Section 5.4) mitigates but does not eliminate leakage [-risk.-] {+risk, and the doubt-reviewer oracle (Section 5.4.1) and residual-leakage eval (Section 3.9) now give a concrete way to *measure* the residual — but this paper specifies those artifacts without running them.+} No formal information-theoretic bounds on leakage are [-established.-] {+established; the proposed eval measures residual mutual information empirically rather than bounding it.+} The templates themselves must {+still+} be authored by humans — their quality and completeness [-are-] {+remain+} a manual [-bottleneck.-] {+bottleneck, now at least one that is regression-testable.+}

### 12. Limitations

[-4. **Model capability assumptions.** The architecture assumes that current-generation 70B models can reliably perform clearance-aware operations (classification tagging, escalation detection, behavioral profiling). This assumption needs empirical validation per deployment.-]

### 12. Limitations

{+4. **Model capability assumptions — partially measured, and framing-dependent.** The architecture assumes that current-generation 70B models can reliably perform clearance-aware operations (classification tagging, escalation detection, behavioral profiling). Recent measurement (Section 7.3.5) qualifies this rather than confirming it wholesale: *which framing* of a clearance-aware detector is used matters decisively. A supervised "is-this-restricted" head over frozen embeddings was measured below chance (AUROC 0.286), while structural framings of the same task — novelty and channel-incongruity — validated strongly (AUROC 0.875 and 0.896). So the assumption should be narrowed: models can support clearance-aware *structural* detection but should not be trusted as supervised restrictedness classifiers, and the generation/redaction-fidelity operations still need per-deployment validation against the specific local model.+}

### 12. Limitations

[-10. **Benchmark and test methodology missing.** The paper proposes classifiers, validators, and redaction pipelines without a standard benchmark suite, seeded violation corpus, or acceptance thresholds. This weakens reproducibility.-]

### 12. Limitations

{+10. **Benchmark and test methodology specified but not yet shipped.** The paper now *specifies* a seeded leakage corpus, a residual-leakage metric, and per-category acceptance thresholds (Section 3.9), and points to a contemporaneous system (headroom; Section 2.5) as existence-proof that an agent-memory transform can ship with a runnable accuracy-delta eval and a trained model. What HIVEMIND has not done is *ship* that eval — there is no released corpus, no reported numbers, and no public harness yet. The methodology gap is therefore narrowed from "some benchmark would help" to a named, buildable artifact, but it remains open until the eval is run and its results published.+}

### 13. Conclusions

[-1. **The Corporate Filesystem Clearance Model.** Five data classification tiers (PUBLIC through SECRET) mapped to Linux filesystem permissions, formally grounded in the Bell-LaPadula security model with a controlled declassification mechanism. Infrastructure enforcement is categorically more reliable than model-level instruction.-]

### 13. Conclusions

{+1. **The Corporate Filesystem Clearance Model.** Five data classification tiers (PUBLIC through SECRET) mapped to Linux filesystem permissions, formally grounded in the Bell-LaPadula security model with a controlled declassification mechanism. Enforcement is now two-layered and both layers can *prevent* a violation rather than merely record it: the kernel denies the out-of-clearance read, and a pre-execution tool-boundary gate denies the out-of-clearance action — retiring the earlier assumption that application-layer enforcement could only observe.+}

### 13. Conclusions

3. **The Sales Coordination Model.** Customer ownership routing, unified history assembly with template-based redacted summaries, and competitive intelligence aggregation — demonstrating cross-agent coordination without lateral information [-leakage.-] {+leakage. The declassification boundary is hardened with a fresh-context "doubt reviewer" that, run across a clearance boundary, is a sound test for implication-leakage, and with a seeded-corpus eval that measures residual leakage directly.+}

### 13. Conclusions

[-The contribution is sharpened by where HIVEMIND sits among contemporaneous systems. Open-source org-chart frameworks demonstrate that the structural paradigm works in practice but omit the security and cognitive layers; prompt-defined coordinator modes show the lean end of the spectrum; single-agent role switching marks the low-cost end for small teams. The independent convergence of these efforts on organizational structure suggests it is the natural coordination topology for heterogeneous agents — and HIVEMIND's specific claim is that the same structure, taken seriously, is also the access-control model rather than a layer bolted on top of it.-]

### 13. Conclusions

{+The contribution is sharpened by where HIVEMIND sits among contemporaneous systems. Open-source org-chart frameworks demonstrate that the structural paradigm works in practice but omit the security and cognitive layers; prompt-defined coordinator modes show the lean end of the spectrum; single-agent role switching marks the low-cost end for small teams. Beyond coordination, two fresher open-source systems shape the cognition and discipline layers: headroom's reversible Compress-Cache-Retrieve shows that agent memory can be compressed without loss and shipped with a runnable eval — which HIVEMIND adopts as Compress-Cache-Retrieve-Under-Clearance, adding the classification semantics headroom has no need for; and addyosmani/agent-skills' doubt-driven-development supplies a fresh-context-adversarial-review primitive that HIVEMIND re-purposes, by running it across a clearance boundary, from a quality check into an information-flow leakage test. The recurring move is the same: take a mechanism designed for a single trust domain and make it lattice-aware. HIVEMIND's specific claim is that the organizational structure, taken seriously, is also the access-control model rather than a layer bolted on top of it — and that the cognitive transforms running inside that structure are safe only when each of them, too, resolves under the reader's clearance.+}

### References

{+Chopra, T. (2026). _headroom: reversible context compression via Compress-Cache-Retrieve_. chopratejas/headroom (Apache-2.0). https://github.com/chopratejas/headroom+}

### References

{+Osmani, A. (2026). _agent-skills: disciplined-engineering skills, incl. doubt-driven-development_. addyosmani/agent-skills. https://github.com/addyosmani/agent-skills+}

### References

_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _Version [-1.7-] {+1.8+} | June [-2,-] {+14,+} 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_
