{
 "paper": "corporate-swarm",
 "a": "1.1",
 "b": "1.2",
 "summary": "From v1.1 (17 Mar) to v1.2 (2 Jun): 10,887 words to 13,702 words, 3,050 words in new or rewritten paragraphs and 235 taken out, 243 paragraphs changed.",
 "note": {
  "title": "Which capabilities each agent runs, related work, memory across agents",
  "kind": "",
  "body": "## Summary\n\nTwo and a half months later the paper grew by about 2,800 words. The improvement notes asked which capabilities each agent tier gets, how memory is shared across agents, how clearance works with a memory that never deletes, and how this compares with other agent systems.\n\n- A table of the capabilities each agent tier runs: memory, retrieval, persona, self-improvement, group deliberation, security.\n- A new related-work chapter: three ways to organise agents (fan out and merge, one coordinator with workers, an org chart), with Paperclip as the open-source org-chart example.\n- How clearance applies to an append-only event store, where old records are compacted but never erased.\n- How one agent can retrieve memories held by another without breaking clearance.\n- A cheaper option for small firms: one agent that switches roles.\n\nFigures referenced but not on disk:\n- images/fig-hierarchy.pdf",
  "source": "commit message"
 },
 "paragraphs_changed": 243,
 "changes": [
  {
   "section": "1.1 From Individual Agents to Organizational Deployment",
   "old": null,
   "new": "A single neuron is useless. A hundred neurons form a reflex arc. A hundred billion neurons, organized into specialized regions that communicate through defined pathways, produce a mind. The leap from individual capability to collective intelligence is not about adding more units — it is about organizing their communication. The same pattern holds outside the skull: a single ant is nearly blind and incapable of complex behavior, yet a colony builds bridges from its own bodies, farms fungus, and wages coordinated war. The intelligence lives in the structure of the interactions, not in any one participant.",
   "marked": "{+A single neuron is useless. A hundred neurons form a reflex arc. A hundred billion neurons, organized into specialized regions that communicate through defined pathways, produce a mind. The leap from individual capability to collective intelligence is not about adding more units — it is about organizing their communication. The same pattern holds outside the skull: a single ant is nearly blind and incapable of complex behavior, yet a colony builds bridges from its own bodies, farms fungus, and wages coordinated war. The intelligence lives in the structure of the interactions, not in any one participant.+}"
  },
  {
   "section": "1.1 From Individual Agents to Organizational Deployment",
   "old": null,
   "new": "HIVEMIND is our attempt to reproduce that emergence for AI: take individual agents, each capable in isolation, and organize them into a corporate structure where the whole becomes dramatically more capable than the sum of its parts — without letting the added connectivity become an added attack surface.",
   "marked": "{+HIVEMIND is our attempt to reproduce that emergence for AI: take individual agents, each capable in isolation, and organize them into a corporate structure where the whole becomes dramatically more capable than the sum of its parts — without letting the added connectivity become an added attack surface.+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": "``` ┌─────────────────────────────────────────────────────┐ │ LEVEL 3: EXECUTIVE │ │ ┌─────────────────────┐ │ │ │ STRATEGOS │ T5 clearance │ │ │ (CEO's agent) │ Full audit │ │ └────────┬────────────┘ │ │ │ ↓ queries / ↑ intel push │ ├───────────────────────┼─────────────────────────────┤ │ LEVEL 2: DEPARTMENT │ │ ┌──────────┐ ┌──────┴─────┐ ┌──────────┐ │ │ │ HR-AGENT │ │SALES-AGENT │ │ IT-AGENT │ ... │ │ │ (T4) │ │ (T4) │ │ (T4) │ │ │ └────┬─────┘ └──┬─────┬──┘ └────┬─────┘ │ │ │ │ │ │ │ ├───────┼──────────┼─────┼─────────┼──────────────────┤ │ LEVEL 1: EMPLOYEE │ │ ┌────┴──┐ ┌───┴──┐ ┌┴─────┐ ┌─┴────┐ │ │ │ ARBOR │ │ LUNA │ │ATLAS │ │CIPHER│ ... │ │ │ (T3) │ │ (T3) │ │ (T3) │ │ (T3) │ │ │ └───────┘ └──────┘ └──────┘ └──────┘ │ │ │ │ ══════════════════════════════════════════════════ │ │ Data Tiers: T1(Public) → T2(Internal) → │ │ T3(Confidential) → T4(Restricted) → T5(Secret) │ │ Enforced by: Linux kernel (filesystem + ACLs) │ │ │ │ Information flow: ↓ Queries (downward only) │ │ ↑ Intel push (structured only) │ │ ↔ Lateral (mediated by L2) │ └─────────────────────────────────────────────────────┘ ```",
   "new": null,
   "marked": "[-``` ┌─────────────────────────────────────────────────────┐ │ LEVEL 3: EXECUTIVE │ │ ┌─────────────────────┐ │ │ │ STRATEGOS │ T5 clearance │ │ │ (CEO's agent) │ Full audit │ │ └────────┬────────────┘ │ │ │ ↓ queries / ↑ intel push │ ├───────────────────────┼─────────────────────────────┤ │ LEVEL 2: DEPARTMENT │ │ ┌──────────┐ ┌──────┴─────┐ ┌──────────┐ │ │ │ HR-AGENT │ │SALES-AGENT │ │ IT-AGENT │ ... │ │ │ (T4) │ │ (T4) │ │ (T4) │ │ │ └────┬─────┘ └──┬─────┬──┘ └────┬─────┘ │ │ │ │ │ │ │ ├───────┼──────────┼─────┼─────────┼──────────────────┤ │ LEVEL 1: EMPLOYEE │ │ ┌────┴──┐ ┌───┴──┐ ┌┴─────┐ ┌─┴────┐ │ │ │ ARBOR │ │ LUNA │ │ATLAS │ │CIPHER│ ... │ │ │ (T3) │ │ (T3) │ │ (T3) │ │ (T3) │ │ │ └───────┘ └──────┘ └──────┘ └──────┘ │ │ │ │ ══════════════════════════════════════════════════ │ │ Data Tiers: T1(Public) → T2(Internal) → │ │ T3(Confidential) → T4(Restricted) → T5(Secret) │ │ Enforced by: Linux kernel (filesystem + ACLs) │ │ │ │ Information flow: ↓ Queries (downward only) │ │ ↑ Intel push (structured only) │ │ ↔ Lateral (mediated by L2) │ └─────────────────────────────────────────────────────┘ ```-]"
  },
  {
   "section": "1.5 Paper Organization",
   "old": "### 1.5 Paper Organization",
   "new": null,
   "marked": "[-### 1.5 Paper Organization-]"
  },
  {
   "section": "1.5 Paper Organization",
   "old": "Section 2 defines the information architecture and formal security model. Section 3 presents the agent hierarchy. Section 4 details the Sales Coordination case study. Section 5 addresses privacy and legal considerations — GDPR and the EU AI Act — which motivate the compliance architecture in Section 6. Section 7 covers technical implementation on OpenClaw/TinkerClaw infrastructure, including an inter-agent protocol specification. Section 8 analyzes risks and mitigations. Section 9 presents a phased deployment strategy. Section 10 sketches future directions. Section 11 collects limitations. Section 12 concludes.",
   "new": null,
   "marked": "[-Section 2 defines the information architecture and formal security model. Section 3 presents the agent hierarchy. Section 4 details the Sales Coordination case study. Section 5 addresses privacy and legal considerations — GDPR and the EU AI Act — which motivate the compliance architecture in Section 6. Section 7 covers technical implementation on OpenClaw/TinkerClaw infrastructure, including an inter-agent protocol specification. Section 8 analyzes risks and mitigations. Section 9 presents a phased deployment strategy. Section 10 sketches future directions. Section 11 collects limitations. Section 12 concludes.-]"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": null,
   "new": "```{=latex} \\begin{figure}[H] \\centering \\includegraphics[width=\\linewidth,height=0.85\\textheight,keepaspectratio]{images/fig-hierarchy.pdf} \\caption{HIVEMIND three-level agent hierarchy and clearance-enforced information flow.} \\end{figure} ```",
   "marked": "{+```{=latex} \\begin{figure}[H] \\centering \\includegraphics[width=\\linewidth,height=0.85\\textheight,keepaspectratio]{images/fig-hierarchy.pdf} \\caption{HIVEMIND three-level agent hierarchy and clearance-enforced information flow.} \\end{figure} ```+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "### 1.5 The Per-Agent Cognitive Stack",
   "marked": "{+### 1.5 The Per-Agent Cognitive Stack+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "HIVEMIND is the paper where the rest of the J-series converges at organizational scale. The earlier papers each solve one problem for one agent; HIVEMIND is the deployment that runs all of them at once, across many agents, and stress-tests their assumptions under concurrency and clearance constraints. Each agent in the swarm is not a thin role wrapper around a model — it is a full cognitive stack:",
   "marked": "{+HIVEMIND is the paper where the rest of the J-series converges at organizational scale. The earlier papers each solve one problem for one agent; HIVEMIND is the deployment that runs all of them at once, across many agents, and stress-tests their assumptions under concurrency and clearance constraints. Each agent in the swarm is not a thin role wrapper around a model — it is a full cognitive stack:+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "- **Append-only memory.** Each agent stores interactions as append-only timestamped events, with older events automatically compressed into lightweight summaries — giving every agent effectively unlimited memory within bounded storage (ENGRAM, Serra 2026). - **Personal retrieval index.** Each agent maintains a personal retrieval index that maps topic keywords to memory segments, enabling sub-second lookup across its full interaction history (HIPPOCAMPUS, Serra 2026). - **Stable persona.** Each agent reads a persona definition at session start, maintaining a distinct and stable identity — a sales agent behaves differently from an IT agent because their persona files encode different values, communication styles, and domain knowledge (CORTEX, Serra 2026). - **Nightly self-improvement.** Each agent runs a nightly cycle that reviews the day's errors and adjusts its behavioral rules — so the swarm gets smarter over time without centralized retraining (CEREBELLUM, Serra 2026). - **Multi-model deliberation.** Complex cross-department decisions trigger multi-model deliberation — several models debate the issue and synthesize a consensus, preventing any single model's blind spots from driving critical business decisions (SYNAPSE, Serra 2026). - **Layered security.** A layered security framework enforces clearance levels and defends against prompt-injection that could compromise one agent and cascade through the swarm (AEGIS, Serra 2026).",
   "marked": "{+- **Append-only memory.** Each agent stores interactions as append-only timestamped events, with older events automatically compressed into lightweight summaries — giving every agent effectively unlimited memory within bounded storage (ENGRAM, Serra 2026). - **Personal retrieval index.** Each agent maintains a personal retrieval index that maps topic keywords to memory segments, enabling sub-second lookup across its full interaction history (HIPPOCAMPUS, Serra 2026). - **Stable persona.** Each agent reads a persona definition at session start, maintaining a distinct and stable identity — a sales agent behaves differently from an IT agent because their persona files encode different values, communication styles, and domain knowledge (CORTEX, Serra 2026). - **Nightly self-improvement.** Each agent runs a nightly cycle that reviews the day's errors and adjusts its behavioral rules — so the swarm gets smarter over time without centralized retraining (CEREBELLUM, Serra 2026). - **Multi-model deliberation.** Complex cross-department decisions trigger multi-model deliberation — several models debate the issue and synthesize a consensus, preventing any single model's blind spots from driving critical business decisions (SYNAPSE, Serra 2026). - **Layered security.** A layered security framework enforces clearance levels and defends against prompt-injection that could compromise one agent and cascade through the swarm (AEGIS, Serra 2026).+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "Running the full stack on every one of 85+ agents would be wasteful, so HIVEMIND tiers it (Table 1). The principle is that cognitive cost should track decision consequence: an agent that only drafts emails does not need multi-model deliberation, and an agent that never coordinates does not need its own retrieval index over shared knowledge.",
   "marked": "{+Running the full stack on every one of 85+ agents would be wasteful, so HIVEMIND tiers it (Table 1). The principle is that cognitive cost should track decision consequence: an agent that only drafts emails does not need multi-model deliberation, and an agent that never coordinates does not need its own retrieval index over shared knowledge.+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "**Table 1. Cognitive stack by agent tier.**",
   "marked": "{+**Table 1. Cognitive stack by agent tier.**+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "| Capability | Employee (L1) | Department (L2) | Executive (L3) | | ----------------------------- | ------------------------------- | ---------------------------------- | ------------------------------- | | Memory (ENGRAM) | full, private | full + department aggregate | full + organization-wide read | | Retrieval (HIPPOCAMPUS) | personal index | personal + mediated cross-agent | personal + all-department read | | Persona (CORTEX) | per-employee, template-derived | per-department | bespoke (single agent) | | Self-improvement (CEREBELLUM) | shared department rule-base | department-level reflection | full reflection | | Deliberation (SYNAPSE) | off (escalate instead) | on for cross-employee decisions | on for cross-department/strategic | | Security (AEGIS) | clearance ceiling T2–T3 | T4 + clearance validator | T5 + dead switch + two-person rule |",
   "marked": "{+| Capability | Employee (L1) | Department (L2) | Executive (L3) | | ----------------------------- | ------------------------------- | ---------------------------------- | ------------------------------- | | Memory (ENGRAM) | full, private | full + department aggregate | full + organization-wide read | | Retrieval (HIPPOCAMPUS) | personal index | personal + mediated cross-agent | personal + all-department read | | Persona (CORTEX) | per-employee, template-derived | per-department | bespoke (single agent) | | Self-improvement (CEREBELLUM) | shared department rule-base | department-level reflection | full reflection | | Deliberation (SYNAPSE) | off (escalate instead) | on for cross-employee decisions | on for cross-department/strategic | | Security (AEGIS) | clearance ceiling T2–T3 | T4 + clearance validator | T5 + dead switch + two-person rule |+}"
  },
  {
   "section": "1.5 The Per-Agent Cognitive Stack",
   "old": null,
   "new": "Two design choices in Table 1 are deliberate and are developed later in the paper. First, employee agents do not run SYNAPSE deliberation: when a decision is consequential enough to need multiple models arguing, it is consequential enough to escalate to the department agent (Section 4.3). Running independent deliberation on a junior agent would also multiply token cost without a clear payoff (Section 11.6). Second, self-improvement at the employee tier writes to a *shared department rule-base* rather than a fully private one, so that a lesson one salesperson's agent learns (\"this customer always disputes the first invoice\") becomes available to the team without leaking the underlying confidential interaction — the rule is declassified through the same pipeline as any other downward flow (Section 5.4).",
   "marked": "{+Two design choices in Table 1 are deliberate and are developed later in the paper. First, employee agents do not run SYNAPSE deliberation: when a decision is consequential enough to need multiple models arguing, it is consequential enough to escalate to the department agent (Section 4.3). Running independent deliberation on a junior agent would also multiply token cost without a clear payoff (Section 11.6). Second, self-improvement at the employee tier writes to a *shared department rule-base* rather than a fully private one, so that a lesson one salesperson's agent learns (\"this customer always disputes the first invoice\") becomes available to the team without leaking the underlying confidential interaction — the rule is declassified through the same pipeline as any other downward flow (Section 5.4).+}"
  },
  {
   "section": "1.6 Paper Organization",
   "old": null,
   "new": "### 1.6 Paper Organization",
   "marked": "{+### 1.6 Paper Organization+}"
  },
  {
   "section": "1.6 Paper Organization",
   "old": null,
   "new": "Section 2 surveys related multi-agent orchestration paradigms and positions HIVEMIND among them. Section 3 defines the information architecture and formal security model. Section 4 presents the agent hierarchy. Section 5 details the Sales Coordination case study. Section 6 addresses privacy and legal considerations — GDPR and the EU AI Act — which motivate the compliance architecture in Section 7. Section 8 covers technical implementation on OpenClaw/TinkerClaw infrastructure, including an inter-agent protocol specification. Section 9 analyzes risks and mitigations. Section 10 presents a phased deployment strategy. Section 11 sketches future directions. Section 12 collects limitations. Section 13 concludes.",
   "marked": "{+Section 2 surveys related multi-agent orchestration paradigms and positions HIVEMIND among them. Section 3 defines the information architecture and formal security model. Section 4 presents the agent hierarchy. Section 5 details the Sales Coordination case study. Section 6 addresses privacy and legal considerations — GDPR and the EU AI Act — which motivate the compliance architecture in Section 7. Section 8 covers technical implementation on OpenClaw/TinkerClaw infrastructure, including an inter-agent protocol specification. Section 9 analyzes risks and mitigations. Section 10 presents a phased deployment strategy. Section 11 sketches future directions. Section 12 collects limitations. Section 13 concludes.+}"
  },
  {
   "section": "2. Information Architecture — The Corporate Filesystem Model",
   "old": "## 2. Information Architecture — The Corporate Filesystem Model",
   "new": null,
   "marked": "[-## 2. Information Architecture — The Corporate Filesystem Model-]"
  },
  {
   "section": "2.1 The Shared Server as Mental Model",
   "old": "### 2.1 The Shared Server as Mental Model",
   "new": null,
   "marked": "[-### 2.1 The Shared Server as Mental Model-]"
  },
  {
   "section": "2. Related Work — Multi-Agent Orchestration Paradigms",
   "old": null,
   "new": "## 2. Related Work — Multi-Agent Orchestration Paradigms",
   "marked": "{+## 2. Related Work — Multi-Agent Orchestration Paradigms+}"
  },
  {
   "section": "2. Related Work — Multi-Agent Orchestration Paradigms",
   "old": null,
   "new": "The organizational framing of multi-agent systems is not unique to this paper. Over the past year, three independent efforts — academic, open-source, and industrial — have converged on organizational structure as the coordination model for multiple agents. Surveying them clarifies what HIVEMIND contributes and what it borrows.",
   "marked": "{+The organizational framing of multi-agent systems is not unique to this paper. Over the past year, three independent efforts — academic, open-source, and industrial — have converged on organizational structure as the coordination model for multiple agents. Surveying them clarifies what HIVEMIND contributes and what it borrows.+}"
  },
  {
   "section": "2.1 Three Coordination Topologies",
   "old": null,
   "new": "### 2.1 Three Coordination Topologies",
   "marked": "{+### 2.1 Three Coordination Topologies+}"
  },
  {
   "section": "2.1 Three Coordination Topologies",
   "old": null,
   "new": "Three distinct paradigms are now visible in practice:",
   "marked": "{+Three distinct paradigms are now visible in practice:+}"
  },
  {
   "section": "2.1 Three Coordination Topologies",
   "old": null,
   "new": "1. **Fan-out and synthesize.** A coordinator dispatches the same problem to several models and merges their answers (the CORF pattern in OpenClaw; broadly, the deliberation style J6/SYNAPSE formalizes). There is no persistent role structure — the parallelism is per-query. 2. **Coordinator-with-workers.** A single coordinator prompt spawns workers with restricted tool sets; the orchestration lives in the prompt rather than an external framework, and workers communicate through tool results and a shared filesystem. Claude Code's coordinator mode is the clearest industrial example. It is the leanest topology: prompt-only, little persistent state. 3. **Org-chart.** Persistent, hierarchical roles (CEO, department heads, individual contributors), work distributed as tickets rather than prompt chains, with per-agent budget tracking. Paperclip is the open-source exemplar; HIVEMIND is the security-and-cognition-complete version.",
   "marked": "{+1. **Fan-out and synthesize.** A coordinator dispatches the same problem to several models and merges their answers (the CORF pattern in OpenClaw; broadly, the deliberation style J6/SYNAPSE formalizes). There is no persistent role structure — the parallelism is per-query. 2. **Coordinator-with-workers.** A single coordinator prompt spawns workers with restricted tool sets; the orchestration lives in the prompt rather than an external framework, and workers communicate through tool results and a shared filesystem. Claude Code's coordinator mode is the clearest industrial example. It is the leanest topology: prompt-only, little persistent state. 3. **Org-chart.** Persistent, hierarchical roles (CEO, department heads, individual contributors), work distributed as tickets rather than prompt chains, with per-agent budget tracking. Paperclip is the open-source exemplar; HIVEMIND is the security-and-cognition-complete version.+}"
  },
  {
   "section": "2.1 Three Coordination Topologies",
   "old": null,
   "new": "These are points on a spectrum of *persistence* and *structure*, not competitors. HIVEMIND sits at the high-structure end and adds the two things the leaner topologies omit: a clearance lattice enforced below the model, and the full per-agent cognitive stack of Section 1.5.",
   "marked": "{+These are points on a spectrum of *persistence* and *structure*, not competitors. HIVEMIND sits at the high-structure end and adds the two things the leaner topologies omit: a clearance lattice enforced below the model, and the full per-agent cognitive stack of Section 1.5.+}"
  },
  {
   "section": "2.2 Paperclip — Open-Source Organizational Agents",
   "old": null,
   "new": "### 2.2 Paperclip — Open-Source Organizational Agents",
   "marked": "{+### 2.2 Paperclip — Open-Source Organizational Agents+}"
  },
  {
   "section": "2.2 Paperclip — Open-Source Organizational Agents",
   "old": null,
   "new": "Paperclip is an open-source orchestration framework for \"zero-human companies\" that mirrors HIVEMIND's structural thesis closely: each role (CEO, CMO, CTO, engineers) is a separate agent; work is distributed through a ticketing system rather than prompt chains; tasks are atomic and trackable; per-agent token/budget usage is monitored from a central dashboard; agents can be different models; and all agents reference operator-set company goals.",
   "marked": "{+Paperclip is an open-source orchestration framework for \"zero-human companies\" that mirrors HIVEMIND's structural thesis closely: each role (CEO, CMO, CTO, engineers) is a separate agent; work is distributed through a ticketing system rather than prompt chains; tasks are atomic and trackable; per-agent token/budget usage is monitored from a central dashboard; agents can be different models; and all agents reference operator-set company goals.+}"
  },
  {
   "section": "2.2 Paperclip — Open-Source Organizational Agents",
   "old": null,
   "new": "Paperclip is direct evidence that the org-chart paradigm works in practice — role-based specialization scales, and centralized goal-setting with decentralized execution is viable. What it lacks is exactly the layer HIVEMIND is about. Paperclip has no clearance or information-flow model (any agent can read anything), no self-improvement loop, no governed shared memory, no cross-department deliberation protocol, and no persona persistence across sessions. In other words, Paperclip validates HIVEMIND's *structure* while leaving open the *cognitive architecture and security model* that would make such a structure safe to point at real corporate data. HIVEMIND can be read as Paperclip with the J-series stack and a Bell-LaPadula spine.",
   "marked": "{+Paperclip is direct evidence that the org-chart paradigm works in practice — role-based specialization scales, and centralized goal-setting with decentralized execution is viable. What it lacks is exactly the layer HIVEMIND is about. Paperclip has no clearance or information-flow model (any agent can read anything), no self-improvement loop, no governed shared memory, no cross-department deliberation protocol, and no persona persistence across sessions. In other words, Paperclip validates HIVEMIND's *structure* while leaving open the *cognitive architecture and security model* that would make such a structure safe to point at real corporate data. HIVEMIND can be read as Paperclip with the J-series stack and a Bell-LaPadula spine.+}"
  },
  {
   "section": "2.3 Coordinator Mode and Sub-Agent Execution Models",
   "old": null,
   "new": "### 2.3 Coordinator Mode and Sub-Agent Execution Models",
   "marked": "{+### 2.3 Coordinator Mode and Sub-Agent Execution Models+}"
  },
  {
   "section": "2.3 Coordinator Mode and Sub-Agent Execution Models",
   "old": null,
   "new": "Claude Code's coordinator mode demonstrates that meaningful multi-agent orchestration can be defined entirely in a prompt: a coordinator spawns workers with restricted tool sets, and they coordinate through tool results and shared files. The same body of work distinguishes three sub-agent execution models that are useful vocabulary for HIVEMIND's implementation: a *fork* that inherits parent context (cache-efficient), a *teammate* in a separate execution context that communicates through a file-based mailbox (asynchronous, persistent), and a *worktree* isolated on its own branch.",
   "marked": "{+Claude Code's coordinator mode demonstrates that meaningful multi-agent orchestration can be defined entirely in a prompt: a coordinator spawns workers with restricted tool sets, and they coordinate through tool results and shared files. The same body of work distinguishes three sub-agent execution models that are useful vocabulary for HIVEMIND's implementation: a *fork* that inherits parent context (cache-efficient), a *teammate* in a separate execution context that communicates through a file-based mailbox (asynchronous, persistent), and a *worktree* isolated on its own branch.+}"
  },
  {
   "section": "2.3 Coordinator Mode and Sub-Agent Execution Models",
   "old": null,
   "new": "The teammate model maps most naturally onto HIVEMIND. Department coordination is asynchronous and persistent, and a file-based mailbox is a concrete, auditable realization of the clearance-filtered message channels described in Section 4.3 — every message is a file with owner, group, and permission bits, which is precisely the enforcement substrate HIVEMIND relies on.",
   "marked": "{+The teammate model maps most naturally onto HIVEMIND. Department coordination is asynchronous and persistent, and a file-based mailbox is a concrete, auditable realization of the clearance-filtered message channels described in Section 4.3 — every message is a file with owner, group, and permission bits, which is precisely the enforcement substrate HIVEMIND relies on.+}"
  },
  {
   "section": "2.4 Single-Agent Role Switching",
   "old": null,
   "new": "### 2.4 Single-Agent Role Switching",
   "marked": "{+### 2.4 Single-Agent Role Switching+}"
  },
  {
   "section": "2.4 Single-Agent Role Switching",
   "old": null,
   "new": "Not every deployment needs separate processes. GStack uses a single agent with multiple role-specific prompt files (CEO, engineering manager, designer, debugger) — multi-perspective rather than multi-agent, and far cheaper because there is one process and one context to maintain. This marks the low-cost end of the design space and is a legitimate alternative for small organizations; we return to the cost trade-off explicitly in Section 11.4.",
   "marked": "{+Not every deployment needs separate processes. GStack uses a single agent with multiple role-specific prompt files (CEO, engineering manager, designer, debugger) — multi-perspective rather than multi-agent, and far cheaper because there is one process and one context to maintain. This marks the low-cost end of the design space and is a legitimate alternative for small organizations; we return to the cost trade-off explicitly in Section 11.4.+}"
  },
  {
   "section": "2.5 The Convergence Argument",
   "old": null,
   "new": "### 2.5 The Convergence Argument",
   "marked": "{+### 2.5 The Convergence Argument+}"
  },
  {
   "section": "2.5 The Convergence Argument",
   "old": null,
   "new": "The independent emergence of organizational coordination patterns across academic (HIVEMIND), open-source (Paperclip), and industrial (Claude Code coordinator) work suggests that corporate structure is not merely a convenient metaphor for multi-agent systems — it may be the natural coordination topology for complex, heterogeneous agent deployments. Companies already encode \"who may know what\" and \"who reports to whom\" in their org charts and filesystem permissions; mapping agents onto that existing structure is less an invention than a recognition. What distinguishes HIVEMIND is the claim that this same structure, taken seriously, is also the *security* model — that the org chart is the access-control graph, not a layer on top of it.",
   "marked": "{+The independent emergence of organizational coordination patterns across academic (HIVEMIND), open-source (Paperclip), and industrial (Claude Code coordinator) work suggests that corporate structure is not merely a convenient metaphor for multi-agent systems — it may be the natural coordination topology for complex, heterogeneous agent deployments. Companies already encode \"who may know what\" and \"who reports to whom\" in their org charts and filesystem permissions; mapping agents onto that existing structure is less an invention than a recognition. What distinguishes HIVEMIND is the claim that this same structure, taken seriously, is also the *security* model — that the org chart is the access-control graph, not a layer on top of it.+}"
  },
  {
   "section": "2.5 The Convergence Argument",
   "old": null,
   "new": "---",
   "marked": "{+---+}"
  },
  {
   "section": "3. Information Architecture — The Corporate Filesystem Model",
   "old": null,
   "new": "## 3. Information Architecture — The Corporate Filesystem Model",
   "marked": "{+## 3. Information Architecture — The Corporate Filesystem Model+}"
  },
  {
   "section": "3.1 The Shared Server as Mental Model",
   "old": null,
   "new": "### 3.1 The Shared Server as Mental Model",
   "marked": "{+### 3.1 The Shared Server as Mental Model+}"
  },
  {
   "section": "3.1 The Shared Server as Mental Model",
   "old": "1. **Familiarity.** IT administrators understand filesystem permissions without learning a new access control paradigm. 2. **Auditability.** Filesystem access is loggable, diff-able, and understood by existing compliance tools. 3. **Trust.** Employees already accept IT-controlled data access. Extending this to AI agents feels less invasive than a new control plane. 4. **Enforcement.** Linux filesystem permissions are enforced by the kernel, not by a language model's good intentions. This is a critical distinction we return to in Section 8.",
   "new": "1. **Familiarity.** IT administrators understand filesystem permissions without learning a new access control paradigm. 2. **Auditability.** Filesystem access is loggable, diff-able, and understood by existing compliance tools. 3. **Trust.** Employees already accept IT-controlled data access. Extending this to AI agents feels less invasive than a new control plane. 4. **Enforcement.** Linux filesystem permissions are enforced by the kernel, not by a language model's good intentions. This is a critical distinction we return to in Section 9.",
   "marked": "1. **Familiarity.** IT administrators understand filesystem permissions without learning a new access control paradigm. 2. **Auditability.** Filesystem access is loggable, diff-able, and understood by existing compliance tools. 3. **Trust.** Employees already accept IT-controlled data access. Extending this to AI agents feels less invasive than a new control plane. 4. **Enforcement.** Linux filesystem permissions are enforced by the kernel, not by a language model's good intentions. This is a critical distinction we return to in Section [-8.-] {+9.+}"
  },
  {
   "section": "3.2 Data Classification Tiers",
   "old": "### 2.2 Data Classification Tiers",
   "new": "### 3.2 Data Classification Tiers",
   "marked": "### [-2.2-] {+3.2+} Data Classification Tiers"
  },
  {
   "section": "3.2 Data Classification Tiers",
   "old": "| Tier | Label | Examples | Default Access | |------|-------|----------|----------------| | T1 | **PUBLIC** | Company website, product brochure, public pricing, press releases | All agents, external systems | | T2 | **INTERNAL** | Procedures, internal manuals, product specifications, org chart | All employee agents | | T3 | **CONFIDENTIAL** | Client data, contracts, email correspondence, CRM records | Role-relevant agents only | | T4 | **RESTRICTED** | Salaries, infrastructure passwords, M&A plans, margin data, HR records | Senior management + relevant department heads | | T5 | **SECRET** | Board-level strategy, legal proceedings, acquisition targets, whistleblower reports | Executive agents only |",
   "new": "| Tier | Label | Examples | Default Access | | ---- | ---------------- | ----------------------------------------------------------------------------------- | --------------------------------------------- | | T1 | **PUBLIC** | Company website, product brochure, public pricing, press releases | All agents, external systems | | T2 | **INTERNAL** | Procedures, internal manuals, product specifications, org chart | All employee agents | | T3 | **CONFIDENTIAL** | Client data, contracts, email correspondence, CRM records | Role-relevant agents only | | T4 | **RESTRICTED** | Salaries, infrastructure passwords, M&A plans, margin data, HR records | Senior management + relevant department heads | | T5 | **SECRET** | Board-level strategy, legal proceedings, acquisition targets, whistleblower reports | Executive agents only |",
   "marked": "| Tier | Label | Examples | Default Access | [-|------|-------|----------|----------------|-] {+| ---- | ---------------- | ----------------------------------------------------------------------------------- | --------------------------------------------- |+} | T1 | **PUBLIC** | Company website, product brochure, public pricing, press releases | All agents, external systems | | T2 | **INTERNAL** | Procedures, internal manuals, product specifications, org chart | All employee agents | | T3 | **CONFIDENTIAL** | Client data, contracts, email correspondence, CRM records | Role-relevant agents only | | T4 | **RESTRICTED** | Salaries, infrastructure passwords, M&A plans, margin data, HR records | Senior management + relevant department heads | | T5 | **SECRET** | Board-level strategy, legal proceedings, acquisition targets, whistleblower reports | Executive agents only |"
  },
  {
   "section": "3.2 Data Classification Tiers",
   "old": "``` /corporate/ ├── public/ # directory: 0755, files: 0644 ├── internal/ # directory: 0750, group: all-employees; files: 0640 ├── confidential/ # directory: 0750, per-department group; files: 0640 ├── restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs └── secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```",
   "new": "``` /corporate/ |-- public/ # directory: 0755, files: 0644 |-- internal/ # directory: 0750, group: all-employees; files: 0640 |-- confidential/ # directory: 0750, per-department group; files: 0640 |-- restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs \\-- secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```",
   "marked": "``` /corporate/ [-├──-] {+|--+} public/ # directory: 0755, files: 0644 [-├──-] {+|--+} internal/ # directory: 0750, group: all-employees; files: 0640 [-├──-] {+|--+} confidential/ # directory: 0750, per-department group; files: 0640 [-├──-] {+|--+} restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs [-└──-] {+\\--+} secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```"
  },
  {
   "section": "3.3 The \"Need to Know\" Principle",
   "old": "### 2.3 The \"Need to Know\" Principle",
   "new": "### 3.3 The \"Need to Know\" Principle",
   "marked": "### [-2.3-] {+3.3+} The \"Need to Know\" Principle"
  },
  {
   "section": "3.4 Formal Security Model",
   "old": "### 2.4 Formal Security Model",
   "new": "### 3.4 Formal Security Model",
   "marked": "### [-2.4-] {+3.4+} Formal Security Model"
  },
  {
   "section": "3.4 Formal Security Model",
   "old": "**Star Property (*-property, no write-down).** Agent $s$ may write to object $o$ only if: $$\\ell(o) \\geq c(s)$$",
   "new": "**Star Property (\\*-property, no write-down).** Agent $s$ may write to object $o$ only if: $$\\ell(o) \\geq c(s)$$",
   "marked": "**Star Property [-(*-property,-] {+(\\*-property,+} no write-down).** Agent $s$ may write to object $o$ only if: $$\\ell(o) \\geq c(s)$$"
  },
  {
   "section": "3.4 Formal Security Model",
   "old": "**Declassification Exception.** The *-property creates a practical problem: department agents (T4) need to send filtered summaries to employee agents (T3). We handle this through a controlled declassification mechanism. A Level 2+ agent may generate a *new* data object $o'$ with $\\ell(o') < \\ell(o)$ under these constraints:",
   "new": "**Declassification Exception.** The *-property creates a practical problem: department agents (T4) need to send filtered summaries to employee agents (T3). We handle this through a controlled declassification mechanism. A Level 2+ agent may generate a *new\\* data object $o'$ with $\\ell(o') < \\ell(o)$ under these constraints:",
   "marked": "**Declassification Exception.** The *-property creates a practical problem: department agents (T4) need to send filtered summaries to employee agents (T3). We handle this through a controlled declassification mechanism. A Level 2+ agent may generate a [-*new*-] {+*new\\*+} data object $o'$ with $\\ell(o') < \\ell(o)$ under these constraints:"
  },
  {
   "section": "3.4 Formal Security Model",
   "old": "1. The declassification is explicitly invoked (not implicit in normal operation). 2. The output $o'$ passes through a template-based redaction pipeline (see Section 4.4) or receives human approval. 3. A declassification event is logged with: source object hash, output object hash, classification change, agent ID, timestamp, and redaction method used. 4. The original object $o$ is not modified.",
   "new": "1. The declassification is explicitly invoked (not implicit in normal operation). 2. The output $o'$ passes through a template-based redaction pipeline (see Section 5.4) or receives human approval. 3. A declassification event is logged with: source object hash, output object hash, classification change, agent ID, timestamp, and redaction method used. 4. The original object $o$ is not modified.",
   "marked": "1. The declassification is explicitly invoked (not implicit in normal operation). 2. The output $o'$ passes through a template-based redaction pipeline (see Section [-4.4)-] {+5.4)+} or receives human approval. 3. A declassification event is logged with: source object hash, output object hash, classification change, agent ID, timestamp, and redaction method used. 4. The original object $o$ is not modified."
  },
  {
   "section": "3.4 Formal Security Model",
   "old": null,
   "new": "**Enforcement layers.** The BLP properties are enforced at two independent layers:",
   "marked": "{+**Enforcement layers.** The BLP properties are enforced at two independent layers:+}"
  },
  {
   "section": "3.4 Formal Security Model",
   "old": "**Enforcement layers.** The BLP properties are enforced at two independent layers: - **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": "- **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.",
   "marked": "[-**Enforcement layers.** The BLP properties are enforced at two independent layers:-] - **Primary (kernel-level):** Linux filesystem permissions and POSIX ACLs enforce the Simple Security Property. The [-*-property-] {+\\*-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": "3.5 Information Flow as a Directed Graph",
   "old": "### 2.5 Information Flow as a Directed Graph",
   "new": "### 3.5 Information Flow as a Directed Graph",
   "marked": "### [-2.5-] {+3.5+} Information Flow as a Directed Graph"
  },
  {
   "section": "3.5 Information Flow as a Directed Graph",
   "old": "No agent may receive data classified above its clearance tier or outside its role scope. Upward information requests are structurally prohibited (Section 3.3). Downward flows require controlled declassification (Section 2.4).",
   "new": "No agent may receive data classified above its clearance tier or outside its role scope. Upward information requests are structurally prohibited (Section 4.3). Downward flows require controlled declassification (Section 3.4).",
   "marked": "No agent may receive data classified above its clearance tier or outside its role scope. Upward information requests are structurally prohibited (Section [-3.3).-] {+4.3).+} Downward flows require controlled declassification (Section [-2.4).-] {+3.4).+}"
  },
  {
   "section": "3.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": "### 2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "new": "### 3.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "marked": "### [-2.6-] {+3.6+} Why Bell-LaPadula Is Necessary but Not Sufficient"
  },
  {
   "section": "3.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": "- **Role-Based Access Control (RBAC).** RBAC explains *who should access what* in organizational terms and maps well to departments, supervisors, and executives. HIVEMIND uses RBAC operationally through Linux users, groups, ACLs, and tool allowlists. However, RBAC alone does not formalize information flow across multi-step agent interactions. - **Chinese Wall.** Brewer-Nash is relevant where conflict-of-interest boundaries matter — for example, if a consulting firm runs multiple client-specific agent swarms. HIVEMIND does not fully implement Chinese Wall semantics, but future multi-tenant versions should. - **Biba integrity model.** Bell-LaPadula protects confidentiality; Biba protects integrity. In practice, enterprise agent systems need both. HIVEMIND's audit logs, two-person review for T5 summaries, configuration versioning, and controlled write paths are partial integrity controls, but a full formal integrity model remains future work. - **Zero Trust architecture.** Zero Trust contributes the operational assumption that no agent, process, or network path should be trusted implicitly. HIVEMIND adopts this stance in gateway authentication, least-privilege tool access, and process isolation.",
   "new": "- **Role-Based Access Control (RBAC).** RBAC explains _who should access what_ in organizational terms and maps well to departments, supervisors, and executives. HIVEMIND uses RBAC operationally through Linux users, groups, ACLs, and tool allowlists. However, RBAC alone does not formalize information flow across multi-step agent interactions. - **Chinese Wall.** Brewer-Nash is relevant where conflict-of-interest boundaries matter — for example, if a consulting firm runs multiple client-specific agent swarms. HIVEMIND does not fully implement Chinese Wall semantics, but future multi-tenant versions should. - **Biba integrity model.** Bell-LaPadula protects confidentiality; Biba protects integrity. In practice, enterprise agent systems need both. HIVEMIND's audit logs, two-person review for T5 summaries, configuration versioning, and controlled write paths are partial integrity controls, but a full formal integrity model remains future work. - **Zero Trust architecture.** Zero Trust contributes the operational assumption that no agent, process, or network path should be trusted implicitly. HIVEMIND adopts this stance in gateway authentication, least-privilege tool access, and process isolation.",
   "marked": "- **Role-Based Access Control (RBAC).** RBAC explains [-*who-] {+_who+} should access [-what*-] {+what_+} in organizational terms and maps well to departments, supervisors, and executives. HIVEMIND uses RBAC operationally through Linux users, groups, ACLs, and tool allowlists. However, RBAC alone does not formalize information flow across multi-step agent interactions. - **Chinese Wall.** Brewer-Nash is relevant where conflict-of-interest boundaries matter — for example, if a consulting firm runs multiple client-specific agent swarms. HIVEMIND does not fully implement Chinese Wall semantics, but future multi-tenant versions should. - **Biba integrity model.** Bell-LaPadula protects confidentiality; Biba protects integrity. In practice, enterprise agent systems need both. HIVEMIND's audit logs, two-person review for T5 summaries, configuration versioning, and controlled write paths are partial integrity controls, but a full formal integrity model remains future work. - **Zero Trust architecture.** Zero Trust contributes the operational assumption that no agent, process, or network path should be trusted implicitly. HIVEMIND adopts this stance in gateway authentication, least-privilege tool access, and process isolation."
  },
  {
   "section": "3.7 Clearance and the Append-Only Event Store",
   "old": null,
   "new": "### 3.7 Clearance and the Append-Only Event Store",
   "marked": "{+### 3.7 Clearance and the Append-Only Event Store+}"
  },
  {
   "section": "3.7 Clearance and the Append-Only Event Store",
   "old": null,
   "new": "One interaction between the clearance lattice and the per-agent memory model deserves explicit treatment, because it is a genuine edge case rather than a clean consequence of Bell-LaPadula. Each agent's memory (ENGRAM) is an append-only event store in which older events are periodically compacted into lightweight summary objects. Compaction is lossy by design — a summary stands in for many original events — and it is performed *within* an agent's own clearance domain. That domain confinement is what keeps the interaction safe, but it is worth stating the invariants so an implementer does not break them:",
   "marked": "{+One interaction between the clearance lattice and the per-agent memory model deserves explicit treatment, because it is a genuine edge case rather than a clean consequence of Bell-LaPadula. Each agent's memory (ENGRAM) is an append-only event store in which older events are periodically compacted into lightweight summary objects. Compaction is lossy by design — a summary stands in for many original events — and it is performed *within* an agent's own clearance domain. That domain confinement is what keeps the interaction safe, but it is worth stating the invariants so an implementer does not break them:+}"
  },
  {
   "section": "3.7 Clearance and the Append-Only Event Store",
   "old": null,
   "new": "- **Compaction never crosses tiers.** A summary inherits the maximum classification of the events it compresses. The compactor may read T4 events in a T4 store and produce a T4 summary; it may not produce a lower-tier summary as a side effect. Downgrading is reserved for the explicit declassification pipeline (Section 3.4), never the compactor. - **A compacted pointer must not become a confused-deputy.** If a summary is referenced by a higher-tier agent (e.g., STRATEGOS reads SALES-AGENT's compacted department history), the reference is resolved under the *reader's* clearance against the *summary's* classification — exactly the Simple Security Property. The dangerous failure would be a low-clearance agent holding a pointer that, when dereferenced by a privileged service on its behalf, returns content above its tier. HIVEMIND forbids server-side dereferencing of memory pointers on behalf of a requester: an agent can only follow pointers into stores it could already read directly. Pointers are not capabilities. - **Compaction is itself an audited write.** Because summaries replace originals in the working set (the originals are retained in cold storage for the retention period), each compaction event is logged with input event hashes, output summary hash, and classification — so the nightly sweep can verify that no compaction silently changed an object's tier.",
   "marked": "{+- **Compaction never crosses tiers.** A summary inherits the maximum classification of the events it compresses. The compactor may read T4 events in a T4 store and produce a T4 summary; it may not produce a lower-tier summary as a side effect. Downgrading is reserved for the explicit declassification pipeline (Section 3.4), never the compactor. - **A compacted pointer must not become a confused-deputy.** If a summary is referenced by a higher-tier agent (e.g., STRATEGOS reads SALES-AGENT's compacted department history), the reference is resolved under the *reader's* clearance against the *summary's* classification — exactly the Simple Security Property. The dangerous failure would be a low-clearance agent holding a pointer that, when dereferenced by a privileged service on its behalf, returns content above its tier. HIVEMIND forbids server-side dereferencing of memory pointers on behalf of a requester: an agent can only follow pointers into stores it could already read directly. Pointers are not capabilities. - **Compaction is itself an audited write.** Because summaries replace originals in the working set (the originals are retained in cold storage for the retention period), each compaction event is logged with input event hashes, output summary hash, and classification — so the nightly sweep can verify that no compaction silently changed an object's tier.+}"
  },
  {
   "section": "3.7 Clearance and the Append-Only Event Store",
   "old": null,
   "new": "The general lesson is that an append-only store plus lossy compaction does not by itself violate the lattice, but it introduces *new objects* (summaries) and *new references* (pointers) that must each be assigned a classification and resolved under the reader's clearance. Treating compaction output as a first-class classified object closes the gap.",
   "marked": "{+The general lesson is that an append-only store plus lossy compaction does not by itself violate the lattice, but it introduces *new objects* (summaries) and *new references* (pointers) that must each be assigned a classification and resolved under the reader's clearance. Treating compaction output as a first-class classified object closes the gap.+}"
  },
  {
   "section": "4. Agent Hierarchy Architecture",
   "old": "## 3. Agent Hierarchy Architecture",
   "new": "## 4. Agent Hierarchy Architecture",
   "marked": "## [-3.-] {+4.+} Agent Hierarchy Architecture"
  },
  {
   "section": "4.1 Three-Level Structure",
   "old": "### 3.1 Three-Level Structure",
   "new": "### 4.1 Three-Level Structure",
   "marked": "### [-3.1-] {+4.1+} Three-Level Structure"
  },
  {
   "section": "4.2 Employee Agent Design",
   "old": "### 3.2 Employee Agent Design",
   "new": "### 4.2 Employee Agent Design",
   "marked": "### [-3.2-] {+4.2+} Employee Agent Design"
  },
  {
   "section": "4.2 Employee Agent Design",
   "old": null,
   "new": "**Provisioning personas at scale.** CORTEX was designed for a single agent with a hand-authored persona. Eighty-five distinct personas cannot be hand-written and kept consistent. HIVEMIND provisions them in three layers, from generic to specific:",
   "marked": "{+**Provisioning personas at scale.** CORTEX was designed for a single agent with a hand-authored persona. Eighty-five distinct personas cannot be hand-written and kept consistent. HIVEMIND provisions them in three layers, from generic to specific:+}"
  },
  {
   "section": "4.2 Employee Agent Design",
   "old": null,
   "new": "1. **Role template.** A per-role base persona (sales rep, IT technician, HR specialist) captures the communication norms, domain vocabulary, escalation defaults, and tool expectations shared by everyone in that role. Templates are version-controlled artifacts authored once by the department and compliance teams. 2. **Org-derived parameters.** Concrete attributes — the employee's name, manager, department, assigned accounts or systems, clearance tier — are filled from existing HR and directory systems (Active Directory / LDAP, the CRM ownership registry). No human re-types what the org already knows. 3. **Earned personalization.** The genuinely individual texture (María's clients prefer email, Pedro's prefer phone) accumulates over time through ENGRAM memory and CEREBELLUM reflection rather than being specified up front. The persona file at provisioning time is deliberately thin; it thickens with use.",
   "marked": "{+1. **Role template.** A per-role base persona (sales rep, IT technician, HR specialist) captures the communication norms, domain vocabulary, escalation defaults, and tool expectations shared by everyone in that role. Templates are version-controlled artifacts authored once by the department and compliance teams. 2. **Org-derived parameters.** Concrete attributes — the employee's name, manager, department, assigned accounts or systems, clearance tier — are filled from existing HR and directory systems (Active Directory / LDAP, the CRM ownership registry). No human re-types what the org already knows. 3. **Earned personalization.** The genuinely individual texture (María's clients prefer email, Pedro's prefer phone) accumulates over time through ENGRAM memory and CEREBELLUM reflection rather than being specified up front. The persona file at provisioning time is deliberately thin; it thickens with use.+}"
  },
  {
   "section": "4.2 Employee Agent Design",
   "old": null,
   "new": "This keeps persona authorship to a small number of role templates while letting each agent diverge naturally. It also makes offboarding clean: revoke directory membership and the parameter layer evaporates, leaving only the role template and an archived memory store (Section 6.7).",
   "marked": "{+This keeps persona authorship to a small number of role templates while letting each agent diverge naturally. It also makes offboarding clean: revoke directory membership and the parameter layer evaporates, leaving only the role template and an archived memory store (Section 6.7).+}"
  },
  {
   "section": "4.3 Information Flow Rules",
   "old": "### 3.3 Information Flow Rules",
   "new": "### 4.3 Information Flow Rules",
   "marked": "### [-3.3-] {+4.3+} Information Flow Rules"
  },
  {
   "section": "4.3 Information Flow Rules",
   "old": "**Rule 2a: Upward intelligence push is permitted through structured channels.** This is a controlled exception to Rule 2. Employee agents may push data *upward* to their department agent, but only through pre-defined structured channels with these constraints:",
   "new": "**Rule 2a: Upward intelligence push is permitted through structured channels.** This is a controlled exception to Rule 2. Employee agents may push data _upward_ to their department agent, but only through pre-defined structured channels with these constraints:",
   "marked": "**Rule 2a: Upward intelligence push is permitted through structured channels.** This is a controlled exception to Rule 2. Employee agents may push data [-*upward*-] {+_upward_+} to their department agent, but only through pre-defined structured channels with these constraints:"
  },
  {
   "section": "4.3 Information Flow Rules",
   "old": "The distinction from a query is structural: a push deposits information and returns no response. The employee agent learns nothing new from the act of pushing. This prevents push channels from being used as covert query mechanisms. See Section 8.2 for abuse analysis.",
   "new": "The distinction from a query is structural: a push deposits information and returns no response. The employee agent learns nothing new from the act of pushing. This prevents push channels from being used as covert query mechanisms. See Section 9.2 for abuse analysis.",
   "marked": "The distinction from a query is structural: a push deposits information and returns no response. The employee agent learns nothing new from the act of pushing. This prevents push channels from being used as covert query mechanisms. See Section [-8.2-] {+9.2+} for abuse analysis."
  },
  {
   "section": "4.4 The Department Agent as Coordinator",
   "old": "### 3.4 The Department Agent as Coordinator",
   "new": "### 4.4 The Department Agent as Coordinator",
   "marked": "### [-3.4-] {+4.4+} The Department Agent as Coordinator"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "### 4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "marked": "{+### 4.5 Inter-Agent Retrieval — Memory Across the Swarm+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "Each agent's retrieval index (HIPPOCAMPUS) is private by construction: it maps that agent's own keywords to that agent's own memory segments. But department coordination requires reaching *across* indexes — when LUNA assembles a González briefing, the relevant touchpoints may live in ATLAS's memory, not hers. The question this raises is architecturally novel: can one agent query another agent's memory, and if so, under what control?",
   "marked": "{+Each agent's retrieval index (HIPPOCAMPUS) is private by construction: it maps that agent's own keywords to that agent's own memory segments. But department coordination requires reaching *across* indexes — when LUNA assembles a González briefing, the relevant touchpoints may live in ATLAS's memory, not hers. The question this raises is architecturally novel: can one agent query another agent's memory, and if so, under what control?+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "HIVEMIND's answer is that **cross-agent retrieval is never direct; it is always mediated and clearance-filtered by the department agent.** Three properties make this tractable:",
   "marked": "{+HIVEMIND's answer is that **cross-agent retrieval is never direct; it is always mediated and clearance-filtered by the department agent.** Three properties make this tractable:+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "1. **Indexes are federated, not merged.** There is no global index that any agent can search. Each agent keeps its own. The department agent holds a *catalog* — for each subordinate index, the set of topics it covers and the classification ceiling of each topic — without holding the underlying segments. The catalog is enough to route a query (\"who has González material?\") without itself being a leak.",
   "marked": "{+1. **Indexes are federated, not merged.** There is no global index that any agent can search. Each agent keeps its own. The department agent holds a *catalog* — for each subordinate index, the set of topics it covers and the classification ceiling of each topic — without holding the underlying segments. The catalog is enough to route a query (\"who has González material?\") without itself being a leak.+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "2. **Retrieval is a query, not a grant.** When LUNA needs cross-agent context, she issues a Customer History Request to SALES-AGENT (Section 5.3). SALES-AGENT fans the request out to the indexes its catalog flags as relevant, collects the matching segments, applies the same clearance filtering and template-based redaction as any other downward flow (Section 5.4), and returns a synthesized package. LUNA never receives raw access to ATLAS's index, and ATLAS's index gains nothing about LUNA. The result respects the requester's clearance, not the source's.",
   "marked": "{+2. **Retrieval is a query, not a grant.** When LUNA needs cross-agent context, she issues a Customer History Request to SALES-AGENT (Section 5.3). SALES-AGENT fans the request out to the indexes its catalog flags as relevant, collects the matching segments, applies the same clearance filtering and template-based redaction as any other downward flow (Section 5.4), and returns a synthesized package. LUNA never receives raw access to ATLAS's index, and ATLAS's index gains nothing about LUNA. The result respects the requester's clearance, not the source's.+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "3. **Provenance survives the hop.** Each retrieved segment carries its source agent, classification, and content hash into the audit log, so a later compliance sweep can reconstruct exactly which memory crossed which boundary. Cross-agent retrieval is therefore one of the most heavily logged operations in the system — appropriately, since it is where one agent's private knowledge becomes another's.",
   "marked": "{+3. **Provenance survives the hop.** Each retrieved segment carries its source agent, classification, and content hash into the audit log, so a later compliance sweep can reconstruct exactly which memory crossed which boundary. Cross-agent retrieval is therefore one of the most heavily logged operations in the system — appropriately, since it is where one agent's private knowledge becomes another's.+}"
  },
  {
   "section": "4.5 Inter-Agent Retrieval — Memory Across the Swarm",
   "old": null,
   "new": "This makes the swarm's collective memory queryable without making it flat. The coordination dividend of Section 5 depends on it: an agent can draw on the whole team's history, but only through a gate that enforces who is entitled to what.",
   "marked": "{+This makes the swarm's collective memory queryable without making it flat. The coordination dividend of Section 5 depends on it: an agent can draw on the whole team's history, but only through a gate that enforces who is entitled to what.+}"
  },
  {
   "section": "5. The Sales Coordination Case Study",
   "old": "## 4. The Sales Coordination Case Study",
   "new": "## 5. The Sales Coordination Case Study",
   "marked": "## [-4.-] {+5.+} The Sales Coordination Case Study"
  },
  {
   "section": "5.1 Scenario Setup",
   "old": "### 4.1 Scenario Setup",
   "new": "### 5.1 Scenario Setup",
   "marked": "### [-4.1-] {+5.1+} Scenario Setup"
  },
  {
   "section": "5.2 Customer Ownership and Routing",
   "old": "### 4.2 Customer Ownership and Routing",
   "new": "### 5.2 Customer Ownership and Routing",
   "marked": "### [-4.2-] {+5.2+} Customer Ownership and Routing"
  },
  {
   "section": "5.3 Unified Customer History",
   "old": "### 4.3 Unified Customer History",
   "new": "### 5.3 Unified Customer History",
   "marked": "### [-4.3-] {+5.3+} Unified Customer History"
  },
  {
   "section": "5.3 Unified Customer History",
   "old": "1. María asks LUNA: \"Prepare a briefing for the González account for my call tomorrow.\" 2. LUNA submits a **Customer History Request** to SALES-AGENT: `GET /customer/gonzalez/full-history, requester: LUNA, clearance: T3`. 3. SALES-AGENT queries all sales agents for González-related records plus its own aggregated memory. 4. SALES-AGENT applies clearance filtering: - Sales interactions (T3): ✓ included in full. - Customer-specific pricing tiers negotiated by management (T4): ✗ replaced with a **Redacted Summary** (Section 4.4). - Legal proceedings involving this customer (T5): ✗ replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 5. SALES-AGENT returns the filtered package to LUNA. 6. LUNA synthesizes it into a briefing for María.",
   "new": "1. María asks LUNA: \"Prepare a briefing for the González account for my call tomorrow.\" 2. LUNA submits a **Customer History Request** to SALES-AGENT: `GET /customer/gonzalez/full-history, requester: LUNA, clearance: T3`. 3. SALES-AGENT queries all sales agents for González-related records plus its own aggregated memory. 4. SALES-AGENT applies clearance filtering: - Sales interactions (T3): (included) included in full. - Customer-specific pricing tiers negotiated by management (T4): (redacted) replaced with a **Redacted Summary** (Section 5.4). - Legal proceedings involving this customer (T5): (redacted) replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 5. SALES-AGENT returns the filtered package to LUNA. 6. LUNA synthesizes it into a briefing for María.",
   "marked": "1. María asks LUNA: \"Prepare a briefing for the González account for my call tomorrow.\" 2. LUNA submits a **Customer History Request** to SALES-AGENT: `GET /customer/gonzalez/full-history, requester: LUNA, clearance: T3`. 3. SALES-AGENT queries all sales agents for González-related records plus its own aggregated memory. 4. SALES-AGENT applies clearance filtering: - Sales interactions (T3): [-✓-] {+(included)+} included in full. - Customer-specific pricing tiers negotiated by management (T4): [-✗-] {+(redacted)+} replaced with a **Redacted Summary** (Section [-4.4).-] {+5.4).+} - Legal proceedings involving this customer (T5): [-✗-] {+(redacted)+} replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 5. SALES-AGENT returns the filtered package to LUNA. 6. LUNA synthesizes it into a briefing for María."
  },
  {
   "section": "5.4 Redacted Summaries and Leakage Control",
   "old": "### 4.4 Redacted Summaries and Leakage Control",
   "new": "### 5.4 Redacted Summaries and Leakage Control",
   "marked": "### [-4.4-] {+5.4+} Redacted Summaries and Leakage Control"
  },
  {
   "section": "5.4 Redacted Summaries and Leakage Control",
   "old": "2. **Template selection.** Each category maps to a pre-approved redaction template: - Pricing authority → \"Pricing for this account is managed by [ROLE]. Refer pricing inquiries to [ESCALATION_CONTACT].\" - Legal status → \"There is an active matter affecting this account. Escalate contract discussions to management before committing.\" - Margin data → \"Account profitability is under management review. Standard pricing applies unless otherwise directed.\" - Personnel information → [Omitted entirely; no template generated.]",
   "new": "2. **Template selection.** Each category maps to a pre-approved redaction template: - Pricing authority $\\rightarrow$ \"Pricing for this account is managed by [ROLE]. Refer pricing inquiries to [ESCALATION_CONTACT].\" - Legal status $\\rightarrow$ \"There is an active matter affecting this account. Escalate contract discussions to management before committing.\" - Margin data $\\rightarrow$ \"Account profitability is under management review. Standard pricing applies unless otherwise directed.\" - Personnel information $\\rightarrow$ [Omitted entirely; no template generated.]",
   "marked": "2. **Template selection.** Each category maps to a pre-approved redaction template: - Pricing authority [-→-] {+$\\rightarrow$+} \"Pricing for this account is managed by [ROLE]. Refer pricing inquiries to [ESCALATION_CONTACT].\" - Legal status [-→-] {+$\\rightarrow$+} \"There is an active matter affecting this account. Escalate contract discussions to management before committing.\" - Margin data [-→-] {+$\\rightarrow$+} \"Account profitability is under management review. Standard pricing applies unless otherwise directed.\" - Personnel information [-→-] {+$\\rightarrow$+} [Omitted entirely; no template generated.]"
  },
  {
   "section": "5.4 Redacted Summaries and Leakage Control",
   "old": "**When is free-form summarization acceptable?** Only for T2→T1 declassification (internal to public), where the sensitivity gap is minimal and the risk of meaningful leakage is low. All T3+ declassification uses the template pipeline.",
   "new": "**When is free-form summarization acceptable?** Only for T2$\\rightarrow$T1 declassification (internal to public), where the sensitivity gap is minimal and the risk of meaningful leakage is low. All T3+ declassification uses the template pipeline.",
   "marked": "**When is free-form summarization acceptable?** Only for [-T2→T1-] {+T2$\\rightarrow$T1+} declassification (internal to public), where the sensitivity gap is minimal and the risk of meaningful leakage is low. All T3+ declassification uses the template pipeline."
  },
  {
   "section": "5.5 Competitive Intelligence Flow",
   "old": "### 4.5 Competitive Intelligence Flow",
   "new": "### 5.5 Competitive Intelligence Flow",
   "marked": "### [-4.5-] {+5.5+} Competitive Intelligence Flow"
  },
  {
   "section": "5.5 Competitive Intelligence Flow",
   "old": "HIVEMIND defines structured **upward push channels** (formalized in Rule 2a, Section 3.3) for intelligence that has organizational value beyond the individual agent.",
   "new": "HIVEMIND defines structured **upward push channels** (formalized in Rule 2a, Section 4.3) for intelligence that has organizational value beyond the individual agent.",
   "marked": "HIVEMIND defines structured **upward push channels** (formalized in Rule 2a, Section [-3.3)-] {+4.3)+} for intelligence that has organizational value beyond the individual agent."
  },
  {
   "section": "5.5 Competitive Intelligence Flow",
   "old": null,
   "new": "ATLAS, after Pedro's meeting, logs:",
   "marked": "{+ATLAS, after Pedro's meeting, logs:+}"
  },
  {
   "section": "5.5 Competitive Intelligence Flow",
   "old": "ATLAS, after Pedro's meeting, logs: ``` ATLAS → SALES-AGENT (upward push, channel: competitive_intelligence): type: competitive_intelligence source: Pedro Martínez, client meeting 2026-03-17 content: Competitor X announced Product Y, delivery Q3 2026 confidence: medium (hearsay from client) classification: T2/INTERNAL ```",
   "new": "``` ATLAS -> SALES-AGENT (upward push, channel: competitive_intelligence): type: competitive_intelligence source: Pedro Martínez, client meeting 2026-03-17 content: Competitor X announced Product Y, delivery Q3 2026 confidence: medium (hearsay from client) classification: T2/INTERNAL ```",
   "marked": "[-ATLAS, after Pedro's meeting, logs:-] ``` ATLAS [-→-] {+->+} SALES-AGENT (upward push, channel: competitive_intelligence): type: competitive_intelligence source: Pedro Martínez, client meeting 2026-03-17 content: Competitor X announced Product Y, delivery Q3 2026 confidence: medium (hearsay from client) classification: T2/INTERNAL ```"
  },
  {
   "section": "5.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": "### 4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "new": "### 5.5.1 Structured Channel Schema and Confidence Lifecycle",
   "marked": "### [-4.5.1-] {+5.5.1+} Structured Channel Schema and Confidence Lifecycle"
  },
  {
   "section": "5.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": "```json { \"type\": \"competitive_intelligence\", \"source_employee\": \"string\", \"event_date\": \"YYYY-MM-DD\", \"customer_context\": \"optional string\", \"competitor\": \"string\", \"claim\": \"string, max 500 chars\", \"confidence\": \"low|medium|high|verified\", \"evidence_type\": \"hearsay|email|attachment|public-web|meeting-note\", \"classification\": \"T1|T2\", \"requires_followup\": true } ```",
   "new": "``` { \"type\": \"competitive_intelligence\", \"source_employee\": \"string\", \"event_date\": \"YYYY-MM-DD\", \"customer_context\": \"optional string\", \"competitor\": \"string\", \"claim\": \"string, max 500 chars\", \"confidence\": \"low|medium|high|verified\", \"evidence_type\": \"hearsay|email|attachment|public-web|meeting-note\", \"classification\": \"T1|T2\", \"requires_followup\": true } ```",
   "marked": "[-```json-] {+```+} { \"type\": \"competitive_intelligence\", \"source_employee\": \"string\", \"event_date\": \"YYYY-MM-DD\", \"customer_context\": \"optional string\", \"competitor\": \"string\", \"claim\": \"string, max 500 chars\", \"confidence\": \"low|medium|high|verified\", \"evidence_type\": \"hearsay|email|attachment|public-web|meeting-note\", \"classification\": \"T1|T2\", \"requires_followup\": true } ```"
  },
  {
   "section": "5.6 The Coordination Dividend",
   "old": "### 4.6 The Coordination Dividend",
   "new": "### 5.6 The Coordination Dividend",
   "marked": "### [-4.6-] {+5.6+} The Coordination Dividend"
  },
  {
   "section": "6. Privacy and Legal Considerations",
   "old": "## 5. Privacy and Legal Considerations",
   "new": "## 6. Privacy and Legal Considerations",
   "marked": "## [-5.-] {+6.+} Privacy and Legal Considerations"
  },
  {
   "section": "6. Privacy and Legal Considerations",
   "old": "*Legal requirements motivate the compliance architecture that follows in Section 6. We address them first.*",
   "new": "_Legal requirements motivate the compliance architecture that follows in Section 7. We address them first._",
   "marked": "[-*Legal-] {+_Legal+} requirements motivate the compliance architecture that follows in Section [-6.-] {+7.+} We address them [-first.*-] {+first._+}"
  },
  {
   "section": "6.1 Employee Awareness and Transparency",
   "old": "### 5.1 Employee Awareness and Transparency",
   "new": "### 6.1 Employee Awareness and Transparency",
   "marked": "### [-5.1-] {+6.1+} Employee Awareness and Transparency"
  },
  {
   "section": "6.2 User Adoption and Change Management",
   "old": "### 5.2 User Adoption and Change Management",
   "new": "### 6.2 User Adoption and Change Management",
   "marked": "### [-5.2-] {+6.2+} User Adoption and Change Management"
  },
  {
   "section": "6.2 User Adoption and Change Management",
   "old": "- **Over-reliance.** Employees may delegate judgment to their agents. The agent says \"refer pricing to management\" — does the salesperson understand *why*, or just comply? Mitigation: agent outputs should explain reasoning, not just issue directives. Training should emphasize the agent as an augmentation tool, not an authority.",
   "new": "- **Over-reliance.** Employees may delegate judgment to their agents. The agent says \"refer pricing to management\" — does the salesperson understand _why_, or just comply? Mitigation: agent outputs should explain reasoning, not just issue directives. Training should emphasize the agent as an augmentation tool, not an authority.",
   "marked": "- **Over-reliance.** Employees may delegate judgment to their agents. The agent says \"refer pricing to management\" — does the salesperson understand [-*why*,-] {+_why_,+} or just comply? Mitigation: agent outputs should explain reasoning, not just issue directives. Training should emphasize the agent as an augmentation tool, not an authority."
  },
  {
   "section": "6.2 User Adoption and Change Management",
   "old": "**Adoption strategy:** See Section 9 (Phased Deployment) for a staged rollout that addresses these challenges incrementally.",
   "new": "**Adoption strategy:** See Section 10 (Phased Deployment) for a staged rollout that addresses these challenges incrementally.",
   "marked": "**Adoption strategy:** See Section [-9-] {+10+} (Phased Deployment) for a staged rollout that addresses these challenges incrementally."
  },
  {
   "section": "6.3 GDPR Implications",
   "old": "### 5.3 GDPR Implications",
   "new": "### 6.3 GDPR Implications",
   "marked": "### [-5.3-] {+6.3+} GDPR Implications"
  },
  {
   "section": "6.3 GDPR Implications",
   "old": "**Data Processing Agreements (DPAs).** If any LLM inference is routed to cloud providers (OpenAI, Anthropic, Google), a DPA compliant with GDPR Articles 28-29 must be in place. The DPA must specify: data categories processed, processing purposes, sub-processor list, data deletion obligations, and breach notification procedures. For on-premises inference (recommended — see Section 5.6), DPAs with API providers are not required, but DPAs with hardware vendors providing managed services may still apply.",
   "new": "**Data Processing Agreements (DPAs).** If any LLM inference is routed to cloud providers (OpenAI, Anthropic, Google), a DPA compliant with GDPR Articles 28-29 must be in place. The DPA must specify: data categories processed, processing purposes, sub-processor list, data deletion obligations, and breach notification procedures. For on-premises inference (recommended — see Section 6.6), DPAs with API providers are not required, but DPAs with hardware vendors providing managed services may still apply.",
   "marked": "**Data Processing Agreements (DPAs).** If any LLM inference is routed to cloud providers (OpenAI, Anthropic, Google), a DPA compliant with GDPR Articles 28-29 must be in place. The DPA must specify: data categories processed, processing purposes, sub-processor list, data deletion obligations, and breach notification procedures. For on-premises inference (recommended — see Section [-5.6),-] {+6.6),+} DPAs with API providers are not required, but DPAs with hardware vendors providing managed services may still apply."
  },
  {
   "section": "6.3 GDPR Implications",
   "old": "**Article 22: Automated decision-making.** If HIVEMIND agents make or substantially contribute to decisions affecting employees (e.g., quarantine suspending an agent disrupts the employee's work), Article 22 requires: (a) informing the employee that automated processing is involved, (b) providing meaningful information about the logic, and (c) ensuring the right to obtain human intervention. The quarantine process (Section 6.4) includes human-in-the-loop review specifically to satisfy this requirement.",
   "new": "**Article 22: Automated decision-making.** If HIVEMIND agents make or substantially contribute to decisions affecting employees (e.g., quarantine suspending an agent disrupts the employee's work), Article 22 requires: (a) informing the employee that automated processing is involved, (b) providing meaningful information about the logic, and (c) ensuring the right to obtain human intervention. The quarantine process (Section 7.4) includes human-in-the-loop review specifically to satisfy this requirement.",
   "marked": "**Article 22: Automated decision-making.** If HIVEMIND agents make or substantially contribute to decisions affecting employees (e.g., quarantine suspending an agent disrupts the employee's work), Article 22 requires: (a) informing the employee that automated processing is involved, (b) providing meaningful information about the logic, and (c) ensuring the right to obtain human intervention. The quarantine process (Section [-6.4)-] {+7.4)+} includes human-in-the-loop review specifically to satisfy this requirement."
  },
  {
   "section": "6.3 GDPR Implications",
   "old": "**Article 4(4): Profiling.** Agent memory files that accumulate behavioral patterns about employees (work habits, communication style, client relationship quality) may constitute profiling. The DPIA (Section 5.4) must assess this and define retention limits for behavioral data.",
   "new": "**Article 4(4): Profiling.** Agent memory files that accumulate behavioral patterns about employees (work habits, communication style, client relationship quality) may constitute profiling. The DPIA (Section 6.4) must assess this and define retention limits for behavioral data.",
   "marked": "**Article 4(4): Profiling.** Agent memory files that accumulate behavioral patterns about employees (work habits, communication style, client relationship quality) may constitute profiling. The DPIA (Section [-5.4)-] {+6.4)+} must assess this and define retention limits for behavioral data."
  },
  {
   "section": "6.4 Data Protection Impact Assessment",
   "old": "### 5.4 Data Protection Impact Assessment",
   "new": "### 6.4 Data Protection Impact Assessment",
   "marked": "### [-5.4-] {+6.4+} Data Protection Impact Assessment"
  },
  {
   "section": "6.5 The EU AI Act",
   "old": "### 5.5 The EU AI Act",
   "new": "### 6.5 The EU AI Act",
   "marked": "### [-5.5-] {+6.5+} The EU AI Act"
  },
  {
   "section": "6.5 The EU AI Act",
   "old": "- **Risk management system (Article 9).** HIVEMIND's risk analysis (Section 8) and compliance architecture (Section 6) serve this function but must be formalized as a continuous risk management process, not a one-time assessment. - **Data governance (Article 10).** Training data, validation data, and operational data must meet quality criteria. For HIVEMIND, this primarily concerns the data used to train the compliance classifiers and semantic scanners. - **Technical documentation (Article 11).** The system's design, purpose, capabilities, and limitations must be documented for regulatory inspection. This paper serves as a starting point but would need expansion. - **Record-keeping (Article 12).** Automatic logging of system events — HIVEMIND's communication logs and audit trails satisfy this if configured for the required retention period (the Act references \"appropriate to the intended purpose,\" typically interpreted as the system's operational lifetime plus a regulatory buffer). - **Transparency (Article 13).** Users (employees) must be informed they are interacting with an AI system and understand its capabilities and limitations. - **Human oversight (Article 14).** The system must be designed to allow effective human oversight. HIVEMIND's human-in-the-loop quarantine review, weekly audit reports, and the STRATEGOS dead switch address this requirement. - **Conformity assessment.** Before deployment, HIVEMIND must undergo a conformity assessment (self-assessment for most Annex III systems, third-party for biometric systems). This should be factored into the deployment timeline.",
   "new": "- **Risk management system (Article 9).** HIVEMIND's risk analysis (Section 9) and compliance architecture (Section 7) serve this function but must be formalized as a continuous risk management process, not a one-time assessment. - **Data governance (Article 10).** Training data, validation data, and operational data must meet quality criteria. For HIVEMIND, this primarily concerns the data used to train the compliance classifiers and semantic scanners. - **Technical documentation (Article 11).** The system's design, purpose, capabilities, and limitations must be documented for regulatory inspection. This paper serves as a starting point but would need expansion. - **Record-keeping (Article 12).** Automatic logging of system events — HIVEMIND's communication logs and audit trails satisfy this if configured for the required retention period (the Act references \"appropriate to the intended purpose,\" typically interpreted as the system's operational lifetime plus a regulatory buffer). - **Transparency (Article 13).** Users (employees) must be informed they are interacting with an AI system and understand its capabilities and limitations. - **Human oversight (Article 14).** The system must be designed to allow effective human oversight. HIVEMIND's human-in-the-loop quarantine review, weekly audit reports, and the STRATEGOS dead switch address this requirement. - **Conformity assessment.** Before deployment, HIVEMIND must undergo a conformity assessment (self-assessment for most Annex III systems, third-party for biometric systems). This should be factored into the deployment timeline.",
   "marked": "- **Risk management system (Article 9).** HIVEMIND's risk analysis (Section [-8)-] {+9)+} and compliance architecture (Section [-6)-] {+7)+} serve this function but must be formalized as a continuous risk management process, not a one-time assessment. - **Data governance (Article 10).** Training data, validation data, and operational data must meet quality criteria. For HIVEMIND, this primarily concerns the data used to train the compliance classifiers and semantic scanners. - **Technical documentation (Article 11).** The system's design, purpose, capabilities, and limitations must be documented for regulatory inspection. This paper serves as a starting point but would need expansion. - **Record-keeping (Article 12).** Automatic logging of system events — HIVEMIND's communication logs and audit trails satisfy this if configured for the required retention period (the Act references \"appropriate to the intended purpose,\" typically interpreted as the system's operational lifetime plus a regulatory buffer). - **Transparency (Article 13).** Users (employees) must be informed they are interacting with an AI system and understand its capabilities and limitations. - **Human oversight (Article 14).** The system must be designed to allow effective human oversight. HIVEMIND's human-in-the-loop quarantine review, weekly audit reports, and the STRATEGOS dead switch address this requirement. - **Conformity assessment.** Before deployment, HIVEMIND must undergo a conformity assessment (self-assessment for most Annex III systems, third-party for biometric systems). This should be factored into the deployment timeline."
  },
  {
   "section": "6.6 Data Residency and On-Premises Processing",
   "old": "### 5.6 Data Residency and On-Premises Processing",
   "new": "### 6.6 Data Residency and On-Premises Processing",
   "marked": "### [-5.6-] {+6.6+} Data Residency and On-Premises Processing"
  },
  {
   "section": "6.6 Data Residency and On-Premises Processing",
   "old": "- On-premises server running open-weight models (LLaMA 3, Mistral, Qwen, or equivalent). - OpenClaw configured with `local_inference: true`, routing to Ollama or similar local inference server. - No customer data, employee data, or corporate correspondence transmitted to cloud APIs.",
   "new": "- On-premises server running open-weight models (LLaMA 3, Mistral, Qwen, or equivalent). - OpenClaw's provider configuration pointed at a local inference endpoint (Ollama or an equivalent on-host server) rather than a cloud API, so that the model provider is itself inside the trust boundary. - No customer data, employee data, or corporate correspondence transmitted to cloud APIs.",
   "marked": "- On-premises server running open-weight models (LLaMA 3, Mistral, Qwen, or equivalent). - [-OpenClaw configured with `local_inference: true`, routing to Ollama or similar-] {+OpenClaw's provider configuration pointed at a+} local inference [-server.-] {+endpoint (Ollama or an equivalent on-host server) rather than a cloud API, so that the model provider is itself inside the trust boundary.+} - No customer data, employee data, or corporate correspondence transmitted to cloud APIs."
  },
  {
   "section": "6.6 Data Residency and On-Premises Processing",
   "old": "**Capability gap acknowledgment.** On-premises models (currently 70B parameter class on single-server GPU deployments) have measurable capability gaps compared to frontier cloud models for complex reasoning, nuanced language generation, and rare-domain knowledge. For most enterprise agent tasks — email drafts, calendar management, CRM queries, structured data retrieval — 70B models are adequate. However, the compliance classifiers (Section 6.3) and the template-based redaction pipeline (Section 4.4) should be validated against the specific local model's capabilities before deployment. Tasks requiring frontier-class reasoning (complex legal analysis, multi-factor strategic synthesis) should be flagged for human handling rather than delegated to a local model operating near its capability ceiling.",
   "new": "**Capability gap acknowledgment.** On-premises models (currently 70B parameter class on single-server GPU deployments) have measurable capability gaps compared to frontier cloud models for complex reasoning, nuanced language generation, and rare-domain knowledge. For most enterprise agent tasks — email drafts, calendar management, CRM queries, structured data retrieval — 70B models are adequate. However, the compliance classifiers (Section 7.3) and the template-based redaction pipeline (Section 5.4) should be validated against the specific local model's capabilities before deployment. Tasks requiring frontier-class reasoning (complex legal analysis, multi-factor strategic synthesis) should be flagged for human handling rather than delegated to a local model operating near its capability ceiling.",
   "marked": "**Capability gap acknowledgment.** On-premises models (currently 70B parameter class on single-server GPU deployments) have measurable capability gaps compared to frontier cloud models for complex reasoning, nuanced language generation, and rare-domain knowledge. For most enterprise agent tasks — email drafts, calendar management, CRM queries, structured data retrieval — 70B models are adequate. However, the compliance classifiers (Section [-6.3)-] {+7.3)+} and the template-based redaction pipeline (Section [-4.4)-] {+5.4)+} should be validated against the specific local model's capabilities before deployment. Tasks requiring frontier-class reasoning (complex legal analysis, multi-factor strategic synthesis) should be flagged for human handling rather than delegated to a local model operating near its capability ceiling."
  },
  {
   "section": "6.7 The Right to Be Forgotten — Employee Offboarding",
   "old": "### 5.7 The Right to Be Forgotten — Employee Offboarding",
   "new": "### 6.7 The Right to Be Forgotten — Employee Offboarding",
   "marked": "### [-5.7-] {+6.7+} The Right to Be Forgotten — Employee Offboarding"
  },
  {
   "section": "6.8 The IT Staff Privilege Clause",
   "old": "### 5.8 The IT Staff Privilege Clause",
   "new": "### 6.8 The IT Staff Privilege Clause",
   "marked": "### [-5.8-] {+6.8+} The IT Staff Privilege Clause"
  },
  {
   "section": "7. Compliance and Audit Architecture",
   "old": "## 6. Compliance and Audit Architecture",
   "new": "## 7. Compliance and Audit Architecture",
   "marked": "## [-6.-] {+7.+} Compliance and Audit Architecture"
  },
  {
   "section": "7.1 The Audit Imperative",
   "old": "### 6.1 The Audit Imperative",
   "new": "### 7.1 The Audit Imperative",
   "marked": "### [-6.1-] {+7.1+} The Audit Imperative"
  },
  {
   "section": "7.2 Communication Logging",
   "old": "### 6.2 Communication Logging",
   "new": "### 7.2 Communication Logging",
   "marked": "### [-6.2-] {+7.2+} Communication Logging"
  },
  {
   "section": "7.2 Communication Logging",
   "old": "```json { \"timestamp\": \"2026-03-17T14:32:11Z\", \"sender_agent\": \"ATLAS\", \"sender_clearance\": \"T3\", \"recipient_agent\": \"SALES-AGENT\", \"recipient_clearance\": \"T4\", \"message_type\": \"upward_push\", \"channel\": \"competitive_intelligence\", \"content_classification\": \"T2\", \"content_hash\": \"sha256:a3f9...\", \"content_preview\": \"[LOGGED, NOT STORED IN AUDIT DB]\", \"compliance_flags\": [], \"reviewed\": false } ```",
   "new": "``` { \"timestamp\": \"2026-03-17T14:32:11Z\", \"sender_agent\": \"ATLAS\", \"sender_clearance\": \"T3\", \"recipient_agent\": \"SALES-AGENT\", \"recipient_clearance\": \"T4\", \"message_type\": \"upward_push\", \"channel\": \"competitive_intelligence\", \"content_classification\": \"T2\", \"content_hash\": \"sha256:a3f9...\", \"content_preview\": \"[LOGGED, NOT STORED IN AUDIT DB]\", \"compliance_flags\": [], \"reviewed\": false } ```",
   "marked": "[-```json-] {+```+} { \"timestamp\": \"2026-03-17T14:32:11Z\", \"sender_agent\": \"ATLAS\", \"sender_clearance\": \"T3\", \"recipient_agent\": \"SALES-AGENT\", \"recipient_clearance\": \"T4\", \"message_type\": \"upward_push\", \"channel\": \"competitive_intelligence\", \"content_classification\": \"T2\", \"content_hash\": \"sha256:a3f9...\", \"content_preview\": \"[LOGGED, NOT STORED IN AUDIT DB]\", \"compliance_flags\": [], \"reviewed\": false } ```"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "### 6.3 Nightly Compliance Sweep",
   "new": "### 7.3 Nightly Compliance Sweep",
   "marked": "### [-6.3-] {+7.3+} Nightly Compliance Sweep"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "- *Pass 1: Structural scan.* Checks memory files for references to data from restricted directories — file paths, document IDs, or hashes cross-referencing T4/T5 sources. - *Pass 2: Semantic scan.* An audit model reviews recent memory additions for content resembling restricted data (salary figures, credential-like strings, legal proceedings language).",
   "new": "- _Pass 1: Structural scan._ Checks memory files for references to data from restricted directories — file paths, document IDs, or hashes cross-referencing T4/T5 sources. - _Pass 2: Semantic scan._ An audit model reviews recent memory additions for content resembling restricted data (salary figures, credential-like strings, legal proceedings language).",
   "marked": "- [-*Pass-] {+_Pass+} 1: Structural [-scan.*-] {+scan._+} Checks memory files for references to data from restricted directories — file paths, document IDs, or hashes cross-referencing T4/T5 sources. - [-*Pass-] {+_Pass+} 2: Semantic [-scan.*-] {+scan._+} An audit model reviews recent memory additions for content resembling restricted data (salary figures, credential-like strings, legal proceedings language)."
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**On semantic scan reliability:** This scan is inherently probabilistic and will produce false positives — salary-like numeric patterns in legitimate sales figures, credential-like strings in product codes. Expected false positive rates for structured pattern detection in free-text agent memories are high enough to cause alert fatigue if every match triggers quarantine. Therefore: semantic scan findings are categorized as *advisory* (queued for weekly human review) unless they match high-confidence patterns (exact salary-range formats from the HR schema, known credential formats from the IT password policy). Only high-confidence matches trigger immediate escalation. Advisory findings that accumulate across multiple scans for the same agent are escalated to immediate review.",
   "new": "**On semantic scan reliability:** This scan is inherently probabilistic and will produce false positives — salary-like numeric patterns in legitimate sales figures, credential-like strings in product codes. Expected false positive rates for structured pattern detection in free-text agent memories are high enough to cause alert fatigue if every match triggers quarantine. Therefore: semantic scan findings are categorized as _advisory_ (queued for weekly human review) unless they match high-confidence patterns (exact salary-range formats from the HR schema, known credential formats from the IT password policy). Only high-confidence matches trigger immediate escalation. Advisory findings that accumulate across multiple scans for the same agent are escalated to immediate review.",
   "marked": "**On semantic scan reliability:** This scan is inherently probabilistic and will produce false positives — salary-like numeric patterns in legitimate sales figures, credential-like strings in product codes. Expected false positive rates for structured pattern detection in free-text agent memories are high enough to cause alert fatigue if every match triggers quarantine. Therefore: semantic scan findings are categorized as [-*advisory*-] {+_advisory_+} (queued for weekly human review) unless they match high-confidence patterns (exact salary-range formats from the HR schema, known credential formats from the IT password policy). Only high-confidence matches trigger immediate escalation. Advisory findings that accumulate across multiple scans for the same agent are escalated to immediate review."
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": null,
   "new": "Agent communications are profiled over time. Deviations flagged:",
   "marked": "{+Agent communications are profiled over time. Deviations flagged:+}"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "Agent communications are profiled over time. Deviations flagged: - 10x normal query volume to department agent. - Queries for customer data outside assigned portfolio without justification. - Outputs significantly longer than historical norm (potential data exfiltration).",
   "new": "- 10x normal query volume to department agent. - Queries for customer data outside assigned portfolio without justification. - Outputs significantly longer than historical norm (potential data exfiltration).",
   "marked": "[-Agent communications are profiled over time. Deviations flagged:-] - 10x normal query volume to department agent. - Queries for customer data outside assigned portfolio without justification. - Outputs significantly longer than historical norm (potential data exfiltration)."
  },
  {
   "section": "7.4 Automated Quarantine",
   "old": "### 6.4 Automated Quarantine",
   "new": "### 7.4 Automated Quarantine",
   "marked": "### [-6.4-] {+7.4+} Automated Quarantine"
  },
  {
   "section": "7.5 Audit Reporting",
   "old": "### 6.5 Audit Reporting",
   "new": "### 7.5 Audit Reporting",
   "marked": "### [-6.5-] {+7.5+} Audit Reporting"
  },
  {
   "section": "8. Technical Implementation on OpenClaw/TinkerClaw",
   "old": "## 7. Technical Implementation on OpenClaw/TinkerClaw",
   "new": "## 8. Technical Implementation on OpenClaw/TinkerClaw",
   "marked": "## [-7.-] {+8.+} Technical Implementation on OpenClaw/TinkerClaw"
  },
  {
   "section": "8.1 Platform Overview",
   "old": "### 7.1 Platform Overview",
   "new": "### 8.1 Platform Overview",
   "marked": "### [-7.1-] {+8.1+} Platform Overview"
  },
  {
   "section": "8.1 Platform Overview",
   "old": null,
   "new": "Each agent is a configured OpenClaw instance with:",
   "marked": "{+Each agent is a configured OpenClaw instance with:+}"
  },
  {
   "section": "8.1 Platform Overview",
   "old": "Each agent is a configured OpenClaw instance with: - System prompt defining persona, role, clearance context, behavioral rules - Workspace directory mapping to accessible corporate filesystem paths - Role-scoped tool set - Persistent memory (MEMORY.md + daily journals) - Inter-session communication capability (sessions_send, sessions_spawn)",
   "new": "- System prompt defining persona, role, clearance context, behavioral rules - Workspace directory mapping to accessible corporate filesystem paths - Role-scoped tool set - Persistent memory (MEMORY.md + daily journals) - Inter-session communication capability (sessions_send, sessions_spawn)",
   "marked": "[-Each agent is a configured OpenClaw instance with:-] - System prompt defining persona, role, clearance context, behavioral rules - Workspace directory mapping to accessible corporate filesystem paths - Role-scoped tool set - Persistent memory (MEMORY.md + daily journals) - Inter-session communication capability (sessions_send, sessions_spawn)"
  },
  {
   "section": "8.2 Linux Filesystem Permission Model",
   "old": "### 7.2 Linux Filesystem Permission Model",
   "new": "### 8.2 Linux Filesystem Permission Model",
   "marked": "### [-7.2-] {+8.2+} Linux Filesystem Permission Model"
  },
  {
   "section": "8.2 Linux Filesystem Permission Model",
   "old": "```bash # System users for each agent useradd -r -s /sbin/nologin agent_luna useradd -r -s /sbin/nologin agent_atlas useradd -r -s /sbin/nologin agent_sales useradd -r -s /sbin/nologin agent_strategos",
   "new": "``` # System users for each agent useradd -r -s /sbin/nologin agent_luna useradd -r -s /sbin/nologin agent_atlas useradd -r -s /sbin/nologin agent_sales useradd -r -s /sbin/nologin agent_strategos",
   "marked": "[-```bash-] {+```+} # System users for each agent useradd -r -s /sbin/nologin agent_luna useradd -r -s /sbin/nologin agent_atlas useradd -r -s /sbin/nologin agent_sales useradd -r -s /sbin/nologin agent_strategos"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "### 7.3 Inter-Agent Communication Protocol",
   "new": "### 8.3 Inter-Agent Communication Protocol",
   "marked": "### [-7.3-] {+8.3+} Inter-Agent Communication Protocol"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "```json { \"protocol_version\": \"hivemind/1.0\", \"message_id\": \"uuid-v4\", \"timestamp\": \"ISO-8601\", \"sender\": { \"agent_id\": \"agent_luna\", \"clearance\": \"T3\", \"department\": \"sales\" }, \"recipient\": { \"agent_id\": \"agent_sales\", \"clearance\": \"T4\", \"department\": \"sales\" }, \"message_type\": \"query | response | push | directive | alert\", \"channel\": \"string (for push messages: channel name from approved list)\", \"correlation_id\": \"uuid-v4 (links response to original query)\", \"payload\": { \"content_classification\": \"T1-T5\", \"body\": \"...\", \"attachments\": [] }, \"ttl_seconds\": 300, \"requires_ack\": true } ```",
   "new": "``` { \"protocol_version\": \"hivemind/1.0\", \"message_id\": \"uuid-v4\", \"timestamp\": \"ISO-8601\", \"sender\": { \"agent_id\": \"agent_luna\", \"clearance\": \"T3\", \"department\": \"sales\" }, \"recipient\": { \"agent_id\": \"agent_sales\", \"clearance\": \"T4\", \"department\": \"sales\" }, \"message_type\": \"query | response | push | directive | alert\", \"channel\": \"string (for push messages: channel name from approved list)\", \"correlation_id\": \"uuid-v4 (links response to original query)\", \"payload\": { \"content_classification\": \"T1-T5\", \"body\": \"...\", \"attachments\": [] }, \"ttl_seconds\": 300, \"requires_ack\": true } ```",
   "marked": "[-```json-] {+```+} { \"protocol_version\": \"hivemind/1.0\", \"message_id\": \"uuid-v4\", \"timestamp\": \"ISO-8601\", \"sender\": { \"agent_id\": \"agent_luna\", \"clearance\": \"T3\", \"department\": \"sales\" }, \"recipient\": { \"agent_id\": \"agent_sales\", \"clearance\": \"T4\", \"department\": \"sales\" }, \"message_type\": \"query | response | push | directive | alert\", \"channel\": \"string (for push messages: channel name from approved list)\", \"correlation_id\": \"uuid-v4 (links response to original query)\", \"payload\": { \"content_classification\": \"T1-T5\", \"body\": \"...\", \"attachments\": [] }, \"ttl_seconds\": 300, \"requires_ack\": true } ```"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "- **At-most-once delivery** with acknowledgment. Messages are persisted in the gateway queue until acknowledged or TTL expires. - **Timeout handling.** If no acknowledgment within `ttl_seconds`, the sender receives a `TIMEOUT` response. The sender may retry with a new `message_id` (idempotent; the gateway deduplicates by `correlation_id` within a sliding window). - **Ordering.** Messages within a single sender→recipient pair are delivered in order (FIFO queue per pair). Cross-pair ordering is not guaranteed. - **Message size limit.** 64KB per message. Larger payloads use a file-reference mechanism: the sender writes to a shared staging directory (with appropriate permissions), and the message contains the file path.",
   "new": "- **At-most-once delivery** with acknowledgment. Messages are persisted in the gateway queue until acknowledged or TTL expires. - **Timeout handling.** If no acknowledgment within `ttl_seconds`, the sender receives a `TIMEOUT` response. The sender may retry with a new `message_id` (idempotent; the gateway deduplicates by `correlation_id` within a sliding window). - **Ordering.** Messages within a single sender$\\rightarrow$recipient pair are delivered in order (FIFO queue per pair). Cross-pair ordering is not guaranteed. - **Message size limit.** 64KB per message. Larger payloads use a file-reference mechanism: the sender writes to a shared staging directory (with appropriate permissions), and the message contains the file path.",
   "marked": "- **At-most-once delivery** with acknowledgment. Messages are persisted in the gateway queue until acknowledged or TTL expires. - **Timeout handling.** If no acknowledgment within `ttl_seconds`, the sender receives a `TIMEOUT` response. The sender may retry with a new `message_id` (idempotent; the gateway deduplicates by `correlation_id` within a sliding window). - **Ordering.** Messages within a single [-sender→recipient-] {+sender$\\rightarrow$recipient+} pair are delivered in order (FIFO queue per pair). Cross-pair ordering is not guaranteed. - **Message size limit.** 64KB per message. Larger payloads use a file-reference mechanism: the sender writes to a shared staging directory (with appropriate permissions), and the message contains the file path."
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "Each agent session authenticates to the gateway using a session token issued at spawn time, bound to the agent's Linux user identity. The gateway verifies:",
   "marked": "{+Each agent session authenticates to the gateway using a session token issued at spawn time, bound to the agent's Linux user identity. The gateway verifies:+}"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "Each agent session authenticates to the gateway using a session token issued at spawn time, bound to the agent's Linux user identity. The gateway verifies: 1. The session token is valid and not expired. 2. The claimed `agent_id` matches the authenticated session. 3. The recipient is in the sender's `can_send_to` list (topology enforcement). 4. The `content_classification` in the payload does not exceed the recipient's clearance.",
   "new": "1. The session token is valid and not expired. 2. The claimed `agent_id` matches the authenticated session. 3. The recipient is in the sender's `can_send_to` list (topology enforcement). 4. The `content_classification` in the payload does not exceed the recipient's clearance.",
   "marked": "[-Each agent session authenticates to the gateway using a session token issued at spawn time, bound to the agent's Linux user identity. The gateway verifies:-] 1. The session token is valid and not expired. 2. The claimed `agent_id` matches the authenticated session. 3. The recipient is in the sender's `can_send_to` list (topology enforcement). 4. The `content_classification` in the payload does not exceed the recipient's clearance."
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "```yaml # gateway/agent-topology.yaml sessions: - id: agent_luna clearance: T3 department: sales can_receive_from: [agent_sales] can_send_to: [agent_sales] push_channels: [competitive_intelligence, customer_feedback, meeting_notes]",
   "new": "``` # gateway/agent-topology.yaml sessions: - id: agent_luna clearance: T3 department: sales can_receive_from: [agent_sales] can_send_to: [agent_sales] push_channels: [competitive_intelligence, customer_feedback, meeting_notes]",
   "marked": "[-```yaml-] {+```+} # gateway/agent-topology.yaml sessions: - id: agent_luna clearance: T3 department: sales can_receive_from: [agent_sales] can_send_to: [agent_sales] push_channels: [competitive_intelligence, customer_feedback, meeting_notes]"
  },
  {
   "section": "8.4 Memory Files as Auditable State",
   "old": "### 7.4 Memory Files as Auditable State",
   "new": "### 8.4 Memory Files as Auditable State",
   "marked": "### [-7.4-] {+8.4+} Memory Files as Auditable State"
  },
  {
   "section": "8.4 Memory Files as Auditable State",
   "old": "``` /agents/ ├── luna/ # owned by agent_luna, group: sales-agents-ro │ ├── MEMORY.md │ ├── memory/ │ │ └── 2026-03-17.md │ ├── workspace/ │ │ └── clients/ │ └── SOUL.md ├── atlas/ # similar structure ├── sales-agent/ # owned by agent_sales, group: strategos-ro │ ├── MEMORY.md │ └── department-intel/ └── strategos/ # owned by agent_strategos, root group └── ... ```",
   "new": "``` /agents/ |-- luna/ # owned by agent_luna, group: sales-agents-ro | |-- MEMORY.md | |-- memory/ | | \\-- 2026-03-17.md | |-- workspace/ | | \\-- clients/ | \\-- SOUL.md |-- atlas/ # similar structure |-- sales-agent/ # owned by agent_sales, group: strategos-ro | |-- MEMORY.md | \\-- department-intel/ \\-- strategos/ # owned by agent_strategos, root group \\-- ... ```",
   "marked": "``` /agents/ [-├──-] {+|--+} luna/ # owned by agent_luna, group: sales-agents-ro [-│ ├──-] {+| |--+} MEMORY.md [-│ ├──-] {+| |--+} memory/ [-│ │ └──-] {+| | \\--+} 2026-03-17.md [-│ ├──-] {+| |--+} workspace/ [-│ │ └──-] {+| | \\--+} clients/ [-│ └──-] {+| \\--+} SOUL.md [-├──-] {+|--+} atlas/ # similar structure [-├──-] {+|--+} sales-agent/ # owned by agent_sales, group: strategos-ro [-│ ├──-] {+| |--+} MEMORY.md [-│ └──-] {+| \\--+} department-intel/ [-└──-] {+\\--+} strategos/ # owned by agent_strategos, root group [-└──-] {+\\--+} ... ```"
  },
  {
   "section": "8.5 Multi-Tenancy and Process Isolation",
   "old": "### 7.5 Multi-Tenancy and Process Isolation",
   "new": "### 8.5 Multi-Tenancy and Process Isolation",
   "marked": "### [-7.5-] {+8.5+} Multi-Tenancy and Process Isolation"
  },
  {
   "section": "8.5 Multi-Tenancy and Process Isolation",
   "old": null,
   "new": "Linux filesystem permissions provide the primary isolation boundary but are not sufficient against all attack vectors. A compromised agent process could potentially:",
   "marked": "{+Linux filesystem permissions provide the primary isolation boundary but are not sufficient against all attack vectors. A compromised agent process could potentially:+}"
  },
  {
   "section": "8.5 Multi-Tenancy and Process Isolation",
   "old": "Linux filesystem permissions provide the primary isolation boundary but are not sufficient against all attack vectors. A compromised agent process could potentially: - Read `/proc` entries of other agent processes, leaking environment variables or command-line arguments. - Exploit kernel vulnerabilities to escalate privileges. - Consume shared resources (CPU, memory, disk I/O) to degrade other agents' performance.",
   "new": "- Read `/proc` entries of other agent processes, leaking environment variables or command-line arguments. - Exploit kernel vulnerabilities to escalate privileges. - Consume shared resources (CPU, memory, disk I/O) to degrade other agents' performance.",
   "marked": "[-Linux filesystem permissions provide the primary isolation boundary but are not sufficient against all attack vectors. A compromised agent process could potentially:-] - Read `/proc` entries of other agent processes, leaking environment variables or command-line arguments. - Exploit kernel vulnerabilities to escalate privileges. - Consume shared resources (CPU, memory, disk I/O) to degrade other agents' performance."
  },
  {
   "section": "8.6 Cron Jobs for Compliance",
   "old": "### 7.6 Cron Jobs for Compliance",
   "new": "### 8.6 Cron Jobs for Compliance",
   "marked": "### [-7.6-] {+8.6+} Cron Jobs for Compliance"
  },
  {
   "section": "8.6 Cron Jobs for Compliance",
   "old": "```cron # /etc/cron.d/hivemind-compliance 0 2 * * * compliance-bot /opt/hivemind/sweep/run-full-sweep.sh >> /var/log/hivemind/sweep.log 2>&1 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```",
   "new": "``` # /etc/cron.d/hivemind-compliance 0 2 * * * compliance-bot /opt/hivemind/sweep/run-full-sweep.sh >> /var/log/hivemind/sweep.log 2>&1 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```",
   "marked": "[-```cron-] {+```+} # /etc/cron.d/hivemind-compliance 0 2 * * * compliance-bot /opt/hivemind/sweep/run-full-sweep.sh >> /var/log/hivemind/sweep.log 2>&1 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```"
  },
  {
   "section": "8.7 Observability and Debugging",
   "old": "### 7.7 Observability and Debugging",
   "new": "### 8.7 Observability and Debugging",
   "marked": "### [-7.7-] {+8.7+} Observability and Debugging"
  },
  {
   "section": "8.8 Versioning, Rollback, and Configuration Management",
   "old": "### 7.8 Versioning, Rollback, and Configuration Management",
   "new": "### 8.8 Versioning, Rollback, and Configuration Management",
   "marked": "### [-7.8-] {+8.8+} Versioning, Rollback, and Configuration Management"
  },
  {
   "section": "8.9 Backup and Disaster Recovery",
   "old": "### 7.9 Backup and Disaster Recovery",
   "new": "### 8.9 Backup and Disaster Recovery",
   "marked": "### [-7.9-] {+8.9+} Backup and Disaster Recovery"
  },
  {
   "section": "8.10 TOOLS.md / Trust Tier Extension",
   "old": "### 7.10 TOOLS.md / Trust Tier Extension",
   "new": "### 8.10 TOOLS.md / Trust Tier Extension",
   "marked": "### [-7.10-] {+8.10+} TOOLS.md / Trust Tier Extension"
  },
  {
   "section": "8.10 TOOLS.md / Trust Tier Extension",
   "old": "```markdown # TOOLS.md - LUNA (María García's Agent)",
   "new": "``` # TOOLS.md - LUNA (María García's Agent)",
   "marked": "[-```markdown-] {+```+} # TOOLS.md - LUNA (María García's Agent)"
  },
  {
   "section": "Trust Tiers",
   "old": null,
   "new": "## Trust Tiers",
   "marked": "{+## Trust Tiers+}"
  },
  {
   "section": "Trust Tiers",
   "old": "## Trust Tiers - **Owner:** María García — full control - **Department Supervisor:** SALES-AGENT — can issue directives, read all outputs - **Executive:** STRATEGOS — read-only access, cannot be refused",
   "new": "- **Owner:** María García — full control - **Department Supervisor:** SALES-AGENT — can issue directives, read all outputs - **Executive:** STRATEGOS — read-only access, cannot be refused",
   "marked": "[-## Trust Tiers-] - **Owner:** María García — full control - **Department Supervisor:** SALES-AGENT — can issue directives, read all outputs - **Executive:** STRATEGOS — read-only access, cannot be refused"
  },
  {
   "section": "Tool Access",
   "old": null,
   "new": "## Tool Access",
   "marked": "{+## Tool Access+}"
  },
  {
   "section": "Tool Access",
   "old": "## Tool Access - email: read/send (María's mailbox only) - crm: read/write (assigned accounts: 180 accounts, see accounts.list) - calendar: read/write (María's calendar) - product_catalog: read (T2 resource) - contracts: read (T3 resource, assigned accounts only) - payroll_api: DENIED - hr_records: DENIED - infrastructure: DENIED",
   "new": "- email: read/send (María's mailbox only) - crm: read/write (assigned accounts: 180 accounts, see accounts.list) - calendar: read/write (María's calendar) - product_catalog: read (T2 resource) - contracts: read (T3 resource, assigned accounts only) - payroll_api: DENIED - hr_records: DENIED - infrastructure: DENIED",
   "marked": "[-## Tool Access-] - email: read/send (María's mailbox only) - crm: read/write (assigned accounts: 180 accounts, see accounts.list) - calendar: read/write (María's calendar) - product_catalog: read (T2 resource) - contracts: read (T3 resource, assigned accounts only) - payroll_api: DENIED - hr_records: DENIED - infrastructure: DENIED"
  },
  {
   "section": "Escalation Rules",
   "old": null,
   "new": "## Escalation Rules",
   "marked": "{+## Escalation Rules+}"
  },
  {
   "section": "Escalation Rules",
   "old": "## Escalation Rules - Any request involving non-assigned accounts: query SALES-AGENT first - Any pricing commitment request: verify against approved pricing tiers - Any legal/contract language: flag for human review, do not commit ```",
   "new": "- Any request involving non-assigned accounts: query SALES-AGENT first - Any pricing commitment request: verify against approved pricing tiers - Any legal/contract language: flag for human review, do not commit ```",
   "marked": "[-## Escalation Rules-] - Any request involving non-assigned accounts: query SALES-AGENT first - Any pricing commitment request: verify against approved pricing tiers - Any legal/contract language: flag for human review, do not commit ```"
  },
  {
   "section": "9. Risks and Mitigations",
   "old": "## 8. Risks and Mitigations",
   "new": "## 9. Risks and Mitigations",
   "marked": "## [-8.-] {+9.+} Risks and Mitigations"
  },
  {
   "section": "9.1 The Curious Agent Problem",
   "old": "### 8.1 The Curious Agent Problem",
   "new": "### 9.1 The Curious Agent Problem",
   "marked": "### [-8.1-] {+9.1+} The Curious Agent Problem"
  },
  {
   "section": "9.1 The Curious Agent Problem",
   "old": null,
   "new": "**Mitigation:**",
   "marked": "{+**Mitigation:**+}"
  },
  {
   "section": "9.1 The Curious Agent Problem",
   "old": "**Mitigation:** - 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.",
   "new": "- 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.",
   "marked": "[-**Mitigation:**-] - 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."
  },
  {
   "section": "9.2 Inter-Agent Social Engineering",
   "old": "### 8.2 Inter-Agent Social Engineering",
   "new": "### 9.2 Inter-Agent Social Engineering",
   "marked": "### [-8.2-] {+9.2+} Inter-Agent Social Engineering"
  },
  {
   "section": "9.2 Inter-Agent Social Engineering",
   "old": null,
   "new": "**Mitigation:**",
   "marked": "{+**Mitigation:**+}"
  },
  {
   "section": "9.2 Inter-Agent Social Engineering",
   "old": "**Mitigation:** - 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. - **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 employee 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.",
   "marked": "[-**Mitigation:**-] - 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. - **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."
  },
  {
   "section": "9.3 Memory Persistence and Contamination",
   "old": "### 8.3 Memory Persistence and Contamination",
   "new": "### 9.3 Memory Persistence and Contamination",
   "marked": "### [-8.3-] {+9.3+} Memory Persistence and Contamination"
  },
  {
   "section": "9.3 Memory Persistence and Contamination",
   "old": null,
   "new": "**Mitigation:**",
   "marked": "{+**Mitigation:**+}"
  },
  {
   "section": "9.3 Memory Persistence and Contamination",
   "old": "**Mitigation:** - Semantic memory contamination scan (Section 6.3.4) targets this. Structured patterns trigger review (with the false-positive calibration described in Section 6.3.1). - Memory files tag entries as agent-generated vs. human-dictated. Human-dictated entries receive elevated scrutiny. - Employee training: \"Your agent is a company system. Information you share is subject to the same policies as company email.\"",
   "new": "- Semantic memory contamination scan (Section 7.3.4) targets this. Structured patterns trigger review (with the false-positive calibration described in Section 7.3.1). - Memory files tag entries as agent-generated vs. human-dictated. Human-dictated entries receive elevated scrutiny. - Employee training: \"Your agent is a company system. Information you share is subject to the same policies as company email.\"",
   "marked": "[-**Mitigation:**-] - Semantic memory contamination scan (Section [-6.3.4)-] {+7.3.4)+} targets this. Structured patterns trigger review (with the false-positive calibration described in Section [-6.3.1).-] {+7.3.1).+} - Memory files tag entries as agent-generated vs. human-dictated. Human-dictated entries receive elevated scrutiny. - Employee training: \"Your agent is a company system. Information you share is subject to the same policies as company email.\""
  },
  {
   "section": "9.4 Single Point of Failure: The Executive Agent",
   "old": "### 8.4 Single Point of Failure: The Executive Agent",
   "new": "### 9.4 Single Point of Failure: The Executive Agent",
   "marked": "### [-8.4-] {+9.4+} Single Point of Failure: The Executive Agent"
  },
  {
   "section": "9.4 Single Point of Failure: The Executive Agent",
   "old": null,
   "new": "**Mitigation:**",
   "marked": "{+**Mitigation:**+}"
  },
  {
   "section": "9.4 Single Point of Failure: The Executive Agent",
   "old": "**Mitigation:** - Isolated infrastructure with no external network access. Inputs arrive only through sanitized gateway channels. - Most aggressive behavioral monitoring. Outputs reviewed daily. - T5 data store uses additional encryption beyond filesystem permissions. - **STRATEGOS dead switch**: CEO can immediately suspend the executive agent and revert to human-only T5 access. - Two-person rule: STRATEGOS-generated summaries including T5 content require human review before delivery.",
   "new": "- Isolated infrastructure with no external network access. Inputs arrive only through sanitized gateway channels. - Most aggressive behavioral monitoring. Outputs reviewed daily. - T5 data store uses additional encryption beyond filesystem permissions. - **STRATEGOS dead switch**: CEO can immediately suspend the executive agent and revert to human-only T5 access. - Two-person rule: STRATEGOS-generated summaries including T5 content require human review before delivery.",
   "marked": "[-**Mitigation:**-] - Isolated infrastructure with no external network access. Inputs arrive only through sanitized gateway channels. - Most aggressive behavioral monitoring. Outputs reviewed daily. - T5 data store uses additional encryption beyond filesystem permissions. - **STRATEGOS dead switch**: CEO can immediately suspend the executive agent and revert to human-only T5 access. - Two-person rule: STRATEGOS-generated summaries including T5 content require human review before delivery."
  },
  {
   "section": "9.5 Model Capability Variance",
   "old": "### 8.5 Model Capability Variance",
   "new": "### 9.5 Model Capability Variance",
   "marked": "### [-8.5-] {+9.5+} Model Capability Variance"
  },
  {
   "section": "9.5 Model Capability Variance",
   "old": null,
   "new": "**Mitigation:**",
   "marked": "{+**Mitigation:**+}"
  },
  {
   "section": "9.5 Model Capability Variance",
   "old": "**Mitigation:** - 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 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.",
   "marked": "[-**Mitigation:**-] - 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."
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": "### 8.6 Failure Modes and Recovery",
   "new": "### 9.6 Failure Modes and Recovery",
   "marked": "### [-8.6-] {+9.6+} Failure Modes and Recovery"
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": null,
   "new": "**Department agent crash.** If SALES-AGENT becomes unavailable mid-coordination:",
   "marked": "{+**Department agent crash.** If SALES-AGENT becomes unavailable mid-coordination:+}"
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": "**Department agent crash.** If SALES-AGENT becomes unavailable mid-coordination: - Employee agents detect the failure when their messages receive `TIMEOUT` responses from the gateway. - Employee agents enter a **degraded mode**: they continue serving their human user with locally available data but cannot initiate cross-agent queries or receive updates. - The gateway queues incoming messages for the crashed department agent (up to queue capacity). - Automated restart: systemd watchdog restarts the department agent process. On restart, the agent replays queued messages. - If restart fails three times, STRATEGOS and IT-AGENT are alerted for manual intervention.",
   "new": "- Employee agents detect the failure when their messages receive `TIMEOUT` responses from the gateway. - Employee agents enter a **degraded mode**: they continue serving their human user with locally available data but cannot initiate cross-agent queries or receive updates. - The gateway queues incoming messages for the crashed department agent (up to queue capacity). - Automated restart: systemd watchdog restarts the department agent process. On restart, the agent replays queued messages. - If restart fails three times, STRATEGOS and IT-AGENT are alerted for manual intervention.",
   "marked": "[-**Department agent crash.** If SALES-AGENT becomes unavailable mid-coordination:-] - Employee agents detect the failure when their messages receive `TIMEOUT` responses from the gateway. - Employee agents enter a **degraded mode**: they continue serving their human user with locally available data but cannot initiate cross-agent queries or receive updates. - The gateway queues incoming messages for the crashed department agent (up to queue capacity). - Automated restart: systemd watchdog restarts the department agent process. On restart, the agent replays queued messages. - If restart fails three times, STRATEGOS and IT-AGENT are alerted for manual intervention."
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": null,
   "new": "**Memory file corruption.** If a compliance sweep detects inconsistency:",
   "marked": "{+**Memory file corruption.** If a compliance sweep detects inconsistency:+}"
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": "**Memory file corruption.** If a compliance sweep detects inconsistency: - The corrupted memory file is quarantined (moved to a review directory, replaced with the last known good backup). - The affected agent restarts with restored memory. Recent entries since the last backup are lost — an acceptable trade-off for integrity. - The corruption event is investigated: was it a disk error, a software bug, or a security incident?",
   "new": "- The corrupted memory file is quarantined (moved to a review directory, replaced with the last known good backup). - The affected agent restarts with restored memory. Recent entries since the last backup are lost — an acceptable trade-off for integrity. - The corruption event is investigated: was it a disk error, a software bug, or a security incident?",
   "marked": "[-**Memory file corruption.** If a compliance sweep detects inconsistency:-] - The corrupted memory file is quarantined (moved to a review directory, replaced with the last known good backup). - The affected agent restarts with restored memory. Recent entries since the last backup are lost — an acceptable trade-off for integrity. - The corruption event is investigated: was it a disk error, a software bug, or a security incident?"
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": null,
   "new": "**Nightly sweep failure.** If the compliance sweep crashes or times out:",
   "marked": "{+**Nightly sweep failure.** If the compliance sweep crashes or times out:+}"
  },
  {
   "section": "9.6 Failure Modes and Recovery",
   "old": "**Nightly sweep failure.** If the compliance sweep crashes or times out: - The sweep logs the failure and sends an immediate alert to the compliance officer. - A catch-up sweep runs at the next available window. - If two consecutive sweeps fail, all agents are suspended pending manual investigation.",
   "new": "- The sweep logs the failure and sends an immediate alert to the compliance officer. - A catch-up sweep runs at the next available window. - If two consecutive sweeps fail, all agents are suspended pending manual investigation.",
   "marked": "[-**Nightly sweep failure.** If the compliance sweep crashes or times out:-] - The sweep logs the failure and sends an immediate alert to the compliance officer. - A catch-up sweep runs at the next available window. - If two consecutive sweeps fail, all agents are suspended pending manual investigation."
  },
  {
   "section": "9.7 Model Updates and Behavioral Drift",
   "old": "### 8.7 Model Updates and Behavioral Drift",
   "new": "### 9.7 Model Updates and Behavioral Drift",
   "marked": "### [-8.7-] {+9.7+} Model Updates and Behavioral Drift"
  },
  {
   "section": "9.8 Real-Time Communication Channels",
   "old": "### 8.8 Real-Time Communication Channels",
   "new": "### 9.8 Real-Time Communication Channels",
   "marked": "### [-8.8-] {+9.8+} Real-Time Communication Channels"
  },
  {
   "section": "9.8 Real-Time Communication Channels",
   "old": "- **Chat platforms (Slack, Teams).** Treated as an additional data source. Agent tools include chat API access (read-only for the employee's channels). Messages are classified at the channel's configured tier. The department agent monitors department-wide channels. - **Phone calls and meetings.** If transcription is enabled (with employee consent per GDPR), transcripts are written to the agent's workspace and subject to the same clearance and compliance rules as any other document. Live call assistance requires streaming inference — a capability that increases infrastructure requirements (see Section 7.5 on resource limits). - **Video meetings.** Meeting recordings and transcripts follow the same classification and storage rules. The highest-clearance participant in a meeting determines the transcript's classification tier.",
   "new": "- **Chat platforms (Slack, Teams).** Treated as an additional data source. Agent tools include chat API access (read-only for the employee's channels). Messages are classified at the channel's configured tier. The department agent monitors department-wide channels. - **Phone calls and meetings.** If transcription is enabled (with employee consent per GDPR), transcripts are written to the agent's workspace and subject to the same clearance and compliance rules as any other document. Live call assistance requires streaming inference — a capability that increases infrastructure requirements (see Section 8.5 on resource limits). - **Video meetings.** Meeting recordings and transcripts follow the same classification and storage rules. The highest-clearance participant in a meeting determines the transcript's classification tier.",
   "marked": "- **Chat platforms (Slack, Teams).** Treated as an additional data source. Agent tools include chat API access (read-only for the employee's channels). Messages are classified at the channel's configured tier. The department agent monitors department-wide channels. - **Phone calls and meetings.** If transcription is enabled (with employee consent per GDPR), transcripts are written to the agent's workspace and subject to the same clearance and compliance rules as any other document. Live call assistance requires streaming inference — a capability that increases infrastructure requirements (see Section [-7.5-] {+8.5+} on resource limits). - **Video meetings.** Meeting recordings and transcripts follow the same classification and storage rules. The highest-clearance participant in a meeting determines the transcript's classification tier."
  },
  {
   "section": "9.9 Summary Risk Table",
   "old": "### 8.9 Summary Risk Table",
   "new": "### 9.9 Summary Risk Table",
   "marked": "### [-8.9-] {+9.9+} Summary Risk Table"
  },
  {
   "section": "9.9 Summary Risk Table",
   "old": "| Risk | Severity | Likelihood | Primary Mitigation | |------|----------|------------|-------------------| | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |",
   "new": "| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |",
   "marked": "| Risk | Severity | Likelihood | Primary Mitigation | [-|------|----------|------------|-------------------|-] {+| --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- |+} | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |"
  },
  {
   "section": "10. Phased Deployment Strategy",
   "old": "## 9. Phased Deployment Strategy",
   "new": "## 10. Phased Deployment Strategy",
   "marked": "## [-9.-] {+10.+} Phased Deployment Strategy"
  },
  {
   "section": "Phase 0: Infrastructure and Legal (Weeks 1-4)",
   "old": null,
   "new": "### Phase 0: Infrastructure and Legal (Weeks 1-4)",
   "marked": "{+### Phase 0: Infrastructure and Legal (Weeks 1-4)+}"
  },
  {
   "section": "Phase 0: Infrastructure and Legal (Weeks 1-4)",
   "old": "### Phase 0: Infrastructure and Legal (Weeks 1-4) - Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete.",
   "new": "- Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete.",
   "marked": "[-### Phase 0: Infrastructure and Legal (Weeks 1-4)-] - Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete."
  },
  {
   "section": "Phase 1: Single Department, T2 Only (Weeks 5-10)",
   "old": null,
   "new": "### Phase 1: Single Department, T2 Only (Weeks 5-10)",
   "marked": "{+### Phase 1: Single Department, T2 Only (Weeks 5-10)+}"
  },
  {
   "section": "Phase 1: Single Department, T2 Only (Weeks 5-10)",
   "old": "### Phase 1: Single Department, T2 Only (Weeks 5-10) - Deploy SALES-AGENT + 3-4 pilot sales agents (volunteers) with T2 clearance only. - No restricted data access, no cross-agent coordination beyond shared product catalog. - Focus: employee adoption, agent personalization, tool integration testing. - **Gate:** >80% daily active use by pilot users, zero compliance flags, positive user feedback.",
   "new": "- Deploy SALES-AGENT + 3-4 pilot sales agents (volunteers) with T2 clearance only. - No restricted data access, no cross-agent coordination beyond shared product catalog. - Focus: employee adoption, agent personalization, tool integration testing. - **Gate:** >80% daily active use by pilot users, zero compliance flags, positive user feedback.",
   "marked": "[-### Phase 1: Single Department, T2 Only (Weeks 5-10)-] - Deploy SALES-AGENT + 3-4 pilot sales agents (volunteers) with T2 clearance only. - No restricted data access, no cross-agent coordination beyond shared product catalog. - Focus: employee adoption, agent personalization, tool integration testing. - **Gate:** >80% daily active use by pilot users, zero compliance flags, positive user feedback."
  },
  {
   "section": "Phase 2: Single Department, Full Clearance (Weeks 11-18)",
   "old": null,
   "new": "### Phase 2: Single Department, Full Clearance (Weeks 11-18)",
   "marked": "{+### Phase 2: Single Department, Full Clearance (Weeks 11-18)+}"
  },
  {
   "section": "Phase 2: Single Department, Full Clearance (Weeks 11-18)",
   "old": "### Phase 2: Single Department, Full Clearance (Weeks 11-18) - Raise pilot agents to T3 clearance. Enable customer ownership routing, cross-agent history queries, competitive intelligence push. - Deploy full compliance sweep infrastructure. - SALES-AGENT performs T4 redaction via template pipeline. - **Gate:** Compliance sweep clean for 4 consecutive weeks, redaction pipeline validated by management review, coordination demonstrably improving customer interactions.",
   "new": "- Raise pilot agents to T3 clearance. Enable customer ownership routing, cross-agent history queries, competitive intelligence push. - Deploy full compliance sweep infrastructure. - SALES-AGENT performs T4 redaction via template pipeline. - **Gate:** Compliance sweep clean for 4 consecutive weeks, redaction pipeline validated by management review, coordination demonstrably improving customer interactions.",
   "marked": "[-### Phase 2: Single Department, Full Clearance (Weeks 11-18)-] - Raise pilot agents to T3 clearance. Enable customer ownership routing, cross-agent history queries, competitive intelligence push. - Deploy full compliance sweep infrastructure. - SALES-AGENT performs T4 redaction via template pipeline. - **Gate:** Compliance sweep clean for 4 consecutive weeks, redaction pipeline validated by management review, coordination demonstrably improving customer interactions."
  },
  {
   "section": "Phase 3: Multi-Department (Weeks 19-30)",
   "old": null,
   "new": "### Phase 3: Multi-Department (Weeks 19-30)",
   "marked": "{+### Phase 3: Multi-Department (Weeks 19-30)+}"
  },
  {
   "section": "Phase 3: Multi-Department (Weeks 19-30)",
   "old": "### Phase 3: Multi-Department (Weeks 19-30) - Deploy IT-AGENT, HR-AGENT, FINANCE-AGENT with respective employee agents. - Enable STRATEGOS for executive oversight. - Cross-department communication limited to STRATEGOS-mediated queries. - **Gate:** All departments operational, cross-department queries functioning, weekly audit reports stable.",
   "new": "- Deploy IT-AGENT, HR-AGENT, FINANCE-AGENT with respective employee agents. - Enable STRATEGOS for executive oversight. - Cross-department communication limited to STRATEGOS-mediated queries. - **Gate:** All departments operational, cross-department queries functioning, weekly audit reports stable.",
   "marked": "[-### Phase 3: Multi-Department (Weeks 19-30)-] - Deploy IT-AGENT, HR-AGENT, FINANCE-AGENT with respective employee agents. - Enable STRATEGOS for executive oversight. - Cross-department communication limited to STRATEGOS-mediated queries. - **Gate:** All departments operational, cross-department queries functioning, weekly audit reports stable."
  },
  {
   "section": "Phase 4: Full Operation (Week 31+)",
   "old": null,
   "new": "### Phase 4: Full Operation (Week 31+)",
   "marked": "{+### Phase 4: Full Operation (Week 31+)+}"
  },
  {
   "section": "Phase 4: Full Operation (Week 31+)",
   "old": "### Phase 4: Full Operation (Week 31+) - All employees have agents. Full clearance model active. - Federated channels for cross-department structured data sharing. - Continuous monitoring, quarterly red-team exercises.",
   "new": "- All employees have agents. Full clearance model active. - Federated channels for cross-department structured data sharing. - Continuous monitoring, quarterly red-team exercises.",
   "marked": "[-### Phase 4: Full Operation (Week 31+)-] - All employees have agents. Full clearance model active. - Federated channels for cross-department structured data sharing. - Continuous monitoring, quarterly red-team exercises."
  },
  {
   "section": "Success Metrics",
   "old": null,
   "new": "### Success Metrics",
   "marked": "{+### Success Metrics+}"
  },
  {
   "section": "Success Metrics",
   "old": "### Success Metrics - **Adoption:** Daily active usage rate >75% after 90 days. - **Compliance:** <2 quarantine events per quarter after Phase 3. - **Value:** Measurable improvement in customer response time, reduced information request escalations, positive employee survey results.",
   "new": "- **Adoption:** Daily active usage rate >75% after 90 days. - **Compliance:** <2 quarantine events per quarter after Phase 3. - **Value:** Measurable improvement in customer response time, reduced information request escalations, positive employee survey results.",
   "marked": "[-### Success Metrics-] - **Adoption:** Daily active usage rate >75% after 90 days. - **Compliance:** <2 quarantine events per quarter after Phase 3. - **Value:** Measurable improvement in customer response time, reduced information request escalations, positive employee survey results."
  },
  {
   "section": "10.1 Evaluation Agenda Before Full-Scale Rollout",
   "old": "### 9.1 Evaluation Agenda Before Full-Scale Rollout",
   "new": "### 10.1 Evaluation Agenda Before Full-Scale Rollout",
   "marked": "### [-9.1-] {+10.1+} Evaluation Agenda Before Full-Scale Rollout"
  },
  {
   "section": "11. Future Directions",
   "old": "## 10. Future Directions",
   "new": "## 11. Future Directions",
   "marked": "## [-10.-] {+11.+} Future Directions"
  },
  {
   "section": "11.1 Scaling Beyond the Family Business",
   "old": "### 10.1 Scaling Beyond the Family Business",
   "new": "### 11.1 Scaling Beyond the Family Business",
   "marked": "### [-10.1-] {+11.1+} Scaling Beyond the Family Business"
  },
  {
   "section": "11.2 Integration with Enterprise Systems",
   "old": "### 10.2 Integration with Enterprise Systems",
   "new": "### 11.2 Integration with Enterprise Systems",
   "marked": "### [-10.2-] {+11.2+} Integration with Enterprise Systems"
  },
  {
   "section": "11.2 Integration with Enterprise Systems",
   "old": null,
   "new": "Full deployment requires integration with:",
   "marked": "{+Full deployment requires integration with:+}"
  },
  {
   "section": "11.2 Integration with Enterprise Systems",
   "old": "Full deployment requires integration with: - **ERP systems** (SAP, Oracle, Dynamics): Agent tools querying ERP APIs, clearance mapped to ERP role-based access control. - **CRM systems** (Salesforce, HubSpot): Native CRM integration replacing filesystem paths with API calls. - **Active Directory / LDAP**: Agent clearance auto-provisioned from AD group membership. - **Ticketing systems** (Jira, ServiceNow): IT and production agent coordination.",
   "new": "- **ERP systems** (SAP, Oracle, Dynamics): Agent tools querying ERP APIs, clearance mapped to ERP role-based access control. - **CRM systems** (Salesforce, HubSpot): Native CRM integration replacing filesystem paths with API calls. - **Active Directory / LDAP**: Agent clearance auto-provisioned from AD group membership. - **Ticketing systems** (Jira, ServiceNow): IT and production agent coordination.",
   "marked": "[-Full deployment requires integration with:-] - **ERP systems** (SAP, Oracle, Dynamics): Agent tools querying ERP APIs, clearance mapped to ERP role-based access control. - **CRM systems** (Salesforce, HubSpot): Native CRM integration replacing filesystem paths with API calls. - **Active Directory / LDAP**: Agent clearance auto-provisioned from AD group membership. - **Ticketing systems** (Jira, ServiceNow): IT and production agent coordination."
  },
  {
   "section": "11.3 Federated Agent Networks Across Companies",
   "old": "### 10.3 Federated Agent Networks Across Companies",
   "new": "### 11.3 Federated Agent Networks Across Companies",
   "marked": "### [-10.3-] {+11.3+} Federated Agent Networks Across Companies"
  },
  {
   "section": "11.4 Lightweight Alternative — Role Switching for Small Organizations",
   "old": null,
   "new": "### 11.4 Lightweight Alternative — Role Switching for Small Organizations",
   "marked": "{+### 11.4 Lightweight Alternative — Role Switching for Small Organizations+}"
  },
  {
   "section": "11.4 Lightweight Alternative — Role Switching for Small Organizations",
   "old": null,
   "new": "The full multi-agent deployment is not the only point on the design space, and for smaller organizations it may be overkill. The single-agent role-switching approach (Section 2.4; Tan, 2026) can plausibly capture much of HIVEMIND's coordination benefit at a fraction of the cost: one process, one model context, several role-specific prompt files swapped in as the task demands. For an organization of fewer than roughly twenty roles, where agents rarely need to run concurrently and a single person often wears several hats, role switching may deliver the bulk of the value at a small fraction of the infrastructure and operating cost.",
   "marked": "{+The full multi-agent deployment is not the only point on the design space, and for smaller organizations it may be overkill. The single-agent role-switching approach (Section 2.4; Tan, 2026) can plausibly capture much of HIVEMIND's coordination benefit at a fraction of the cost: one process, one model context, several role-specific prompt files swapped in as the task demands. For an organization of fewer than roughly twenty roles, where agents rarely need to run concurrently and a single person often wears several hats, role switching may deliver the bulk of the value at a small fraction of the infrastructure and operating cost.+}"
  },
  {
   "section": "11.4 Lightweight Alternative — Role Switching for Small Organizations",
   "old": null,
   "new": "The full multi-agent approach earns its cost when three conditions hold simultaneously: agents must operate **concurrently** (a salesperson and an IT technician working at the same moment), each must maintain **persistent independent state** (private memory that does not bleed across roles), and — decisively for HIVEMIND — the deployment must enforce **clearance boundaries that a single shared context cannot provide**. Role switching offers no real isolation: a single agent that has read T4 data in one role still holds it in context when it switches to a T2 role. For any organization where the confidentiality lattice is the point, separate processes under separate Linux users are not an optimization but a requirement. The decision rule is therefore not \"how many employees\" but \"do roles need to be isolated from each other's information\" — and once they do, HIVEMIND's per-user enforcement is the reason to pay for it.",
   "marked": "{+The full multi-agent approach earns its cost when three conditions hold simultaneously: agents must operate **concurrently** (a salesperson and an IT technician working at the same moment), each must maintain **persistent independent state** (private memory that does not bleed across roles), and — decisively for HIVEMIND — the deployment must enforce **clearance boundaries that a single shared context cannot provide**. Role switching offers no real isolation: a single agent that has read T4 data in one role still holds it in context when it switches to a T2 role. For any organization where the confidentiality lattice is the point, separate processes under separate Linux users are not an optimization but a requirement. The decision rule is therefore not \"how many employees\" but \"do roles need to be isolated from each other's information\" — and once they do, HIVEMIND's per-user enforcement is the reason to pay for it.+}"
  },
  {
   "section": "11.5 The Role of NemoClaw and OpenShell",
   "old": "### 10.4 The Role of NemoClaw and OpenShell",
   "new": "### 11.5 The Role of NemoClaw and OpenShell",
   "marked": "### [-10.4-] {+11.5+} The Role of NemoClaw and OpenShell"
  },
  {
   "section": "11.6 Performance and Cost Estimates",
   "old": "### 10.5 Performance and Cost Estimates",
   "new": "### 11.6 Performance and Cost Estimates",
   "marked": "### [-10.5-] {+11.6+} Performance and Cost Estimates"
  },
  {
   "section": "11.6 Performance and Cost Estimates",
   "old": "| Component | Specification | Estimated Cost | |-----------|--------------|----------------| | Inference server | 2× NVIDIA A100 80GB (or equivalent) for 70B model | €25,000-35,000 | | Application server | 64-core CPU, 256GB RAM, 4TB NVMe | €8,000-12,000 | | Backup storage | 10TB encrypted NAS | €2,000-3,000 | | Network | Gigabit internal, redundant uplink | existing infrastructure | | **Total hardware** | | **€35,000-50,000** | | Annual operating cost | Power (~3kW), cooling, maintenance, sysadmin time | €15,000-25,000/yr |",
   "new": "| Component | Specification | Estimated Cost | | --------------------- | ------------------------------------------------- | ----------------------- | | Inference server | 2× NVIDIA A100 80GB (or equivalent) for 70B model | €25,000-35,000 | | Application server | 64-core CPU, 256GB RAM, 4TB NVMe | €8,000-12,000 | | Backup storage | 10TB encrypted NAS | €2,000-3,000 | | Network | Gigabit internal, redundant uplink | existing infrastructure | | **Total hardware** | | **€35,000-50,000** | | Annual operating cost | Power (~3kW), cooling, maintenance, sysadmin time | €15,000-25,000/yr |",
   "marked": "| Component | Specification | Estimated Cost | [-|-----------|--------------|----------------|-] {+| --------------------- | ------------------------------------------------- | ----------------------- |+} | Inference server | 2× NVIDIA A100 80GB (or equivalent) for 70B model | €25,000-35,000 | | Application server | 64-core CPU, 256GB RAM, 4TB NVMe | €8,000-12,000 | | Backup storage | 10TB encrypted NAS | €2,000-3,000 | | Network | Gigabit internal, redundant uplink | existing infrastructure | | **Total hardware** | | **€35,000-50,000** | | Annual operating cost | Power (~3kW), cooling, maintenance, sysadmin time | €15,000-25,000/yr |"
  },
  {
   "section": "10.6 Toward Organizational Cognition",
   "old": "### 10.6 Toward Organizational Cognition",
   "new": null,
   "marked": "[-### 10.6 Toward Organizational Cognition-]"
  },
  {
   "section": "11.7 Toward Organizational Cognition",
   "old": null,
   "new": "### 11.7 Toward Organizational Cognition",
   "marked": "{+### 11.7 Toward Organizational Cognition+}"
  },
  {
   "section": "11. Limitations",
   "old": "## 11. Limitations",
   "new": null,
   "marked": "[-## 11. Limitations-]"
  },
  {
   "section": "12. Limitations",
   "old": null,
   "new": "## 12. Limitations",
   "marked": "{+## 12. Limitations+}"
  },
  {
   "section": "12. Limitations",
   "old": "2. **Redaction reliability is unproven.** The template-based redaction pipeline (Section 4.4) mitigates but does not eliminate leakage risk. No formal information-theoretic bounds on leakage are established. The templates themselves must be authored by humans — their quality and completeness are a manual bottleneck.",
   "new": "2. **Redaction reliability is unproven.** The template-based redaction pipeline (Section 5.4) mitigates but does not eliminate leakage risk. No formal information-theoretic bounds on leakage are established. The templates themselves must be authored by humans — their quality and completeness are a manual bottleneck.",
   "marked": "2. **Redaction reliability is unproven.** The template-based redaction pipeline (Section [-4.4)-] {+5.4)+} mitigates but does not eliminate leakage risk. No formal information-theoretic bounds on leakage are established. The templates themselves must be authored by humans — their quality and completeness are a manual bottleneck."
  },
  {
   "section": "12. Limitations",
   "old": "3. **Cost estimates are approximate.** The performance figures in Section 10.5 are back-of-envelope calculations that have not been validated against actual deployment. Real-world usage patterns may differ significantly.",
   "new": "3. **Cost estimates are approximate.** The performance figures in Section 11.6 are back-of-envelope calculations that have not been validated against actual deployment. Real-world usage patterns may differ significantly.",
   "marked": "3. **Cost estimates are approximate.** The performance figures in Section [-10.5-] {+11.6+} are back-of-envelope calculations that have not been validated against actual deployment. Real-world usage patterns may differ significantly."
  },
  {
   "section": "12. Limitations",
   "old": "7. **No user study.** Employee adoption challenges (Section 5.2) are discussed theoretically. Actual user acceptance, trust dynamics, and behavioral adaptation to monitored AI agents have not been studied.",
   "new": "7. **No user study.** Employee adoption challenges (Section 6.2) are discussed theoretically. Actual user acceptance, trust dynamics, and behavioral adaptation to monitored AI agents have not been studied.",
   "marked": "7. **No user study.** Employee adoption challenges (Section [-5.2)-] {+6.2)+} are discussed theoretically. Actual user acceptance, trust dynamics, and behavioral adaptation to monitored AI agents have not been studied."
  },
  {
   "section": "12. Conclusions",
   "old": "## 12. Conclusions",
   "new": null,
   "marked": "[-## 12. Conclusions-]"
  },
  {
   "section": "13. Conclusions",
   "old": null,
   "new": "## 13. Conclusions",
   "marked": "{+## 13. Conclusions+}"
  },
  {
   "section": "13. Conclusions",
   "old": null,
   "new": "9. **The Per-Agent Cognitive Stack and Its Tiering.** A specification of which J-series capabilities each agent tier runs (Table 1) and a federated, clearance-mediated model for retrieval across agents — the point at which HIVEMIND becomes the deployment paper that integrates and stress-tests the rest of the series.",
   "marked": "{+9. **The Per-Agent Cognitive Stack and Its Tiering.** A specification of which J-series capabilities each agent tier runs (Table 1) and a federated, clearance-mediated model for retrieval across agents — the point at which HIVEMIND becomes the deployment paper that integrates and stress-tests the rest of the series.+}"
  },
  {
   "section": "13. Conclusions",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "References",
   "old": "Abbadi, I., & Martin, A. (2011). *Trust and Privacy in Cloud Information Management*. Proceedings of the 5th International Conference on Trust Management.",
   "new": "Abbadi, I., & Martin, A. (2011). _Trust and Privacy in Cloud Information Management_. Proceedings of the 5th International Conference on Trust Management.",
   "marked": "Abbadi, I., & Martin, A. (2011). [-*Trust-] {+_Trust+} and Privacy in Cloud Information [-Management*.-] {+Management_.+} Proceedings of the 5th International Conference on Trust Management."
  },
  {
   "section": "References",
   "old": "Agrawal, M., Johnson, S., & Sager, T. (2022). Multi-agent information flow control in distributed AI systems. *arXiv preprint arXiv:2204.09312*.",
   "new": "Agrawal, M., Johnson, S., & Sager, T. (2022). Multi-agent information flow control in distributed AI systems. _arXiv preprint arXiv:2204.09312_.",
   "marked": "Agrawal, M., Johnson, S., & Sager, T. (2022). Multi-agent information flow control in distributed AI systems. [-*arXiv-] {+_arXiv+} preprint [-arXiv:2204.09312*.-] {+arXiv:2204.09312_.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Anthropic. (2026). Claude Code: coordinator mode and sub-agent execution models. Source analysis of @anthropic-ai/claude-code, observed via exposed npm source map.",
   "marked": "{+Anthropic. (2026). Claude Code: coordinator mode and sub-agent execution models. Source analysis of @anthropic-ai/claude-code, observed via exposed npm source map.+}"
  },
  {
   "section": "References",
   "old": "Brewer, D. F. C., & Nash, M. J. (1989). The Chinese Wall security policy. *Proceedings of the IEEE Symposium on Security and Privacy*, 206–214.",
   "new": "Brewer, D. F. C., & Nash, M. J. (1989). The Chinese Wall security policy. _Proceedings of the IEEE Symposium on Security and Privacy_, 206–214.",
   "marked": "Brewer, D. F. C., & Nash, M. J. (1989). The Chinese Wall security policy. [-*Proceedings-] {+_Proceedings+} of the IEEE Symposium on Security and [-Privacy*,-] {+Privacy_,+} 206–214."
  },
  {
   "section": "References",
   "old": "Brynjolfsson, E., & McAfee, A. (2014). *The Second Machine Age: Work, Progress, and Prosperity in a Time of Brilliant Technologies*. W. W. Norton.",
   "new": "Brynjolfsson, E., & McAfee, A. (2014). _The Second Machine Age: Work, Progress, and Prosperity in a Time of Brilliant Technologies_. W. W. Norton.",
   "marked": "Brynjolfsson, E., & McAfee, A. (2014). [-*The-] {+_The+} Second Machine Age: Work, Progress, and Prosperity in a Time of Brilliant [-Technologies*.-] {+Technologies_.+} W. W. Norton."
  },
  {
   "section": "References",
   "old": "Davenport, T. H., & Ronanki, R. (2018). Artificial intelligence for the real world. *Harvard Business Review, 96*(1), 108–116.",
   "new": "Davenport, T. H., & Ronanki, R. (2018). Artificial intelligence for the real world. _Harvard Business Review, 96_(1), 108–116.",
   "marked": "Davenport, T. H., & Ronanki, R. (2018). Artificial intelligence for the real world. [-*Harvard-] {+_Harvard+} Business Review, [-96*(1),-] {+96_(1),+} 108–116."
  },
  {
   "section": "References",
   "old": "European Parliament and Council. (2016). *Regulation (EU) 2016/679 (General Data Protection Regulation)*. Official Journal of the European Union.",
   "new": "European Parliament and Council. (2016). _Regulation (EU) 2016/679 (General Data Protection Regulation)_. Official Journal of the European Union.",
   "marked": "European Parliament and Council. (2016). [-*Regulation-] {+_Regulation+} (EU) 2016/679 (General Data Protection [-Regulation)*.-] {+Regulation)_.+} Official Journal of the European Union."
  },
  {
   "section": "References",
   "old": "European Parliament. (2024). *Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (AI Act)*. Official Journal of the European Union.",
   "new": "European Parliament. (2024). _Regulation (EU) 2024/1689 laying down harmonised rules on artificial intelligence (AI Act)_. Official Journal of the European Union.",
   "marked": "European Parliament. (2024). [-*Regulation-] {+_Regulation+} (EU) 2024/1689 laying down harmonised rules on artificial intelligence (AI [-Act)*.-] {+Act)_.+} Official Journal of the European Union."
  },
  {
   "section": "References",
   "old": "Ferraiolo, D. F., & Kuhn, D. R. (1992). Role-based access controls. *Proceedings of the 15th National Computer Security Conference*, 554–563.",
   "new": "Ferraiolo, D. F., & Kuhn, D. R. (1992). Role-based access controls. _Proceedings of the 15th National Computer Security Conference_, 554–563.",
   "marked": "Ferraiolo, D. F., & Kuhn, D. R. (1992). Role-based access controls. [-*Proceedings-] {+_Proceedings+} of the 15th National Computer Security [-Conference*,-] {+Conference_,+} 554–563."
  },
  {
   "section": "References",
   "old": "Garg, A., & Pfleeger, C. P. (2020). Information security policy in the enterprise: A framework for compliance. *Computers & Security, 92*, 101776.",
   "new": "Garg, A., & Pfleeger, C. P. (2020). Information security policy in the enterprise: A framework for compliance. _Computers & Security, 92_, 101776.",
   "marked": "Garg, A., & Pfleeger, C. P. (2020). Information security policy in the enterprise: A framework for compliance. [-*Computers-] {+_Computers+} & Security, [-92*,-] {+92_,+} 101776."
  },
  {
   "section": "References",
   "old": "Gunning, D., & Aha, D. (2019). DARPA's explainable artificial intelligence (XAI) program. *AI Magazine, 40*(2), 44–58.",
   "new": "Gunning, D., & Aha, D. (2019). DARPA's explainable artificial intelligence (XAI) program. _AI Magazine, 40_(2), 44–58.",
   "marked": "Gunning, D., & Aha, D. (2019). DARPA's explainable artificial intelligence (XAI) program. [-*AI-] {+_AI+} Magazine, [-40*(2),-] {+40_(2),+} 44–58."
  },
  {
   "section": "References",
   "old": null,
   "new": "Paperclip. (2026). _Paperclip: open-source orchestration for zero-human companies_. https://github.com/paperclip-ai/paperclip",
   "marked": "{+Paperclip. (2026). _Paperclip: open-source orchestration for zero-human companies_. https://github.com/paperclip-ai/paperclip+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Tan, G. (2026). _GStack: a development-process framework for AI-assisted solo developers_. https://github.com/garytan/gstack",
   "marked": "{+Tan, G. (2026). _GStack: a development-process framework for AI-assisted solo developers_. https://github.com/garytan/gstack+}"
  },
  {
   "section": "References",
   "old": "Denning, D. E. (1976). A lattice model of secure information flow. *Communications of the ACM, 19*(5), 236–243.",
   "new": "Denning, D. E. (1976). A lattice model of secure information flow. _Communications of the ACM, 19_(5), 236–243.",
   "marked": "Denning, D. E. (1976). A lattice model of secure information flow. [-*Communications-] {+_Communications+} of the ACM, [-19*(5),-] {+19_(5),+} 236–243."
  },
  {
   "section": "References",
   "old": "NIST. (2023). *Artificial Intelligence Risk Management Framework (AI RMF 1.0)*. National Institute of Standards and Technology.",
   "new": "NIST. (2023). _Artificial Intelligence Risk Management Framework (AI RMF 1.0)_. National Institute of Standards and Technology.",
   "marked": "NIST. (2023). [-*Artificial-] {+_Artificial+} Intelligence Risk Management Framework (AI RMF [-1.0)*.-] {+1.0)_.+} National Institute of Standards and Technology."
  },
  {
   "section": "References",
   "old": "Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. *Advances in Neural Information Processing Systems, 33*, 9459–9474.",
   "new": "Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. _Advances in Neural Information Processing Systems, 33_, 9459–9474.",
   "marked": "Lewis, P., et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. [-*Advances-] {+_Advances+} in Neural Information Processing Systems, [-33*,-] {+33_,+} 9459–9474."
  },
  {
   "section": "References",
   "old": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. *Psychological Review, 102*(3), 419–457.",
   "new": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. _Psychological Review, 102_(3), 419–457.",
   "marked": "McClelland, J. L., McNaughton, B. L., & O'Reilly, R. C. (1995). Why there are complementary learning systems in the hippocampus and neocortex. [-*Psychological-] {+_Psychological+} Review, [-102*(3),-] {+102_(3),+} 419–457."
  },
  {
   "section": "References",
   "old": "NIST. (2020). *Zero Trust Architecture* (NIST Special Publication 800-207). National Institute of Standards and Technology.",
   "new": "NIST. (2020). _Zero Trust Architecture_ (NIST Special Publication 800-207). National Institute of Standards and Technology.",
   "marked": "NIST. (2020). [-*Zero-] {+_Zero+} Trust [-Architecture*-] {+Architecture_+} (NIST Special Publication 800-207). National Institute of Standards and Technology."
  },
  {
   "section": "References",
   "old": "Packer, C., et al. (2023). MemGPT: Towards LLMs as operating systems. *arXiv preprint arXiv:2310.08560*.",
   "new": "Packer, C., et al. (2023). MemGPT: Towards LLMs as operating systems. _arXiv preprint arXiv:2310.08560_.",
   "marked": "Packer, C., et al. (2023). MemGPT: Towards LLMs as operating systems. [-*arXiv-] {+_arXiv+} preprint [-arXiv:2310.08560*.-] {+arXiv:2310.08560_.+}"
  },
  {
   "section": "References",
   "old": "Park, J. S., et al. (2023). Generative agents: Interactive simulacra of human behavior. *Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology*.",
   "new": "Park, J. S., et al. (2023). Generative agents: Interactive simulacra of human behavior. _Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology_.",
   "marked": "Park, J. S., et al. (2023). Generative agents: Interactive simulacra of human behavior. [-*Proceedings-] {+_Proceedings+} of the 36th Annual ACM Symposium on User Interface Software and [-Technology*.-] {+Technology_.+}"
  },
  {
   "section": "References",
   "old": "Russell, S., & Norvig, P. (2020). *Artificial Intelligence: A Modern Approach* (4th ed.). Pearson.",
   "new": "Russell, S., & Norvig, P. (2020). _Artificial Intelligence: A Modern Approach_ (4th ed.). Pearson.",
   "marked": "Russell, S., & Norvig, P. (2020). [-*Artificial-] {+_Artificial+} Intelligence: A Modern [-Approach*-] {+Approach_+} (4th ed.). Pearson."
  },
  {
   "section": "References",
   "old": "Saltzer, J. H., & Schroeder, M. D. (1975). The protection of information in computer systems. *Proceedings of the IEEE, 63*(9), 1278–1308.",
   "new": "Saltzer, J. H., & Schroeder, M. D. (1975). The protection of information in computer systems. _Proceedings of the IEEE, 63_(9), 1278–1308.",
   "marked": "Saltzer, J. H., & Schroeder, M. D. (1975). The protection of information in computer systems. [-*Proceedings-] {+_Proceedings+} of the IEEE, [-63*(9),-] {+63_(9),+} 1278–1308."
  },
  {
   "section": "References",
   "old": "Serra, O. (2026, January). J1: Memory Architecture for Persistent AI Assistants. Internal J-series working paper.",
   "new": "Serra, O. (2026, January). J1: ENGRAM — Memory Architecture for Persistent AI Assistants. Internal J-series working paper.",
   "marked": "Serra, O. (2026, January). J1: {+ENGRAM —+} Memory Architecture for Persistent AI Assistants. Internal J-series working paper."
  },
  {
   "section": "References",
   "old": null,
   "new": "Serra, O. (2026). J2: HIPPOCAMPUS — Retrieval Indexing for Agent Memory. Internal J-series working paper.",
   "marked": "{+Serra, O. (2026). J2: HIPPOCAMPUS — Retrieval Indexing for Agent Memory. Internal J-series working paper.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Serra, O. (2026). J4: CORTEX — Persona Definition and Stable Agent Identity. Internal J-series working paper.",
   "marked": "{+Serra, O. (2026). J4: CORTEX — Persona Definition and Stable Agent Identity. Internal J-series working paper.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Serra, O. (2026). J5: CEREBELLUM — Nightly Self-Improvement for Language-Model Agents. Internal J-series working paper.",
   "marked": "{+Serra, O. (2026). J5: CEREBELLUM — Nightly Self-Improvement for Language-Model Agents. Internal J-series working paper.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Serra, O. (2026). J6: SYNAPSE — Multi-Model Deliberation for High-Stakes Decisions. Internal J-series working paper.",
   "marked": "{+Serra, O. (2026). J6: SYNAPSE — Multi-Model Deliberation for High-Stakes Decisions. Internal J-series working paper.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Serra, O. (2026). J9: AEGIS — A Layered Security Framework for Agent Deployments. Internal J-series working paper.",
   "marked": "{+Serra, O. (2026). J9: AEGIS — A Layered Security Framework for Agent Deployments. Internal J-series working paper.+}"
  },
  {
   "section": "References",
   "old": "Wang, G., et al. (2024). A survey on large language model based autonomous agents. *Frontiers of Computer Science, 18*(6), 186345.",
   "new": "Wang, G., et al. (2024). A survey on large language model based autonomous agents. _Frontiers of Computer Science, 18_(6), 186345.",
   "marked": "Wang, G., et al. (2024). A survey on large language model based autonomous agents. [-*Frontiers-] {+_Frontiers+} of Computer Science, [-18*(6),-] {+18_(6),+} 186345."
  },
  {
   "section": "References",
   "old": "Wooldridge, M. (2009). *An Introduction to MultiAgent Systems* (2nd ed.). Wiley.",
   "new": "Wooldridge, M. (2009). _An Introduction to MultiAgent Systems_ (2nd ed.). Wiley.",
   "marked": "Wooldridge, M. (2009). [-*An-] {+_An+} Introduction to MultiAgent [-Systems*-] {+Systems_+} (2nd ed.). Wiley."
  },
  {
   "section": "References",
   "old": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version 1.1 | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*",
   "new": null,
   "marked": "[-*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version 1.1 | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*-]"
  },
  {
   "section": "References",
   "old": null,
   "new": "_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _J-series paper J10 | Version 1.2 | June 2, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_",
   "marked": "{+_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _J-series paper J10 | Version 1.2 | June 2, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_+}"
  }
 ]
}
