v2.2 → v2.3
What changed from v2.2 to v2.3
From v2.2 (18 Jun) to v2.3 (19 Jun): 19,913 words to 21,251 words, 1,641 words in new or rewritten paragraphs and 303 taken out, 34 paragraphs changed.
Agents acting on shared data at once; a caution on leak detectors
Two items from the improvement notes go in.
- A new section on agents changing the same shared data at the same time: work is prepared in parallel, then applied under short locks per object, each agent in its own copy that is merged back.
- The compliance sweep gains a measured warning: a leak detector trained on top of a frozen sentence-embedding model works poorly, so it should not be built that way.
- The pre-execution gate (AEGIS) is described as an enforced block rather than advice.
- Short additions on curious agents, agents persuading each other, and model differences. The author's own internal papers leave the reference list.
v2.2 · 18 June 2026v2.3 · 19 June 2026
··· 8 unchanged paragraphs folded ···
v2.2 · 1.1 The Most Expensive Problem in a Mid-Sized CompanyThe first generation of practical AI assistants is personal. OpenClaw, TinkerClaw, and comparable platforms are designed around a single operator — one human, one agent, one workspace. The agent accumulates contextual memory, learns preferences, and acts as a trusted extension of that individual's cognition. Prior J-series papers have explored this individual model in depth: memory architecture (J1), curiosity and self-improvement (J8), and trust tiers governing tool access (J3). The individual agent is now a reasonably mature design.
v2.3 · 1.1 The Most Expensive Problem in a Mid-Sized CompanyThe first generation of practical AI assistants is personal. OpenClaw, TinkerClaw, and comparable platforms are designed around a single operator — one human, one agent, one workspace. The agent accumulates contextual memory, learns preferences, and acts as a trusted extension of that individual's cognition. The single-operator design is by now reasonably mature: persistent memory architectures, curiosity-driven self-improvement, and trust tiers governing tool access are all well-understood for the one-human-one-agent case. The individual agent is a solved-enough problem.
··· 23 unchanged paragraphs folded ···
v2.2 · 1.5 The Per-Agent Cognitive StackFor brevity the paper refers to these by short names — ENGRAM (memory), HIPPOCAMPUS (retrieval), CORTEX (identity), CEREBELLUM (reflection), SYNAPSE (deliberation), and AEGIS (security) — purely as labels for the six functions above, each developed in depth in its own J-series paper.
v2.3 · 1.5 The Per-Agent Cognitive StackFor brevity the paper refers to these by short names — ENGRAM (memory), HIPPOCAMPUS (retrieval), CORTEX (identity), CEREBELLUM (reflection), SYNAPSE (deliberation), and AEGIS (security) — purely as labels for the six functions above. Each is a well-studied single-agent subsystem in its own right; here they matter only as the per-agent capabilities the swarm composes.
··· 36 unchanged paragraphs folded ···
v2.2 · 2.4 Formal Security Model**Enforcement layers.** The BLP properties are enforced at two independent layers:
v2.3 · 2.4 Formal Security Model**Enforcement layers.** The BLP properties are enforced at two independent layers, and — importantly — *both* can deny a violation, not merely log one:
v2.2 · 2.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.
removed in v2.3
not in v2.2
v2.3 · 2.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. The kernel denies the read or write outright. - **Secondary (runtime tool-boundary):** A pre-execution policy hook — AEGIS — evaluates each tool call *before it runs* and can return a hard block, denying the action even when the runtime is otherwise operating in a permissive mode. This is a genuine second *enforcing* layer rather than advisory defense-in-depth: where the kernel denies the underlying read, AEGIS denies the tool call that would launder it (the aggregation or exfiltration step), so a clearance breach must defeat *two* independent deny gates, not one. Gateway routing rules, agent system prompts, and clearance validators add a third, softer layer of defense-in-depth that the model can in principle err around; the kernel and the tool-boundary hook cannot be talked past by a prompt.
not in v2.2
v2.3 · 2.4 Formal Security ModelThe architectural consequence is worth stating plainly, because earlier multi-agent security analyses (including our own) treated application-layer enforcement on an LLM runtime as an observe-only "physics limit" — something that could flag a violation but never stop one. That is no longer true. A pre-execution hook that returns a block decision *prevents* the tool call. HIVEMIND therefore has two layers that can each *prevent* (not merely record) a violation, which materially strengthens the aggregation and social-engineering mitigations of Section 8: the synthesis-and-exfiltrate tool call can be stopped at the tool boundary, not only surfaced in the nightly sweep.
··· 73 unchanged paragraphs folded ···
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration### 3.7 Concurrent Action Under Arbitration
not in v2.2
v2.3 · 3.7 Concurrent Action Under ArbitrationThe retrieval machinery of Section 3.6 mediates concurrent *reads*. It says nothing about concurrent *writes*, yet the swarm's central substrate — the shared corporate filesystem of Section 2 — is mutable, and agents at the same tier will at times act on the *same* object at the same time. Two department agents may both append to the competitive-intelligence channel of Section 4.5; a steward and a sweep may touch the same commons file. The information plane has a worked-out safety story; the action plane needs the matching one. Mediating who may *know* what is only half the design if nothing arbitrates who may *change* what, concurrently.
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration**The problem, stated cleanly.** When N agents act concurrently on one shared store, three failure modes appear:
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration1. **Collision** — two agents want the same object at the same instant and nothing arbitrates, so one silently overwrites the other. 2. **Commit hazard** — an agent tries to record only its own change, but a coarse-grained "stage everything" gate sweeps in a peer's half-finished work, attributing it to the wrong actor and corrupting the audit trail. 3. **Manual conflict analysis** — a human is forced to reason, after the fact, about which tasks were independent (disjoint objects) and which had to serialize (a shared object), and to hand-stitch the results.
not in v2.2
v2.3 · 3.7 Concurrent Action Under ArbitrationThese are the action-plane analogue of the information-plane hazards the rest of the paper addresses (leakage, coordination failure, silo): the same need for *coordination under a protocol rather than a human's manual intervention*, applied to mutation instead of disclosure.
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration**The mechanism: prepare outside the lock, then short-lived per-object leases.** A coordination protocol — instantiated as a working orchestrator on the OpenClaw/TinkerClaw filesystem, here named the arbitration layer — splits every worker into two phases.
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration- **Phase A (no lease, fully parallel).** Each worker reads, diagnoses, and drafts an *exact* change to the object(s) it will touch. This is the bulk of the wall-clock — roughly 95% — and it runs with zero contention, because reading never conflicts (the same reason read-only fan-out parallelizes cleanly in Section 3.6). - **Phase B (brief lease, serial per object).** A worker acquires a lease on *only* the object(s) its prepared change touches, applies the pre-computed edit, verifies it, and releases — a matter of seconds. Disjoint objects therefore proceed concurrently; only genuine shared-object contention serializes, and even then the object "passes hands" the instant an edit lands. If the base shifted while a worker waited, a staleness guard makes it re-derive its change against the new state rather than apply a stale one.
not in v2.2
v2.3 · 3.7 Concurrent Action Under ArbitrationThe elegant consequence the design names: because every write to a given object is serialized through that object's lease against one shared state, *nothing ever diverges — so "clean merge" becomes a non-event; there is nothing to merge.* This is the write-side counterpart to the §3.6 "provenance survives the hop" property: each applied change is recorded as its own atomic, attributable commit — staging *only* that unit's objects, never a coarse "stage everything" — so the audit substrate of Section 6 gets a clean, per-actor write history for free.
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration**The stronger variant: isolation-per-agent with merge-back.** To defend against a *peer outside the protocol* — a second, uncoordinated session dirtying the shared tree — each disjoint unit can prepare and apply on its own isolated checkout branched off a clean checkpoint, with overlapping units serialized onto one shared checkout; a final integration phase fast-forwards or cherry-picks the branches back, and any foreign uncommitted work on a contended object is stashed and restored around the landing so it is neither swept in nor reverted. The guarantee this buys — *a non-participating agent's work-in-progress is never touched, and every worker starts from a clean base* — is the same architectural move as the per-principal isolation that separate Linux users provide for clearance (Section 7.5), applied to *write* isolation instead of *read* isolation. Per-principal isolation enforced below the agent's reasoning, on two different planes.
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration{width=82%}
not in v2.2
v2.3 · 3.7 Concurrent Action Under Arbitration**Why this belongs in the swarm design.** It is the operational realization of an assumption the architecture otherwise leaves implicit: that department- and executive-tier agents will sometimes act on the same shared corporate state concurrently. The clearance lattice tells them what they may touch; the arbitration layer tells them how to touch it at the same time without a human reconciling the result. It instantiates the design's first principle — that *concurrency is a feature made safe by protocol, not a hazard to be avoided* — with a mechanism rather than an assertion, and it generalizes well beyond code: the shared filesystem of Section 2 is exactly the shared mutable state the protocol governs.
··· 131 unchanged paragraphs folded ···
not in v2.2
v2.3 · 6.3 Nightly Compliance Sweep**How to build the detector — a measured caution.** There is a tempting but wrong way to build the semantic scanner of Section 6.3.1 and the clearance validator of Section 8.2: train a supervised "is-this-restricted/harmful-content" head on top of a frozen sentence-embedding model. Offline measurement of exactly this configuration (frozen MiniLM embeddings, a supervised harmfulness head) found it scored *below chance* — an AUROC of roughly 0.29 — because a frozen embedding does not carry "harmfulness" or "restrictedness" as a linearly recoverable supervised target. In the same measurement, two *unsupervised structural* signals over the same embeddings validated strongly: **k-NN novelty** (how far a message sits from the agent's own prior history) scored AUROC ≈ 0.88, and **clause-cosine incongruity** (the internal mismatch between a message and the channel or clearance it claims) scored AUROC ≈ 0.90. The lesson transfers directly: HIVEMIND's compliance classifiers should not be framed as supervised content-restriction heads over frozen embeddings — the framing measured below chance — but should favor *structural* detectors: novelty relative to an agent's own baseline, and incongruity between a message and its declared channel or clearance. This is also exactly the detector/disposition separation just argued (a structural anomaly is a flag, not a verdict), and it gives the governance-metrics argument an empirical anchor rather than a purely architectural one. It partially answers the broader open question of whether current models can reliably perform clearance-aware classification: measurement says *which framing* of that operation works (structural) and which collapses (supervised-over-frozen).
··· 86 unchanged paragraphs folded ···
v2.2 · 8.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 L2-SALES." - Agent outputs pass through a lightweight classifier checking for content patterns inconsistent with the agent's clearance.
removed in v2.3
not in v2.2
v2.3 · 8.1 The Curious Agent Problem- Tool call logging includes query intent. Compliance sweep flags aggregation-pattern queries. - The pre-execution tool-boundary hook (AEGIS, Section 2.4) can *block* a synthesis-and-exfiltrate tool call before it runs — so an aggregation that would cross a clearance boundary is stopped at the boundary, not merely flagged hours later in the nightly sweep. - System prompt includes clearance awareness: "If a query seems to require information beyond your clearance level, acknowledge the limitation and escalate to L2-SALES." - Agent outputs pass through a structural anomaly check (novelty against the agent's own history; incongruity between the output and the agent's clearance — see Section 6.3.5) rather than a supervised "restricted-content" classifier, which measurement shows is the weaker framing.
··· 3 unchanged paragraphs folded ···
v2.2 · 8.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 role agents pass through a **clearance validator** before delivery — a separate, deterministic check. - **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. The full LLM-based validation is reserved for messages flagged as ambiguous by the rule-based layer. This two-tier approach reduces latency (rule-based check: <10ms; LLM check only when triggered: ~500ms) 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.
v2.3 · 8.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 role agents pass through a **clearance validator** before delivery — a separate, deterministic check — and the response-generating tool call is itself subject to the pre-execution tool-boundary hook (Section 2.4), which can *deny* a delivery that would carry restricted content downward, so the validator is backed by an enforcing gate rather than being advisory alone. - **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 structural anomaly check (Section 6.3.5) for semantic incongruity rather than a supervised restricted-content head. The full LLM-based validation is reserved for messages flagged as ambiguous by the rule-based layer. This two-tier approach reduces latency (rule-based check: <10ms; LLM check only when triggered: ~500ms) 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.
··· 11 unchanged paragraphs folded ···
v2.2 · 8.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 is defense-in-depth, not primary enforcement. - 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.
v2.3 · 8.5 Model Capability Variance- Clearance enforcement is infrastructure-first: filesystem permissions (kernel) and the pre-execution tool-boundary hook (Section 2.4) are two independent constraints that each *deny* a violation rather than rely on the model behaving — a model error must defeat both, not one. - Model-level clearance instruction (system prompts, in-context rules) is the softest, defense-in-depth layer, not primary enforcement. - 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.
··· 85 unchanged paragraphs folded ···
v2.2 · 12. Conclusions9. **Technical Specification.** Inter-agent protocol with message format, delivery semantics, authentication, and process isolation beyond filesystem permissions, plus bounded-autonomy operational governance and user/IT separation of duties.
v2.3 · 12. Conclusions9. **Technical Specification.** Inter-agent protocol with message format, delivery semantics, authentication, and process isolation beyond filesystem permissions, plus bounded-autonomy operational governance and user/IT separation of duties. Enforcement is dual-deny: the kernel and a pre-execution tool-boundary hook each independently *prevent* a clearance breach rather than merely log it.
not in v2.2
v2.3 · 12. Conclusions10. **Concurrent Action Under Arbitration.** A coordination protocol for the action plane (Section 3.7): workers prepare exact changes outside any lock, then apply them under short-lived per-object leases so disjoint objects proceed concurrently and shared objects serialize — making "clean merge" a non-event and giving the audit substrate a clean per-actor write history. This is the write-side counterpart to the read-side mediated retrieval, instantiating the principle that concurrency is made safe by protocol rather than avoided.
v2.2 · 12. Conclusions10. **The Multi-Axis Network View.** A framing of the swarm as one graph read along six orthogonal axes — clearance, supervision, bottleneck reduction, workload sharing, self-modification, and knowledge propagation — each with its own mechanisms and frequently in tension with the others. The self-modification axis is governed by division of labor: only IT may alter the infrastructure, fed by a detailed, agent-ingested improvement channel that lets the workforce get continuously faster without anyone destabilizing the shared substrate.
v2.3 · 12. Conclusions11. **The Multi-Axis Network View.** A framing of the swarm as one graph read along six orthogonal axes — clearance, supervision, bottleneck reduction, workload sharing, self-modification, and knowledge propagation — each with its own mechanisms and frequently in tension with the others. The self-modification axis is governed by division of labor: only IT may alter the infrastructure, fed by a detailed, agent-ingested improvement channel that lets the workforce get continuously faster without anyone destabilizing the shared substrate.
v2.2 · 12. Conclusions11. **A Future-of-Work Argument.** A perspective on why role-bound AI need not be read as job elimination: for roles whose value is learning and teaching, removing the repetition and adding leverage can elevate the job — the trainer becomes a recurring-revenue knowledge manager who teaches once, fights fossilization, breaks the per-hour income ceiling, and serves many companies at once.
v2.3 · 12. Conclusions12. **A Future-of-Work Argument.** A perspective on why role-bound AI need not be read as job elimination: for roles whose value is learning and teaching, removing the repetition and adding leverage can elevate the job — the trainer becomes a recurring-revenue knowledge manager who teaches once, fights fossilization, breaks the per-hour income ceiling, and serves many companies at once.
v2.2 · 12. Conclusions12. **Positioning Among Convergent Paradigms.** A related-work synthesis (Section 1.6) placing HIVEMIND among the fan-out, coordinator-with-workers, and org-chart topologies, and against Paperclip, coordinator/teammate execution models, single-agent role-switching, headroom's reversible caching, and addyosmani's doubt-driven review — with the convergence argument that corporate structure may be the natural coordination topology, and HIVEMIND's distinguishing claim that the org chart *is* the access-control graph.
v2.3 · 12. Conclusions13. **Positioning Among Convergent Paradigms.** A related-work synthesis (Section 1.6) placing HIVEMIND among the fan-out, coordinator-with-workers, and org-chart topologies, and against Paperclip, coordinator/teammate execution models, single-agent role-switching, headroom's reversible caching, and addyosmani's doubt-driven review — with the convergence argument that corporate structure may be the natural coordination topology, and HIVEMIND's distinguishing claim that the org chart *is* the access-control graph.
v2.2 · 12. Conclusions13. **Clearance-Aware Memory and Measured Leakage Control.** The per-agent cognitive stack (Section 1.5) applied under role-binding; an append-only event store and a Compress-Cache-Retrieve-Under-Clearance variant that keep memory reversible without laundering tiers (Sections 2.9–2.10); cross-role federated retrieval (Section 3.6); and a matched pair that moves leakage control from asserted to measured — an offline redaction-fidelity eval and a runtime fresh-context doubt reviewer (Sections 4.4.1–4.4.2).
v2.3 · 12. Conclusions14. **Clearance-Aware Memory and Measured Leakage Control.** The per-agent cognitive stack (Section 1.5) applied under role-binding; an append-only event store and a Compress-Cache-Retrieve-Under-Clearance variant that keep memory reversible without laundering tiers (Sections 2.9–2.10); cross-role federated retrieval (Section 3.6); and a matched pair that moves leakage control from asserted to measured — an offline redaction-fidelity eval and a runtime fresh-context doubt reviewer (Sections 4.4.1–4.4.2).
··· 23 unchanged paragraphs folded ···
v2.2 · ReferencesSerra, O. (2026, January). J1: Memory Architecture for Persistent AI Assistants. Internal J-series working paper.
removed in v2.3
v2.2 · ReferencesSerra, O. (2026, February). J8: The Wondering Machine — Curiosity, Memory, and the Architecture of Self-Improving Language Models. Internal J-series working paper.
removed in v2.3
··· 3 unchanged paragraphs folded ···
v2.2 · References_HIVEMIND: Role-Bound Agent Swarms for Enterprise Continuity_ _J-series paper J10 | Version 2.2 | June 18, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_
v2.3 · References_HIVEMIND: Role-Bound Agent Swarms for Enterprise Continuity_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_
v2.2 · References_v2.0 reframed the architecture around organizational continuity: role-bound agents (one shared agent per job function) in place of per-person agents, a knowledge-commons cascade with the trainer→steward transformation, contextual customer ownership, ownership-based governance with bounded autonomy, and offboarding as a non-event._
removed in v2.3
v2.2 · References_v2.1 adds: a systematic `L<level>-<SCOPE>` agent naming convention applied throughout (replacing STRATEGOS / mixed per-department names); §3.5 framing the network along six orthogonal axes (clearance, supervision, bottleneck reduction, workload sharing, self-modification, knowledge propagation); an expanded §7.11 IT-only self-modification loop with an agent-ingested feature-request channel and vibe-coded improvements; and §5.10, a future-of-work argument on how learning-and-teaching roles can be elevated rather than eliminated._
removed in v2.3
v2.2 · References_v2.2 merges forward the substantive sections from the parallel v1.8 build lineage that the v2.x reframe had been missing, each re-framed for role-binding: §1.5 the per-agent cognitive stack (ENGRAM/HIPPOCAMPUS/CORTEX/CEREBELLUM/SYNAPSE/AEGIS), §1.6 Related Work and Positioning (Paperclip, coordinator/teammate models, headroom/CCR, addyosmani doubt-driven, the convergence argument), §2.9–2.10 the clearance-aware append-only event store and Compress-Cache-Retrieve-Under-Clearance, §3.6 cross-role federated retrieval, and §4.4.1–4.4.2 the doubt reviewer and redaction-fidelity eval. Limitations 2 and 10 updated accordingly._
removed in v2.3
Changed paragraphs in the same form, for scripts: JSON · Markdown