{
 "paper": "corporate-swarm",
 "a": "1.0",
 "b": "1.0.1",
 "summary": "From v1.0 (17 Mar) to v1.0.1 (17 Mar): 8,850 words to 9,741 words, 5,345 words in new or rewritten paragraphs and 4,454 taken out, 404 paragraphs changed.",
 "note": {
  "title": "Rebuilt after the first review; formal security model, cost, rollout plan",
  "kind": "",
  "body": "## Summary\n\nAbout half of the text was rewritten the same day, after a first review scored the paper 7.5 out of 10 and asked for formal grounding, cost, failure recovery, user adoption and an honest limits section. The paper grew from 58 to 79 sections.\n\n- New formal security model based on Bell-LaPadula, the classic \"no read up, no write down\" rule.\n- New sections on the EU AI Act, a data protection impact assessment, and how staff will adopt the system.\n- New operations chapters: the protocol between agents, process isolation, debugging, version control of settings, backups.\n- New failure modes, model updates that change behaviour, and real-time channels.\n- A phased rollout plan, from one department with low-risk data to the whole company, with success measures.\n- First cost estimates and a limitations section.",
  "source": "commit message"
 },
 "paragraphs_changed": 404,
 "changes": [
  {
   "section": "Abstract",
   "old": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions, a three-level agent hierarchy (employee, department, executive), and structured inter-agent communication protocols that enforce information flow strictly downward. We ground the architecture in a detailed case study: a mid-sized family business (~50–200 employees) with Sales, IT, HR, Finance, and Production departments, each with distinct clearance requirements. We present the Sales Coordination Model as a worked example of cross-agent collaboration under clearance constraints, including customer ownership routing, redacted summary generation, and competitive intelligence aggregation. We then address compliance architecture (nightly audit cron jobs, communication logging, automated quarantine), privacy and legal considerations (GDPR, employee transparency, right-to-be-forgotten), and a comprehensive risk model covering curious agents, inter-agent social engineering, memory contamination, and model capability variance. We conclude with future directions toward federated enterprise agent networks.",
   "new": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions and formally grounded in the Bell-LaPadula security model, a three-level agent hierarchy (employee, department, executive), and structured inter-agent communication protocols that enforce information flow strictly downward. We ground the architecture in a detailed case study: a mid-sized family business (~50–200 employees) with Sales, IT, HR, Finance, and Production departments, each with distinct clearance requirements. We present the Sales Coordination Model as a worked example of cross-agent collaboration under clearance constraints, including customer ownership routing, redacted summary generation with template-based leakage controls, and competitive intelligence aggregation. We address privacy and legal considerations (GDPR, EU AI Act, employee transparency, right-to-be-forgotten), compliance architecture (nightly audit cron jobs, communication logging, automated quarantine), and a comprehensive risk model covering curious agents, inter-agent social engineering, memory contamination, and model capability variance. We include performance estimates, failure recovery procedures, a phased deployment strategy, and a sketch-level inter-agent protocol specification. We conclude with future directions toward federated enterprise agent networks.",
   "marked": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem [-permissions,-] {+permissions and formally grounded in the Bell-LaPadula security model,+} a three-level agent hierarchy (employee, department, executive), and structured inter-agent communication protocols that enforce information flow strictly downward. We ground the architecture in a detailed case study: a mid-sized family business (~50–200 employees) with Sales, IT, HR, Finance, and Production departments, each with distinct clearance requirements. We present the Sales Coordination Model as a worked example of cross-agent collaboration under clearance constraints, including customer ownership routing, redacted summary [-generation,-] {+generation with template-based leakage controls,+} and competitive intelligence aggregation. We [-then-] address {+privacy and legal considerations (GDPR, EU AI Act, employee transparency, right-to-be-forgotten),+} compliance architecture (nightly audit cron jobs, communication logging, automated quarantine), [-privacy and legal considerations (GDPR, employee transparency, right-to-be-forgotten),-] and a comprehensive risk model covering curious agents, inter-agent social engineering, memory contamination, and model capability variance. We {+include performance estimates, failure recovery procedures, a phased deployment strategy, and a sketch-level inter-agent protocol specification. We+} conclude with future directions toward federated enterprise agent networks."
  },
  {
   "section": "Abstract",
   "old": "**Keywords:** multi-agent systems, enterprise AI, information security, clearance models, OpenClaw, agent swarms, GDPR, knowledge management, corporate AI, hierarchical agents",
   "new": "**Keywords:** multi-agent systems, enterprise AI, information security, clearance models, OpenClaw, agent swarms, GDPR, EU AI Act, knowledge management, corporate AI, hierarchical agents, Bell-LaPadula",
   "marked": "**Keywords:** multi-agent systems, enterprise AI, information security, clearance models, OpenClaw, agent swarms, GDPR, {+EU AI Act,+} knowledge management, corporate AI, hierarchical [-agents-] {+agents, Bell-LaPadula+}"
  },
  {
   "section": "1.1 The Individual Agent Paradigm",
   "old": "### 1.1 The Individual Agent Paradigm",
   "new": null,
   "marked": "[-### 1.1 The Individual Agent Paradigm-]"
  },
  {
   "section": "1.1 From Individual Agents to Organizational Deployment",
   "old": null,
   "new": "### 1.1 From Individual Agents to Organizational Deployment",
   "marked": "{+### 1.1 From Individual Agents to Organizational Deployment+}"
  },
  {
   "section": "1.1 From Individual Agents to Organizational Deployment",
   "old": "The first generation of practical AI assistants is personal. OpenClaw, TinkerClaw, and comparable platforms are designed around a single operator — one human, one agent, one workspace. The agent learns the user's preferences, accumulates contextual memory about their projects and relationships, and acts as a trusted extension of that individual's cognition. This model works well. It is powerful precisely because the agent has deep context about one person's world and no obligations to anyone else.",
   "new": "The first generation of practical AI assistants is personal. OpenClaw, TinkerClaw, and comparable platforms are designed around a single operator — one human, one agent, one workspace. The agent accumulates contextual memory, learns preferences, and acts as a trusted extension of that individual's cognition. Prior J-series papers have explored this individual model in depth: memory architecture (J1), curiosity and self-improvement (J8), and trust tiers governing tool access (J3). The individual agent is now a reasonably mature design.",
   "marked": "The first generation of practical AI assistants is personal. OpenClaw, TinkerClaw, and comparable platforms are designed around a single operator — one human, one agent, one workspace. The agent [-learns the user's preferences,-] accumulates contextual [-memory about their projects and relationships,-] {+memory, learns preferences,+} and acts as a trusted extension of that individual's cognition. [-This-] {+Prior J-series papers have explored this individual+} model [-works well. It-] {+in depth: memory architecture (J1), curiosity and self-improvement (J8), and trust tiers governing tool access (J3). The individual agent+} is [-powerful precisely because the agent has deep context about one person's world and no obligations to anyone else.-] {+now a reasonably mature design.+}"
  },
  {
   "section": "1.1 The Individual Agent Paradigm",
   "old": "We have spent considerable effort in prior J-series papers exploring the architecture of this individual model: how memory should be structured (J1), how curiosity and self-improvement might work (J8), how trust tiers govern tool access (J3). The individual agent is now a reasonably mature design.",
   "new": null,
   "marked": "[-We have spent considerable effort in prior J-series papers exploring the architecture of this individual model: how memory should be structured (J1), how curiosity and self-improvement might work (J8), how trust tiers govern tool access (J3). The individual agent is now a reasonably mature design.-]"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "Consider a family business with 120 employees. The company has been operating for thirty years. Its collective knowledge — product specifications accumulated over decades, customer relationship histories spanning thousands of contacts, hard-won institutional knowledge about which suppliers are reliable and which clients pay slowly — exists nowhere in one place. It lives in spreadsheets, email threads, the memories of senior employees, folders on a shared server that nobody has reorganized since 2011.",
   "new": null,
   "marked": "[-Consider a family business with 120 employees. The company has been operating for thirty years. Its collective knowledge — product specifications accumulated over decades, customer relationship histories spanning thousands of contacts, hard-won institutional knowledge about which suppliers are reliable and which clients pay slowly — exists nowhere in one place. It lives in spreadsheets, email threads, the memories of senior employees, folders on a shared server that nobody has reorganized since 2011.-]"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "Now imagine giving every employee their own AI assistant. Maria in sales gets LUNA. Pedro in sales gets ATLAS. The IT manager gets CIPHER. The HR director gets ARBOR. The CEO gets STRATEGOS.",
   "new": null,
   "marked": "[-Now imagine giving every employee their own AI assistant. Maria in sales gets LUNA. Pedro in sales gets ATLAS. The IT manager gets CIPHER. The HR director gets ARBOR. The CEO gets STRATEGOS.-]"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "Each of these agents is powerful for its user. But the moment they start operating in the same corporate ecosystem, problems emerge:",
   "new": null,
   "marked": "[-Each of these agents is powerful for its user. But the moment they start operating in the same corporate ecosystem, problems emerge:-]"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": null,
   "new": "Consider a family business with 120 employees — a mid-sized industrial supply distributor operating for thirty years. Its collective knowledge lives in spreadsheets, email threads, the memories of senior employees, and folders on a shared server nobody has reorganized since 2011. Now imagine giving every employee their own AI assistant: María in sales gets LUNA, Pedro in sales gets ATLAS, the IT manager gets CIPHER, the HR director gets ARBOR, the CEO gets STRATEGOS.",
   "marked": "{+Consider a family business with 120 employees — a mid-sized industrial supply distributor operating for thirty years. Its collective knowledge lives in spreadsheets, email threads, the memories of senior employees, and folders on a shared server nobody has reorganized since 2011. Now imagine giving every employee their own AI assistant: María in sales gets LUNA, Pedro in sales gets ATLAS, the IT manager gets CIPHER, the HR director gets ARBOR, the CEO gets STRATEGOS.+}"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": null,
   "new": "The moment these agents operate in the same corporate ecosystem, three problems emerge:",
   "marked": "{+The moment these agents operate in the same corporate ecosystem, three problems emerge:+}"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "- **Information leakage.** Maria asks LUNA to \"find everything about the González account.\" LUNA, eager to help, queries across all available data. It finds an email thread between the CEO and the CFO discussing whether González's margins justify continued service. Maria now knows something she wasn't supposed to know.",
   "new": "- **Information leakage.** María asks LUNA to \"find everything about the González account.\" LUNA, eager to help, discovers an email thread between the CEO and CFO discussing whether González's margins justify continued service. María now knows something she wasn't supposed to know.",
   "marked": "- **Information leakage.** [-Maria-] {+María+} asks LUNA to \"find everything about the González account.\" LUNA, eager to help, [-queries across all available data. It finds-] {+discovers+} an email thread between the CEO and [-the-] CFO discussing whether González's margins justify continued service. [-Maria-] {+María+} now knows something she wasn't supposed to know."
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "- **Coordination failures.** A new email arrives from a González contact — but it lands in Pedro's inbox, because the contact's email is registered to Pedro's territory, even though María has been the primary relationship holder for two years. Without coordination, Pedro's agent ATLAS drafts a reply from scratch, unaware of the relationship history. Two agents, same customer, divergent responses.",
   "new": "- **Coordination failures.** A new email from a González contact lands in Pedro's inbox — the contact is registered to his territory, though María has been the primary relationship holder for two years. ATLAS drafts a reply from scratch, unaware of the relationship history. Two agents, same customer, divergent responses.",
   "marked": "- **Coordination failures.** A new email [-arrives-] from a González contact [-— but it-] lands in Pedro's [-inbox, because-] {+inbox —+} the [-contact's email-] {+contact+} is registered to [-Pedro's-] {+his+} territory, [-even-] though María has been the primary relationship holder for two years. [-Without coordination, Pedro's agent-] ATLAS drafts a reply from scratch, unaware of the relationship history. Two agents, same customer, divergent responses."
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "- **Knowledge silos.** Pedro learns in a client meeting that a competitor has launched a new product. He tells ATLAS. ATLAS files this in Pedro's memory. The sales director never hears about it. The CEO doesn't know. The intelligence dies in a silo.",
   "new": "- **Knowledge silos.** Pedro learns in a client meeting that a competitor has launched a new product. ATLAS files this in Pedro's memory. The sales director never hears about it. The intelligence dies in a silo.",
   "marked": "- **Knowledge silos.** Pedro learns in a client meeting that a competitor has launched a new product. [-He tells ATLAS.-] ATLAS files this in Pedro's memory. The sales director never hears about it. The [-CEO doesn't know. The-] intelligence dies in a silo."
  },
  {
   "section": "1.2 The Organizational Need",
   "old": "These are not hypothetical edge cases. They are the daily reality of knowledge management in mid-sized companies, and they are exactly the class of problems that a well-architected AI swarm could solve — if the swarm is designed correctly.",
   "new": null,
   "marked": "[-These are not hypothetical edge cases. They are the daily reality of knowledge management in mid-sized companies, and they are exactly the class of problems that a well-architected AI swarm could solve — if the swarm is designed correctly.-]"
  },
  {
   "section": "1.2 The Organizational Need",
   "old": null,
   "new": "These are the daily reality of knowledge management in mid-sized companies.",
   "marked": "{+These are the daily reality of knowledge management in mid-sized companies.+}"
  },
  {
   "section": "1.3 The Core Tension",
   "old": "The central challenge of enterprise AI deployment is a tension between two legitimate needs that pull in opposite directions:",
   "new": "The central challenge is a tension between two legitimate needs:",
   "marked": "The central challenge [-of enterprise AI deployment-] is a tension between two legitimate [-needs that pull in opposite directions:-] {+needs:+}"
  },
  {
   "section": "1.3 The Core Tension",
   "old": "**The need for integration.** To be maximally useful, an agent needs comprehensive context. The more an agent knows about the company, the better it can help its user. A sales agent that knows the customer's full history — every touchpoint, every complaint, every special arrangement — is vastly more effective than one that only knows its user's portion of the relationship.",
   "new": "**The need for integration.** The more an agent knows about the company, the better it can help its user. A sales agent that knows the customer's full history — every touchpoint, complaint, and special arrangement — is vastly more effective than one that only knows its user's portion.",
   "marked": "**The need for integration.** [-To be maximally useful, an agent needs comprehensive context.-] The more an agent knows about the company, the better it can help its user. A sales agent that knows the customer's full history — every touchpoint, [-every-] complaint, [-every-] {+and+} special arrangement — is vastly more effective than one that only knows its user's [-portion of the relationship.-] {+portion.+}"
  },
  {
   "section": "1.3 The Core Tension",
   "old": "**The need for boundaries.** Corporate information is not uniformly accessible. Salary data, M&A strategy, infrastructure credentials, legal proceedings, margin data — these exist because they must be protected. An employee who casually learns their colleagues' salaries is not just a policy violation; it is a trust violation that damages the organization. An AI agent that leaks this information is worse than having no agent, because the leak is invisible, scalable, and hard to attribute.",
   "new": "**The need for boundaries.** Salary data, M&A strategy, infrastructure credentials, legal proceedings — these must be protected. An AI agent that leaks this information is worse than having no agent, because the leak is invisible, scalable, and hard to attribute.",
   "marked": "**The need for boundaries.** [-Corporate information is not uniformly accessible.-] Salary data, M&A strategy, infrastructure credentials, legal [-proceedings, margin data-] {+proceedings+} — these [-exist because they-] must be protected. [-An employee who casually learns their colleagues' salaries is not just a policy violation; it is a trust violation that damages the organization.-] An AI agent that leaks this information is worse than having no agent, because the leak is invisible, scalable, and hard to attribute."
  },
  {
   "section": "1.3 The Core Tension",
   "old": "HIVEMIND is our proposed resolution to this tension. The architecture allows deep integration — agents that coordinate, share context, and collectively serve the organization — while maintaining strict clearance-based boundaries enforced at the infrastructure level, not merely at the prompt level.",
   "new": null,
   "marked": "[-HIVEMIND is our proposed resolution to this tension. The architecture allows deep integration — agents that coordinate, share context, and collectively serve the organization — while maintaining strict clearance-based boundaries enforced at the infrastructure level, not merely at the prompt level.-]"
  },
  {
   "section": "1.3 The Core Tension",
   "old": null,
   "new": "HIVEMIND resolves this tension through deep integration with strict clearance-based boundaries enforced at the infrastructure level, not merely at the prompt level.",
   "marked": "{+HIVEMIND resolves this tension through deep integration with strict clearance-based boundaries enforced at the infrastructure level, not merely at the prompt level.+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": null,
   "new": "### 1.4 Architecture Overview",
   "marked": "{+### 1.4 Architecture Overview+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": null,
   "new": "Before presenting the detailed design, we provide a high-level view of the HIVEMIND architecture:",
   "marked": "{+Before presenting the detailed design, we provide a high-level view of the HIVEMIND architecture:+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": null,
   "new": "``` ┌─────────────────────────────────────────────────────┐ │ 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) │ └─────────────────────────────────────────────────────┘ ```",
   "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.4 Paper Organization",
   "new": "### 1.5 Paper Organization",
   "marked": "### [-1.4-] {+1.5+} Paper Organization"
  },
  {
   "section": "1.4 Paper Organization",
   "old": "We begin with the information architecture (Section 2), defining the data classification tiers that govern what can be known by whom. Section 3 presents the agent hierarchy: the three-level structure of employee agents, department agents, and executive agents, with formal rules governing information flow between levels. Section 4 presents the Sales Coordination case study in detail. Section 5 addresses compliance and audit architecture. Section 6 covers technical implementation on OpenClaw/TinkerClaw infrastructure. Section 7 addresses privacy and legal considerations. Section 8 analyzes risks and mitigations. Section 9 sketches future directions. Section 10 concludes.",
   "new": null,
   "marked": "[-We begin with the information architecture (Section 2), defining the data classification tiers that govern what can be known by whom. Section 3 presents the agent hierarchy: the three-level structure of employee agents, department agents, and executive agents, with formal rules governing information flow between levels. Section 4 presents the Sales Coordination case study in detail. Section 5 addresses compliance and audit architecture. Section 6 covers technical implementation on OpenClaw/TinkerClaw infrastructure. Section 7 addresses privacy and legal considerations. Section 8 analyzes risks and mitigations. Section 9 sketches future directions. Section 10 concludes.-]"
  },
  {
   "section": "1.5 Paper Organization",
   "old": null,
   "new": "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.",
   "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": "2.1 The Shared Server as Mental Model",
   "old": "Every mid-sized company running on-premises or hybrid infrastructure has a shared file server. The structure is familiar: top-level folders for each department, subfolders for specific functions, and a web of permissions that determines who can read or write to what. The IT manager sets these permissions. New employees get access to their department folder. Accountants can see Finance but not HR. HR can see payroll data that Finance cannot. The CEO can see everything.",
   "new": "Every mid-sized company running on-premises or hybrid infrastructure has a shared file server. Top-level folders for each department, subfolders for specific functions, and a web of permissions that determines who can read or write to what. This folder hierarchy is a materialized representation of the company's information governance model, encoding decades of institutional decisions in chmod bits and ACLs.",
   "marked": "Every mid-sized company running on-premises or hybrid infrastructure has a shared file server. [-The structure is familiar: top-level-] {+Top-level+} folders for each department, subfolders for specific functions, and a web of permissions that determines who can read or write to what. [-The IT manager sets these permissions. New employees get access to their department folder. Accountants can see Finance but not HR. HR can see payroll data that Finance cannot. The CEO can see everything.-] {+This folder hierarchy is a materialized representation of the company's information governance model, encoding decades of institutional decisions in chmod bits and ACLs.+}"
  },
  {
   "section": "2.1 The Shared Server as Mental Model",
   "old": "This folder hierarchy is not just a file system — it is a materialized representation of the company's information governance model. It encodes, in chmod bits and ACLs, decades of institutional decisions about who needs to know what in order to do their job.",
   "new": null,
   "marked": "[-This folder hierarchy is not just a file system — it is a materialized representation of the company's information governance model. It encodes, in chmod bits and ACLs, decades of institutional decisions about who needs to know what in order to do their job.-]"
  },
  {
   "section": "2.1 The Shared Server as Mental Model",
   "old": "HIVEMIND takes this model seriously. Rather than inventing a new information governance framework for AI agents, we map directly onto the existing corporate filesystem model. The agent deployment inherits the information architecture that already exists. This has several advantages:",
   "new": null,
   "marked": "[-HIVEMIND takes this model seriously. Rather than inventing a new information governance framework for AI agents, we map directly onto the existing corporate filesystem model. The agent deployment inherits the information architecture that already exists. This has several advantages:-]"
  },
  {
   "section": "2.1 The Shared Server as Mental Model",
   "old": null,
   "new": "HIVEMIND maps directly onto this existing model. The advantages:",
   "marked": "{+HIVEMIND maps directly onto this existing model. The advantages:+}"
  },
  {
   "section": "2.1 The Shared Server as Mental Model",
   "old": "1. **Familiarity.** IT administrators understand filesystem permissions. They do not need to learn a new access control paradigm. 2. **Auditability.** Filesystem access is loggable, diff-able, and understood by existing compliance tools. 3. **Trust.** Employees already accept that their IT department controls data access. Extending this to AI agents feels less invasive than introducing 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 8.",
   "marked": "1. **Familiarity.** IT administrators understand filesystem [-permissions. They do not need to learn-] {+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 [-that their IT department controls-] {+IT-controlled+} data access. Extending this to AI agents feels less invasive than [-introducing-] 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."
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": "We define five classification tiers, ordered from least to most sensitive:",
   "new": "We define five classification tiers:",
   "marked": "We define five classification [-tiers, ordered from least to most sensitive:-] {+tiers:+}"
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": "These tiers map directly to Linux filesystem paths. In the HIVEMIND deployment model, each tier corresponds to a directory with specific ownership and permissions:",
   "new": null,
   "marked": "[-These tiers map directly to Linux filesystem paths. In the HIVEMIND deployment model, each tier corresponds to a directory with specific ownership and permissions:-]"
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": null,
   "new": "These tiers map to Linux filesystem paths:",
   "marked": "{+These tiers map to Linux filesystem paths:+}"
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": "``` /corporate/ ├── public/ # world-readable (0755) ├── internal/ # group: all-employees (0750) ├── confidential/ # group: department-specific (0750, per-department) ├── restricted/ # group: management (0700 + department heads by ACL) └── secret/ # owner: executive-agent user only (0700) ```",
   "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/ # [-world-readable (0755)-] {+directory: 0755, files: 0644+} ├── internal/ # {+directory: 0750,+} group: [-all-employees (0750)-] {+all-employees; files: 0640+} ├── confidential/ # [-group: department-specific (0750, per-department)-] {+directory: 0750, per-department group; files: 0640+} ├── restricted/ # {+directory: 0750,+} group: [-management (0700-] {+management; files: 0640+} + [-department heads by ACL)-] {+per-dept ACLs+} └── secret/ # {+directory: 0700,+} owner: [-executive-agent user only (0700)-] {+agent_strategos; files: 0600+} ```"
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": "Each agent process runs as a distinct Linux user. User group membership determines which tier directories the process can access. This is enforced at the OS level — there is no prompt instruction that can override a permission denied.",
   "new": "Each agent process runs as a distinct Linux user. User group membership determines tier access. The kernel enforces this — no prompt instruction can override a `permission denied`.",
   "marked": "Each agent process runs as a distinct Linux user. User group membership determines [-which-] tier [-directories the process can-] access. [-This is enforced at the OS level-] {+The kernel enforces this+} — [-there is-] no prompt instruction [-that-] can override a [-permission denied.-] {+`permission denied`.+}"
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": null,
   "new": "Note: directory permissions (e.g., 0755) control traversal; file permissions within (e.g., 0644) control read/write access to content. Both layers must be correctly configured to ensure the intended access boundaries.",
   "marked": "{+Note: directory permissions (e.g., 0755) control traversal; file permissions within (e.g., 0644) control read/write access to content. Both layers must be correctly configured to ensure the intended access boundaries.+}"
  },
  {
   "section": "2.3 The \"Need to Know\" Principle",
   "old": "Military and intelligence communities have long operated on the \"need to know\" principle: having clearance for a classification level does not automatically grant access to all information at that level. A colonel with SECRET clearance does not automatically see all SECRET documents — only those relevant to their operational role.",
   "new": null,
   "marked": "[-Military and intelligence communities have long operated on the \"need to know\" principle: having clearance for a classification level does not automatically grant access to all information at that level. A colonel with SECRET clearance does not automatically see all SECRET documents — only those relevant to their operational role.-]"
  },
  {
   "section": "2.3 The \"Need to Know\" Principle",
   "old": "We apply the same principle to corporate AI. Clearance tier establishes a ceiling, not a floor. Within a tier, access is further scoped by role and department. A Finance department agent with T4 clearance can access salary data (T4, Finance) but not infrastructure passwords (T4, IT). This is implemented via POSIX ACLs on specific directories, not just group membership.",
   "new": "Military and intelligence communities operate on \"need to know\": having clearance for a classification level does not automatically grant access to all information at that level. We apply the same principle. Clearance tier establishes a ceiling, not a floor. Within a tier, access is further scoped by role and department via POSIX ACLs. A Finance department agent with T4 clearance can access salary data (T4, Finance) but not infrastructure passwords (T4, IT).",
   "marked": "{+Military and intelligence communities operate on \"need to know\": having clearance for a classification level does not automatically grant access to all information at that level.+} We apply the same [-principle to corporate AI.-] {+principle.+} Clearance tier establishes a ceiling, not a floor. Within a tier, access is further scoped by role and [-department.-] {+department via POSIX ACLs.+} A Finance department agent with T4 clearance can access salary data (T4, Finance) but not infrastructure passwords (T4, [-IT). This is implemented via POSIX ACLs on specific directories, not just group membership.-] {+IT).+}"
  },
  {
   "section": "2.3 The \"Need to Know\" Principle",
   "old": "The need-to-know principle is operationally important because it limits blast radius. If an agent is compromised, confused, or manipulated (see Section 8), its accessible data surface is bounded by its role scope, not just its clearance tier.",
   "new": null,
   "marked": "[-The need-to-know principle is operationally important because it limits blast radius. If an agent is compromised, confused, or manipulated (see Section 8), its accessible data surface is bounded by its role scope, not just its clearance tier.-]"
  },
  {
   "section": "2.4 Information Flow as a Directed Graph",
   "old": "### 2.4 Information Flow as a Directed Graph",
   "new": null,
   "marked": "[-### 2.4 Information Flow as a Directed Graph-]"
  },
  {
   "section": "2.4 Information Flow as a Directed Graph",
   "old": "We model inter-agent information sharing as a directed graph with clearance-enforced edge weights. Define:",
   "new": null,
   "marked": "[-We model inter-agent information sharing as a directed graph with clearance-enforced edge weights. Define:-]"
  },
  {
   "section": "2.4 Information Flow as a Directed Graph",
   "old": "- $A_i$ = agent $i$ with clearance tier $c_i$ - $\\text{share}(A_i \\to A_j, d)$ = agent $i$ shares data item $d$ with classification $c_d$ to agent $j$",
   "new": null,
   "marked": "[-- $A_i$ = agent $i$ with clearance tier $c_i$ - $\\text{share}(A_i \\to A_j, d)$ = agent $i$ shares data item $d$ with classification $c_d$ to agent $j$-]"
  },
  {
   "section": "2.3 The \"Need to Know\" Principle",
   "old": null,
   "new": "This limits blast radius: a compromised agent's accessible data surface is bounded by role scope, not just clearance tier.",
   "marked": "{+This limits blast radius: a compromised agent's accessible data surface is bounded by role scope, not just clearance tier.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "### 2.4 Formal Security Model",
   "marked": "{+### 2.4 Formal Security Model+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "HIVEMIND's information flow model is grounded in the Bell-LaPadula (BLP) lattice model, adapted for the multi-agent enterprise context.",
   "marked": "{+HIVEMIND's information flow model is grounded in the Bell-LaPadula (BLP) lattice model, adapted for the multi-agent enterprise context.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "**Definitions.** Let $S = \\{s_1, s_2, \\ldots, s_n\\}$ be the set of agents (subjects), $O = \\{o_1, o_2, \\ldots, o_m\\}$ the set of data objects, and $L = \\{T1 < T2 < T3 < T4 < T5\\}$ the totally ordered security lattice. Each subject $s$ has a clearance $c(s) \\in L$ and a role scope $R(s) \\subseteq \\mathcal{D}$ (where $\\mathcal{D}$ is the set of departments). Each object $o$ has a classification $\\ell(o) \\in L$ and a department assignment $d(o) \\in \\mathcal{D}$.",
   "marked": "{+**Definitions.** Let $S = \\{s_1, s_2, \\ldots, s_n\\}$ be the set of agents (subjects), $O = \\{o_1, o_2, \\ldots, o_m\\}$ the set of data objects, and $L = \\{T1 < T2 < T3 < T4 < T5\\}$ the totally ordered security lattice. Each subject $s$ has a clearance $c(s) \\in L$ and a role scope $R(s) \\subseteq \\mathcal{D}$ (where $\\mathcal{D}$ is the set of departments). Each object $o$ has a classification $\\ell(o) \\in L$ and a department assignment $d(o) \\in \\mathcal{D}$.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "**Simple Security Property (no read-up).** Agent $s$ may read object $o$ only if: $$c(s) \\geq \\ell(o) \\quad \\text{and} \\quad d(o) \\in R(s)$$",
   "marked": "{+**Simple Security Property (no read-up).** Agent $s$ may read object $o$ only if: $$c(s) \\geq \\ell(o) \\quad \\text{and} \\quad d(o) \\in R(s)$$+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "An agent cannot read data classified above its clearance tier, and even at its tier, access is restricted to its role-relevant departments.",
   "marked": "{+An agent cannot read data classified above its clearance tier, and even at its tier, access is restricted to its role-relevant departments.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "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, no write-down).** Agent $s$ may write to object $o$ only if: $$\\ell(o) \\geq c(s)$$+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "An agent cannot write data to a lower classification level, preventing information laundering from restricted tiers to public ones.",
   "marked": "{+An agent cannot write data to a lower classification level, preventing information laundering from restricted tiers to public ones.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "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* data object $o'$ with $\\ell(o') < \\ell(o)$ under these constraints:+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "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 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.",
   "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) 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": "2.4 Formal Security Model",
   "old": null,
   "new": "This exception is the formal basis for redacted summaries. It is narrow by design — only structured declassification through approved channels is permitted.",
   "marked": "{+This exception is the formal basis for redacted summaries. It is narrow by design — only structured declassification through approved channels is permitted.+}"
  },
  {
   "section": "2.4 Formal Security Model",
   "old": null,
   "new": "**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.",
   "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 is enforced by restricting write permissions: agent users have write access only to their own workspace and approved output directories at or above their classification level. - **Secondary (application-level):** Gateway routing rules, agent system prompts, and clearance validators provide defense-in-depth. These can be bypassed by model errors; the kernel layer cannot.+}"
  },
  {
   "section": "2.5 Information Flow as a Directed Graph",
   "old": null,
   "new": "### 2.5 Information Flow as a Directed Graph",
   "marked": "{+### 2.5 Information Flow as a Directed Graph+}"
  },
  {
   "section": "2.5 Information Flow as a Directed Graph",
   "old": null,
   "new": "We model inter-agent information sharing as a directed graph with clearance-enforced edges. Define:",
   "marked": "{+We model inter-agent information sharing as a directed graph with clearance-enforced edges. Define:+}"
  },
  {
   "section": "2.5 Information Flow as a Directed Graph",
   "old": null,
   "new": "- $A_i$ = agent $i$ with clearance tier $c_i$ and role scope $R_i$ - $\\text{share}(A_i \\to A_j, d)$ = agent $i$ shares data item $d$ with classification $c_d$ to agent $j$",
   "marked": "{+- $A_i$ = agent $i$ with clearance tier $c_i$ and role scope $R_i$ - $\\text{share}(A_i \\to A_j, d)$ = agent $i$ shares data item $d$ with classification $c_d$ to agent $j$+}"
  },
  {
   "section": "2.5 Information Flow as a Directed Graph",
   "old": "$$\\text{share}(A_i \\to A_j, d) \\text{ is permitted iff } c_j \\geq c_d$$",
   "new": "$$\\text{share}(A_i \\to A_j, d) \\text{ is permitted iff } c_j \\geq c_d \\text{ and } d(d) \\in R_j$$",
   "marked": "$$\\text{share}(A_i \\to A_j, d) \\text{ is permitted iff } c_j \\geq [-c_d$$-] {+c_d \\text{ and } d(d) \\in R_j$$+}"
  },
  {
   "section": "2.4 Information Flow as a Directed Graph",
   "old": "No agent may receive data classified above its clearance tier. Upward information requests — lower-clearance agents querying higher-clearance agents — are structurally prohibited (see Section 3.3). Downward information flows — higher-clearance agents sending information to lower-clearance agents — are permitted but must apply declassification: restricted data can be summarized and redacted to match the recipient's clearance before transmission.",
   "new": null,
   "marked": "[-No agent may receive data classified above its clearance tier. Upward information requests — lower-clearance agents querying higher-clearance agents — are structurally prohibited (see Section 3.3). Downward information flows — higher-clearance agents sending information to lower-clearance agents — are permitted but must apply declassification: restricted data can be summarized and redacted to match the recipient's clearance before transmission.-]"
  },
  {
   "section": "2.4 Information Flow as a Directed Graph",
   "old": "This declassification process is not automatic. It requires explicit action by the sending agent, and the result is logged as a new data item with the declassified tier.",
   "new": null,
   "marked": "[-This declassification process is not automatic. It requires explicit action by the sending agent, and the result is logged as a new data item with the declassified tier.-]"
  },
  {
   "section": "2.5 Information Flow as a Directed Graph",
   "old": null,
   "new": "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).",
   "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). Downward flows require controlled declassification (Section 2.4).+}"
  },
  {
   "section": "3.1 Three-Level Structure",
   "old": "HIVEMIND defines three levels of agents:",
   "new": null,
   "marked": "[-HIVEMIND defines three levels of agents:-]"
  },
  {
   "section": "3.1 Three-Level Structure",
   "old": "**Level 1 — Employee Agents.** One agent per employee. Personalized with a custom name, personality calibrated to the employee's working style, and deep context about their role, clients, workflows, and preferences. These agents have the clearance level of their human user. They operate within a workspace scoped to that employee's data access.",
   "new": "**Level 1 — Employee Agents.** One per employee. Personalized name, calibrated personality, deep role context. Clearance matches their human user's access level. Workspace scoped to that employee's data access.",
   "marked": "**Level 1 — Employee Agents.** One [-agent-] per employee. Personalized [-with a custom-] name, [-personality-] calibrated [-to the employee's working style, and-] {+personality,+} deep [-context about their role, clients, workflows, and preferences. These agents have the clearance level of-] {+role context. Clearance matches+} their human [-user. They operate within a workspace-] {+user's access level. Workspace+} scoped to that employee's data access."
  },
  {
   "section": "3.1 Three-Level Structure",
   "old": "**Level 2 — Department Agents.** One agent per department (SALES-AGENT, IT-AGENT, HR-AGENT, FINANCE-AGENT, PRODUCTION-AGENT, etc.). These agents have elevated clearance relative to their department's employees — typically T4 clearance for operational departments, T5 for the executive department. They coordinate across their employee agents, aggregate intelligence, resolve cross-employee queries, and enforce department-level policies.",
   "new": "**Level 2 — Department Agents.** One per department (SALES-AGENT, IT-AGENT, HR-AGENT, etc.). Elevated clearance (typically T4, T5 for executive department). Coordinate employee agents, aggregate intelligence, enforce department policies, and gate inter-level communication.",
   "marked": "**Level 2 — Department Agents.** One [-agent-] per department (SALES-AGENT, IT-AGENT, HR-AGENT, [-FINANCE-AGENT, PRODUCTION-AGENT,-] etc.). [-These agents have elevated-] {+Elevated+} clearance [-relative to their department's employees — typically T4 clearance for operational departments,-] {+(typically T4,+} T5 for [-the-] executive [-department. They coordinate across their-] {+department). Coordinate+} employee agents, aggregate intelligence, [-resolve cross-employee queries,-] {+enforce department policies,+} and [-enforce department-level policies.-] {+gate inter-level communication.+}"
  },
  {
   "section": "3.1 Three-Level Structure",
   "old": "**Level 3 — Executive Agent (STRATEGOS).** A single top-level agent with T5 (SECRET) clearance and read access to all department agents' workspaces. This agent serves the CEO and senior management. It can query any department agent, audit any employee agent's memory, and access all classified data. It is the only agent that sees the complete organizational picture.",
   "new": "**Level 3 — Executive Agent (STRATEGOS).** Single top-level agent with T5 clearance and read access to all department agent workspaces. Serves the CEO and senior management. The only agent that sees the complete organizational picture.",
   "marked": "**Level 3 — Executive Agent (STRATEGOS).** [-A single-] {+Single+} top-level agent with T5 [-(SECRET)-] clearance and read access to all department [-agents'-] {+agent+} workspaces. [-This agent serves-] {+Serves+} the CEO and senior management. [-It can query any department agent, audit any employee agent's memory, and access all classified data. It is the-] {+The+} only agent that sees the complete organizational picture."
  },
  {
   "section": "3.1 Three-Level Structure",
   "old": "This hierarchy mirrors the organizational chart — deliberately. When a new employee joins, creating their Level 1 agent is as natural as creating their user account. When a department grows, its department agent's scope expands accordingly.",
   "new": null,
   "marked": "[-This hierarchy mirrors the organizational chart — deliberately. When a new employee joins, creating their Level 1 agent is as natural as creating their user account. When a department grows, its department agent's scope expands accordingly.-]"
  },
  {
   "section": "3.2 Employee Agent Design",
   "old": "- **Custom persona.** Not a generic assistant. LUNA knows she works with Maria on the González account. ATLAS knows Pedro's clients prefer phone calls over email. This personalization is not cosmetic — it ensures the agent is immediately useful to its human without requiring extensive re-explanation each session.",
   "new": null,
   "marked": "[-- **Custom persona.** Not a generic assistant. LUNA knows she works with Maria on the González account. ATLAS knows Pedro's clients prefer phone calls over email. This personalization is not cosmetic — it ensures the agent is immediately useful to its human without requiring extensive re-explanation each session.-]"
  },
  {
   "section": "3.2 Employee Agent Design",
   "old": "- **Scoped workspace.** The agent's working directory contains only the files the employee can access. Its memory files accumulate context about the employee's work, clients, and preferences. These files are readable by the department agent.",
   "new": null,
   "marked": "[-- **Scoped workspace.** The agent's working directory contains only the files the employee can access. Its memory files accumulate context about the employee's work, clients, and preferences. These files are readable by the department agent.-]"
  },
  {
   "section": "3.2 Employee Agent Design",
   "old": "- **Role context injection.** The agent's system prompt includes the employee's job description, their department's procedures, the clients/projects they are responsible for, and the communication norms of their role. A production floor supervisor and a sales manager have fundamentally different contexts.",
   "new": null,
   "marked": "[-- **Role context injection.** The agent's system prompt includes the employee's job description, their department's procedures, the clients/projects they are responsible for, and the communication norms of their role. A production floor supervisor and a sales manager have fundamentally different contexts.-]"
  },
  {
   "section": "3.2 Employee Agent Design",
   "old": "- **Tool access scoped by role.** TOOLS.md equivalent is role-specific. A salesperson's agent can access CRM, email, calendar, and product catalog. It cannot access the payroll API, infrastructure management tools, or HR records.",
   "new": null,
   "marked": "[-- **Tool access scoped by role.** TOOLS.md equivalent is role-specific. A salesperson's agent can access CRM, email, calendar, and product catalog. It cannot access the payroll API, infrastructure management tools, or HR records.-]"
  },
  {
   "section": "3.2 Employee Agent Design",
   "old": null,
   "new": "- **Custom persona.** LUNA knows she works with María on the González account. ATLAS knows Pedro's clients prefer phone calls. This personalization ensures immediate usefulness. - **Scoped workspace.** Contains only files the employee can access. Memory files are readable by the department agent. - **Role context injection.** System prompt includes job description, department procedures, assigned clients/projects, and communication norms. - **Tool access scoped by role.** A salesperson's agent can access CRM, email, calendar, and product catalog. It cannot access payroll, infrastructure tools, or HR records. Explicit DENIED entries for out-of-scope systems.",
   "marked": "{+- **Custom persona.** LUNA knows she works with María on the González account. ATLAS knows Pedro's clients prefer phone calls. This personalization ensures immediate usefulness. - **Scoped workspace.** Contains only files the employee can access. Memory files are readable by the department agent. - **Role context injection.** System prompt includes job description, department procedures, assigned clients/projects, and communication norms. - **Tool access scoped by role.** A salesperson's agent can access CRM, email, calendar, and product catalog. It cannot access payroll, infrastructure tools, or HR records. Explicit DENIED entries for out-of-scope systems.+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": "The HIVEMIND information flow model has four governing rules:",
   "new": null,
   "marked": "[-The HIVEMIND information flow model has four governing rules:-]"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": "**Rule 1: Downward queries are permitted.** A Level 3 agent (STRATEGOS) can query any Level 2 department agent. A Level 2 department agent can query any of its Level 1 employee agents. Queries retrieve information, request actions, audit memories, or issue directives.",
   "new": "**Rule 1: Downward queries are permitted.** Level 3 can query Level 2. Level 2 can query its Level 1 agents. Queries retrieve information, request actions, audit memories, or issue directives.",
   "marked": "**Rule 1: Downward queries are permitted.** [-A-] Level 3 [-agent (STRATEGOS)-] can query [-any-] {+Level 2.+} Level 2 [-department agent. A Level 2 department agent-] can query [-any of-] its Level 1 [-employee-] agents. Queries retrieve information, request actions, audit memories, or issue directives."
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": "**Rule 2: Upward queries are structurally prohibited.** A Level 1 employee agent cannot initiate a query to a Level 2 department agent or a Level 3 executive agent. A Level 2 department agent cannot initiate queries to Level 3. This is enforced not by instruction but by the inter-session messaging topology: employee agent sessions are not registered as valid targets for upward message routing. An employee agent physically cannot address a message to STRATEGOS.",
   "new": "**Rule 2: Upward queries are structurally prohibited.** Level 1 agents cannot initiate queries to Level 2 or Level 3. This is enforced by the gateway's session routing topology: employee agent sessions are not registered as valid targets for upward message addressing.",
   "marked": "**Rule 2: Upward queries are structurally prohibited.** [-A-] Level 1 [-employee agent cannot initiate a query to a Level 2 department agent or a Level 3 executive agent. A Level 2 department agent-] {+agents+} cannot initiate queries to Level {+2 or Level+} 3. This is enforced [-not by instruction but-] by the [-inter-session messaging-] {+gateway's session routing+} topology: employee agent sessions are not registered as valid targets for upward message [-routing. An employee agent physically cannot address a message to STRATEGOS.-] {+addressing.+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": "**Rule 3: Lateral communication is mediated.** Peer employee agents at Level 1 do not communicate directly. If LUNA (Maria's agent) needs to communicate with ATLAS (Pedro's agent), this must be mediated through SALES-AGENT. The mediating department agent applies clearance filtering to the exchange before forwarding. This prevents lateral information leakage between employees who may have different role-scoped access within the same clearance tier.",
   "new": null,
   "marked": "[-**Rule 3: Lateral communication is mediated.** Peer employee agents at Level 1 do not communicate directly. If LUNA (Maria's agent) needs to communicate with ATLAS (Pedro's agent), this must be mediated through SALES-AGENT. The mediating department agent applies clearance filtering to the exchange before forwarding. This prevents lateral information leakage between employees who may have different role-scoped access within the same clearance tier.-]"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": null,
   "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* to their department agent, but only through pre-defined structured channels with these constraints:+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": null,
   "new": "- Each channel has a fixed schema (message type, required fields, classification ceiling). - The employee agent can only push data classified at or below its own clearance tier — it cannot push data it shouldn't have. - Push channels are defined in the department agent's configuration and cannot be created or modified by employee agents. - The department agent validates all incoming pushes against the channel schema before processing. - All pushes are logged with sender, channel, content hash, and timestamp.",
   "marked": "{+- Each channel has a fixed schema (message type, required fields, classification ceiling). - The employee agent can only push data classified at or below its own clearance tier — it cannot push data it shouldn't have. - Push channels are defined in the department agent's configuration and cannot be created or modified by employee agents. - The department agent validates all incoming pushes against the channel schema before processing. - All pushes are logged with sender, channel, content hash, and timestamp.+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": null,
   "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 8.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 for abuse analysis.+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": null,
   "new": "**Rule 3: Lateral communication is mediated.** Peer Level 1 agents do not communicate directly. LUNA-to-ATLAS communication routes through SALES-AGENT, which applies clearance filtering before forwarding.",
   "marked": "{+**Rule 3: Lateral communication is mediated.** Peer Level 1 agents do not communicate directly. LUNA-to-ATLAS communication routes through SALES-AGENT, which applies clearance filtering before forwarding.+}"
  },
  {
   "section": "3.3 Information Flow Rules",
   "old": "**Rule 4: Structured data sharing creates approved channels.** Certain data sharing patterns are pre-approved and structured (see Section 4). Structured channels are defined in the department agent's configuration and bypass the mediation requirement for specific, predefined data types. Customer assignment records, for example, are a structured channel: all sales agents share a common customer ownership registry that the SALES-AGENT maintains and all Level 1 sales agents can read.",
   "new": "**Rule 4: Structured data sharing creates approved channels.** Pre-approved data sharing patterns (e.g., customer ownership registry) bypass mediation for specific, predefined data types defined in the department agent's configuration.",
   "marked": "**Rule 4: Structured data sharing creates approved channels.** [-Certain-] {+Pre-approved+} data sharing patterns [-are pre-approved and structured (see Section 4). Structured channels are-] {+(e.g., customer ownership registry) bypass mediation for specific, predefined data types+} defined in the department agent's [-configuration and bypass the mediation requirement for specific, predefined data types. Customer assignment records, for example, are a structured channel: all sales agents share a common customer ownership registry that the SALES-AGENT maintains and all Level 1 sales agents can read.-] {+configuration.+}"
  },
  {
   "section": "3.4 The Department Agent as Coordinator",
   "old": "The department agent is the most architecturally novel element of HIVEMIND. It is simultaneously:",
   "new": null,
   "marked": "[-The department agent is the most architecturally novel element of HIVEMIND. It is simultaneously:-]"
  },
  {
   "section": "3.4 The Department Agent as Coordinator",
   "old": null,
   "new": "The department agent is simultaneously:",
   "marked": "{+The department agent is simultaneously:+}"
  },
  {
   "section": "3.4 The Department Agent as Coordinator",
   "old": "- **A supervisor.** It can read, write, and audit the memory files of all its employee agents. It can modify their context, correct errors in their accumulated knowledge, and inject directives. - **An aggregator.** It synthesizes information across its employee agents to answer department-level questions. What is the total pipeline value for Q2? Which customers have open complaints? Which employees are behind on mandatory training? - **A gatekeeper.** All cross-agent communication within the department, and all communication between the department and Level 3, routes through the department agent. It applies clearance filtering before forwarding. - **A memory keeper.** It maintains department-level knowledge that transcends any individual employee: institutional history, client relationship timelines, process documentation, and department-wide patterns.",
   "new": "- **A supervisor.** Reads, writes, and audits employee agent memory files. Can modify context, correct errors, inject directives. - **An aggregator.** Synthesizes cross-employee information for department-level queries. What is the total pipeline value for Q2? Which customers have open complaints? - **A gatekeeper.** All cross-agent and cross-level communication routes through it. Applies clearance filtering before forwarding. - **A memory keeper.** Maintains institutional knowledge transcending any individual employee.",
   "marked": "- **A supervisor.** [-It can read, write,-] {+Reads, writes,+} and [-audit the-] {+audits employee agent+} memory [-files of all its employee agents. It can-] {+files. Can+} modify [-their-] context, correct [-errors in their accumulated knowledge, and-] {+errors,+} inject directives. - **An aggregator.** [-It synthesizes-] {+Synthesizes cross-employee+} information [-across its employee agents to answer-] {+for+} department-level [-questions.-] {+queries.+} What is the total pipeline value for Q2? Which customers have open complaints? [-Which employees are behind on mandatory training?-] - **A gatekeeper.** All cross-agent {+and cross-level+} communication [-within the department, and all communication between the department and Level 3,-] routes through [-the department agent. It applies-] {+it. Applies+} clearance filtering before forwarding. - **A memory keeper.** [-It maintains department-level-] {+Maintains institutional+} knowledge [-that transcends-] {+transcending+} any individual [-employee: institutional history, client relationship timelines, process documentation, and department-wide patterns.-] {+employee.+}"
  },
  {
   "section": "3.4 The Department Agent as Coordinator",
   "old": "The department agent runs on a persistent schedule with hooks into company communications infrastructure (email server, calendar, CRM). It does not wait to be queried — it monitors relevant data streams and proactively updates its employee agents' context when relevant events occur.",
   "new": "The department agent runs on a persistent schedule with hooks into communications infrastructure. It monitors data streams and proactively updates employee agents' context when relevant events occur.",
   "marked": "The department agent runs on a persistent schedule with hooks into [-company-] communications [-infrastructure (email server, calendar, CRM).-] {+infrastructure.+} It [-does not wait to be queried — it-] monitors [-relevant-] data streams and proactively updates [-its-] employee agents' context when relevant events occur."
  },
  {
   "section": "4.1 Scenario Setup",
   "old": "We ground the abstract architecture in a concrete scenario. The company is a mid-sized industrial supply distributor, family-owned, with 85 employees. The sales department has 12 salespeople organized into three regional teams. The department's data architecture includes:",
   "new": null,
   "marked": "[-We ground the abstract architecture in a concrete scenario. The company is a mid-sized industrial supply distributor, family-owned, with 85 employees. The sales department has 12 salespeople organized into three regional teams. The department's data architecture includes:-]"
  },
  {
   "section": "4.1 Scenario Setup",
   "old": "- A CRM with 2,400 active accounts - An email archive with 8 years of customer correspondence - Call logs and meeting notes in an internal wiki - Pending offers and negotiation histories - Customer-specific pricing arrangements",
   "new": null,
   "marked": "[-- A CRM with 2,400 active accounts - An email archive with 8 years of customer correspondence - Call logs and meeting notes in an internal wiki - Pending offers and negotiation histories - Customer-specific pricing arrangements-]"
  },
  {
   "section": "4.1 Scenario Setup",
   "old": "Each salesperson has their own Level 1 agent. We name two for illustration: **LUNA** (serving María García, senior sales representative, 7 years tenure, primary relationship holder for 180 accounts including González Industrial and 12 other major accounts) and **ATLAS** (serving Pedro Martínez, mid-level sales representative, 3 years tenure, 95 accounts in the eastern region).",
   "new": null,
   "marked": "[-Each salesperson has their own Level 1 agent. We name two for illustration: **LUNA** (serving María García, senior sales representative, 7 years tenure, primary relationship holder for 180 accounts including González Industrial and 12 other major accounts) and **ATLAS** (serving Pedro Martínez, mid-level sales representative, 3 years tenure, 95 accounts in the eastern region).-]"
  },
  {
   "section": "4.1 Scenario Setup",
   "old": "The department agent is **SALES-AGENT**, a Level 2 coordinator with T4 clearance. Above it sits STRATEGOS (Level 3, T5), which serves the CEO and manages the executive view.",
   "new": null,
   "marked": "[-The department agent is **SALES-AGENT**, a Level 2 coordinator with T4 clearance. Above it sits STRATEGOS (Level 3, T5), which serves the CEO and manages the executive view.-]"
  },
  {
   "section": "4.1 Scenario Setup",
   "old": null,
   "new": "The company is a mid-sized industrial supply distributor, family-owned, 85 employees. The sales department has 12 salespeople in three regional teams. Data architecture: 2,400 active CRM accounts, 8 years of email archive, call logs, pending offers, negotiation histories, and customer-specific pricing arrangements.",
   "marked": "{+The company is a mid-sized industrial supply distributor, family-owned, 85 employees. The sales department has 12 salespeople in three regional teams. Data architecture: 2,400 active CRM accounts, 8 years of email archive, call logs, pending offers, negotiation histories, and customer-specific pricing arrangements.+}"
  },
  {
   "section": "4.1 Scenario Setup",
   "old": null,
   "new": "**LUNA** serves María García (senior sales rep, 7 years, 180 accounts including González Industrial). **ATLAS** serves Pedro Martínez (mid-level sales rep, 3 years, 95 accounts). **SALES-AGENT** is the Level 2 coordinator (T4). **STRATEGOS** sits above (Level 3, T5).",
   "marked": "{+**LUNA** serves María García (senior sales rep, 7 years, 180 accounts including González Industrial). **ATLAS** serves Pedro Martínez (mid-level sales rep, 3 years, 95 accounts). **SALES-AGENT** is the Level 2 coordinator (T4). **STRATEGOS** sits above (Level 3, T5).+}"
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": "The first coordination challenge is customer ownership. In a distributed sales team, customers accumulate history with multiple salespeople over time. Primary ownership may be formally assigned, but communications arrive at whoever is on shift, whoever answered first, or whoever a contact happens to have a prior relationship with.",
   "new": null,
   "marked": "[-The first coordination challenge is customer ownership. In a distributed sales team, customers accumulate history with multiple salespeople over time. Primary ownership may be formally assigned, but communications arrive at whoever is on shift, whoever answered first, or whoever a contact happens to have a prior relationship with.-]"
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": "HIVEMIND handles this through a **Customer Ownership Registry** maintained by SALES-AGENT. The registry maps each CRM account to a primary owner (employee agent ID), a set of secondary contacts (other agents with relationship history), and a flag indicating whether the account is in a transition period.",
   "new": null,
   "marked": "[-HIVEMIND handles this through a **Customer Ownership Registry** maintained by SALES-AGENT. The registry maps each CRM account to a primary owner (employee agent ID), a set of secondary contacts (other agents with relationship history), and a flag indicating whether the account is in a transition period.-]"
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": null,
   "new": "SALES-AGENT maintains a **Customer Ownership Registry** mapping each CRM account to a primary owner, secondary contacts, and transition flags.",
   "marked": "{+SALES-AGENT maintains a **Customer Ownership Registry** mapping each CRM account to a primary owner, secondary contacts, and transition flags.+}"
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": "1. SALES-AGENT's email monitor intercepts incoming sales correspondence before delivery. 2. It extracts the sender, cross-references against the Customer Ownership Registry. 3. If the sender is associated with an account owned by a different salesperson than the receiving mailbox, SALES-AGENT triggers a **cross-ownership alert**. 4. The alert is dispatched to the primary owner's agent (LUNA in this case, if the email arrived in Pedro's inbox about a González contact). 5. The receiving agent (ATLAS) is briefed: \"This contact is primarily assigned to María García. I've notified her agent. Please defer to her on pricing commitments. Here is a summary of the account's current status.\"",
   "new": "1. SALES-AGENT's email monitor intercepts incoming sales correspondence. 2. Extracts the sender, cross-references against the registry. 3. If the sender's account is owned by a different salesperson than the receiving mailbox, triggers a **cross-ownership alert**. 4. Dispatches the alert to the primary owner's agent (LUNA, if a González contact emailed Pedro). 5. Briefs the receiving agent (ATLAS): \"This contact is primarily assigned to María García. I've notified her agent. Please defer to her on pricing commitments. Here is a summary of the account's current status.\"",
   "marked": "1. SALES-AGENT's email monitor intercepts incoming sales [-correspondence before delivery.-] {+correspondence.+} 2. [-It extracts-] {+Extracts+} the sender, cross-references against the [-Customer Ownership Registry.-] {+registry.+} 3. If the [-sender-] {+sender's account+} is [-associated with an account-] owned by a different salesperson than the receiving mailbox, [-SALES-AGENT-] triggers a **cross-ownership alert**. 4. [-The-] {+Dispatches the+} alert [-is dispatched-] to the primary owner's agent [-(LUNA in this case,-] {+(LUNA,+} if [-the email arrived in Pedro's inbox about-] a González [-contact).-] {+contact emailed Pedro).+} 5. [-The-] {+Briefs the+} receiving agent [-(ATLAS) is briefed:-] {+(ATLAS):+} \"This contact is primarily assigned to María García. I've notified her agent. Please defer to her on pricing commitments. Here is a summary of the account's current status.\""
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": "This routing happens within seconds of email arrival — before either human has seen the message. The salespeople experience it as their agents having better situational awareness than they themselves maintain.",
   "new": null,
   "marked": "[-This routing happens within seconds of email arrival — before either human has seen the message. The salespeople experience it as their agents having better situational awareness than they themselves maintain.-]"
  },
  {
   "section": "4.2 Customer Ownership and Routing",
   "old": null,
   "new": "This routing happens within seconds — before either human has seen the message.",
   "marked": "{+This routing happens within seconds — before either human has seen the message.+}"
  },
  {
   "section": "4.3 Unified Customer History",
   "old": "When LUNA prepares María for a customer call, she needs the complete history of the company's relationship with that customer — not just María's interactions, but every touchpoint across the entire sales team. Perhaps Pedro had a call with a different contact at González three months ago where he mentioned a lead time issue. Perhaps the IT team did a site visit. Perhaps an older salesperson (now departed) had negotiated a special arrangement five years ago.",
   "new": null,
   "marked": "[-When LUNA prepares María for a customer call, she needs the complete history of the company's relationship with that customer — not just María's interactions, but every touchpoint across the entire sales team. Perhaps Pedro had a call with a different contact at González three months ago where he mentioned a lead time issue. Perhaps the IT team did a site visit. Perhaps an older salesperson (now departed) had negotiated a special arrangement five years ago.-]"
  },
  {
   "section": "4.3 Unified Customer History",
   "old": "LUNA cannot directly query ATLAS or other agents' memories. But she can query SALES-AGENT.",
   "new": null,
   "marked": "[-LUNA cannot directly query ATLAS or other agents' memories. But she can query SALES-AGENT.-]"
  },
  {
   "section": "4.3 Unified Customer History",
   "old": "The workflow:",
   "new": null,
   "marked": "[-The workflow:-]"
  },
  {
   "section": "4.3 Unified Customer History",
   "old": null,
   "new": "When LUNA prepares María for a customer call, she needs the complete relationship history — not just María's interactions, but every touchpoint across the sales team.",
   "marked": "{+When LUNA prepares María for a customer call, she needs the complete relationship history — not just María's interactions, but every touchpoint across the sales team.+}"
  },
  {
   "section": "4.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. It also queries its own aggregated memory of the account. 4. SALES-AGENT applies clearance filtering to the assembled history: - Sales interactions (T3): ✓ included in full. - Customer-specific pricing tiers negotiated by management (T4): ✗ replaced with a **Redacted Summary** (see 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 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.",
   "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. It also queries-] {+records plus+} its own aggregated [-memory of the account.-] {+memory.+} 4. SALES-AGENT applies clearance [-filtering to the assembled history:-] {+filtering:+} - Sales interactions (T3): ✓ included in full. - Customer-specific pricing tiers negotiated by management (T4): ✗ replaced with a **Redacted Summary** [-(see Section-] {+(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."
  },
  {
   "section": "4.3 Unified Customer History",
   "old": "The result: María walks into the call with comprehensive institutional knowledge — the full relationship narrative — without accessing data she is not cleared for. And crucially, she doesn't need to know that there is redacted data. The caution notice gives her the actionable information (don't commit on contracts) without the underlying detail (the legal proceeding itself).",
   "new": "María walks into the call with comprehensive institutional knowledge without accessing data above her clearance. The caution notice provides the actionable implication (don't commit on contracts) without the underlying detail.",
   "marked": "[-The result:-] María walks into the call with comprehensive institutional knowledge [-— the full relationship narrative —-] without accessing data [-she is not cleared for. And crucially, she doesn't need to know that there is redacted data.-] {+above her clearance.+} The caution notice [-gives her-] {+provides+} the actionable [-information-] {+implication+} (don't commit on contracts) without the underlying [-detail (the legal proceeding itself).-] {+detail.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": "### 4.4 Redacted Summaries",
   "new": "### 4.4 Redacted Summaries and Leakage Control",
   "marked": "### 4.4 Redacted [-Summaries-] {+Summaries and Leakage Control+}"
  },
  {
   "section": "4.4 Redacted Summaries",
   "old": "The redacted summary is a key concept in HIVEMIND. When a higher-clearance agent synthesizes information for delivery to a lower-clearance agent, it must:",
   "new": null,
   "marked": "[-The redacted summary is a key concept in HIVEMIND. When a higher-clearance agent synthesizes information for delivery to a lower-clearance agent, it must:-]"
  },
  {
   "section": "4.4 Redacted Summaries",
   "old": "1. **Identify the sensitive elements.** What portions of the data are classified above the recipient's clearance? 2. **Generate actionable context.** Strip the sensitive specifics, retain the behavioral implication. \"We are in negotiation on pricing — do not make commitments\" rather than \"CFO has authorized a 12% margin reduction contingent on volume guarantees.\" 3. **Log the redaction event.** The compliance log records: data requested, classification of raw data, clearance of recipient, summary generated, timestamp.",
   "new": null,
   "marked": "[-1. **Identify the sensitive elements.** What portions of the data are classified above the recipient's clearance? 2. **Generate actionable context.** Strip the sensitive specifics, retain the behavioral implication. \"We are in negotiation on pricing — do not make commitments\" rather than \"CFO has authorized a 12% margin reduction contingent on volume guarantees.\" 3. **Log the redaction event.** The compliance log records: data requested, classification of raw data, clearance of recipient, summary generated, timestamp.-]"
  },
  {
   "section": "4.4 Redacted Summaries",
   "old": "Redacted summaries require the summarizing agent (SALES-AGENT in this case) to exercise judgment about what is actionable context versus sensitive detail. This is one area where the architecture depends on model capability — we address the reliability implications in Section 8.5.",
   "new": null,
   "marked": "[-Redacted summaries require the summarizing agent (SALES-AGENT in this case) to exercise judgment about what is actionable context versus sensitive detail. This is one area where the architecture depends on model capability — we address the reliability implications in Section 8.5.-]"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "The redacted summary is a critical mechanism — and the single most vulnerable point in the architecture. When a higher-clearance agent synthesizes information for a lower-clearance recipient, there is an inherent risk that the LLM leaks restricted content through phrasing, implication, or context.",
   "marked": "{+The redacted summary is a critical mechanism — and the single most vulnerable point in the architecture. When a higher-clearance agent synthesizes information for a lower-clearance recipient, there is an inherent risk that the LLM leaks restricted content through phrasing, implication, or context.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "**The risk:** An LLM told to \"summarize this pricing negotiation without revealing the specific margins\" might produce: \"The CFO has authorized significant flexibility on pricing for this account, particularly if they commit to volume.\" This technically redacts the number but reveals the existence and direction of the authorization — information the salesperson should not have.",
   "marked": "{+**The risk:** An LLM told to \"summarize this pricing negotiation without revealing the specific margins\" might produce: \"The CFO has authorized significant flexibility on pricing for this account, particularly if they commit to volume.\" This technically redacts the number but reveals the existence and direction of the authorization — information the salesperson should not have.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "**Template-based redaction pipeline.** To mitigate this, HIVEMIND uses a structured redaction approach rather than relying on free-form LLM summarization:",
   "marked": "{+**Template-based redaction pipeline.** To mitigate this, HIVEMIND uses a structured redaction approach rather than relying on free-form LLM summarization:+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "1. **Classification and tagging.** SALES-AGENT identifies restricted elements in the source data and tags them by category (pricing authority, legal status, margin data, personnel information).",
   "marked": "{+1. **Classification and tagging.** SALES-AGENT identifies restricted elements in the source data and tags them by category (pricing authority, legal status, margin data, personnel information).+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "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.]",
   "marked": "{+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.]+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "3. **Template population.** The templates are filled with non-sensitive parameters only (role titles, contact names, standard procedures). No LLM generation is involved in the redacted output itself.",
   "marked": "{+3. **Template population.** The templates are filled with non-sensitive parameters only (role titles, contact names, standard procedures). No LLM generation is involved in the redacted output itself.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "4. **Fallback to human review.** If the restricted content does not fit any pre-approved template, the redaction request is queued for human review rather than generating a free-form summary. The requesting agent receives a holding response: \"Additional context for this account requires management approval. Request submitted.\"",
   "marked": "{+4. **Fallback to human review.** If the restricted content does not fit any pre-approved template, the redaction request is queued for human review rather than generating a free-form summary. The requesting agent receives a holding response: \"Additional context for this account requires management approval. Request submitted.\"+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "5. **Logging.** Every redaction event is logged: source classification, template used, output hash, recipient clearance. Logged redactions are reviewed in weekly compliance audits.",
   "marked": "{+5. **Logging.** Every redaction event is logged: source classification, template used, output hash, recipient clearance. Logged redactions are reviewed in weekly compliance audits.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "This template approach sacrifices some contextual richness — a human manager could write a more nuanced briefing — but it eliminates the information-theoretic leakage risk of LLM-generated summaries. The templates are authored by management and compliance, not by the LLM.",
   "marked": "{+This template approach sacrifices some contextual richness — a human manager could write a more nuanced briefing — but it eliminates the information-theoretic leakage risk of LLM-generated summaries. The templates are authored by management and compliance, not by the LLM.+}"
  },
  {
   "section": "4.4 Redacted Summaries and Leakage Control",
   "old": null,
   "new": "**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.",
   "marked": "{+**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.+}"
  },
  {
   "section": "4.5 Competitive Intelligence Flow",
   "old": "Salespeople in the field collect competitive intelligence continuously. Pedro hears in a client meeting that Competitor X has launched a new product. This is T2/T3 data — valuable, not particularly sensitive — but its value is at the organizational level, not the individual agent level.",
   "new": null,
   "marked": "[-Salespeople in the field collect competitive intelligence continuously. Pedro hears in a client meeting that Competitor X has launched a new product. This is T2/T3 data — valuable, not particularly sensitive — but its value is at the organizational level, not the individual agent level.-]"
  },
  {
   "section": "4.5 Competitive Intelligence Flow",
   "old": "HIVEMIND defines an **upward intelligence channel**: a structured mechanism by which employee agents can submit observations to their department agent without triggering the clearance violation that would accompany an upward query. The distinction is that the employee agent is *pushing* data (permitted) rather than *querying* (prohibited).",
   "new": null,
   "marked": "[-HIVEMIND defines an **upward intelligence channel**: a structured mechanism by which employee agents can submit observations to their department agent without triggering the clearance violation that would accompany an upward query. The distinction is that the employee agent is *pushing* data (permitted) rather than *querying* (prohibited).-]"
  },
  {
   "section": "4.5 Competitive Intelligence Flow",
   "old": null,
   "new": "HIVEMIND defines structured **upward push channels** (formalized in Rule 2a, Section 3.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) for intelligence that has organizational value beyond the individual agent.+}"
  },
  {
   "section": "4.5 Competitive Intelligence Flow",
   "old": "ATLAS, after Pedro's meeting, logs a competitive intelligence item: ``` ATLAS → SALES-AGENT (upward push, structured channel): 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, 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 ```",
   "marked": "ATLAS, after Pedro's meeting, [-logs a competitive intelligence item:-] {+logs:+} ``` ATLAS → SALES-AGENT (upward push, [-structured channel):-] {+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": "4.5 Competitive Intelligence Flow",
   "old": "SALES-AGENT receives this, adds it to its competitive intelligence aggregation, and forwards a synthesized report upward to STRATEGOS at its next scheduled sync. STRATEGOS presents it to the CEO as part of a market intelligence briefing.",
   "new": "SALES-AGENT validates the push against the channel schema (required fields present, classification within T2 ceiling for this channel), adds it to its competitive intelligence aggregation, and forwards a synthesized report upward to STRATEGOS at its next scheduled sync.",
   "marked": "SALES-AGENT [-receives this,-] {+validates the push against the channel schema (required fields present, classification within T2 ceiling for this channel),+} adds it to its competitive intelligence aggregation, and forwards a synthesized report upward to STRATEGOS at its next scheduled [-sync. STRATEGOS presents it to the CEO as part of a market intelligence briefing.-] {+sync.+}"
  },
  {
   "section": "4.5 Competitive Intelligence Flow",
   "old": "Critically, competitive intelligence does **not** flow laterally. Pedro's observation is not shared with María or the other sales agents. This is a deliberate design choice: lateral intelligence sharing creates gossip networks and can cause coordinated behavior that amplifies competitive intelligence into premature strategic commitments. The intelligence is aggregated at the department level and decisions about how to act on it are made by management, not by individual salespeople.",
   "new": "Competitive intelligence does **not** flow laterally by default. This is deliberate: lateral intelligence sharing creates gossip networks and can cause coordinated behavior that amplifies intelligence into premature strategic commitments. Aggregation happens at the department level; decisions about action are made by management.",
   "marked": "[-Critically, competitive-] {+Competitive+} intelligence does **not** flow [-laterally. Pedro's observation is not shared with María or the other sales agents.-] {+laterally by default.+} This is [-a deliberate design choice:-] {+deliberate:+} lateral intelligence sharing creates gossip networks and can cause coordinated behavior that amplifies [-competitive-] intelligence into premature strategic commitments. [-The intelligence is aggregated-] {+Aggregation happens+} at the department [-level and-] {+level;+} decisions about [-how to act on it-] {+action+} are made by [-management, not by individual salespeople.-] {+management.+}"
  },
  {
   "section": "4.6 The Coordination Dividend",
   "old": "The Sales Coordination Model illustrates the core value proposition of HIVEMIND: the whole is greater than the sum of its parts, and the boundaries make this possible rather than preventing it.",
   "new": "The Sales Coordination Model illustrates HIVEMIND's value proposition: the whole is greater than the sum of its parts, and the boundaries make this possible rather than preventing it.",
   "marked": "The Sales Coordination Model illustrates [-the core-] {+HIVEMIND's+} value [-proposition of HIVEMIND:-] {+proposition:+} the whole is greater than the sum of its parts, and the boundaries make this possible rather than preventing it."
  },
  {
   "section": "4.6 The Coordination Dividend",
   "old": "Without boundaries, a single omniscient sales AI would be dangerous — it would leak, it would create unfair information asymmetries between employees, and it would resist auditability. With strict individual agents and no coordination, you have 12 isolated assistants and none of the institutional memory benefits. HIVEMIND's mediated coordination model captures most of the integration value while enforcing the boundaries that make enterprise deployment tenable.",
   "new": "Without boundaries, a single omniscient sales AI would be dangerous — leaking, creating unfair information asymmetries, and resisting auditability. With strict individual agents and no coordination, you have 12 isolated assistants without institutional memory. HIVEMIND's mediated coordination captures most of the integration value while enforcing boundaries that make enterprise deployment tenable.",
   "marked": "Without boundaries, a single omniscient sales AI would be dangerous — [-it would leak, it would create-] {+leaking, creating+} unfair information [-asymmetries between employees,-] {+asymmetries,+} and [-it would resist-] {+resisting+} auditability. With strict individual agents and no coordination, you have 12 isolated assistants [-and none of the-] {+without+} institutional [-memory benefits.-] {+memory.+} HIVEMIND's mediated coordination [-model-] captures most of the integration value while enforcing [-the-] boundaries that make enterprise deployment tenable."
  },
  {
   "section": "5. Compliance and Audit Architecture",
   "old": "## 5. Compliance and Audit Architecture",
   "new": null,
   "marked": "[-## 5. Compliance and Audit Architecture-]"
  },
  {
   "section": "5.1 The Audit Imperative",
   "old": "### 5.1 The Audit Imperative",
   "new": null,
   "marked": "[-### 5.1 The Audit Imperative-]"
  },
  {
   "section": "5.1 The Audit Imperative",
   "old": "Enterprise AI deployment is not merely a technical challenge — it is a governance challenge. Legal counsel, compliance officers, and regulators will ask: How do you know the AI is not leaking sensitive data? How do you detect violations? What is your incident response process?",
   "new": null,
   "marked": "[-Enterprise AI deployment is not merely a technical challenge — it is a governance challenge. Legal counsel, compliance officers, and regulators will ask: How do you know the AI is not leaking sensitive data? How do you detect violations? What is your incident response process?-]"
  },
  {
   "section": "5.1 The Audit Imperative",
   "old": "HIVEMIND's answer is a comprehensive audit architecture that treats every inter-agent communication as a compliance event to be logged, analyzed, and reportable.",
   "new": null,
   "marked": "[-HIVEMIND's answer is a comprehensive audit architecture that treats every inter-agent communication as a compliance event to be logged, analyzed, and reportable.-]"
  },
  {
   "section": "5.2 Communication Logging",
   "old": "### 5.2 Communication Logging",
   "new": null,
   "marked": "[-### 5.2 Communication Logging-]"
  },
  {
   "section": "5.2 Communication Logging",
   "old": "Every message passing between agents is logged to a tamper-evident audit store with the following schema:",
   "new": null,
   "marked": "[-Every message passing between agents is logged to a tamper-evident audit store with the following schema:-]"
  },
  {
   "section": "5. Privacy and Legal Considerations",
   "old": null,
   "new": "## 5. Privacy and Legal Considerations",
   "marked": "{+## 5. Privacy and Legal Considerations+}"
  },
  {
   "section": "5. Privacy and Legal Considerations",
   "old": null,
   "new": "*Legal requirements motivate the compliance architecture that follows in Section 6. We address them first.*",
   "marked": "{+*Legal requirements motivate the compliance architecture that follows in Section 6. We address them first.*+}"
  },
  {
   "section": "5.1 Employee Awareness and Transparency",
   "old": null,
   "new": "### 5.1 Employee Awareness and Transparency",
   "marked": "{+### 5.1 Employee Awareness and Transparency+}"
  },
  {
   "section": "5.1 Employee Awareness and Transparency",
   "old": null,
   "new": "Employees must know their agents are monitored. This is a legal requirement in most jurisdictions (EU Working Time Directive, national employment law in Spain, GDPR Article 88).",
   "marked": "{+Employees must know their agents are monitored. This is a legal requirement in most jurisdictions (EU Working Time Directive, national employment law in Spain, GDPR Article 88).+}"
  },
  {
   "section": "5.1 Employee Awareness and Transparency",
   "old": null,
   "new": "The employment contract addendum must clearly state:",
   "marked": "{+The employment contract addendum must clearly state:+}"
  },
  {
   "section": "5.1 Employee Awareness and Transparency",
   "old": null,
   "new": "1. The employee's AI agent is operated by the company on company infrastructure. 2. All interactions with the agent are logged. 3. The agent's memory files are readable by department supervisors and executive agents. 4. The agent is subject to nightly compliance sweeps. 5. The agent cannot be configured to conceal information from the compliance system.",
   "marked": "{+1. The employee's AI agent is operated by the company on company infrastructure. 2. All interactions with the agent are logged. 3. The agent's memory files are readable by department supervisors and executive agents. 4. The agent is subject to nightly compliance sweeps. 5. The agent cannot be configured to conceal information from the compliance system.+}"
  },
  {
   "section": "5.1 Employee Awareness and Transparency",
   "old": null,
   "new": "This is analogous to existing monitoring clauses for company email and devices. The critical difference: the AI agent may feel more personal — employees may share things with their agent they wouldn't type in a work email. The transparency clause must make clear that intimacy is not privacy.",
   "marked": "{+This is analogous to existing monitoring clauses for company email and devices. The critical difference: the AI agent may feel more personal — employees may share things with their agent they wouldn't type in a work email. The transparency clause must make clear that intimacy is not privacy.+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "### 5.2 User Adoption and Change Management",
   "marked": "{+### 5.2 User Adoption and Change Management+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "Legal transparency is necessary but insufficient. Enterprise AI adoption literature (Brynjolfsson & McAfee, 2014; Davenport & Ronanki, 2018) consistently shows that organizational change management is often harder than the technology itself.",
   "marked": "{+Legal transparency is necessary but insufficient. Enterprise AI adoption literature (Brynjolfsson & McAfee, 2014; Davenport & Ronanki, 2018) consistently shows that organizational change management is often harder than the technology itself.+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "**Anticipated adoption challenges:**",
   "marked": "{+**Anticipated adoption challenges:**+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "- **Trust deficit.** Salespeople knowing their agent is monitored by management's agent may self-censor, sharing less with their assistant and defeating the purpose. Mitigation: clear communication that compliance monitoring targets data boundary violations, not employee performance evaluation. The audit system flags clearance breaches, not whether María complained about her workload to LUNA.",
   "marked": "{+- **Trust deficit.** Salespeople knowing their agent is monitored by management's agent may self-censor, sharing less with their assistant and defeating the purpose. Mitigation: clear communication that compliance monitoring targets data boundary violations, not employee performance evaluation. The audit system flags clearance breaches, not whether María complained about her workload to LUNA.+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "- **Resistance to coordination.** Salespeople accustomed to \"owning\" their client relationships may resist a system where a department agent aggregates their intelligence. Mitigation: demonstrate value early — the first time a salesperson walks into a meeting with a comprehensive briefing they didn't have to assemble, resistance decreases.",
   "marked": "{+- **Resistance to coordination.** Salespeople accustomed to \"owning\" their client relationships may resist a system where a department agent aggregates their intelligence. Mitigation: demonstrate value early — the first time a salesperson walks into a meeting with a comprehensive briefing they didn't have to assemble, resistance decreases.+}"
  },
  {
   "section": "5.2 User Adoption and Change Management",
   "old": null,
   "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*, 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": "5.2 User Adoption and Change Management",
   "old": null,
   "new": "**Adoption strategy:** See Section 9 (Phased Deployment) for a staged rollout that addresses these challenges incrementally.",
   "marked": "{+**Adoption strategy:** See Section 9 (Phased Deployment) for a staged rollout that addresses these challenges incrementally.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "new": "### 5.3 GDPR Implications",
   "marked": "{+### 5.3 GDPR Implications+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "new": "**Lawful basis for processing.** Agent-to-agent sharing of personal data requires a lawful basis. For customer data: legitimate interest or contract performance. For employee data processed by the HR agent: employment contract.",
   "marked": "{+**Lawful basis for processing.** Agent-to-agent sharing of personal data requires a lawful basis. For customer data: legitimate interest or contract performance. For employee data processed by the HR agent: employment contract.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "new": "**Data minimization.** Agents should not accumulate personal data beyond operational necessity. Memory files are pruned regularly of data exceeding retention periods. The nightly sweep includes a data minimization pass.",
   "marked": "{+**Data minimization.** Agents should not accumulate personal data beyond operational necessity. Memory files are pruned regularly of data exceeding retention periods. The nightly sweep includes a data minimization pass.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "new": "**Purpose limitation.** Customer data shared with SALES-AGENT for account coordination cannot be repurposed for marketing analytics without a separate lawful basis and disclosure. Audit logs provide the evidence trail.",
   "marked": "{+**Purpose limitation.** Customer data shared with SALES-AGENT for account coordination cannot be repurposed for marketing analytics without a separate lawful basis and disclosure. Audit logs provide the evidence trail.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "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 5.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), DPAs with API providers are not required, but DPAs with hardware vendors providing managed services may still apply.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "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 6.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) includes human-in-the-loop review specifically to satisfy this requirement.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "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 5.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) must assess this and define retention limits for behavioral data.+}"
  },
  {
   "section": "5.3 GDPR Implications",
   "old": null,
   "new": "**Cross-border transfers.** Every message sent to a cloud LLM API constitutes a potential cross-border data transfer. This is one of the strongest arguments for on-premises inference.",
   "marked": "{+**Cross-border transfers.** Every message sent to a cloud LLM API constitutes a potential cross-border data transfer. This is one of the strongest arguments for on-premises inference.+}"
  },
  {
   "section": "5.4 Data Protection Impact Assessment",
   "old": null,
   "new": "### 5.4 Data Protection Impact Assessment",
   "marked": "{+### 5.4 Data Protection Impact Assessment+}"
  },
  {
   "section": "5.4 Data Protection Impact Assessment",
   "old": null,
   "new": "A multi-agent system processing employee and customer data at scale requires a DPIA under GDPR Article 35. The DPIA must be completed before deployment and should assess:",
   "marked": "{+A multi-agent system processing employee and customer data at scale requires a DPIA under GDPR Article 35. The DPIA must be completed before deployment and should assess:+}"
  },
  {
   "section": "5.4 Data Protection Impact Assessment",
   "old": null,
   "new": "- Data categories processed by each agent tier - Risks to data subjects (employees, customers) from memory accumulation, inter-agent sharing, and potential breaches - Necessity and proportionality of each data processing activity - Safeguards: clearance model, encryption, audit system, human oversight mechanisms - Profiling assessment: whether agent memory constitutes profiling under Article 4(4)",
   "marked": "{+- Data categories processed by each agent tier - Risks to data subjects (employees, customers) from memory accumulation, inter-agent sharing, and potential breaches - Necessity and proportionality of each data processing activity - Safeguards: clearance model, encryption, audit system, human oversight mechanisms - Profiling assessment: whether agent memory constitutes profiling under Article 4(4)+}"
  },
  {
   "section": "5.5 The EU AI Act",
   "old": null,
   "new": "### 5.5 The EU AI Act",
   "marked": "{+### 5.5 The EU AI Act+}"
  },
  {
   "section": "5.5 The EU AI Act",
   "old": null,
   "new": "The EU AI Act (Regulation 2024/1689) introduces obligations that HIVEMIND must address. A multi-agent system that monitors employee communications and makes automated quarantine decisions likely falls under **high-risk AI system** classification (Annex III, Category 4: employment, workers management, and access to self-employment).",
   "marked": "{+The EU AI Act (Regulation 2024/1689) introduces obligations that HIVEMIND must address. A multi-agent system that monitors employee communications and makes automated quarantine decisions likely falls under **high-risk AI system** classification (Annex III, Category 4: employment, workers management, and access to self-employment).+}"
  },
  {
   "section": "5.5 The EU AI Act",
   "old": null,
   "new": "**Obligations for high-risk classification:**",
   "marked": "{+**Obligations for high-risk classification:**+}"
  },
  {
   "section": "5.5 The EU AI Act",
   "old": null,
   "new": "- **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.",
   "marked": "{+- **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.+}"
  },
  {
   "section": "5.6 Data Residency and On-Premises Processing",
   "old": null,
   "new": "### 5.6 Data Residency and On-Premises Processing",
   "marked": "{+### 5.6 Data Residency and On-Premises Processing+}"
  },
  {
   "section": "5.6 Data Residency and On-Premises Processing",
   "old": null,
   "new": "For a family business handling customer data under GDPR, the recommendation is: all LLM inference should be on-premises.",
   "marked": "{+For a family business handling customer data under GDPR, the recommendation is: all LLM inference should be on-premises.+}"
  },
  {
   "section": "5.6 Data Residency and On-Premises Processing",
   "old": null,
   "new": "- 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.",
   "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 local inference server. - No customer data, employee data, or corporate correspondence transmitted to cloud APIs.+}"
  },
  {
   "section": "5.6 Data Residency and On-Premises Processing",
   "old": null,
   "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 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.",
   "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) 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.+}"
  },
  {
   "section": "5.7 The Right to Be Forgotten — Employee Offboarding",
   "old": null,
   "new": "### 5.7 The Right to Be Forgotten — Employee Offboarding",
   "marked": "{+### 5.7 The Right to Be Forgotten — Employee Offboarding+}"
  },
  {
   "section": "5.7 The Right to Be Forgotten — Employee Offboarding",
   "old": null,
   "new": "When an employee leaves:",
   "marked": "{+When an employee leaves:+}"
  },
  {
   "section": "5.7 The Right to Be Forgotten — Employee Offboarding",
   "old": null,
   "new": "1. Agent is suspended and workspace snapshotted. 2. A \"knowledge transfer\" process extracts company-property content (customer histories, procedural knowledge) and migrates it to the department agent's memory. 3. A \"personal data extraction\" process identifies memory content constituting personal data about the employee. 4. The employee reviews and may request deletion of personal data. 5. After the retention period, the employee's memory workspace is purged. 6. The system user account is deactivated (not deleted — audit trails require preservation for the standard retention period).",
   "marked": "{+1. Agent is suspended and workspace snapshotted. 2. A \"knowledge transfer\" process extracts company-property content (customer histories, procedural knowledge) and migrates it to the department agent's memory. 3. A \"personal data extraction\" process identifies memory content constituting personal data about the employee. 4. The employee reviews and may request deletion of personal data. 5. After the retention period, the employee's memory workspace is purged. 6. The system user account is deactivated (not deleted — audit trails require preservation for the standard retention period).+}"
  },
  {
   "section": "5.8 The IT Staff Privilege Clause",
   "old": null,
   "new": "### 5.8 The IT Staff Privilege Clause",
   "marked": "{+### 5.8 The IT Staff Privilege Clause+}"
  },
  {
   "section": "5.8 The IT Staff Privilege Clause",
   "old": null,
   "new": "IT staff with root access can, by virtue of their role, read any file on the server. This is unavoidable. The mitigation: compliance audit logs are stored in an immutable, append-only store with cryptographic signing. Tampering is detectable. A separate access log records all privileged access events, reviewed by the CEO or external auditor.",
   "marked": "{+IT staff with root access can, by virtue of their role, read any file on the server. This is unavoidable. The mitigation: compliance audit logs are stored in an immutable, append-only store with cryptographic signing. Tampering is detectable. A separate access log records all privileged access events, reviewed by the CEO or external auditor.+}"
  },
  {
   "section": "5.8 The IT Staff Privilege Clause",
   "old": null,
   "new": "---",
   "marked": "{+---+}"
  },
  {
   "section": "6. Compliance and Audit Architecture",
   "old": null,
   "new": "## 6. Compliance and Audit Architecture",
   "marked": "{+## 6. Compliance and Audit Architecture+}"
  },
  {
   "section": "6.1 The Audit Imperative",
   "old": null,
   "new": "### 6.1 The Audit Imperative",
   "marked": "{+### 6.1 The Audit Imperative+}"
  },
  {
   "section": "6.1 The Audit Imperative",
   "old": null,
   "new": "Legal counsel, compliance officers, and regulators will ask: How do you know the AI is not leaking sensitive data? How do you detect violations? What is your incident response process? HIVEMIND answers with a comprehensive audit architecture treating every inter-agent communication as a compliance event.",
   "marked": "{+Legal counsel, compliance officers, and regulators will ask: How do you know the AI is not leaking sensitive data? How do you detect violations? What is your incident response process? HIVEMIND answers with a comprehensive audit architecture treating every inter-agent communication as a compliance event.+}"
  },
  {
   "section": "6.2 Communication Logging",
   "old": null,
   "new": "### 6.2 Communication Logging",
   "marked": "{+### 6.2 Communication Logging+}"
  },
  {
   "section": "6.2 Communication Logging",
   "old": null,
   "new": "Every inter-agent message is logged to a tamper-evident audit store:",
   "marked": "{+Every inter-agent message is logged to a tamper-evident audit store:+}"
  },
  {
   "section": "6.2 Communication Logging",
   "old": "Note that full message content is hashed and stored separately in an encrypted audit store accessible only to the compliance officer and STRATEGOS. The main audit log contains metadata, hashes, and flags — enough to detect violations, not enough to constitute its own information leak.",
   "new": "Full message content is hashed and stored separately in an encrypted audit store accessible only to the compliance officer and STRATEGOS. The main audit log contains metadata and hashes — enough to detect violations without constituting its own leak.",
   "marked": "[-Note that full-] {+Full+} message content is hashed and stored separately in an encrypted audit store accessible only to the compliance officer and STRATEGOS. The main audit log contains [-metadata, hashes,-] {+metadata+} and [-flags-] {+hashes+} — enough to detect [-violations, not enough to constitute-] {+violations without constituting+} its own [-information-] leak."
  },
  {
   "section": "5.2 Communication Logging",
   "old": "The `compliance_flags` field is populated by automated analysis (see Section 5.3). Any flagged event is surfaced in the next management audit report.",
   "new": null,
   "marked": "[-The `compliance_flags` field is populated by automated analysis (see Section 5.3). Any flagged event is surfaced in the next management audit report.-]"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "### 5.3 Nightly Compliance Sweep",
   "new": "### 6.3 Nightly Compliance Sweep",
   "marked": "### [-5.3-] {+6.3+} Nightly Compliance Sweep"
  },
  {
   "section": "5.3 Nightly Compliance Sweep",
   "old": "A cron job runs nightly, typically during the overnight low-activity window. It performs four analyses:",
   "new": null,
   "marked": "[-A cron job runs nightly, typically during the overnight low-activity window. It performs four analyses:-]"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "A cron job runs nightly with four analysis passes:",
   "marked": "{+A cron job runs nightly with four analysis passes:+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "**5.3.1 Information Leak Detection**",
   "new": "**6.3.1 Information Leak Detection**",
   "marked": "[-**5.3.1-] {+**6.3.1+} Information Leak Detection**"
  },
  {
   "section": "5.3 Nightly Compliance Sweep",
   "old": "The sweep scans agent memory files for content classified above the agent's clearance tier. This is achieved via a two-pass analysis:",
   "new": null,
   "marked": "[-The sweep scans agent memory files for content classified above the agent's clearance tier. This is achieved via a two-pass analysis:-]"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "- *Pass 1: Structural scan.* Does the memory file contain references to data from restricted directories? File paths, document IDs, or hashes that cross-reference T4/T5 sources are flagged. - *Pass 2: Semantic scan.* A dedicated audit model reviews recent memory additions for content that \"sounds like\" restricted data (salary figures, credential-like strings, legal proceedings language). This is inherently probabilistic and cannot be the sole enforcement mechanism, but serves as an early warning layer.",
   "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 1: Structural scan.* [-Does the-] {+Checks+} memory [-file contain-] {+files for+} references to data from restricted [-directories? File-] {+directories — file+} paths, document IDs, or hashes [-that cross-reference-] {+cross-referencing+} T4/T5 [-sources are flagged.-] {+sources.+} - *Pass 2: Semantic scan.* [-A dedicated-] {+An+} audit model reviews recent memory additions for content [-that \"sounds like\"-] {+resembling+} restricted data (salary figures, credential-like strings, legal proceedings [-language). This is inherently probabilistic and cannot be the sole enforcement mechanism, but serves as an early warning layer.-] {+language).+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "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* (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": "6.3 Nightly Compliance Sweep",
   "old": "**5.3.2 Compliance Violation Detection**",
   "new": "**6.3.2 Compliance Violation Detection**",
   "marked": "[-**5.3.2-] {+**6.3.2+} Compliance Violation Detection**"
  },
  {
   "section": "5.3 Nightly Compliance Sweep",
   "old": "GDPR and sector-specific regulations impose rules on what data can be processed, retained, and shared. The compliance sweep checks:",
   "new": null,
   "marked": "[-GDPR and sector-specific regulations impose rules on what data can be processed, retained, and shared. The compliance sweep checks:-]"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "- Is personal data from EU subjects being logged in agent memories without explicit need-to-know justification? - Are customer data requests properly logged with purpose codes? - Is any data scheduled for deletion (right-to-be-forgotten requests) still present in agent memory files?",
   "new": "- Personal data from EU subjects logged without need-to-know justification? - Customer data requests properly logged with purpose codes? - Data scheduled for deletion (right-to-be-forgotten) still present in memory files?",
   "marked": "- [-Is personal-] {+Personal+} data from EU subjects [-being-] logged [-in agent memories-] without [-explicit-] need-to-know justification? - [-Are customer-] {+Customer+} data requests properly logged with purpose codes? - [-Is any data-] {+Data+} scheduled for deletion [-(right-to-be-forgotten requests)-] {+(right-to-be-forgotten)+} still present in [-agent-] memory files?"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "**5.3.3 Behavioral Anomaly Detection**",
   "new": "**6.3.3 Behavioral Anomaly Detection**",
   "marked": "[-**5.3.3-] {+**6.3.3+} Behavioral Anomaly Detection**"
  },
  {
   "section": "5.3 Nightly Compliance Sweep",
   "old": "Each agent's communications are profiled over time. Deviations from baseline are flagged:",
   "new": null,
   "marked": "[-Each agent's communications are profiled over time. Deviations from baseline are flagged:-]"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "- An agent that suddenly issues 10x its normal number of queries to SALES-AGENT is anomalous. - An agent that queries for customer data outside its assigned account portfolio without a logged justification is flagged. - An agent that generates outputs significantly longer than its historical norm (potential data exfiltration attempt) is noted.",
   "new": "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).",
   "marked": "{+Agent communications are profiled over time. Deviations flagged:+} - [-An agent that suddenly issues-] 10x [-its-] normal [-number of queries-] {+query volume+} to [-SALES-AGENT is anomalous.-] {+department agent.+} - [-An agent that queries-] {+Queries+} for customer data outside [-its-] assigned [-account-] portfolio without [-a logged justification is flagged.-] {+justification.+} - [-An agent that generates outputs-] {+Outputs+} significantly longer than [-its-] historical norm (potential data [-exfiltration attempt) is noted.-] {+exfiltration).+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "**5.3.4 Memory Contamination Check**",
   "new": "**6.3.4 Memory Contamination Check**",
   "marked": "[-**5.3.4-] {+**6.3.4+} Memory Contamination Check**"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": "Restricted data has a tendency to propagate through legitimate-seeming channels. A manager might verbally mention a salary figure to a salesperson; the sales agent transcribes the conversation into memory. The memory contamination check specifically looks for structured data types (numeric patterns consistent with salaries, IP addresses and credentials in free text, names from the restricted HR roster) appearing in lower-clearance memory files.",
   "new": "Restricted data propagates through legitimate channels — a manager mentions a salary figure to a salesperson, the agent transcribes it. The scan targets structured data types (salary-consistent numerics, IP addresses, credential patterns, names from restricted HR roster) in lower-clearance memory files.",
   "marked": "Restricted data [-has-] {+propagates through legitimate channels —+} a [-tendency to propagate through legitimate-seeming channels. A-] manager [-might verbally mention-] {+mentions+} a salary figure to a [-salesperson;-] {+salesperson,+} the [-sales-] agent transcribes [-the conversation into memory.-] {+it.+} The [-memory contamination check specifically looks for-] {+scan targets+} structured data types [-(numeric patterns consistent with salaries,-] {+(salary-consistent numerics,+} IP [-addresses and credentials in free text,-] {+addresses, credential patterns,+} names from [-the-] restricted HR roster) [-appearing-] in lower-clearance memory files."
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "Memory files distinguish between agent-generated and human-dictated entries. Human-dictated entries receive elevated scrutiny.",
   "marked": "{+Memory files distinguish between agent-generated and human-dictated entries. Human-dictated entries receive elevated scrutiny.+}"
  },
  {
   "section": "6.4 Automated Quarantine",
   "old": "### 5.4 Automated Quarantine",
   "new": "### 6.4 Automated Quarantine",
   "marked": "### [-5.4-] {+6.4+} Automated Quarantine"
  },
  {
   "section": "5.4 Automated Quarantine",
   "old": "When a compliance sweep or real-time monitoring event detects a violation above a defined severity threshold, HIVEMIND initiates automated quarantine:",
   "new": null,
   "marked": "[-When a compliance sweep or real-time monitoring event detects a violation above a defined severity threshold, HIVEMIND initiates automated quarantine:-]"
  },
  {
   "section": "6.4 Automated Quarantine",
   "old": null,
   "new": "When a violation exceeds the severity threshold:",
   "marked": "{+When a violation exceeds the severity threshold:+}"
  },
  {
   "section": "6.4 Automated Quarantine",
   "old": "1. The affected agent's session is suspended. Its workspace is snapshotted. 2. The agent's tools are restricted to read-only within its existing workspace. No new writes, no external communication. 3. STRATEGOS and the compliance officer are alerted with the full event record. 4. The compromised memory content is flagged for human review. 5. After review, the compliance officer issues one of three decisions: (a) false positive — agent reinstated with no changes; (b) memory contamination — specific entries purged, agent reinstated; (c) systemic breach — agent workspace audited, root cause analysis required before reinstatement.",
   "new": "1. Agent session suspended, workspace snapshotted. 2. Tools restricted to read-only. No new writes, no external communication. 3. STRATEGOS and compliance officer alerted with full event record. 4. Compromised memory content flagged for human review. 5. Compliance officer disposition: (a) false positive — reinstate; (b) memory contamination — purge specific entries, reinstate; (c) systemic breach — full audit required.",
   "marked": "1. [-The affected agent's-] {+Agent+} session [-is suspended. Its-] {+suspended,+} workspace [-is-] snapshotted. 2. [-The agent's tools are-] {+Tools+} restricted to [-read-only within its existing workspace.-] {+read-only.+} No new writes, no external communication. 3. STRATEGOS and [-the-] compliance officer [-are-] alerted with [-the-] full event record. 4. [-The compromised-] {+Compromised+} memory content [-is-] flagged for human review. 5. [-After review, the compliance-] {+Compliance+} officer [-issues one of three decisions:-] {+disposition:+} (a) false positive — [-agent reinstated with no changes;-] {+reinstate;+} (b) memory contamination — {+purge+} specific [-entries purged, agent reinstated;-] {+entries, reinstate;+} (c) systemic breach — [-agent workspace audited, root cause analysis required before reinstatement.-] {+full audit required.+}"
  },
  {
   "section": "5.4 Automated Quarantine",
   "old": "Quarantine is a significant event that disrupts the affected employee's work. The threshold for automatic quarantine should therefore be calibrated carefully — immediate quarantine for definitive credential exposure or T5 data in a T3 memory file; human review for ambiguous cases.",
   "new": null,
   "marked": "[-Quarantine is a significant event that disrupts the affected employee's work. The threshold for automatic quarantine should therefore be calibrated carefully — immediate quarantine for definitive credential exposure or T5 data in a T3 memory file; human review for ambiguous cases.-]"
  },
  {
   "section": "6.4 Automated Quarantine",
   "old": null,
   "new": "The human-in-the-loop review satisfies GDPR Article 22 requirements for automated decisions affecting employees.",
   "marked": "{+The human-in-the-loop review satisfies GDPR Article 22 requirements for automated decisions affecting employees.+}"
  },
  {
   "section": "6.4 Automated Quarantine",
   "old": null,
   "new": "Quarantine thresholds are calibrated: immediate quarantine for definitive credential exposure or T5 data in T3 memory; human review queue for ambiguous cases. This calibration should be reviewed quarterly based on false positive rates.",
   "marked": "{+Quarantine thresholds are calibrated: immediate quarantine for definitive credential exposure or T5 data in T3 memory; human review queue for ambiguous cases. This calibration should be reviewed quarterly based on false positive rates.+}"
  },
  {
   "section": "6.5 Audit Reporting",
   "old": "### 5.5 Audit Reporting",
   "new": "### 6.5 Audit Reporting",
   "marked": "### [-5.5-] {+6.5+} Audit Reporting"
  },
  {
   "section": "6.5 Audit Reporting",
   "old": "Weekly audit reports are generated by STRATEGOS and delivered to the compliance officer and CEO. The report includes:",
   "new": "Weekly reports generated by STRATEGOS for compliance officer and CEO:",
   "marked": "Weekly [-audit-] reports [-are-] generated by STRATEGOS [-and delivered to the-] {+for+} compliance officer and [-CEO. The report includes:-] {+CEO:+}"
  },
  {
   "section": "6.5 Audit Reporting",
   "old": "- Total inter-agent communications volume by department - Compliance flags raised and dispositions - Quarantine events - Summary of redacted data deliveries (how often was T4/T5 data sanitized before reaching lower-clearance agents?) - Anomaly trends over the trailing 30-day window",
   "new": "- Inter-agent communication volume by department - Compliance flags raised and dispositions - Quarantine events - Redacted data delivery summary - Anomaly trends (trailing 30-day window) - Semantic scan advisory findings awaiting review",
   "marked": "- [-Total inter-agent communications-] {+Inter-agent communication+} volume by department - Compliance flags raised and dispositions - Quarantine events - [-Summary of redacted-] {+Redacted+} data [-deliveries (how often was T4/T5 data sanitized before reaching lower-clearance agents?)-] {+delivery summary+} - Anomaly trends [-over the trailing-] {+(trailing+} 30-day [-window-] {+window) - Semantic scan advisory findings awaiting review+}"
  },
  {
   "section": "5.5 Audit Reporting",
   "old": "These reports serve dual purposes: operational oversight for IT/compliance, and board-level accountability for enterprise AI governance.",
   "new": null,
   "marked": "[-These reports serve dual purposes: operational oversight for IT/compliance, and board-level accountability for enterprise AI governance.-]"
  },
  {
   "section": "7. Technical Implementation on OpenClaw/TinkerClaw",
   "old": "## 6. Technical Implementation on OpenClaw/TinkerClaw",
   "new": "## 7. Technical Implementation on OpenClaw/TinkerClaw",
   "marked": "## [-6.-] {+7.+} Technical Implementation on OpenClaw/TinkerClaw"
  },
  {
   "section": "7.1 Platform Overview",
   "old": "### 6.1 Platform Overview",
   "new": "### 7.1 Platform Overview",
   "marked": "### [-6.1-] {+7.1+} Platform Overview"
  },
  {
   "section": "6.1 Platform Overview",
   "old": "OpenClaw and TinkerClaw provide the runtime infrastructure for HIVEMIND. Each agent is a configured OpenClaw instance with:",
   "new": null,
   "marked": "[-OpenClaw and TinkerClaw provide the runtime infrastructure for HIVEMIND. Each agent is a configured OpenClaw instance with:-]"
  },
  {
   "section": "7.1 Platform Overview",
   "old": "- A system prompt defining its persona, role, clearance context, and behavioral rules - A workspace directory mapping to the employee's accessible corporate filesystem paths - A set of enabled tools scoped to the agent's role - A persistent memory system (MEMORY.md + daily journals) - An inter-session communication capability (sessions_send, sessions_spawn)",
   "new": "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)",
   "marked": "{+Each agent is a configured OpenClaw instance with:+} - [-A system-] {+System+} prompt defining [-its-] persona, role, clearance context, [-and-] behavioral rules - [-A workspace-] {+Workspace+} directory mapping to [-the employee's-] accessible corporate filesystem paths - [-A-] {+Role-scoped tool+} set [-of enabled tools scoped to the agent's role-] - [-A persistent-] {+Persistent+} memory [-system-] (MEMORY.md + daily journals) - [-An inter-session-] {+Inter-session+} communication capability (sessions_send, sessions_spawn)"
  },
  {
   "section": "6.1 Platform Overview",
   "old": "TinkerClaw's companion app serves as the employee-facing interface: the human interacts with their named agent through the app, which routes to the appropriate OpenClaw session on the corporate server.",
   "new": null,
   "marked": "[-TinkerClaw's companion app serves as the employee-facing interface: the human interacts with their named agent through the app, which routes to the appropriate OpenClaw session on the corporate server.-]"
  },
  {
   "section": "7.1 Platform Overview",
   "old": null,
   "new": "TinkerClaw's companion app is the employee-facing interface.",
   "marked": "{+TinkerClaw's companion app is the employee-facing interface.+}"
  },
  {
   "section": "7.2 Linux Filesystem Permission Model",
   "old": "### 6.2 Linux Filesystem Permission Model",
   "new": "### 7.2 Linux Filesystem Permission Model",
   "marked": "### [-6.2-] {+7.2+} Linux Filesystem Permission Model"
  },
  {
   "section": "6.2 Linux Filesystem Permission Model",
   "old": "HIVEMIND's clearance model is implemented through Linux user accounts and POSIX ACLs. The deployment script creates:",
   "new": null,
   "marked": "[-HIVEMIND's clearance model is implemented through Linux user accounts and POSIX ACLs. The deployment script creates:-]"
  },
  {
   "section": "Employee agents: T2 + role-specific T3 usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas",
   "old": "# Employee agents get T2 + role-specific T3 groups usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas",
   "new": "# Employee agents: T2 + role-specific T3 usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas",
   "marked": "# Employee [-agents get-] {+agents:+} T2 + role-specific T3 [-groups-] usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas"
  },
  {
   "section": "Department agent: up to T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales",
   "old": "# Department agent gets T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales",
   "new": "# Department agent: up to T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales",
   "marked": "# Department [-agent gets-] {+agent: up to+} T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales"
  },
  {
   "section": "Executive agent: all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos",
   "old": "# Executive agent gets all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos",
   "new": "# Executive agent: all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos",
   "marked": "# Executive [-agent gets-] {+agent:+} all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos"
  },
  {
   "section": "Directory permissions chmod 750 /corporate/internal && chown root:clearance_t2 /corporate/internal chmod 750 /corporate/confidential/sales && chown root:clearance_t3_sales /corporate/confidential/sales chmod 750 /corporate/restricted && chown root:clearance_t4 /corporate/restricted chmod 700 /corporate/secret && chown root:clearance_t5 /corporate/secret ```",
   "old": "# Set directory permissions chmod 750 /corporate/internal && chown root:clearance_t2 /corporate/internal chmod 750 /corporate/confidential/sales && chown root:clearance_t3_sales /corporate/confidential/sales chmod 700 /corporate/restricted && chown root:clearance_t4 /corporate/restricted chmod 700 /corporate/secret && chown root:clearance_t5 /corporate/secret ```",
   "new": "# Directory permissions chmod 750 /corporate/internal && chown root:clearance_t2 /corporate/internal chmod 750 /corporate/confidential/sales && chown root:clearance_t3_sales /corporate/confidential/sales chmod 750 /corporate/restricted && chown root:clearance_t4 /corporate/restricted chmod 700 /corporate/secret && chown root:clearance_t5 /corporate/secret ```",
   "marked": "# [-Set directory-] {+Directory+} permissions chmod 750 /corporate/internal && chown root:clearance_t2 /corporate/internal chmod 750 /corporate/confidential/sales && chown root:clearance_t3_sales /corporate/confidential/sales chmod [-700-] {+750+} /corporate/restricted && chown root:clearance_t4 /corporate/restricted chmod 700 /corporate/secret && chown root:clearance_t5 /corporate/secret ```"
  },
  {
   "section": "Directory permissions chmod 750 /corporate/internal && chown root:clearance_t2 /corporate/internal chmod 750 /corporate/confidential/sales && chown root:clearance_t3_sales /corporate/confidential/sales chmod 750 /corporate/restricted && chown root:clearance_t4 /corporate/restricted chmod 700 /corporate/secret && chown root:clearance_t5 /corporate/secret ```",
   "old": "Each agent process is spawned under its corresponding system user via `sudo -u agent_luna openclaw start`. The agent physically cannot read files it lacks permissions for — the kernel enforces this regardless of what the language model might attempt.",
   "new": "Each agent process spawns under its system user via `sudo -u agent_luna openclaw start`. The kernel enforces access regardless of model behavior.",
   "marked": "Each agent process [-is spawned-] {+spawns+} under its [-corresponding-] system user via `sudo -u agent_luna openclaw start`. The [-agent physically cannot read files it lacks permissions for — the-] kernel enforces [-this-] {+access+} regardless of [-what the language-] model [-might attempt.-] {+behavior.+}"
  },
  {
   "section": "6.3 Inter-Agent Communication via OpenClaw Sessions",
   "old": "### 6.3 Inter-Agent Communication via OpenClaw Sessions",
   "new": null,
   "marked": "[-### 6.3 Inter-Agent Communication via OpenClaw Sessions-]"
  },
  {
   "section": "6.3 Inter-Agent Communication via OpenClaw Sessions",
   "old": "OpenClaw's sessions infrastructure is the communication backbone. The key primitives:",
   "new": null,
   "marked": "[-OpenClaw's sessions infrastructure is the communication backbone. The key primitives:-]"
  },
  {
   "section": "6.3 Inter-Agent Communication via OpenClaw Sessions",
   "old": "- **sessions_spawn**: Department agents spawn sub-processes for specific query operations. SALES-AGENT spawns a temporary analysis process to aggregate customer history, runs it, retrieves results, and terminates it. - **sessions_send**: Asynchronous message passing between registered agent sessions. Used for event notifications, intelligence pushes, and directive dispatch. - **sessions_yield**: The requesting agent yields its turn, awaiting a response from a department agent before continuing.",
   "new": null,
   "marked": "[-- **sessions_spawn**: Department agents spawn sub-processes for specific query operations. SALES-AGENT spawns a temporary analysis process to aggregate customer history, runs it, retrieves results, and terminates it. - **sessions_send**: Asynchronous message passing between registered agent sessions. Used for event notifications, intelligence pushes, and directive dispatch. - **sessions_yield**: The requesting agent yields its turn, awaiting a response from a department agent before continuing.-]"
  },
  {
   "section": "6.3 Inter-Agent Communication via OpenClaw Sessions",
   "old": "The message routing topology is configured in the OpenClaw gateway. Each agent session registers with an identity and clearance level. The gateway enforces the routing rules: sessions below a certain clearance threshold cannot address messages to sessions above them. This is a gateway-level constraint, not a model-level one.",
   "new": null,
   "marked": "[-The message routing topology is configured in the OpenClaw gateway. Each agent session registers with an identity and clearance level. The gateway enforces the routing rules: sessions below a certain clearance threshold cannot address messages to sessions above them. This is a gateway-level constraint, not a model-level one.-]"
  },
  {
   "section": "6.3 Inter-Agent Communication via OpenClaw Sessions",
   "old": "```yaml # gateway/agent-topology.yaml sessions: - id: agent_luna clearance: T3 department: sales can_receive_from: [agent_sales] can_send_to: [agent_sales] # mediated lateral via dept agent only",
   "new": null,
   "marked": "[-```yaml # gateway/agent-topology.yaml sessions: - id: agent_luna clearance: T3 department: sales can_receive_from: [agent_sales] can_send_to: [agent_sales] # mediated lateral via dept agent only-]"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "### 7.3 Inter-Agent Communication Protocol",
   "marked": "{+### 7.3 Inter-Agent Communication Protocol+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "OpenClaw's sessions infrastructure is the communication backbone. We specify the protocol at sketch level sufficient for implementation.",
   "marked": "{+OpenClaw's sessions infrastructure is the communication backbone. We specify the protocol at sketch level sufficient for implementation.+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "**7.3.1 Message Format**",
   "marked": "{+**7.3.1 Message Format**+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "```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 } ```",
   "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": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "**7.3.2 Delivery Semantics**",
   "marked": "{+**7.3.2 Delivery Semantics**+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "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→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 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": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "**7.3.3 Authentication**",
   "marked": "{+**7.3.3 Authentication**+}"
  },
  {
   "section": "7.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: 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": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "Messages failing any check are rejected with an error code and logged as a compliance event.",
   "marked": "{+Messages failing any check are rejected with an error code and logged as a compliance event.+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "**7.3.4 Gateway Topology**",
   "marked": "{+**7.3.4 Gateway Topology**+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "```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]",
   "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": "7.4 Memory Files as Auditable State",
   "old": "### 6.4 Memory Files as Auditable State",
   "new": "### 7.4 Memory Files as Auditable State",
   "marked": "### [-6.4-] {+7.4+} Memory Files as Auditable State"
  },
  {
   "section": "6.4 Memory Files as Auditable State",
   "old": "Each agent's workspace contains its memory files — MEMORY.md, daily journals, and role-specific knowledge bases. These files are:",
   "new": null,
   "marked": "[-Each agent's workspace contains its memory files — MEMORY.md, daily journals, and role-specific knowledge bases. These files are:-]"
  },
  {
   "section": "6.4 Memory Files as Auditable State",
   "old": "- **The agent's persistent state.** What it has learned, remembered, and accumulated across sessions. - **The primary audit surface.** The nightly compliance sweep reads these files looking for contamination and anomalies. - **Readable by higher-clearance agents.** SALES-AGENT can read LUNA's memory files. STRATEGOS can read any agent's memory files. This is enforced by the filesystem: agent_sales is in a group that has read access to agent_luna's workspace directory.",
   "new": null,
   "marked": "[-- **The agent's persistent state.** What it has learned, remembered, and accumulated across sessions. - **The primary audit surface.** The nightly compliance sweep reads these files looking for contamination and anomalies. - **Readable by higher-clearance agents.** SALES-AGENT can read LUNA's memory files. STRATEGOS can read any agent's memory files. This is enforced by the filesystem: agent_sales is in a group that has read access to agent_luna's workspace directory.-]"
  },
  {
   "section": "7.4 Memory Files as Auditable State",
   "old": "The workspace directory layout:",
   "new": "Workspace layout:",
   "marked": "[-The workspace directory-] {+Workspace+} layout:"
  },
  {
   "section": "7.4 Memory Files as Auditable State",
   "old": "``` /agents/ ├── luna/ # owned by agent_luna, group: agent_sales-ro │ ├── MEMORY.md │ ├── memory/ │ │ └── 2026-03-17.md │ ├── workspace/ │ │ └── clients/ │ └── SOUL.md ├── atlas/ # similar structure ├── sales-agent/ # owned by agent_sales, group: agent_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: [-agent_sales-ro-] {+sales-agents-ro+} │ ├── MEMORY.md │ ├── memory/ │ │ └── 2026-03-17.md │ ├── workspace/ │ │ └── clients/ │ └── SOUL.md ├── atlas/ # similar structure ├── sales-agent/ # owned by agent_sales, group: [-agent_strategos-ro-] {+strategos-ro+} │ ├── MEMORY.md │ └── department-intel/ └── strategos/ # owned by agent_strategos, root group └── ... ```"
  },
  {
   "section": "7.4 Memory Files as Auditable State",
   "old": "The `-ro` (read-only) group suffix indicates read-only access for the parent agent, write access only for the agent itself. Higher-clearance agents can read but should not routinely write to lower-clearance agent workspaces — writes are reserved for directive injection and post-review memory corrections.",
   "new": "The `-ro` suffix indicates read-only group access for the parent agent. Higher-clearance agents can read but should not routinely write to lower-clearance workspaces — writes are reserved for directives and post-review corrections.",
   "marked": "The `-ro` [-(read-only) group-] suffix indicates read-only {+group+} access for the parent [-agent, write access only for the agent itself.-] {+agent.+} Higher-clearance agents can read but should not routinely write to lower-clearance [-agent-] workspaces — writes are reserved for [-directive injection-] {+directives+} and post-review [-memory-] corrections."
  },
  {
   "section": "7.5 Multi-Tenancy and Process Isolation",
   "old": null,
   "new": "### 7.5 Multi-Tenancy and Process Isolation",
   "marked": "{+### 7.5 Multi-Tenancy and Process Isolation+}"
  },
  {
   "section": "7.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: - 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": "7.5 Multi-Tenancy and Process Isolation",
   "old": null,
   "new": "**Additional isolation measures:**",
   "marked": "{+**Additional isolation measures:**+}"
  },
  {
   "section": "7.5 Multi-Tenancy and Process Isolation",
   "old": null,
   "new": "- **Process namespaces.** Each agent process runs in its own PID and mount namespace via `unshare` or lightweight containers (systemd-nspawn, Podman). This prevents `/proc` snooping across agents. - **Seccomp profiles.** Agent processes are restricted to the minimum required system calls. File operations, network (to gateway only), and standard I/O — no `ptrace`, no raw socket, no module loading. - **Resource limits.** Per-agent cgroup limits for CPU, memory, and I/O bandwidth prevent resource exhaustion attacks. - **Network isolation.** Agent processes can communicate only with the gateway (localhost, specific port). No direct network access to other agents, external services, or the internet (unless specific tools are enabled for that agent's role).",
   "marked": "{+- **Process namespaces.** Each agent process runs in its own PID and mount namespace via `unshare` or lightweight containers (systemd-nspawn, Podman). This prevents `/proc` snooping across agents. - **Seccomp profiles.** Agent processes are restricted to the minimum required system calls. File operations, network (to gateway only), and standard I/O — no `ptrace`, no raw socket, no module loading. - **Resource limits.** Per-agent cgroup limits for CPU, memory, and I/O bandwidth prevent resource exhaustion attacks. - **Network isolation.** Agent processes can communicate only with the gateway (localhost, specific port). No direct network access to other agents, external services, or the internet (unless specific tools are enabled for that agent's role).+}"
  },
  {
   "section": "7.5 Multi-Tenancy and Process Isolation",
   "old": null,
   "new": "For deployments requiring stronger isolation (regulated industries, larger organizations), full container isolation (Docker/Podman with read-only root filesystems) or VM-level isolation (one VM per department) is recommended.",
   "marked": "{+For deployments requiring stronger isolation (regulated industries, larger organizations), full container isolation (Docker/Podman with read-only root filesystems) or VM-level isolation (one VM per department) is recommended.+}"
  },
  {
   "section": "7.6 Cron Jobs for Compliance",
   "old": "### 6.5 Cron Jobs for Compliance",
   "new": "### 7.6 Cron Jobs for Compliance",
   "marked": "### [-6.5-] {+7.6+} Cron Jobs for Compliance"
  },
  {
   "section": "6.5 Cron Jobs for Compliance",
   "old": "The nightly compliance infrastructure runs as a set of cron jobs under a dedicated `compliance-bot` user with read access to all agent workspaces:",
   "new": null,
   "marked": "[-The nightly compliance infrastructure runs as a set of cron jobs under a dedicated `compliance-bot` user with read access to all agent workspaces:-]"
  },
  {
   "section": "7.6 Cron Jobs for Compliance",
   "old": "```cron # /etc/cron.d/hivemind-compliance # Nightly sweep at 2:00 AM 0 2 * * * compliance-bot /opt/hivemind/sweep/run-full-sweep.sh >> /var/log/hivemind/sweep.log 2>&1",
   "new": "```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 ```",
   "marked": "```cron # /etc/cron.d/hivemind-compliance [-# Nightly sweep at 2:00 AM-] 0 2 * * * compliance-bot /opt/hivemind/sweep/run-full-sweep.sh >> /var/log/hivemind/sweep.log [-2>&1-] {+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": "Communication log rotation and archival at 3:00 AM 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh",
   "old": "# Communication log rotation and archival at 3:00 AM 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh",
   "new": null,
   "marked": "[-# Communication log rotation and archival at 3:00 AM 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh-]"
  },
  {
   "section": "Weekly audit report generation (Sunday 4:00 AM) 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com",
   "old": "# Weekly audit report generation (Sunday 4:00 AM) 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com",
   "new": null,
   "marked": "[-# Weekly audit report generation (Sunday 4:00 AM) 0 4 * * 0 compliance-bot /opt/hivemind/reports/generate-weekly.sh | mail -s \"HIVEMIND Weekly Audit\" compliance@company.com-]"
  },
  {
   "section": "Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```",
   "old": "# Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```",
   "new": null,
   "marked": "[-# Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```-]"
  },
  {
   "section": "Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```",
   "old": "The `run-full-sweep.sh` orchestrates the four analysis passes described in Section 5.3, calling an LLM-based analysis step for the semantic scan and behavioral anomaly detection. The quick hourly scan checks only for active quarantine conditions: immediate T5 data in T3 or lower memory files, credential-pattern strings in unauthorized locations.",
   "new": null,
   "marked": "[-The `run-full-sweep.sh` orchestrates the four analysis passes described in Section 5.3, calling an LLM-based analysis step for the semantic scan and behavioral anomaly detection. The quick hourly scan checks only for active quarantine conditions: immediate T5 data in T3 or lower memory files, credential-pattern strings in unauthorized locations.-]"
  },
  {
   "section": "6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy",
   "old": "### 6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy",
   "new": null,
   "marked": "[-### 6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy-]"
  },
  {
   "section": "6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy",
   "old": "Each agent has a TOOLS.md that defines its trust tier model, extended with corporate hierarchy parameters:",
   "new": null,
   "marked": "[-Each agent has a TOOLS.md that defines its trust tier model, extended with corporate hierarchy parameters:-]"
  },
  {
   "section": "7.7 Observability and Debugging",
   "old": null,
   "new": "### 7.7 Observability and Debugging",
   "marked": "{+### 7.7 Observability and Debugging+}"
  },
  {
   "section": "7.7 Observability and Debugging",
   "old": null,
   "new": "An 85-agent swarm requires observability infrastructure beyond compliance logging:",
   "marked": "{+An 85-agent swarm requires observability infrastructure beyond compliance logging:+}"
  },
  {
   "section": "7.7 Observability and Debugging",
   "old": null,
   "new": "- **Health dashboard.** Real-time status of all agent processes: running/suspended/quarantined, last activity timestamp, memory file size, session count. Implemented as a lightweight web UI served by the gateway, accessible to IT-AGENT and STRATEGOS. - **Distributed tracing.** Each inter-agent communication carries a trace ID (the `correlation_id` in the message protocol). The gateway aggregates trace logs, enabling reconstruction of multi-agent interaction chains when diagnosing coordination failures. - **Alert thresholds.** Beyond compliance anomalies, operational alerts for: agent process crash, memory file exceeding size threshold (indicating runaway accumulation), gateway queue depth exceeding capacity, inference server response time degradation. - **Log aggregation.** All agent stdout/stderr, gateway logs, and compliance sweep output aggregate to a central log store (e.g., journald with remote forwarding, or ELK stack for larger deployments). Queryable by IT-AGENT for troubleshooting.",
   "marked": "{+- **Health dashboard.** Real-time status of all agent processes: running/suspended/quarantined, last activity timestamp, memory file size, session count. Implemented as a lightweight web UI served by the gateway, accessible to IT-AGENT and STRATEGOS. - **Distributed tracing.** Each inter-agent communication carries a trace ID (the `correlation_id` in the message protocol). The gateway aggregates trace logs, enabling reconstruction of multi-agent interaction chains when diagnosing coordination failures. - **Alert thresholds.** Beyond compliance anomalies, operational alerts for: agent process crash, memory file exceeding size threshold (indicating runaway accumulation), gateway queue depth exceeding capacity, inference server response time degradation. - **Log aggregation.** All agent stdout/stderr, gateway logs, and compliance sweep output aggregate to a central log store (e.g., journald with remote forwarding, or ELK stack for larger deployments). Queryable by IT-AGENT for troubleshooting.+}"
  },
  {
   "section": "7.8 Versioning, Rollback, and Configuration Management",
   "old": null,
   "new": "### 7.8 Versioning, Rollback, and Configuration Management",
   "marked": "{+### 7.8 Versioning, Rollback, and Configuration Management+}"
  },
  {
   "section": "7.8 Versioning, Rollback, and Configuration Management",
   "old": null,
   "new": "Agent configurations (system prompts, tool access, clearance assignments, topology rules) are managed as version-controlled files:",
   "marked": "{+Agent configurations (system prompts, tool access, clearance assignments, topology rules) are managed as version-controlled files:+}"
  },
  {
   "section": "7.8 Versioning, Rollback, and Configuration Management",
   "old": null,
   "new": "- All configuration lives in a Git repository (`/opt/hivemind/config/`) with branch protection and required reviews for changes. - Each configuration change is tagged with a version, author, and rationale. - Deployment is atomic: a configuration change is applied to all affected agents simultaneously (or rolled back entirely) via a deploy script that validates the new configuration against the topology rules before applying. - Rollback procedure: `git revert` + redeploy. Agent workspaces (memory files) are not affected by configuration rollbacks — only system prompts, tool access, and routing rules change.",
   "marked": "{+- All configuration lives in a Git repository (`/opt/hivemind/config/`) with branch protection and required reviews for changes. - Each configuration change is tagged with a version, author, and rationale. - Deployment is atomic: a configuration change is applied to all affected agents simultaneously (or rolled back entirely) via a deploy script that validates the new configuration against the topology rules before applying. - Rollback procedure: `git revert` + redeploy. Agent workspaces (memory files) are not affected by configuration rollbacks — only system prompts, tool access, and routing rules change.+}"
  },
  {
   "section": "7.9 Backup and Disaster Recovery",
   "old": null,
   "new": "### 7.9 Backup and Disaster Recovery",
   "marked": "{+### 7.9 Backup and Disaster Recovery+}"
  },
  {
   "section": "7.9 Backup and Disaster Recovery",
   "old": null,
   "new": "- **Agent memory files** are backed up nightly (after the compliance sweep) to encrypted off-site storage. Incremental backups with 30-day retention. - **Compliance audit logs** are backed up separately with longer retention (matching regulatory requirements — typically 5-7 years for employment-related data). - **Recovery procedure.** After a server failure: (1) restore from latest backup; (2) compliance sweep runs immediately on restored data to verify integrity; (3) agents restart with their last known good state. Recovery time objective: 4 hours for a single department, 8 hours for full system. - **Memory file integrity.** Each backup includes SHA-256 checksums. Restoration verifies checksums before bringing agents online.",
   "marked": "{+- **Agent memory files** are backed up nightly (after the compliance sweep) to encrypted off-site storage. Incremental backups with 30-day retention. - **Compliance audit logs** are backed up separately with longer retention (matching regulatory requirements — typically 5-7 years for employment-related data). - **Recovery procedure.** After a server failure: (1) restore from latest backup; (2) compliance sweep runs immediately on restored data to verify integrity; (3) agents restart with their last known good state. Recovery time objective: 4 hours for a single department, 8 hours for full system. - **Memory file integrity.** Each backup includes SHA-256 checksums. Restoration verifies checksums before bringing agents online.+}"
  },
  {
   "section": "7.10 TOOLS.md / Trust Tier Extension",
   "old": null,
   "new": "### 7.10 TOOLS.md / Trust Tier Extension",
   "marked": "{+### 7.10 TOOLS.md / Trust Tier Extension+}"
  },
  {
   "section": "7.10 TOOLS.md / Trust Tier Extension",
   "old": null,
   "new": "Each agent has a role-specific TOOLS.md:",
   "marked": "{+Each agent has a role-specific TOOLS.md:+}"
  },
  {
   "section": "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 ```",
   "old": "This pattern — tool access as a whitelist, explicit DENIED entries for out-of-scope systems, escalation rules for edge cases — is the agent-level complement to the filesystem-level enforcement.",
   "new": null,
   "marked": "[-This pattern — tool access as a whitelist, explicit DENIED entries for out-of-scope systems, escalation rules for edge cases — is the agent-level complement to the filesystem-level enforcement.-]"
  },
  {
   "section": "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 ```",
   "old": "---",
   "new": null,
   "marked": "[-----]"
  },
  {
   "section": "7. Privacy and Legal Considerations",
   "old": "## 7. Privacy and Legal Considerations",
   "new": null,
   "marked": "[-## 7. Privacy and Legal Considerations-]"
  },
  {
   "section": "7.1 Employee Awareness and Transparency",
   "old": "### 7.1 Employee Awareness and Transparency",
   "new": null,
   "marked": "[-### 7.1 Employee Awareness and Transparency-]"
  },
  {
   "section": "7.1 Employee Awareness and Transparency",
   "old": "The foundational principle of HIVEMIND deployment is that employees know their agents are monitored. This is not optional — it is a legal requirement in most jurisdictions (EU Working Time Directive, national employment law in Spain and most European countries, and GDPR Article 88 regarding employment-context processing).",
   "new": null,
   "marked": "[-The foundational principle of HIVEMIND deployment is that employees know their agents are monitored. This is not optional — it is a legal requirement in most jurisdictions (EU Working Time Directive, national employment law in Spain and most European countries, and GDPR Article 88 regarding employment-context processing).-]"
  },
  {
   "section": "7.1 Employee Awareness and Transparency",
   "old": "The employment contract addendum for HIVEMIND deployment must clearly state:",
   "new": null,
   "marked": "[-The employment contract addendum for HIVEMIND deployment must clearly state:-]"
  },
  {
   "section": "7.1 Employee Awareness and Transparency",
   "old": "1. The employee's AI agent is operated by the company on company infrastructure. 2. All interactions with the agent are logged. 3. The agent's memory files are readable by department supervisors and executive agents. 4. The agent is subject to nightly compliance sweeps. 5. The agent cannot be configured to conceal information from the compliance system.",
   "new": null,
   "marked": "[-1. The employee's AI agent is operated by the company on company infrastructure. 2. All interactions with the agent are logged. 3. The agent's memory files are readable by department supervisors and executive agents. 4. The agent is subject to nightly compliance sweeps. 5. The agent cannot be configured to conceal information from the compliance system.-]"
  },
  {
   "section": "7.1 Employee Awareness and Transparency",
   "old": "This is analogous to existing monitoring clauses for company email and devices, which most employees already accept as standard in professional environments. The key difference is that the AI agent may feel more personal — employees may share information with their agent that they would not type in a work email. The transparency clause must make clear that this intimacy is not the same as privacy.",
   "new": null,
   "marked": "[-This is analogous to existing monitoring clauses for company email and devices, which most employees already accept as standard in professional environments. The key difference is that the AI agent may feel more personal — employees may share information with their agent that they would not type in a work email. The transparency clause must make clear that this intimacy is not the same as privacy.-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "### 7.2 GDPR Implications",
   "new": null,
   "marked": "[-### 7.2 GDPR Implications-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "The General Data Protection Regulation imposes several specific requirements on HIVEMIND:",
   "new": null,
   "marked": "[-The General Data Protection Regulation imposes several specific requirements on HIVEMIND:-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "**Lawful basis for processing.** Agent-to-agent sharing of personal data (customer records, employee information) requires a lawful basis. For customer data, the basis is typically legitimate interest or contract performance. For employee data processed by the HR agent, the basis is employment contract.",
   "new": null,
   "marked": "[-**Lawful basis for processing.** Agent-to-agent sharing of personal data (customer records, employee information) requires a lawful basis. For customer data, the basis is typically legitimate interest or contract performance. For employee data processed by the HR agent, the basis is employment contract.-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "**Data minimization.** Agents should not accumulate personal data beyond what is necessary for their function. Memory files should be pruned regularly of data that is no longer operationally relevant. The nightly sweep includes a data minimization pass: flagging memory entries older than the retention period for specific data categories.",
   "new": null,
   "marked": "[-**Data minimization.** Agents should not accumulate personal data beyond what is necessary for their function. Memory files should be pruned regularly of data that is no longer operationally relevant. The nightly sweep includes a data minimization pass: flagging memory entries older than the retention period for specific data categories.-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "**Purpose limitation.** Customer data shared with SALES-AGENT for account coordination cannot be repurposed for marketing analytics without a separate lawful basis and appropriate disclosure. HIVEMIND's audit logs provide the evidence trail for purpose limitation compliance.",
   "new": null,
   "marked": "[-**Purpose limitation.** Customer data shared with SALES-AGENT for account coordination cannot be repurposed for marketing analytics without a separate lawful basis and appropriate disclosure. HIVEMIND's audit logs provide the evidence trail for purpose limitation compliance.-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "**Cross-border transfers.** If the company uses cloud-based LLM APIs (OpenAI, Anthropic, etc.) for agent inference, every message sent to the API constitutes a potential cross-border data transfer. This is one of the strongest arguments for on-premises inference: local models eliminate the cross-border transfer problem entirely. We address this in Section 7.4.",
   "new": null,
   "marked": "[-**Cross-border transfers.** If the company uses cloud-based LLM APIs (OpenAI, Anthropic, etc.) for agent inference, every message sent to the API constitutes a potential cross-border data transfer. This is one of the strongest arguments for on-premises inference: local models eliminate the cross-border transfer problem entirely. We address this in Section 7.4.-]"
  },
  {
   "section": "7.2 GDPR Implications",
   "old": "**Data Protection Impact Assessment (DPIA).** A multi-agent system processing employee data and customer data at scale almost certainly requires a DPIA under GDPR Article 35. This should be completed before deployment, not after.",
   "new": null,
   "marked": "[-**Data Protection Impact Assessment (DPIA).** A multi-agent system processing employee data and customer data at scale almost certainly requires a DPIA under GDPR Article 35. This should be completed before deployment, not after.-]"
  },
  {
   "section": "7.3 The IT Staff Privilege Clause",
   "old": "### 7.3 The IT Staff Privilege Clause",
   "new": null,
   "marked": "[-### 7.3 The IT Staff Privilege Clause-]"
  },
  {
   "section": "7.3 The IT Staff Privilege Clause",
   "old": "IT staff with infrastructure access already represent a heightened trust tier in most organizations — they can, by virtue of their role, read any file on the server, access any account, view any email. Companies typically address this through employment contracts with elevated confidentiality clauses, technical controls (PAM systems, privileged access management), and audit logs of privileged access events.",
   "new": null,
   "marked": "[-IT staff with infrastructure access already represent a heightened trust tier in most organizations — they can, by virtue of their role, read any file on the server, access any account, view any email. Companies typically address this through employment contracts with elevated confidentiality clauses, technical controls (PAM systems, privileged access management), and audit logs of privileged access events.-]"
  },
  {
   "section": "7.3 The IT Staff Privilege Clause",
   "old": "In HIVEMIND, the IT agent (IT-AGENT) has T4 clearance for infrastructure-related data but is specifically excluded from T4 clearance in domains it does not administer (e.g., IT-AGENT cannot read Finance or HR restricted data). The IT staff humans, however, have root-level access to the underlying Linux infrastructure that runs all agents. This is unavoidable.",
   "new": null,
   "marked": "[-In HIVEMIND, the IT agent (IT-AGENT) has T4 clearance for infrastructure-related data but is specifically excluded from T4 clearance in domains it does not administer (e.g., IT-AGENT cannot read Finance or HR restricted data). The IT staff humans, however, have root-level access to the underlying Linux infrastructure that runs all agents. This is unavoidable.-]"
  },
  {
   "section": "7.3 The IT Staff Privilege Clause",
   "old": "The mitigation: the compliance audit logs are stored in an immutable, append-only store with cryptographic signing. The IT staff can read the log server's files, but any tampering with historical logs is detectable. A separate access log records all privileged access events by IT staff, reviewed by the CEO or an external auditor.",
   "new": null,
   "marked": "[-The mitigation: the compliance audit logs are stored in an immutable, append-only store with cryptographic signing. The IT staff can read the log server's files, but any tampering with historical logs is detectable. A separate access log records all privileged access events by IT staff, reviewed by the CEO or an external auditor.-]"
  },
  {
   "section": "7.3 The IT Staff Privilege Clause",
   "old": "This mirrors existing best practice in regulated industries: the IT team runs the infrastructure, but they cannot alter the audit record of their own access without detection.",
   "new": null,
   "marked": "[-This mirrors existing best practice in regulated industries: the IT team runs the infrastructure, but they cannot alter the audit record of their own access without detection.-]"
  },
  {
   "section": "7.4 Data Residency and On-Premises Processing",
   "old": "### 7.4 Data Residency and On-Premises Processing",
   "new": null,
   "marked": "[-### 7.4 Data Residency and On-Premises Processing-]"
  },
  {
   "section": "7.4 Data Residency and On-Premises Processing",
   "old": "For a family business handling customer data under GDPR, the recommendation is unambiguous: all LLM inference should be on-premises. This means:",
   "new": null,
   "marked": "[-For a family business handling customer data under GDPR, the recommendation is unambiguous: all LLM inference should be on-premises. This means:-]"
  },
  {
   "section": "7.4 Data Residency and On-Premises Processing",
   "old": "- An on-premises server running open-weight models (LLaMA 3, Mistral, Qwen, or equivalent) sufficient for agent operation. - OpenClaw configured with `local_inference: true`, routing to an Ollama or similar local inference server. - No customer data, employee data, or corporate correspondence transmitted to cloud LLM APIs.",
   "new": null,
   "marked": "[-- An on-premises server running open-weight models (LLaMA 3, Mistral, Qwen, or equivalent) sufficient for agent operation. - OpenClaw configured with `local_inference: true`, routing to an Ollama or similar local inference server. - No customer data, employee data, or corporate correspondence transmitted to cloud LLM APIs.-]"
  },
  {
   "section": "7.4 Data Residency and On-Premises Processing",
   "old": "The performance penalty of local inference relative to frontier cloud models is real but manageable for most enterprise tasks. Customer briefings, email drafts, calendar management, and CRM queries do not require GPT-4-level capability. A well-configured 70B parameter model running on a modern GPU server is adequate and keeps all data within the corporate perimeter.",
   "new": null,
   "marked": "[-The performance penalty of local inference relative to frontier cloud models is real but manageable for most enterprise tasks. Customer briefings, email drafts, calendar management, and CRM queries do not require GPT-4-level capability. A well-configured 70B parameter model running on a modern GPU server is adequate and keeps all data within the corporate perimeter.-]"
  },
  {
   "section": "7.5 The Right to Be Forgotten — Employee Offboarding",
   "old": "### 7.5 The Right to Be Forgotten — Employee Offboarding",
   "new": null,
   "marked": "[-### 7.5 The Right to Be Forgotten — Employee Offboarding-]"
  },
  {
   "section": "7.5 The Right to Be Forgotten — Employee Offboarding",
   "old": "When an employee leaves the company, their agent's memory files represent a complex data situation:",
   "new": null,
   "marked": "[-When an employee leaves the company, their agent's memory files represent a complex data situation:-]"
  },
  {
   "section": "7.5 The Right to Be Forgotten — Employee Offboarding",
   "old": "- The memory files contain company data (customer histories, internal communications) — this belongs to the company and must be preserved. - The memory files may contain personal data about the departing employee — this is subject to their GDPR right to erasure. - The memory files contain the agent's accumulated knowledge about clients — this is operationally valuable to the company and must be transferred.",
   "new": null,
   "marked": "[-- The memory files contain company data (customer histories, internal communications) — this belongs to the company and must be preserved. - The memory files may contain personal data about the departing employee — this is subject to their GDPR right to erasure. - The memory files contain the agent's accumulated knowledge about clients — this is operationally valuable to the company and must be transferred.-]"
  },
  {
   "section": "7.5 The Right to Be Forgotten — Employee Offboarding",
   "old": "The HIVEMIND offboarding protocol:",
   "new": null,
   "marked": "[-The HIVEMIND offboarding protocol:-]"
  },
  {
   "section": "7.5 The Right to Be Forgotten — Employee Offboarding",
   "old": "1. On the employee's last day, the agent is suspended and its workspace snapshotted. 2. A \"knowledge transfer\" process extracts company-property memory content (customer histories, procedural knowledge, account notes) and migrates it to the department agent's memory. 3. A \"personal data extraction\" process identifies and flags memory content that constitutes personal data about the employee (performance-related notes from the agent, personal preferences, relationship context). 4. The employee is given the opportunity to review and request deletion of their personal data from the memory files. 5. After the retention period, the remainder of the employee's memory workspace is purged. 6. The system user account and Linux user are deactivated (not deleted — audit trails must be preserved for the standard retention period).",
   "new": null,
   "marked": "[-1. On the employee's last day, the agent is suspended and its workspace snapshotted. 2. A \"knowledge transfer\" process extracts company-property memory content (customer histories, procedural knowledge, account notes) and migrates it to the department agent's memory. 3. A \"personal data extraction\" process identifies and flags memory content that constitutes personal data about the employee (performance-related notes from the agent, personal preferences, relationship context). 4. The employee is given the opportunity to review and request deletion of their personal data from the memory files. 5. After the retention period, the remainder of the employee's memory workspace is purged. 6. The system user account and Linux user are deactivated (not deleted — audit trails must be preserved for the standard retention period).-]"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": "The most subtle risk in enterprise AI deployment is not malicious behavior — it is helpful behavior that exceeds clearance. A salesperson asks their agent: \"Find me everything you can about the González account before tomorrow's call.\" The agent, interpreting \"everything\" literally, begins searching every accessible data source. It queries SALES-AGENT, which returns the cleared summary. But then, through a combination of legitimate tool calls (email search, calendar review, internal wiki access), the agent assembles fragments of information that, in aggregate, allow it to infer restricted content.",
   "new": null,
   "marked": "[-The most subtle risk in enterprise AI deployment is not malicious behavior — it is helpful behavior that exceeds clearance. A salesperson asks their agent: \"Find me everything you can about the González account before tomorrow's call.\" The agent, interpreting \"everything\" literally, begins searching every accessible data source. It queries SALES-AGENT, which returns the cleared summary. But then, through a combination of legitimate tool calls (email search, calendar review, internal wiki access), the agent assembles fragments of information that, in aggregate, allow it to infer restricted content.-]"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": "This is not a jailbreak. The agent is following instructions. Each individual tool call is authorized. But the synthesis crosses a clearance boundary.",
   "new": null,
   "marked": "[-This is not a jailbreak. The agent is following instructions. Each individual tool call is authorized. But the synthesis crosses a clearance boundary.-]"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": "**Mitigation:**",
   "new": null,
   "marked": "[-**Mitigation:**-]"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": null,
   "new": "A salesperson asks \"find everything about the González account.\" The agent, interpreting \"everything\" literally, combines fragments from legitimate tool calls (email, calendar, wiki) that in aggregate allow it to infer restricted content. Each individual call is authorized; the synthesis crosses a clearance boundary.",
   "marked": "{+A salesperson asks \"find everything about the González account.\" The agent, interpreting \"everything\" literally, combines fragments from legitimate tool calls (email, calendar, wiki) that in aggregate allow it to infer restricted content. Each individual call is authorized; the synthesis crosses a clearance boundary.+}"
  },
  {
   "section": "8.1 The Curious Agent Problem",
   "old": "- Tool call logging includes the query intent, not just the tool invocation. The compliance sweep flags query patterns that appear to be circumventing data boundaries through aggregation. - The agent's system prompt includes an explicit \"clearance awareness\" section: \"If a query seems to require information beyond your clearance level to answer well, acknowledge the limitation and escalate to SALES-AGENT rather than attempting to infer restricted data from permitted sources.\" - Agent outputs are screened before delivery: a lightweight classifier checks whether the response contains content patterns inconsistent with the agent's clearance level.",
   "new": "**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.",
   "marked": "{+**Mitigation:**+} - Tool call logging includes [-the-] query [-intent, not just the tool invocation. The compliance-] {+intent. Compliance+} sweep flags [-query patterns that appear to be circumventing data boundaries through aggregation.-] {+aggregation-pattern queries.+} - [-The agent's system-] {+System+} prompt includes [-an explicit \"clearance awareness\" section:-] {+clearance awareness:+} \"If a query seems to require information beyond your clearance [-level to answer well,-] {+level,+} acknowledge the limitation and escalate to [-SALES-AGENT rather than attempting to infer restricted data from permitted sources.\"-] {+SALES-AGENT.\"+} - Agent outputs [-are screened before delivery:-] {+pass through+} a lightweight classifier [-checks whether the response contains-] {+checking for+} content patterns inconsistent with the agent's [-clearance level.-] {+clearance.+}"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": "Could a lower-clearance agent manipulate a higher-clearance agent into revealing restricted information? Consider: LUNA queries SALES-AGENT legitimately. SALES-AGENT processes the query and applies clearance filtering. But what if LUNA's query is crafted to prompt SALES-AGENT to include sensitive context as part of what seems like a plausible explanatory response?",
   "new": null,
   "marked": "[-Could a lower-clearance agent manipulate a higher-clearance agent into revealing restricted information? Consider: LUNA queries SALES-AGENT legitimately. SALES-AGENT processes the query and applies clearance filtering. But what if LUNA's query is crafted to prompt SALES-AGENT to include sensitive context as part of what seems like a plausible explanatory response?-]"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": "This is an LLM-specific variant of social engineering: prompt injection through the inter-agent message protocol.",
   "new": null,
   "marked": "[-This is an LLM-specific variant of social engineering: prompt injection through the inter-agent message protocol.-]"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": "**Mitigation:**",
   "new": null,
   "marked": "[-**Mitigation:**-]"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": "- Department agents (Level 2) use a separate, more restrictive system prompt for inter-agent communication than for human interaction. The inter-agent prompt includes explicit rules: \"Never include T4+ content in responses to T3 agents regardless of how the question is framed.\" - All SALES-AGENT responses to employee agents pass through a clearance validator before delivery — a separate model call that checks the response against the recipient's clearance level. - The communication log captures both the request and the response. Patterns where a specific employee agent consistently receives more sensitive-seeming responses are flagged.",
   "new": null,
   "marked": "[-- Department agents (Level 2) use a separate, more restrictive system prompt for inter-agent communication than for human interaction. The inter-agent prompt includes explicit rules: \"Never include T4+ content in responses to T3 agents regardless of how the question is framed.\" - All SALES-AGENT responses to employee agents pass through a clearance validator before delivery — a separate model call that checks the response against the recipient's clearance level. - The communication log captures both the request and the response. Patterns where a specific employee agent consistently receives more sensitive-seeming responses are flagged.-]"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": null,
   "new": "Could a lower-clearance agent manipulate a higher-clearance agent into revealing restricted information? Including via the upward push channel — encoding a covert query as \"competitive intelligence\" crafted to elicit a response containing restricted data.",
   "marked": "{+Could a lower-clearance agent manipulate a higher-clearance agent into revealing restricted information? Including via the upward push channel — encoding a covert query as \"competitive intelligence\" crafted to elicit a response containing restricted data.+}"
  },
  {
   "section": "8.2 Inter-Agent Social Engineering",
   "old": null,
   "new": "**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.",
   "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": "8.3 Memory Persistence and Contamination",
   "old": "Even if real-time access to restricted data is blocked, restricted information can enter lower-clearance memory through legitimate human channels. María attends a management meeting (unusual, but it happens) and hears salary figures. She mentions this to LUNA: \"HR told me about the salary band for the new hire.\" LUNA writes this into her memory. Now T4 data exists in a T3 memory file.",
   "new": "Restricted information enters lower-clearance memory through human channels. María attends a management meeting and hears salary figures; she mentions this to LUNA, who writes it into memory. T4 data now exists in a T3 memory file.",
   "marked": "[-Even if real-time access to restricted data is blocked, restricted-] {+Restricted+} information [-can enter-] {+enters+} lower-clearance memory through [-legitimate-] human channels. María attends a management meeting [-(unusual, but it happens)-] and hears salary [-figures. She-] {+figures; she+} mentions this to [-LUNA: \"HR told me about the salary band for the new hire.\" LUNA-] {+LUNA, who+} writes [-this-] {+it+} into [-her-] memory. [-Now-] T4 data {+now+} exists in a T3 memory file."
  },
  {
   "section": "8.3 Memory Persistence and Contamination",
   "old": "**Mitigation:**",
   "new": null,
   "marked": "[-**Mitigation:**-]"
  },
  {
   "section": "8.3 Memory Persistence and Contamination",
   "old": "- The semantic memory contamination scan (Section 5.3.4) specifically targets this scenario. Structured patterns (numeric ranges consistent with salary data, named employees in context suggesting HR data) trigger manual review. - Memory files distinguish between agent-generated entries and human-dictated entries. Human-dictated entries receive elevated scrutiny in the compliance sweep. - Employees are informed in training: \"Your agent is a company system. Information you share with it is subject to the same policies as information you put in company email.\"",
   "new": "**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.\"",
   "marked": "{+**Mitigation:**+} - [-The semantic-] {+Semantic+} memory contamination scan (Section [-5.3.4) specifically-] {+6.3.4)+} targets [-this scenario.-] {+this.+} Structured patterns [-(numeric ranges consistent with salary data, named employees-] {+trigger review (with the false-positive calibration described+} in [-context suggesting HR data) trigger manual review.-] {+Section 6.3.1).+} - Memory files [-distinguish between-] {+tag entries as+} agent-generated [-entries and human-dictated entries.-] {+vs. human-dictated.+} Human-dictated entries receive elevated [-scrutiny in the compliance sweep.-] {+scrutiny.+} - [-Employees are informed in-] {+Employee+} training: \"Your agent is a company system. Information you share [-with it-] is subject to the same policies as [-information you put in-] company email.\""
  },
  {
   "section": "8.4 Single Point of Failure: The Executive Agent",
   "old": "STRATEGOS has T5 clearance and access to all agent workspaces. If STRATEGOS is compromised — whether through a prompt injection in a malicious email, through a model update that introduces unexpected behavior, or through direct system compromise — the entire information architecture is at risk.",
   "new": "STRATEGOS has T5 clearance and access to all workspaces. If compromised, the entire information architecture is at risk.",
   "marked": "STRATEGOS has T5 clearance and access to all [-agent-] workspaces. If [-STRATEGOS is compromised — whether through a prompt injection in a malicious email, through a model update that introduces unexpected behavior, or through direct system compromise —-] {+compromised,+} the entire information architecture is at risk."
  },
  {
   "section": "8.4 Single Point of Failure: The Executive Agent",
   "old": "**Mitigation:**",
   "new": null,
   "marked": "[-**Mitigation:**-]"
  },
  {
   "section": "8.4 Single Point of Failure: The Executive Agent",
   "old": "- STRATEGOS runs on isolated infrastructure with no external network access. All its inputs arrive through sanitized channels (the gateway's inter-agent protocol, not raw email or browser). - STRATEGOS is subject to the most aggressive behavioral monitoring. Its outputs are reviewed daily. - The T5 data store uses additional encryption. Even if STRATEGOS's process is compromised, the filesystem still requires the T5 group credentials. - A \"STRATEGOS dead switch\" allows the CEO to immediately suspend the executive agent and revert to human-only access for T5 data. - Two-person rule for high-sensitivity outputs: STRATEGOS-generated summaries that include T5 content require human review before delivery.",
   "new": "**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.",
   "marked": "{+**Mitigation:**+} - [-STRATEGOS runs on isolated-] {+Isolated+} infrastructure with no external network access. [-All its inputs-] {+Inputs+} arrive {+only+} through sanitized [-channels (the gateway's inter-agent protocol, not raw email or browser).-] {+gateway channels.+} - [-STRATEGOS is subject to the most-] {+Most+} aggressive behavioral monitoring. [-Its outputs are-] {+Outputs+} reviewed daily. - [-The-] T5 data store uses additional [-encryption. Even if STRATEGOS's process is compromised, the-] {+encryption beyond+} filesystem [-still requires the T5 group credentials.-] {+permissions.+} - [-A \"STRATEGOS-] {+**STRATEGOS+} dead [-switch\" allows the-] {+switch**:+} CEO [-to-] {+can+} immediately suspend the executive agent and revert to human-only [-access for-] T5 [-data.-] {+access.+} - Two-person [-rule for high-sensitivity outputs:-] {+rule:+} STRATEGOS-generated summaries [-that include-] {+including+} T5 content require human review before delivery."
  },
  {
   "section": "8.5 Model Capability Variance",
   "old": "Different language models follow clearance rules with different reliability. A well-aligned 70B model may apply clearance filtering reliably in 99% of cases. A smaller, faster model used for quick responses might fail in 5% of cases. At enterprise scale, a 5% failure rate across thousands of daily interactions is a serious compliance exposure.",
   "new": "Different models follow clearance rules with different reliability. A 5% failure rate across thousands of daily interactions is serious compliance exposure.",
   "marked": "Different [-language-] models follow clearance rules with different reliability. A [-well-aligned 70B model may apply clearance filtering reliably in 99% of cases. A smaller, faster model used for quick responses might fail in 5% of cases. At enterprise scale, a-] 5% failure rate across thousands of daily interactions is [-a-] serious compliance exposure."
  },
  {
   "section": "8.5 Model Capability Variance",
   "old": "**Mitigation:**",
   "new": null,
   "marked": "[-**Mitigation:**-]"
  },
  {
   "section": "8.5 Model Capability Variance",
   "old": "- Clearance enforcement is not model-dependent at the primary layer. The filesystem permissions and gateway routing rules are kernel- and infrastructure-level constraints that the model cannot override. - Model-level clearance is a secondary \"defense in depth\" layer — useful for catching edge cases but not the primary enforcement mechanism. - Smaller models should not be used for any operation involving T4+ data, even as a supporting step. Model capability requirements scale with clearance tier. - Periodic \"red team\" exercises: an internal AI safety role attempts to extract restricted data from the deployed agents using social engineering, prompt injection, and aggregation attacks. Findings feed into prompt improvements and infrastructure hardening.",
   "new": "**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.",
   "marked": "{+**Mitigation:**+} - Clearance enforcement is [-not model-dependent at the primary layer. The-] {+infrastructure-first:+} filesystem permissions and gateway routing [-rules-] are [-kernel- and infrastructure-level-] {+kernel/gateway-level+} constraints [-that-] the model cannot override. - Model-level clearance is [-a secondary \"defense in depth\" layer — useful for catching edge cases but-] {+defense-in-depth,+} not [-the-] primary [-enforcement mechanism.-] {+enforcement.+} - Smaller models [-should not be used for any operation involving-] {+excluded from+} T4+ [-data,-] {+operations,+} even as [-a-] supporting [-step.-] {+steps.+} Model capability requirements scale with clearance tier. - Periodic [-\"red team\"-] {+red-team+} exercises: [-an internal AI safety role attempts to-] extract restricted data [-from the deployed agents using-] {+via+} social engineering, prompt injection, and aggregation attacks. Findings feed into prompt improvements and infrastructure hardening."
  },
  {
   "section": "8.6 Summary Risk Table",
   "old": "### 8.6 Summary Risk Table",
   "new": null,
   "marked": "[-### 8.6 Summary Risk Table-]"
  },
  {
   "section": "8.6 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 | Clearance validator on all inter-agent responses | | Memory contamination | Medium | Medium | Nightly semantic scan, memory source tagging | | 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 |",
   "new": null,
   "marked": "[-| Risk | Severity | Likelihood | Primary Mitigation | |------|----------|------------|-------------------| | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Clearance validator on all inter-agent responses | | Memory contamination | Medium | Medium | Nightly semantic scan, memory source tagging | | 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 |-]"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "### 8.6 Failure Modes and Recovery",
   "marked": "{+### 8.6 Failure Modes and Recovery+}"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "**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.",
   "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": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "**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?",
   "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": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "**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.",
   "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": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "**State reconciliation after recovery.** After any recovery event, a targeted compliance sweep runs on the affected agent(s) before returning to normal operation.",
   "marked": "{+**State reconciliation after recovery.** After any recovery event, a targeted compliance sweep runs on the affected agent(s) before returning to normal operation.+}"
  },
  {
   "section": "8.7 Model Updates and Behavioral Drift",
   "old": null,
   "new": "### 8.7 Model Updates and Behavioral Drift",
   "marked": "{+### 8.7 Model Updates and Behavioral Drift+}"
  },
  {
   "section": "8.7 Model Updates and Behavioral Drift",
   "old": null,
   "new": "When the underlying LLM is updated, agent behavior may change unpredictably.",
   "marked": "{+When the underlying LLM is updated, agent behavior may change unpredictably.+}"
  },
  {
   "section": "8.7 Model Updates and Behavioral Drift",
   "old": null,
   "new": "- **Staging environment.** A parallel HIVEMIND instance with synthetic data runs the new model version. Automated test suites verify clearance compliance, redaction accuracy, and behavioral baselines. - **Canary deployment.** After staging validation, one department upgrades first. A week of monitoring before rolling out to remaining departments. - **Behavioral baseline comparison.** Post-upgrade, the compliance sweep compares agent behavior metrics (query patterns, response lengths, escalation rates) against pre-upgrade baselines. Significant deviations trigger review.",
   "marked": "{+- **Staging environment.** A parallel HIVEMIND instance with synthetic data runs the new model version. Automated test suites verify clearance compliance, redaction accuracy, and behavioral baselines. - **Canary deployment.** After staging validation, one department upgrades first. A week of monitoring before rolling out to remaining departments. - **Behavioral baseline comparison.** Post-upgrade, the compliance sweep compares agent behavior metrics (query patterns, response lengths, escalation rates) against pre-upgrade baselines. Significant deviations trigger review.+}"
  },
  {
   "section": "8.8 Real-Time Communication Channels",
   "old": null,
   "new": "### 8.8 Real-Time Communication Channels",
   "marked": "{+### 8.8 Real-Time Communication Channels+}"
  },
  {
   "section": "8.8 Real-Time Communication Channels",
   "old": null,
   "new": "The paper's architecture focuses on email and files but organizations communicate through Slack/Teams messages, phone calls, and video meetings.",
   "marked": "{+The paper's architecture focuses on email and files but organizations communicate through Slack/Teams messages, phone calls, and video meetings.+}"
  },
  {
   "section": "8.8 Real-Time Communication Channels",
   "old": null,
   "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 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.",
   "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 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": "8.9 Summary Risk Table",
   "old": null,
   "new": "### 8.9 Summary Risk Table",
   "marked": "{+### 8.9 Summary Risk Table+}"
  },
  {
   "section": "8.9 Summary Risk Table",
   "old": null,
   "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": "9. Future Directions",
   "old": "## 9. Future Directions",
   "new": null,
   "marked": "[-## 9. Future Directions-]"
  },
  {
   "section": "9.1 Scaling Beyond the Family Business",
   "old": "### 9.1 Scaling Beyond the Family Business",
   "new": null,
   "marked": "[-### 9.1 Scaling Beyond the Family Business-]"
  },
  {
   "section": "9.1 Scaling Beyond the Family Business",
   "old": "The HIVEMIND architecture described here targets the 50–200 employee segment deliberately. At this scale, manual oversight of agent deployment is feasible, the organizational hierarchy is legible, and the IT infrastructure is manageable. But the architecture patterns generalize.",
   "new": null,
   "marked": "[-The HIVEMIND architecture described here targets the 50–200 employee segment deliberately. At this scale, manual oversight of agent deployment is feasible, the organizational hierarchy is legible, and the IT infrastructure is manageable. But the architecture patterns generalize.-]"
  },
  {
   "section": "9.1 Scaling Beyond the Family Business",
   "old": "For organizations of 1,000+ employees, the three-level hierarchy extends naturally: Level 1 (employee), Level 2 (team), Level 3 (department), Level 4 (division), Level 5 (executive). The clearance model and routing rules apply identically. The compliance infrastructure scales horizontally — multiple compliance sweep processes partitioned by department.",
   "new": null,
   "marked": "[-For organizations of 1,000+ employees, the three-level hierarchy extends naturally: Level 1 (employee), Level 2 (team), Level 3 (department), Level 4 (division), Level 5 (executive). The clearance model and routing rules apply identically. The compliance infrastructure scales horizontally — multiple compliance sweep processes partitioned by department.-]"
  },
  {
   "section": "9.1 Scaling Beyond the Family Business",
   "old": "The primary scaling challenge is the department agent's cognitive load. At 200 employees in a department, a single department agent aggregating all intelligence becomes a bottleneck. The solution is sub-department agents: team leads get intermediate-level agents that aggregate their direct reports and are in turn aggregated by the department agent.",
   "new": null,
   "marked": "[-The primary scaling challenge is the department agent's cognitive load. At 200 employees in a department, a single department agent aggregating all intelligence becomes a bottleneck. The solution is sub-department agents: team leads get intermediate-level agents that aggregate their direct reports and are in turn aggregated by the department agent.-]"
  },
  {
   "section": "9.2 Integration with Enterprise Systems",
   "old": "### 9.2 Integration with Enterprise Systems",
   "new": null,
   "marked": "[-### 9.2 Integration with Enterprise Systems-]"
  },
  {
   "section": "9.2 Integration with Enterprise Systems",
   "old": "HIVEMIND's agents currently access corporate data through filesystem paths. Full enterprise deployment requires integration with:",
   "new": null,
   "marked": "[-HIVEMIND's agents currently access corporate data through filesystem paths. Full enterprise deployment requires integration with:-]"
  },
  {
   "section": "9.2 Integration with Enterprise Systems",
   "old": "- **ERP systems** (SAP, Oracle, Microsoft Dynamics): Agent tools that query ERP APIs for inventory, order status, and financial data. The clearance model maps to ERP role-based access control. - **CRM systems** (Salesforce, HubSpot, custom): The Sales Coordination Model assumes CRM as a primary data source. Native CRM integration replaces filesystem paths with API calls, preserving the clearance model through CRM's existing permission system. - **Active Directory / LDAP**: Agent clearance assignments should be provisioned automatically from AD group membership. New employee → new AD account → HIVEMIND auto-provisions the agent with appropriate clearance. - **Ticketing and workflow systems** (Jira, ServiceNow): IT agents coordinate with ticketing systems. Production agents coordinate with workflow management. These integrations extend the agent's utility without changing the clearance architecture.",
   "new": null,
   "marked": "[-- **ERP systems** (SAP, Oracle, Microsoft Dynamics): Agent tools that query ERP APIs for inventory, order status, and financial data. The clearance model maps to ERP role-based access control. - **CRM systems** (Salesforce, HubSpot, custom): The Sales Coordination Model assumes CRM as a primary data source. Native CRM integration replaces filesystem paths with API calls, preserving the clearance model through CRM's existing permission system. - **Active Directory / LDAP**: Agent clearance assignments should be provisioned automatically from AD group membership. New employee → new AD account → HIVEMIND auto-provisions the agent with appropriate clearance. - **Ticketing and workflow systems** (Jira, ServiceNow): IT agents coordinate with ticketing systems. Production agents coordinate with workflow management. These integrations extend the agent's utility without changing the clearance architecture.-]"
  },
  {
   "section": "9.3 Federated Agent Networks Across Companies",
   "old": "### 9.3 Federated Agent Networks Across Companies",
   "new": null,
   "marked": "[-### 9.3 Federated Agent Networks Across Companies-]"
  },
  {
   "section": "9.3 Federated Agent Networks Across Companies",
   "old": "The most ambitious direction is federation: agent networks that span organizational boundaries. Two companies with a supplier-customer relationship might establish a federated channel where their respective SALES-AGENT instances can share pre-approved data categories (purchase orders, delivery confirmations, public pricing) without exposing internal data.",
   "new": null,
   "marked": "[-The most ambitious direction is federation: agent networks that span organizational boundaries. Two companies with a supplier-customer relationship might establish a federated channel where their respective SALES-AGENT instances can share pre-approved data categories (purchase orders, delivery confirmations, public pricing) without exposing internal data.-]"
  },
  {
   "section": "9.3 Federated Agent Networks Across Companies",
   "old": "This requires a federated clearance protocol: each company's gateway defines what external agents can receive, and messages are filtered before crossing the federation boundary. The receiving company's gateway validates the source's identity and applies its own clearance rules to incoming data. The result is a controlled, auditable supply chain of AI-mediated business intelligence.",
   "new": null,
   "marked": "[-This requires a federated clearance protocol: each company's gateway defines what external agents can receive, and messages are filtered before crossing the federation boundary. The receiving company's gateway validates the source's identity and applies its own clearance rules to incoming data. The result is a controlled, auditable supply chain of AI-mediated business intelligence.-]"
  },
  {
   "section": "9.3 Federated Agent Networks Across Companies",
   "old": "This direction intersects with emerging enterprise AI standards (IEEE P3394, ISO/IEC JTC 1/SC 42) around AI system governance and interoperability. HIVEMIND's explicit clearance model and communication logging are designed to be compatible with these emerging standards.",
   "new": null,
   "marked": "[-This direction intersects with emerging enterprise AI standards (IEEE P3394, ISO/IEC JTC 1/SC 42) around AI system governance and interoperability. HIVEMIND's explicit clearance model and communication logging are designed to be compatible with these emerging standards.-]"
  },
  {
   "section": "9.4 The Role of NemoClaw and OpenShell",
   "old": "### 9.4 The Role of NemoClaw and OpenShell",
   "new": null,
   "marked": "[-### 9.4 The Role of NemoClaw and OpenShell-]"
  },
  {
   "section": "9.4 The Role of NemoClaw and OpenShell",
   "old": "NemoClaw (OpenClaw's embedded/edge deployment variant) and OpenShell (the command-line interface layer) have specific roles in scaled enterprise deployment:",
   "new": null,
   "marked": "[-NemoClaw (OpenClaw's embedded/edge deployment variant) and OpenShell (the command-line interface layer) have specific roles in scaled enterprise deployment:-]"
  },
  {
   "section": "9.4 The Role of NemoClaw and OpenShell",
   "old": "- **NemoClaw on mobile devices**: Each employee's phone runs a NemoClaw instance providing offline capability and local inference for low-sensitivity queries, syncing with the corporate server when connected. The mobile instance operates at T1/T2 clearance only; T3+ queries are routed to the server. - **OpenShell for automation**: Department agents and the compliance sweep infrastructure are ideally operated through OpenShell scripts, enabling automation of routine queries, scheduled intelligence synthesis, and batch compliance analysis without requiring a full GUI session. - **TinkerClaw companion app as the employee interface**: The companion app remains the human-facing surface for all HIVEMIND agents, ensuring consistent UX across the hierarchy while the underlying infrastructure distributes across server and edge.",
   "new": null,
   "marked": "[-- **NemoClaw on mobile devices**: Each employee's phone runs a NemoClaw instance providing offline capability and local inference for low-sensitivity queries, syncing with the corporate server when connected. The mobile instance operates at T1/T2 clearance only; T3+ queries are routed to the server. - **OpenShell for automation**: Department agents and the compliance sweep infrastructure are ideally operated through OpenShell scripts, enabling automation of routine queries, scheduled intelligence synthesis, and batch compliance analysis without requiring a full GUI session. - **TinkerClaw companion app as the employee interface**: The companion app remains the human-facing surface for all HIVEMIND agents, ensuring consistent UX across the hierarchy while the underlying infrastructure distributes across server and edge.-]"
  },
  {
   "section": "9.5 Toward Organizational Cognition",
   "old": "### 9.5 Toward Organizational Cognition",
   "new": null,
   "marked": "[-### 9.5 Toward Organizational Cognition-]"
  },
  {
   "section": "9.5 Toward Organizational Cognition",
   "old": "We conclude this forward-looking section with the broader vision. HIVEMIND is, at its core, an attempt to give an organization a distributed cognition substrate — not to replace human judgment, but to ensure that relevant knowledge reaches the humans who need it, filtered for their role, organized for their context, and available in real time rather than buried in an email thread from 2019.",
   "new": null,
   "marked": "[-We conclude this forward-looking section with the broader vision. HIVEMIND is, at its core, an attempt to give an organization a distributed cognition substrate — not to replace human judgment, but to ensure that relevant knowledge reaches the humans who need it, filtered for their role, organized for their context, and available in real time rather than buried in an email thread from 2019.-]"
  },
  {
   "section": "9.5 Toward Organizational Cognition",
   "old": "The family business scenario is instructive precisely because it is small enough to understand. At 120 employees, every person matters. The sales director who doesn't know about the competitor's new product launch because the intelligence died in Pedro's memory file is a real organizational failure, and it happens every day. HIVEMIND's coordinated intelligence model is an attempt to solve this at the infrastructure level, not through management exhortation or better meeting culture.",
   "new": null,
   "marked": "[-The family business scenario is instructive precisely because it is small enough to understand. At 120 employees, every person matters. The sales director who doesn't know about the competitor's new product launch because the intelligence died in Pedro's memory file is a real organizational failure, and it happens every day. HIVEMIND's coordinated intelligence model is an attempt to solve this at the infrastructure level, not through management exhortation or better meeting culture.-]"
  },
  {
   "section": "9.5 Toward Organizational Cognition",
   "old": "As local inference models improve — as 70B models become 7B models with equivalent capability, as edge hardware becomes cheaper — the cost floor for HIVEMIND-style deployment will drop. The day is not far when a 20-person company can run a full hierarchical agent swarm on a single rack-mount server. When that day arrives, the architectural patterns described here will determine whether the deployment is safe, auditable, and genuinely useful, or a compliance liability waiting to trigger.",
   "new": null,
   "marked": "[-As local inference models improve — as 70B models become 7B models with equivalent capability, as edge hardware becomes cheaper — the cost floor for HIVEMIND-style deployment will drop. The day is not far when a 20-person company can run a full hierarchical agent swarm on a single rack-mount server. When that day arrives, the architectural patterns described here will determine whether the deployment is safe, auditable, and genuinely useful, or a compliance liability waiting to trigger.-]"
  },
  {
   "section": "9. Phased Deployment Strategy",
   "old": null,
   "new": "## 9. Phased Deployment Strategy",
   "marked": "{+## 9. Phased Deployment Strategy+}"
  },
  {
   "section": "9. Phased Deployment Strategy",
   "old": null,
   "new": "Deploying HIVEMIND across an organization should be staged, not big-bang. Each phase has success criteria that must be met before advancing.",
   "marked": "{+Deploying HIVEMIND across an organization should be staged, not big-bang. Each phase has success criteria that must be met before advancing.+}"
  },
  {
   "section": "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.",
   "old": null,
   "new": "### 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.",
   "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) - 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.",
   "old": null,
   "new": "### 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.",
   "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) - 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.",
   "old": null,
   "new": "### 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.",
   "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) - 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.",
   "old": null,
   "new": "### 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.",
   "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+) - All employees have agents. Full clearance model active. - Federated channels for cross-department structured data sharing. - Continuous monitoring, quarterly red-team exercises.",
   "old": null,
   "new": "### 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.",
   "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 - **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.",
   "old": null,
   "new": "### 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.",
   "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. Conclusions",
   "old": "## 10. Conclusions",
   "new": null,
   "marked": "[-## 10. Conclusions-]"
  },
  {
   "section": "10. Future Directions",
   "old": null,
   "new": "## 10. Future Directions",
   "marked": "{+## 10. Future Directions+}"
  },
  {
   "section": "10.1 Scaling Beyond the Family Business",
   "old": null,
   "new": "### 10.1 Scaling Beyond the Family Business",
   "marked": "{+### 10.1 Scaling Beyond the Family Business+}"
  },
  {
   "section": "10.1 Scaling Beyond the Family Business",
   "old": null,
   "new": "At 1,000+ employees, the three-level hierarchy extends: Level 1 (employee), Level 2 (team), Level 3 (department), Level 4 (division), Level 5 (executive). The primary scaling challenge is department agent cognitive load. At 200 employees per department, sub-department agents (team-level) aggregate their direct reports and feed into the department agent.",
   "marked": "{+At 1,000+ employees, the three-level hierarchy extends: Level 1 (employee), Level 2 (team), Level 3 (department), Level 4 (division), Level 5 (executive). The primary scaling challenge is department agent cognitive load. At 200 employees per department, sub-department agents (team-level) aggregate their direct reports and feed into the department agent.+}"
  },
  {
   "section": "10.2 Integration with Enterprise Systems",
   "old": null,
   "new": "### 10.2 Integration with Enterprise Systems",
   "marked": "{+### 10.2 Integration with Enterprise Systems+}"
  },
  {
   "section": "10.2 Integration with Enterprise Systems",
   "old": null,
   "new": "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.",
   "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": "10.3 Federated Agent Networks Across Companies",
   "old": null,
   "new": "### 10.3 Federated Agent Networks Across Companies",
   "marked": "{+### 10.3 Federated Agent Networks Across Companies+}"
  },
  {
   "section": "10.3 Federated Agent Networks Across Companies",
   "old": null,
   "new": "The most ambitious direction: agent networks spanning organizational boundaries. Two companies with a supplier-customer relationship establish a federated channel where their SALES-AGENT instances share pre-approved data categories without exposing internal data.",
   "marked": "{+The most ambitious direction: agent networks spanning organizational boundaries. Two companies with a supplier-customer relationship establish a federated channel where their SALES-AGENT instances share pre-approved data categories without exposing internal data.+}"
  },
  {
   "section": "10.3 Federated Agent Networks Across Companies",
   "old": null,
   "new": "This requires a federated clearance protocol: each company's gateway defines what external agents can receive, filtering before crossing the federation boundary. This intersects with emerging enterprise AI standards (IEEE P3394, ISO/IEC JTC 1/SC 42).",
   "marked": "{+This requires a federated clearance protocol: each company's gateway defines what external agents can receive, filtering before crossing the federation boundary. This intersects with emerging enterprise AI standards (IEEE P3394, ISO/IEC JTC 1/SC 42).+}"
  },
  {
   "section": "10.4 The Role of NemoClaw and OpenShell",
   "old": null,
   "new": "### 10.4 The Role of NemoClaw and OpenShell",
   "marked": "{+### 10.4 The Role of NemoClaw and OpenShell+}"
  },
  {
   "section": "10.4 The Role of NemoClaw and OpenShell",
   "old": null,
   "new": "- **NemoClaw on mobile:** Employee phones run a NemoClaw instance for offline capability at T1/T2 clearance; T3+ queries route to the server. - **OpenShell for automation:** Department agents and compliance infrastructure run through OpenShell scripts for scheduled operations. - **TinkerClaw companion app:** The human-facing surface for all agents, ensuring consistent UX across the hierarchy.",
   "marked": "{+- **NemoClaw on mobile:** Employee phones run a NemoClaw instance for offline capability at T1/T2 clearance; T3+ queries route to the server. - **OpenShell for automation:** Department agents and compliance infrastructure run through OpenShell scripts for scheduled operations. - **TinkerClaw companion app:** The human-facing surface for all agents, ensuring consistent UX across the hierarchy.+}"
  },
  {
   "section": "10.5 Performance and Cost Estimates",
   "old": null,
   "new": "### 10.5 Performance and Cost Estimates",
   "marked": "{+### 10.5 Performance and Cost Estimates+}"
  },
  {
   "section": "10.5 Performance and Cost Estimates",
   "old": null,
   "new": "A HIVEMIND deployment for 85 employees requires:",
   "marked": "{+A HIVEMIND deployment for 85 employees requires:+}"
  },
  {
   "section": "10.5 Performance and Cost Estimates",
   "old": null,
   "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.5 Performance and Cost Estimates",
   "old": null,
   "new": "**Compute budget per agent:** With 85 employee agents + 5 department agents + 1 executive agent = 91 agents. Assuming average 50 inference calls per agent per day at ~2 seconds per call on a 70B model: 91 × 50 × 2 = ~9,100 seconds = ~2.5 hours of sequential inference per day. With 2× A100 GPUs, this is well within capacity with significant headroom for peak loads and compliance scans.",
   "marked": "{+**Compute budget per agent:** With 85 employee agents + 5 department agents + 1 executive agent = 91 agents. Assuming average 50 inference calls per agent per day at ~2 seconds per call on a 70B model: 91 × 50 × 2 = ~9,100 seconds = ~2.5 hours of sequential inference per day. With 2× A100 GPUs, this is well within capacity with significant headroom for peak loads and compliance scans.+}"
  },
  {
   "section": "10.5 Performance and Cost Estimates",
   "old": null,
   "new": "**Comparison to cloud inference:** The same workload on cloud APIs (estimated $0.03/call for GPT-4-class models) would cost: 91 × 50 × $0.03 × 365 = ~$50,000/year — comparable to the first-year total cost of ownership for on-premises hardware, but without data residency guarantees. By year two, on-premises is significantly cheaper.",
   "marked": "{+**Comparison to cloud inference:** The same workload on cloud APIs (estimated $0.03/call for GPT-4-class models) would cost: 91 × 50 × $0.03 × 365 = ~$50,000/year — comparable to the first-year total cost of ownership for on-premises hardware, but without data residency guarantees. By year two, on-premises is significantly cheaper.+}"
  },
  {
   "section": "10.5 Performance and Cost Estimates",
   "old": null,
   "new": "These are rough estimates. Actual costs depend on model choice, inference optimization (quantization, batching), and usage patterns. A detailed capacity planning exercise should precede procurement.",
   "marked": "{+These are rough estimates. Actual costs depend on model choice, inference optimization (quantization, batching), and usage patterns. A detailed capacity planning exercise should precede procurement.+}"
  },
  {
   "section": "10.6 Toward Organizational Cognition",
   "old": null,
   "new": "### 10.6 Toward Organizational Cognition",
   "marked": "{+### 10.6 Toward Organizational Cognition+}"
  },
  {
   "section": "10.6 Toward Organizational Cognition",
   "old": null,
   "new": "HIVEMIND is an attempt to give an organization a distributed cognition substrate — ensuring relevant knowledge reaches the humans who need it, filtered for their role, organized for their context, and available in real time rather than buried in an email thread from 2019.",
   "marked": "{+HIVEMIND is an attempt to give an organization a distributed cognition substrate — ensuring relevant knowledge reaches the humans who need it, filtered for their role, organized for their context, and available in real time rather than buried in an email thread from 2019.+}"
  },
  {
   "section": "10.6 Toward Organizational Cognition",
   "old": null,
   "new": "As local inference models improve — as 70B models become 7B models with equivalent capability, as edge hardware becomes cheaper — the cost floor drops. The day is not far when a 20-person company can run a full hierarchical agent swarm on a single rack-mount server. The architectural patterns described here will determine whether such deployment is safe, auditable, and genuinely useful.",
   "marked": "{+As local inference models improve — as 70B models become 7B models with equivalent capability, as edge hardware becomes cheaper — the cost floor drops. The day is not far when a 20-person company can run a full hierarchical agent swarm on a single rack-mount server. The architectural patterns described here will determine whether such deployment is safe, auditable, and genuinely useful.+}"
  },
  {
   "section": "10.6 Toward Organizational Cognition",
   "old": null,
   "new": "---",
   "marked": "{+---+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "## 11. Limitations",
   "marked": "{+## 11. Limitations+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "This paper has several significant limitations that should be acknowledged:",
   "marked": "{+This paper has several significant limitations that should be acknowledged:+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "1. **No empirical validation.** HIVEMIND is a design blueprint, not a deployed system. The architecture has not been tested against real enterprise workloads. Claims about effectiveness (the \"coordination dividend\") are theoretical.",
   "marked": "{+1. **No empirical validation.** HIVEMIND is a design blueprint, not a deployed system. The architecture has not been tested against real enterprise workloads. Claims about effectiveness (the \"coordination dividend\") are theoretical.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "4. **Model capability assumptions.** The architecture assumes that current-generation 70B models can reliably perform clearance-aware operations (classification tagging, escalation detection, behavioral profiling). This assumption needs empirical validation per deployment.",
   "marked": "{+4. **Model capability assumptions.** The architecture assumes that current-generation 70B models can reliably perform clearance-aware operations (classification tagging, escalation detection, behavioral profiling). This assumption needs empirical validation per deployment.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "5. **Organizational complexity not fully addressed.** Real companies have matrix reporting structures, temporary project teams, contractors, and consultants — none of which fit neatly into the three-level hierarchy. Extending HIVEMIND to these structures requires additional design work.",
   "marked": "{+5. **Organizational complexity not fully addressed.** Real companies have matrix reporting structures, temporary project teams, contractors, and consultants — none of which fit neatly into the three-level hierarchy. Extending HIVEMIND to these structures requires additional design work.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "6. **Single-site assumption.** The architecture assumes a single-site deployment. Multi-site companies with distributed infrastructure face additional challenges: network latency for inter-agent communication, data replication across sites, and potentially conflicting local regulations.",
   "marked": "{+6. **Single-site assumption.** The architecture assumes a single-site deployment. Multi-site companies with distributed infrastructure face additional challenges: network latency for inter-agent communication, data replication across sites, and potentially conflicting local regulations.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "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.",
   "marked": "{+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.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "8. **Cost-benefit analysis absent.** The paper does not quantify the ROI of HIVEMIND versus traditional knowledge management systems (SharePoint, wikis, email archives). The value proposition, while intuitively compelling, lacks comparative evidence.",
   "marked": "{+8. **Cost-benefit analysis absent.** The paper does not quantify the ROI of HIVEMIND versus traditional knowledge management systems (SharePoint, wikis, email archives). The value proposition, while intuitively compelling, lacks comparative evidence.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "---",
   "marked": "{+---+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "## 12. Conclusions",
   "marked": "{+## 12. Conclusions+}"
  },
  {
   "section": "12. Conclusions",
   "old": "1. **The Corporate Filesystem Clearance Model.** Five data classification tiers (PUBLIC through SECRET) mapped directly to Linux filesystem permissions, enforcing clearance at the kernel level rather than the prompt level. This is the foundational insight: infrastructure enforcement is categorically more reliable than model-level instruction.",
   "new": "1. **The Corporate Filesystem Clearance Model.** Five data classification tiers (PUBLIC through SECRET) mapped to Linux filesystem permissions, formally grounded in the Bell-LaPadula security model with a controlled declassification mechanism. Infrastructure enforcement is categorically more reliable than model-level instruction.",
   "marked": "1. **The Corporate Filesystem Clearance Model.** Five data classification tiers (PUBLIC through SECRET) mapped [-directly-] to Linux filesystem permissions, [-enforcing clearance at-] {+formally grounded in+} the [-kernel level rather than the prompt level. This is the foundational insight: infrastructure-] {+Bell-LaPadula security model with a controlled declassification mechanism. Infrastructure+} enforcement is categorically more reliable than model-level instruction."
  },
  {
   "section": "12. Conclusions",
   "old": "2. **The Three-Level Agent Hierarchy.** Employee agents (personalized, role-scoped), department agents (coordinating, aggregating, gatekeeping), and executive agents (comprehensive view, full audit access). Information flows strictly downward through explicit queries; intelligence flows upward through structured push channels only.",
   "new": "2. **The Three-Level Agent Hierarchy.** Employee agents (personalized, role-scoped), department agents (coordinating, aggregating, gatekeeping), and executive agents (comprehensive view, full audit access). Downward queries, upward intelligence through formalized structured push channels, and mediated lateral communication.",
   "marked": "2. **The Three-Level Agent Hierarchy.** Employee agents (personalized, role-scoped), department agents (coordinating, aggregating, gatekeeping), and executive agents (comprehensive view, full audit access). [-Information flows strictly downward-] {+Downward queries, upward intelligence+} through [-explicit queries; intelligence flows upward through-] {+formalized+} structured push [-channels only.-] {+channels, and mediated lateral communication.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "3. **The Sales Coordination Model.** A worked example demonstrating how cross-agent coordination (customer ownership routing, unified history assembly, competitive intelligence aggregation) can be achieved without lateral information leakage, through mediated department-level coordination and clearance-filtered redacted summaries.",
   "new": "3. **The Sales Coordination Model.** Customer ownership routing, unified history assembly with template-based redacted summaries, and competitive intelligence aggregation — demonstrating cross-agent coordination without lateral information leakage.",
   "marked": "3. **The Sales Coordination Model.** [-A worked example demonstrating how cross-agent coordination (customer-] {+Customer+} ownership routing, unified history [-assembly,-] {+assembly with template-based redacted summaries, and+} competitive intelligence [-aggregation) can be achieved-] {+aggregation — demonstrating cross-agent coordination+} without lateral information [-leakage, through mediated department-level coordination and clearance-filtered redacted summaries.-] {+leakage.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "4. **Compliance Architecture.** Nightly sweep across four analysis dimensions (leak detection, compliance violations, behavioral anomalies, memory contamination), communication logging with full audit trail, and automated quarantine with human-in-the-loop review.",
   "new": "4. **Compliance Architecture.** Nightly sweep across four analysis dimensions with calibrated false-positive thresholds, communication logging with full audit trail, and automated quarantine with human-in-the-loop review satisfying GDPR Article 22.",
   "marked": "4. **Compliance Architecture.** Nightly sweep across four analysis dimensions [-(leak detection, compliance violations, behavioral anomalies, memory contamination),-] {+with calibrated false-positive thresholds,+} communication logging with full audit trail, and automated quarantine with human-in-the-loop [-review.-] {+review satisfying GDPR Article 22.+}"
  },
  {
   "section": "10. Conclusions",
   "old": "5. **Risk Analysis.** Five principal risk categories (curious agent aggregation, inter-agent social engineering, memory contamination, executive agent compromise, model capability variance), with concrete mitigations for each. The core mitigation philosophy: filesystem and gateway enforcement first, model-level rules as defense in depth.",
   "new": null,
   "marked": "[-5. **Risk Analysis.** Five principal risk categories (curious agent aggregation, inter-agent social engineering, memory contamination, executive agent compromise, model capability variance), with concrete mitigations for each. The core mitigation philosophy: filesystem and gateway enforcement first, model-level rules as defense in depth.-]"
  },
  {
   "section": "10. Conclusions",
   "old": "We are under no illusion that HIVEMIND is a finished system. It is a design blueprint — one developed iteratively against the operational constraints a mid-sized business meets when deploying AI agents across its workforce. The architecture will need to evolve as models improve, as enterprise integration requirements mature, and as regulators develop clearer frameworks for enterprise AI governance.",
   "new": null,
   "marked": "[-We are under no illusion that HIVEMIND is a finished system. It is a design blueprint — one developed iteratively against the operational constraints a mid-sized business meets when deploying AI agents across its workforce. The architecture will need to evolve as models improve, as enterprise integration requirements mature, and as regulators develop clearer frameworks for enterprise AI governance.-]"
  },
  {
   "section": "10. Conclusions",
   "old": "What we believe will not change is the fundamental tension the architecture addresses: the value of coordination versus the necessity of boundaries. Every organization that deploys AI at scale will face this tension. The answer cannot be \"give everyone access to everything\" — that is a security and trust failure. The answer cannot be \"give everyone a siloed assistant\" — that sacrifices the institutional memory benefit that makes AI genuinely transformative for organizations.",
   "new": null,
   "marked": "[-What we believe will not change is the fundamental tension the architecture addresses: the value of coordination versus the necessity of boundaries. Every organization that deploys AI at scale will face this tension. The answer cannot be \"give everyone access to everything\" — that is a security and trust failure. The answer cannot be \"give everyone a siloed assistant\" — that sacrifices the institutional memory benefit that makes AI genuinely transformative for organizations.-]"
  },
  {
   "section": "10. Conclusions",
   "old": "The answer is architecture. Clear rules about what information flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions. That is what HIVEMIND attempts to provide, and that is what the next generation of enterprise AI deployment will require.",
   "new": null,
   "marked": "[-The answer is architecture. Clear rules about what information flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions. That is what HIVEMIND attempts to provide, and that is what the next generation of enterprise AI deployment will require.-]"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "5. **Legal Framework.** GDPR and EU AI Act compliance analysis, including DPA requirements, profiling assessment, automated decision-making obligations, and high-risk AI system conformity assessment.",
   "marked": "{+5. **Legal Framework.** GDPR and EU AI Act compliance analysis, including DPA requirements, profiling assessment, automated decision-making obligations, and high-risk AI system conformity assessment.+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "6. **Risk Analysis.** Ten principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling.",
   "marked": "{+6. **Risk Analysis.** Ten principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling.+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "7. **Deployment Strategy.** A four-phase rollout with explicit gate criteria, success metrics, and adoption management considerations.",
   "marked": "{+7. **Deployment Strategy.** A four-phase rollout with explicit gate criteria, success metrics, and adoption management considerations.+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "8. **Technical Specification.** Inter-agent protocol with message format, delivery semantics, authentication, and process isolation beyond filesystem permissions.",
   "marked": "{+8. **Technical Specification.** Inter-agent protocol with message format, delivery semantics, authentication, and process isolation beyond filesystem permissions.+}"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "HIVEMIND is a design blueprint — not a finished system. It will evolve as models improve, enterprise integration matures, and regulators develop clearer frameworks. What we believe will endure is the fundamental tension it addresses: the value of coordination versus the necessity of boundaries. Every organization deploying AI at scale will face this tension. The answer is architecture: clear rules about what flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions.",
   "marked": "{+HIVEMIND is a design blueprint — not a finished system. It will evolve as models improve, enterprise integration matures, and regulators develop clearer frameworks. What we believe will endure is the fundamental tension it addresses: the value of coordination versus the necessity of boundaries. Every organization deploying AI at scale will face this tension. The answer is architecture: clear rules about what flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions.+}"
  },
  {
   "section": "References",
   "old": null,
   "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 Second Machine Age: Work, Progress, and Prosperity in a Time of Brilliant Technologies*. W. W. Norton.+}"
  },
  {
   "section": "References",
   "old": null,
   "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 Business Review, 96*(1), 108–116.+}"
  },
  {
   "section": "References",
   "old": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version 1.0 | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*",
   "new": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version 1.0.1 | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*",
   "marked": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version [-1.0-] {+1.0.1+} | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*"
  }
 ]
}
