{
 "paper": "corporate-swarm",
 "a": "2.2",
 "b": "2.3",
 "summary": "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.",
 "note": {
  "title": "Agents acting on shared data at once; a caution on leak detectors",
  "kind": "",
  "body": "## Summary\n\nTwo items from the improvement notes go in.\n\n- 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.\n- 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.\n- The pre-execution gate (AEGIS) is described as an enforced block rather than advice.\n- Short additions on curious agents, agents persuading each other, and model differences. The author's own internal papers leave the reference list.",
  "source": "commit message"
 },
 "paragraphs_changed": 34,
 "changes": [
  {
   "section": "1.1 The Most Expensive Problem in a Mid-Sized Company",
   "old": "The 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.",
   "new": "The 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.",
   "marked": "The 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:-] {+The single-operator design is by now reasonably mature: persistent+} memory [-architecture (J1), curiosity and self-improvement (J8),-] {+architectures, curiosity-driven self-improvement,+} and trust tiers governing tool access [-(J3).-] {+are all well-understood for the one-human-one-agent case.+} The individual agent is [-now-] a [-reasonably mature design.-] {+solved-enough problem.+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": "For 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.",
   "new": "For 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.",
   "marked": "For 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-] {+above. Each is a well-studied single-agent subsystem+} in its own [-J-series paper.-] {+right; here they matter only as the per-agent capabilities the swarm composes.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": "**Enforcement layers.** The BLP properties are enforced at two independent layers:",
   "new": "**Enforcement layers.** The BLP properties are enforced at two independent layers, and — importantly — *both* can deny a violation, not merely log one:",
   "marked": "**Enforcement layers.** The BLP properties are enforced at two independent [-layers:-] {+layers, and — importantly — *both* can deny a violation, not merely log one:+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": "- **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.",
   "new": null,
   "marked": "[-- **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.-]"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "- **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.",
   "marked": "{+- **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.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "The 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.",
   "marked": "{+The 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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "### 3.7 Concurrent Action Under Arbitration",
   "marked": "{+### 3.7 Concurrent Action Under Arbitration+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "The 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.",
   "marked": "{+The 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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "**The problem, stated cleanly.** When N agents act concurrently on one shared store, three failure modes appear:",
   "marked": "{+**The problem, stated cleanly.** When N agents act concurrently on one shared store, three failure modes appear:+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "1. **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.",
   "marked": "{+1. **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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "These 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.",
   "marked": "{+These 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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "**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.",
   "marked": "{+**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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "- **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.",
   "marked": "{+- **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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "The 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.",
   "marked": "{+The 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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "**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.",
   "marked": "{+**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.+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "![Figure 4. Concurrent action under arbitration. Phase A (left): four workers each read the shared state and draft an exact patch fully in parallel, no lease held — ~95% of wall-clock. Phase B (right): workers acquire a short-lived lease on only the object(s) their patch touches and apply; disjoint objects (1, 2, 4) land concurrently while the two workers contending for object 3 serialize through its lease, the object passing hands the instant an edit lands. Each applied unit is committed as its own attributable change. Because every write to an object is serialized through its lease against one shared state, the streams never diverge — \"clean merge\" is a non-event.](images/fig-arbitration.png){width=82%}",
   "marked": "{+![Figure 4. Concurrent action under arbitration. Phase A (left): four workers each read the shared state and draft an exact patch fully in parallel, no lease held — ~95% of wall-clock. Phase B (right): workers acquire a short-lived lease on only the object(s) their patch touches and apply; disjoint objects (1, 2, 4) land concurrently while the two workers contending for object 3 serialize through its lease, the object passing hands the instant an edit lands. Each applied unit is committed as its own attributable change. Because every write to an object is serialized through its lease against one shared state, the streams never diverge — \"clean merge\" is a non-event.](images/fig-arbitration.png){width=82%}+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": null,
   "new": "**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.",
   "marked": "{+**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.+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "**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).",
   "marked": "{+**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).+}"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": "- 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.",
   "new": null,
   "marked": "[-- 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.-]"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": null,
   "new": "- 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.",
   "marked": "{+- 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.+}"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": "- 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.",
   "new": "- 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.",
   "marked": "- 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.-] {+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 [-lightweight classifier-] {+structural anomaly check (Section 6.3.5)+} for semantic [-checks.-] {+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."
  },
  {
   "section": "8.5 Model Capability Variance",
   "old": "- 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.",
   "new": "- 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.",
   "marked": "- Clearance enforcement is infrastructure-first: filesystem permissions {+(kernel)+} and [-gateway routing-] {+the pre-execution tool-boundary hook (Section 2.4)+} are [-kernel/gateway-level-] {+two independent+} constraints {+that each *deny* a violation rather than rely on+} the model [-cannot override.-] {+behaving — a model error must defeat both, not one.+} - Model-level clearance {+instruction (system prompts, in-context rules)+} is [-defense-in-depth,-] {+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."
  },
  {
   "section": "12. Conclusions",
   "old": "9. **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.",
   "new": "9. **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.",
   "marked": "9. **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.-] {+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.+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "10. **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.",
   "marked": "{+10. **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.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "10. **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.",
   "new": "11. **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.",
   "marked": "[-10.-] {+11.+} **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."
  },
  {
   "section": "12. Conclusions",
   "old": "11. **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.",
   "new": "12. **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.",
   "marked": "[-11.-] {+12.+} **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."
  },
  {
   "section": "12. Conclusions",
   "old": "12. **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.",
   "new": "13. **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.",
   "marked": "[-12.-] {+13.+} **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."
  },
  {
   "section": "12. Conclusions",
   "old": "13. **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).",
   "new": "14. **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).",
   "marked": "[-13.-] {+14.+} **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)."
  },
  {
   "section": "References",
   "old": "Serra, O. (2026, January). J1: Memory Architecture for Persistent AI Assistants. Internal J-series working paper.",
   "new": null,
   "marked": "[-Serra, O. (2026, January). J1: Memory Architecture for Persistent AI Assistants. Internal J-series working paper.-]"
  },
  {
   "section": "References",
   "old": "Serra, O. (2026, February). J8: The Wondering Machine — Curiosity, Memory, and the Architecture of Self-Improving Language Models. Internal J-series working paper.",
   "new": null,
   "marked": "[-Serra, O. (2026, February). J8: The Wondering Machine — Curiosity, Memory, and the Architecture of Self-Improving Language Models. Internal J-series working paper.-]"
  },
  {
   "section": "References",
   "old": "_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_",
   "new": "_HIVEMIND: Role-Bound Agent Swarms for Enterprise Continuity_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_",
   "marked": "_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_"
  },
  {
   "section": "References",
   "old": "_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._",
   "new": null,
   "marked": "[-_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._-]"
  },
  {
   "section": "References",
   "old": "_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._",
   "new": null,
   "marked": "[-_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._-]"
  },
  {
   "section": "References",
   "old": "_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._",
   "new": null,
   "marked": "[-_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._-]"
  }
 ]
}
