ReadPrintedHistoryCompareGraphs

v1.0 → v1.0.1

What changed from v1.0 to v1.0.1

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.

Rebuilt after the first review; formal security model, cost, rollout plan

About 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.

  • New formal security model based on Bell-LaPadula, the classic "no read up, no write down" rule.
  • New sections on the EU AI Act, a data protection impact assessment, and how staff will adopt the system.
  • New operations chapters: the protocol between agents, process isolation, debugging, version control of settings, backups.
  • New failure modes, model updates that change behaviour, and real-time channels.
  • A phased rollout plan, from one department with low-risk data to the whole company, with success measures.
  • First cost estimates and a limitations section.
v1.0 · 17 March 2026v1.0.1 · 17 March 2026

··· 4 unchanged paragraphs folded ···

v1.0 · AbstractConversational 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.
v1.0.1 · AbstractConversational 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.
v1.0 · Abstract**Keywords:** multi-agent systems, enterprise AI, information security, clearance models, OpenClaw, agent swarms, GDPR, knowledge management, corporate AI, hierarchical agents
v1.0.1 · Abstract**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

··· 2 unchanged paragraphs folded ···

v1.0 · 1.1 The Individual Agent Paradigm### 1.1 The Individual Agent Paradigm
removed in v1.0.1
not in v1.0
v1.0.1 · 1.1 From Individual Agents to Organizational Deployment### 1.1 From Individual Agents to Organizational Deployment
v1.0 · 1.1 From Individual Agents to Organizational DeploymentThe 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.
v1.0.1 · 1.1 From Individual Agents to Organizational DeploymentThe 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.
v1.0 · 1.1 The Individual Agent ParadigmWe 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.
removed in v1.0.1

··· 2 unchanged paragraphs folded ···

v1.0 · 1.2 The Organizational NeedConsider 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.
removed in v1.0.1
v1.0 · 1.2 The Organizational NeedNow 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.
removed in v1.0.1
v1.0 · 1.2 The Organizational NeedEach of these agents is powerful for its user. But the moment they start operating in the same corporate ecosystem, problems emerge:
removed in v1.0.1
not in v1.0
v1.0.1 · 1.2 The Organizational NeedConsider 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.
not in v1.0
v1.0.1 · 1.2 The Organizational NeedThe moment these agents operate in the same corporate ecosystem, three problems emerge:
v1.0 · 1.2 The Organizational Need- **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.
v1.0.1 · 1.2 The Organizational Need- **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.
v1.0 · 1.2 The Organizational Need- **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.
v1.0.1 · 1.2 The Organizational Need- **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.
v1.0 · 1.2 The Organizational Need- **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.
v1.0.1 · 1.2 The Organizational Need- **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.
v1.0 · 1.2 The Organizational NeedThese 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 1.2 The Organizational NeedThese are the daily reality of knowledge management in mid-sized companies.

··· 1 unchanged paragraph folded ···

v1.0 · 1.3 The Core TensionThe central challenge of enterprise AI deployment is a tension between two legitimate needs that pull in opposite directions:
v1.0.1 · 1.3 The Core TensionThe central challenge is a tension between two legitimate needs:
v1.0 · 1.3 The Core Tension**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.
v1.0.1 · 1.3 The Core Tension**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.
v1.0 · 1.3 The Core Tension**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.
v1.0.1 · 1.3 The Core Tension**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.
v1.0 · 1.3 The Core TensionHIVEMIND 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 1.3 The Core TensionHIVEMIND resolves this tension through deep integration with strict clearance-based boundaries enforced at the infrastructure level, not merely at the prompt level.
not in v1.0
v1.0.1 · 1.4 Architecture Overview### 1.4 Architecture Overview
not in v1.0
v1.0.1 · 1.4 Architecture OverviewBefore presenting the detailed design, we provide a high-level view of the HIVEMIND architecture:
not in v1.0
v1.0.1 · 1.4 Architecture Overview``` ┌─────────────────────────────────────────────────────┐ │ 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) │ └─────────────────────────────────────────────────────┘ ```
v1.0 · 1.5 Paper Organization### 1.4 Paper Organization
v1.0.1 · 1.5 Paper Organization### 1.5 Paper Organization
v1.0 · 1.4 Paper OrganizationWe 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 1.5 Paper OrganizationSection 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.

··· 3 unchanged paragraphs folded ···

v1.0 · 2.1 The Shared Server as Mental ModelEvery 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.
v1.0.1 · 2.1 The Shared Server as Mental ModelEvery 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.
v1.0 · 2.1 The Shared Server as Mental ModelThis 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.
removed in v1.0.1
v1.0 · 2.1 The Shared Server as Mental ModelHIVEMIND 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:
removed in v1.0.1
not in v1.0
v1.0.1 · 2.1 The Shared Server as Mental ModelHIVEMIND maps directly onto this existing model. The advantages:
v1.0 · 2.1 The Shared Server as Mental Model1. **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.
v1.0.1 · 2.1 The Shared Server as Mental Model1. **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.

··· 1 unchanged paragraph folded ···

v1.0 · 2.2 Data Classification TiersWe define five classification tiers, ordered from least to most sensitive:
v1.0.1 · 2.2 Data Classification TiersWe define five classification tiers:

··· 1 unchanged paragraph folded ···

v1.0 · 2.2 Data Classification TiersThese tiers map directly to Linux filesystem paths. In the HIVEMIND deployment model, each tier corresponds to a directory with specific ownership and permissions:
removed in v1.0.1
not in v1.0
v1.0.1 · 2.2 Data Classification TiersThese tiers map to Linux filesystem paths:
v1.0 · 2.2 Data Classification Tiers``` /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) ```
v1.0.1 · 2.2 Data Classification Tiers``` /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 ```
v1.0 · 2.2 Data Classification TiersEach 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.
v1.0.1 · 2.2 Data Classification TiersEach 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`.
not in v1.0
v1.0.1 · 2.2 Data Classification TiersNote: 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.

··· 1 unchanged paragraph folded ···

v1.0 · 2.3 The "Need to Know" PrincipleMilitary 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.
removed in v1.0.1
v1.0 · 2.3 The "Need to Know" PrincipleWe 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.
v1.0.1 · 2.3 The "Need to Know" PrincipleMilitary 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).
v1.0 · 2.3 The "Need to Know" PrincipleThe 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.
removed in v1.0.1
v1.0 · 2.4 Information Flow as a Directed Graph### 2.4 Information Flow as a Directed Graph
removed in v1.0.1
v1.0 · 2.4 Information Flow as a Directed GraphWe model inter-agent information sharing as a directed graph with clearance-enforced edge weights. Define:
removed in v1.0.1
v1.0 · 2.4 Information Flow as a Directed Graph- $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$
removed in v1.0.1
not in v1.0
v1.0.1 · 2.3 The "Need to Know" PrincipleThis limits blast radius: a compromised agent's accessible data surface is bounded by role scope, not just clearance tier.
not in v1.0
v1.0.1 · 2.4 Formal Security Model### 2.4 Formal Security Model
not in v1.0
v1.0.1 · 2.4 Formal Security ModelHIVEMIND's information flow model is grounded in the Bell-LaPadula (BLP) lattice model, adapted for the multi-agent enterprise context.
not in v1.0
v1.0.1 · 2.4 Formal Security Model**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}$.
not in v1.0
v1.0.1 · 2.4 Formal Security Model**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)$$
not in v1.0
v1.0.1 · 2.4 Formal Security ModelAn agent cannot read data classified above its clearance tier, and even at its tier, access is restricted to its role-relevant departments.
not in v1.0
v1.0.1 · 2.4 Formal Security Model**Star Property (*-property, no write-down).** Agent $s$ may write to object $o$ only if: $$\ell(o) \geq c(s)$$
not in v1.0
v1.0.1 · 2.4 Formal Security ModelAn agent cannot write data to a lower classification level, preventing information laundering from restricted tiers to public ones.
not in v1.0
v1.0.1 · 2.4 Formal Security Model**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:
not in v1.0
v1.0.1 · 2.4 Formal Security Model1. 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.
not in v1.0
v1.0.1 · 2.4 Formal Security ModelThis exception is the formal basis for redacted summaries. It is narrow by design — only structured declassification through approved channels is permitted.
not in v1.0
v1.0.1 · 2.4 Formal Security Model**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.
not in v1.0
v1.0.1 · 2.5 Information Flow as a Directed Graph### 2.5 Information Flow as a Directed Graph
not in v1.0
v1.0.1 · 2.5 Information Flow as a Directed GraphWe model inter-agent information sharing as a directed graph with clearance-enforced edges. Define:
not in v1.0
v1.0.1 · 2.5 Information Flow as a Directed Graph- $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$

··· 1 unchanged paragraph folded ···

v1.0 · 2.5 Information Flow as a Directed Graph$$\text{share}(A_i \to A_j, d) \text{ is permitted iff } c_j \geq c_d$$
v1.0.1 · 2.5 Information Flow as a Directed Graph$$\text{share}(A_i \to A_j, d) \text{ is permitted iff } c_j \geq c_d \text{ and } d(d) \in R_j$$
v1.0 · 2.4 Information Flow as a Directed GraphNo 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.
removed in v1.0.1
v1.0 · 2.4 Information Flow as a Directed GraphThis 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 2.5 Information Flow as a Directed GraphNo 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).

··· 3 unchanged paragraphs folded ···

v1.0 · 3.1 Three-Level StructureHIVEMIND defines three levels of agents:
removed in v1.0.1
v1.0 · 3.1 Three-Level Structure**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.
v1.0.1 · 3.1 Three-Level Structure**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.
v1.0 · 3.1 Three-Level Structure**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.
v1.0.1 · 3.1 Three-Level Structure**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.
v1.0 · 3.1 Three-Level Structure**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.
v1.0.1 · 3.1 Three-Level Structure**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.
v1.0 · 3.1 Three-Level StructureThis 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.
removed in v1.0.1

··· 2 unchanged paragraphs folded ···

v1.0 · 3.2 Employee Agent Design- **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.
removed in v1.0.1
v1.0 · 3.2 Employee Agent Design- **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.
removed in v1.0.1
v1.0 · 3.2 Employee Agent Design- **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.
removed in v1.0.1
v1.0 · 3.2 Employee Agent Design- **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.
removed in v1.0.1
not in v1.0
v1.0.1 · 3.2 Employee Agent Design- **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.

··· 1 unchanged paragraph folded ···

v1.0 · 3.3 Information Flow RulesThe HIVEMIND information flow model has four governing rules:
removed in v1.0.1
v1.0 · 3.3 Information Flow Rules**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.
v1.0.1 · 3.3 Information Flow Rules**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.
v1.0 · 3.3 Information Flow Rules**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.
v1.0.1 · 3.3 Information Flow Rules**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.
v1.0 · 3.3 Information Flow Rules**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.
removed in v1.0.1
not in v1.0
v1.0.1 · 3.3 Information Flow Rules**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:
not in v1.0
v1.0.1 · 3.3 Information Flow Rules- 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.
not in v1.0
v1.0.1 · 3.3 Information Flow RulesThe 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.
not in v1.0
v1.0.1 · 3.3 Information Flow Rules**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.
v1.0 · 3.3 Information Flow Rules**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.
v1.0.1 · 3.3 Information Flow Rules**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.

··· 1 unchanged paragraph folded ···

v1.0 · 3.4 The Department Agent as CoordinatorThe department agent is the most architecturally novel element of HIVEMIND. It is simultaneously:
removed in v1.0.1
not in v1.0
v1.0.1 · 3.4 The Department Agent as CoordinatorThe department agent is simultaneously:
v1.0 · 3.4 The Department Agent as Coordinator- **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.
v1.0.1 · 3.4 The Department Agent as Coordinator- **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.
v1.0 · 3.4 The Department Agent as CoordinatorThe 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.
v1.0.1 · 3.4 The Department Agent as CoordinatorThe 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.

··· 3 unchanged paragraphs folded ···

v1.0 · 4.1 Scenario SetupWe 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:
removed in v1.0.1
v1.0 · 4.1 Scenario Setup- 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
removed in v1.0.1
v1.0 · 4.1 Scenario SetupEach 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).
removed in v1.0.1
v1.0 · 4.1 Scenario SetupThe 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 4.1 Scenario SetupThe 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.
not in v1.0
v1.0.1 · 4.1 Scenario Setup**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).

··· 1 unchanged paragraph folded ···

v1.0 · 4.2 Customer Ownership and RoutingThe 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.
removed in v1.0.1
v1.0 · 4.2 Customer Ownership and RoutingHIVEMIND 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 4.2 Customer Ownership and RoutingSALES-AGENT maintains a **Customer Ownership Registry** mapping each CRM account to a primary owner, secondary contacts, and transition flags.

··· 1 unchanged paragraph folded ···

v1.0 · 4.2 Customer Ownership and Routing1. 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."
v1.0.1 · 4.2 Customer Ownership and Routing1. 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."
v1.0 · 4.2 Customer Ownership and RoutingThis 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 4.2 Customer Ownership and RoutingThis routing happens within seconds — before either human has seen the message.

··· 1 unchanged paragraph folded ···

v1.0 · 4.3 Unified Customer HistoryWhen 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.
removed in v1.0.1
v1.0 · 4.3 Unified Customer HistoryLUNA cannot directly query ATLAS or other agents' memories. But she can query SALES-AGENT.
removed in v1.0.1
v1.0 · 4.3 Unified Customer HistoryThe workflow:
removed in v1.0.1
not in v1.0
v1.0.1 · 4.3 Unified Customer HistoryWhen 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.
v1.0 · 4.3 Unified Customer History1. 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.
v1.0.1 · 4.3 Unified Customer History1. 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.
v1.0 · 4.3 Unified Customer HistoryThe 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).
v1.0.1 · 4.3 Unified Customer HistoryMarí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.
v1.0 · 4.4 Redacted Summaries and Leakage Control### 4.4 Redacted Summaries
v1.0.1 · 4.4 Redacted Summaries and Leakage Control### 4.4 Redacted Summaries and Leakage Control
v1.0 · 4.4 Redacted SummariesThe redacted summary is a key concept in HIVEMIND. When a higher-clearance agent synthesizes information for delivery to a lower-clearance agent, it must:
removed in v1.0.1
v1.0 · 4.4 Redacted Summaries1. **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.
removed in v1.0.1
v1.0 · 4.4 Redacted SummariesRedacted 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage ControlThe 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.
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control**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.
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control**Template-based redaction pipeline.** To mitigate this, HIVEMIND uses a structured redaction approach rather than relying on free-form LLM summarization:
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control1. **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).
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control2. **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.]
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control3. **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.
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control4. **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."
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control5. **Logging.** Every redaction event is logged: source classification, template used, output hash, recipient clearance. Logged redactions are reviewed in weekly compliance audits.
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage ControlThis 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.
not in v1.0
v1.0.1 · 4.4 Redacted Summaries and Leakage Control**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.

··· 1 unchanged paragraph folded ···

v1.0 · 4.5 Competitive Intelligence FlowSalespeople 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.
removed in v1.0.1
v1.0 · 4.5 Competitive Intelligence FlowHIVEMIND 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).
removed in v1.0.1
not in v1.0
v1.0.1 · 4.5 Competitive Intelligence FlowHIVEMIND defines structured **upward push channels** (formalized in Rule 2a, Section 3.3) for intelligence that has organizational value beyond the individual agent.
v1.0 · 4.5 Competitive Intelligence FlowATLAS, 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 ```
v1.0.1 · 4.5 Competitive Intelligence FlowATLAS, 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 ```
v1.0 · 4.5 Competitive Intelligence FlowSALES-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.
v1.0.1 · 4.5 Competitive Intelligence FlowSALES-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.
v1.0 · 4.5 Competitive Intelligence FlowCritically, 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.
v1.0.1 · 4.5 Competitive Intelligence FlowCompetitive 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.

··· 1 unchanged paragraph folded ···

v1.0 · 4.6 The Coordination DividendThe 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.
v1.0.1 · 4.6 The Coordination DividendThe 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.
v1.0 · 4.6 The Coordination DividendWithout 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.
v1.0.1 · 4.6 The Coordination DividendWithout 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.

··· 1 unchanged paragraph folded ···

v1.0 · 5. Compliance and Audit Architecture## 5. Compliance and Audit Architecture
removed in v1.0.1
v1.0 · 5.1 The Audit Imperative### 5.1 The Audit Imperative
removed in v1.0.1
v1.0 · 5.1 The Audit ImperativeEnterprise 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?
removed in v1.0.1
v1.0 · 5.1 The Audit ImperativeHIVEMIND's answer is a comprehensive audit architecture that treats every inter-agent communication as a compliance event to be logged, analyzed, and reportable.
removed in v1.0.1
v1.0 · 5.2 Communication Logging### 5.2 Communication Logging
removed in v1.0.1
v1.0 · 5.2 Communication LoggingEvery message passing between agents is logged to a tamper-evident audit store with the following schema:
removed in v1.0.1
not in v1.0
v1.0.1 · 5. Privacy and Legal Considerations## 5. Privacy and Legal Considerations
not in v1.0
v1.0.1 · 5. Privacy and Legal Considerations*Legal requirements motivate the compliance architecture that follows in Section 6. We address them first.*
not in v1.0
v1.0.1 · 5.1 Employee Awareness and Transparency### 5.1 Employee Awareness and Transparency
not in v1.0
v1.0.1 · 5.1 Employee Awareness and TransparencyEmployees 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).
not in v1.0
v1.0.1 · 5.1 Employee Awareness and TransparencyThe employment contract addendum must clearly state:
not in v1.0
v1.0.1 · 5.1 Employee Awareness and Transparency1. 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.
not in v1.0
v1.0.1 · 5.1 Employee Awareness and TransparencyThis 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.
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management### 5.2 User Adoption and Change Management
not in v1.0
v1.0.1 · 5.2 User Adoption and Change ManagementLegal 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.
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management**Anticipated adoption challenges:**
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management- **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.
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management- **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.
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management- **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.
not in v1.0
v1.0.1 · 5.2 User Adoption and Change Management**Adoption strategy:** See Section 9 (Phased Deployment) for a staged rollout that addresses these challenges incrementally.
not in v1.0
v1.0.1 · 5.3 GDPR Implications### 5.3 GDPR Implications
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.3 GDPR Implications**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.
not in v1.0
v1.0.1 · 5.4 Data Protection Impact Assessment### 5.4 Data Protection Impact Assessment
not in v1.0
v1.0.1 · 5.4 Data Protection Impact AssessmentA 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:
not in v1.0
v1.0.1 · 5.4 Data Protection Impact Assessment- 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)
not in v1.0
v1.0.1 · 5.5 The EU AI Act### 5.5 The EU AI Act
not in v1.0
v1.0.1 · 5.5 The EU AI ActThe 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).
not in v1.0
v1.0.1 · 5.5 The EU AI Act**Obligations for high-risk classification:**
not in v1.0
v1.0.1 · 5.5 The EU AI Act- **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.
not in v1.0
v1.0.1 · 5.6 Data Residency and On-Premises Processing### 5.6 Data Residency and On-Premises Processing
not in v1.0
v1.0.1 · 5.6 Data Residency and On-Premises ProcessingFor a family business handling customer data under GDPR, the recommendation is: all LLM inference should be on-premises.
not in v1.0
v1.0.1 · 5.6 Data Residency and On-Premises Processing- 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.
not in v1.0
v1.0.1 · 5.6 Data Residency and On-Premises Processing**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.
not in v1.0
v1.0.1 · 5.7 The Right to Be Forgotten — Employee Offboarding### 5.7 The Right to Be Forgotten — Employee Offboarding
not in v1.0
v1.0.1 · 5.7 The Right to Be Forgotten — Employee OffboardingWhen an employee leaves:
not in v1.0
v1.0.1 · 5.7 The Right to Be Forgotten — Employee Offboarding1. 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).
not in v1.0
v1.0.1 · 5.8 The IT Staff Privilege Clause### 5.8 The IT Staff Privilege Clause
not in v1.0
v1.0.1 · 5.8 The IT Staff Privilege ClauseIT 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.
not in v1.0
v1.0.1 · 5.8 The IT Staff Privilege Clause---
not in v1.0
v1.0.1 · 6. Compliance and Audit Architecture## 6. Compliance and Audit Architecture
not in v1.0
v1.0.1 · 6.1 The Audit Imperative### 6.1 The Audit Imperative
not in v1.0
v1.0.1 · 6.1 The Audit ImperativeLegal 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.
not in v1.0
v1.0.1 · 6.2 Communication Logging### 6.2 Communication Logging
not in v1.0
v1.0.1 · 6.2 Communication LoggingEvery inter-agent message is logged to a tamper-evident audit store:

··· 1 unchanged paragraph folded ···

v1.0 · 6.2 Communication LoggingNote 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.
v1.0.1 · 6.2 Communication LoggingFull 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.
v1.0 · 5.2 Communication LoggingThe `compliance_flags` field is populated by automated analysis (see Section 5.3). Any flagged event is surfaced in the next management audit report.
removed in v1.0.1
v1.0 · 6.3 Nightly Compliance Sweep### 5.3 Nightly Compliance Sweep
v1.0.1 · 6.3 Nightly Compliance Sweep### 6.3 Nightly Compliance Sweep
v1.0 · 5.3 Nightly Compliance SweepA cron job runs nightly, typically during the overnight low-activity window. It performs four analyses:
removed in v1.0.1
not in v1.0
v1.0.1 · 6.3 Nightly Compliance SweepA cron job runs nightly with four analysis passes:
v1.0 · 6.3 Nightly Compliance Sweep**5.3.1 Information Leak Detection**
v1.0.1 · 6.3 Nightly Compliance Sweep**6.3.1 Information Leak Detection**
v1.0 · 5.3 Nightly Compliance SweepThe sweep scans agent memory files for content classified above the agent's clearance tier. This is achieved via a two-pass analysis:
removed in v1.0.1
v1.0 · 6.3 Nightly Compliance Sweep- *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.
v1.0.1 · 6.3 Nightly Compliance Sweep- *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).
not in v1.0
v1.0.1 · 6.3 Nightly Compliance Sweep**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.
v1.0 · 6.3 Nightly Compliance Sweep**5.3.2 Compliance Violation Detection**
v1.0.1 · 6.3 Nightly Compliance Sweep**6.3.2 Compliance Violation Detection**
v1.0 · 5.3 Nightly Compliance SweepGDPR and sector-specific regulations impose rules on what data can be processed, retained, and shared. The compliance sweep checks:
removed in v1.0.1
v1.0 · 6.3 Nightly Compliance Sweep- 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?
v1.0.1 · 6.3 Nightly Compliance Sweep- 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?
v1.0 · 6.3 Nightly Compliance Sweep**5.3.3 Behavioral Anomaly Detection**
v1.0.1 · 6.3 Nightly Compliance Sweep**6.3.3 Behavioral Anomaly Detection**
v1.0 · 5.3 Nightly Compliance SweepEach agent's communications are profiled over time. Deviations from baseline are flagged:
removed in v1.0.1
v1.0 · 6.3 Nightly Compliance Sweep- 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.
v1.0.1 · 6.3 Nightly Compliance SweepAgent 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).
v1.0 · 6.3 Nightly Compliance Sweep**5.3.4 Memory Contamination Check**
v1.0.1 · 6.3 Nightly Compliance Sweep**6.3.4 Memory Contamination Check**
v1.0 · 6.3 Nightly Compliance SweepRestricted 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.
v1.0.1 · 6.3 Nightly Compliance SweepRestricted 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.
not in v1.0
v1.0.1 · 6.3 Nightly Compliance SweepMemory files distinguish between agent-generated and human-dictated entries. Human-dictated entries receive elevated scrutiny.
v1.0 · 6.4 Automated Quarantine### 5.4 Automated Quarantine
v1.0.1 · 6.4 Automated Quarantine### 6.4 Automated Quarantine
v1.0 · 5.4 Automated QuarantineWhen a compliance sweep or real-time monitoring event detects a violation above a defined severity threshold, HIVEMIND initiates automated quarantine:
removed in v1.0.1
not in v1.0
v1.0.1 · 6.4 Automated QuarantineWhen a violation exceeds the severity threshold:
v1.0 · 6.4 Automated Quarantine1. 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.
v1.0.1 · 6.4 Automated Quarantine1. 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.
v1.0 · 5.4 Automated QuarantineQuarantine 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 6.4 Automated QuarantineThe human-in-the-loop review satisfies GDPR Article 22 requirements for automated decisions affecting employees.
not in v1.0
v1.0.1 · 6.4 Automated QuarantineQuarantine 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.
v1.0 · 6.5 Audit Reporting### 5.5 Audit Reporting
v1.0.1 · 6.5 Audit Reporting### 6.5 Audit Reporting
v1.0 · 6.5 Audit ReportingWeekly audit reports are generated by STRATEGOS and delivered to the compliance officer and CEO. The report includes:
v1.0.1 · 6.5 Audit ReportingWeekly reports generated by STRATEGOS for compliance officer and CEO:
v1.0 · 6.5 Audit Reporting- 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
v1.0.1 · 6.5 Audit Reporting- 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
v1.0 · 5.5 Audit ReportingThese reports serve dual purposes: operational oversight for IT/compliance, and board-level accountability for enterprise AI governance.
removed in v1.0.1

··· 1 unchanged paragraph folded ···

v1.0 · 7. Technical Implementation on OpenClaw/TinkerClaw## 6. Technical Implementation on OpenClaw/TinkerClaw
v1.0.1 · 7. Technical Implementation on OpenClaw/TinkerClaw## 7. Technical Implementation on OpenClaw/TinkerClaw
v1.0 · 7.1 Platform Overview### 6.1 Platform Overview
v1.0.1 · 7.1 Platform Overview### 7.1 Platform Overview
v1.0 · 6.1 Platform OverviewOpenClaw and TinkerClaw provide the runtime infrastructure for HIVEMIND. Each agent is a configured OpenClaw instance with:
removed in v1.0.1
v1.0 · 7.1 Platform Overview- 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)
v1.0.1 · 7.1 Platform OverviewEach 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)
v1.0 · 6.1 Platform OverviewTinkerClaw'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.
removed in v1.0.1
not in v1.0
v1.0.1 · 7.1 Platform OverviewTinkerClaw's companion app is the employee-facing interface.
v1.0 · 7.2 Linux Filesystem Permission Model### 6.2 Linux Filesystem Permission Model
v1.0.1 · 7.2 Linux Filesystem Permission Model### 7.2 Linux Filesystem Permission Model
v1.0 · 6.2 Linux Filesystem Permission ModelHIVEMIND's clearance model is implemented through Linux user accounts and POSIX ACLs. The deployment script creates:
removed in v1.0.1

··· 2 unchanged paragraphs folded ···

v1.0 · Employee agents: T2 + role-specific T3 usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas# 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
v1.0.1 · Employee agents: T2 + role-specific T3 usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas# Employee agents: T2 + role-specific T3 usermod -aG clearance_t2,clearance_t3_sales agent_luna usermod -aG clearance_t2,clearance_t3_sales agent_atlas
v1.0 · Department agent: up to T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales# Department agent gets T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales
v1.0.1 · Department agent: up to T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales# Department agent: up to T4 for its domain usermod -aG clearance_t2,clearance_t3_sales,clearance_t4_sales agent_sales
v1.0 · Executive agent: all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos# Executive agent gets all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos
v1.0.1 · Executive agent: all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos# Executive agent: all tiers usermod -aG clearance_t2,clearance_t3_sales,clearance_t3_hr,clearance_t4,clearance_t5 agent_strategos
v1.0 · 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 ```# 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 ```
v1.0.1 · 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 ```# 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 ```
v1.0 · 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 ```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.
v1.0.1 · 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 ```Each agent process spawns under its system user via `sudo -u agent_luna openclaw start`. The kernel enforces access regardless of model behavior.
v1.0 · 6.3 Inter-Agent Communication via OpenClaw Sessions### 6.3 Inter-Agent Communication via OpenClaw Sessions
removed in v1.0.1
v1.0 · 6.3 Inter-Agent Communication via OpenClaw SessionsOpenClaw's sessions infrastructure is the communication backbone. The key primitives:
removed in v1.0.1
v1.0 · 6.3 Inter-Agent Communication via OpenClaw Sessions- **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.
removed in v1.0.1
v1.0 · 6.3 Inter-Agent Communication via OpenClaw SessionsThe 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.
removed in v1.0.1
v1.0 · 6.3 Inter-Agent Communication via OpenClaw Sessions```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
removed in v1.0.1
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol### 7.3 Inter-Agent Communication Protocol
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication ProtocolOpenClaw's sessions infrastructure is the communication backbone. We specify the protocol at sketch level sufficient for implementation.
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol**7.3.1 Message Format**
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol```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 } ```
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol**7.3.2 Delivery Semantics**
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol- **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.
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol**7.3.3 Authentication**
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication ProtocolEach 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.
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication ProtocolMessages failing any check are rejected with an error code and logged as a compliance event.
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol**7.3.4 Gateway Topology**
not in v1.0
v1.0.1 · 7.3 Inter-Agent Communication Protocol```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]

··· 2 unchanged paragraphs folded ···

v1.0 · 7.4 Memory Files as Auditable State### 6.4 Memory Files as Auditable State
v1.0.1 · 7.4 Memory Files as Auditable State### 7.4 Memory Files as Auditable State
v1.0 · 6.4 Memory Files as Auditable StateEach agent's workspace contains its memory files — MEMORY.md, daily journals, and role-specific knowledge bases. These files are:
removed in v1.0.1
v1.0 · 6.4 Memory Files as Auditable State- **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.
removed in v1.0.1
v1.0 · 7.4 Memory Files as Auditable StateThe workspace directory layout:
v1.0.1 · 7.4 Memory Files as Auditable StateWorkspace layout:
v1.0 · 7.4 Memory Files as Auditable State``` /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 └── ... ```
v1.0.1 · 7.4 Memory Files as Auditable State``` /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 └── ... ```
v1.0 · 7.4 Memory Files as Auditable StateThe `-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.
v1.0.1 · 7.4 Memory Files as Auditable StateThe `-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.
not in v1.0
v1.0.1 · 7.5 Multi-Tenancy and Process Isolation### 7.5 Multi-Tenancy and Process Isolation
not in v1.0
v1.0.1 · 7.5 Multi-Tenancy and Process IsolationLinux 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.
not in v1.0
v1.0.1 · 7.5 Multi-Tenancy and Process Isolation**Additional isolation measures:**
not in v1.0
v1.0.1 · 7.5 Multi-Tenancy and Process Isolation- **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).
not in v1.0
v1.0.1 · 7.5 Multi-Tenancy and Process IsolationFor 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.
v1.0 · 7.6 Cron Jobs for Compliance### 6.5 Cron Jobs for Compliance
v1.0.1 · 7.6 Cron Jobs for Compliance### 7.6 Cron Jobs for Compliance
v1.0 · 6.5 Cron Jobs for ComplianceThe nightly compliance infrastructure runs as a set of cron jobs under a dedicated `compliance-bot` user with read access to all agent workspaces:
removed in v1.0.1
v1.0 · 7.6 Cron Jobs for Compliance```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
v1.0.1 · 7.6 Cron Jobs for Compliance```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 ```
v1.0 · Communication log rotation and archival at 3:00 AM 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh# Communication log rotation and archival at 3:00 AM 0 3 * * * compliance-bot /opt/hivemind/audit/rotate-logs.sh
removed in v1.0.1
v1.0 · 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# 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
removed in v1.0.1
v1.0 · Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```# Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```
removed in v1.0.1
v1.0 · Hourly: check for active quarantine conditions 0 * * * * compliance-bot /opt/hivemind/sweep/quick-scan.sh ```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.
removed in v1.0.1
v1.0 · 6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy### 6.6 TOOLS.md / Trust Tier Extension to Corporate Hierarchy
removed in v1.0.1
v1.0 · 6.6 TOOLS.md / Trust Tier Extension to Corporate HierarchyEach agent has a TOOLS.md that defines its trust tier model, extended with corporate hierarchy parameters:
removed in v1.0.1
not in v1.0
v1.0.1 · 7.7 Observability and Debugging### 7.7 Observability and Debugging
not in v1.0
v1.0.1 · 7.7 Observability and DebuggingAn 85-agent swarm requires observability infrastructure beyond compliance logging:
not in v1.0
v1.0.1 · 7.7 Observability and Debugging- **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.
not in v1.0
v1.0.1 · 7.8 Versioning, Rollback, and Configuration Management### 7.8 Versioning, Rollback, and Configuration Management
not in v1.0
v1.0.1 · 7.8 Versioning, Rollback, and Configuration ManagementAgent configurations (system prompts, tool access, clearance assignments, topology rules) are managed as version-controlled files:
not in v1.0
v1.0.1 · 7.8 Versioning, Rollback, and Configuration Management- 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.
not in v1.0
v1.0.1 · 7.9 Backup and Disaster Recovery### 7.9 Backup and Disaster Recovery
not in v1.0
v1.0.1 · 7.9 Backup and Disaster Recovery- **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.
not in v1.0
v1.0.1 · 7.10 TOOLS.md / Trust Tier Extension### 7.10 TOOLS.md / Trust Tier Extension
not in v1.0
v1.0.1 · 7.10 TOOLS.md / Trust Tier ExtensionEach agent has a role-specific TOOLS.md:

··· 4 unchanged paragraphs folded ···

v1.0 · 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 ```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.
removed in v1.0.1
v1.0 · 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 ```---
removed in v1.0.1
v1.0 · 7. Privacy and Legal Considerations## 7. Privacy and Legal Considerations
removed in v1.0.1
v1.0 · 7.1 Employee Awareness and Transparency### 7.1 Employee Awareness and Transparency
removed in v1.0.1
v1.0 · 7.1 Employee Awareness and TransparencyThe 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).
removed in v1.0.1
v1.0 · 7.1 Employee Awareness and TransparencyThe employment contract addendum for HIVEMIND deployment must clearly state:
removed in v1.0.1
v1.0 · 7.1 Employee Awareness and Transparency1. 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.
removed in v1.0.1
v1.0 · 7.1 Employee Awareness and TransparencyThis 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.
removed in v1.0.1
v1.0 · 7.2 GDPR Implications### 7.2 GDPR Implications
removed in v1.0.1
v1.0 · 7.2 GDPR ImplicationsThe General Data Protection Regulation imposes several specific requirements on HIVEMIND:
removed in v1.0.1
v1.0 · 7.2 GDPR Implications**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.
removed in v1.0.1
v1.0 · 7.2 GDPR Implications**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.
removed in v1.0.1
v1.0 · 7.2 GDPR Implications**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.
removed in v1.0.1
v1.0 · 7.2 GDPR Implications**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.
removed in v1.0.1
v1.0 · 7.2 GDPR Implications**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.
removed in v1.0.1
v1.0 · 7.3 The IT Staff Privilege Clause### 7.3 The IT Staff Privilege Clause
removed in v1.0.1
v1.0 · 7.3 The IT Staff Privilege ClauseIT 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.
removed in v1.0.1
v1.0 · 7.3 The IT Staff Privilege ClauseIn 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.
removed in v1.0.1
v1.0 · 7.3 The IT Staff Privilege ClauseThe 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.
removed in v1.0.1
v1.0 · 7.3 The IT Staff Privilege ClauseThis 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.
removed in v1.0.1
v1.0 · 7.4 Data Residency and On-Premises Processing### 7.4 Data Residency and On-Premises Processing
removed in v1.0.1
v1.0 · 7.4 Data Residency and On-Premises ProcessingFor a family business handling customer data under GDPR, the recommendation is unambiguous: all LLM inference should be on-premises. This means:
removed in v1.0.1
v1.0 · 7.4 Data Residency and On-Premises Processing- 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.
removed in v1.0.1
v1.0 · 7.4 Data Residency and On-Premises ProcessingThe 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.
removed in v1.0.1
v1.0 · 7.5 The Right to Be Forgotten — Employee Offboarding### 7.5 The Right to Be Forgotten — Employee Offboarding
removed in v1.0.1
v1.0 · 7.5 The Right to Be Forgotten — Employee OffboardingWhen an employee leaves the company, their agent's memory files represent a complex data situation:
removed in v1.0.1
v1.0 · 7.5 The Right to Be Forgotten — Employee Offboarding- 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.
removed in v1.0.1
v1.0 · 7.5 The Right to Be Forgotten — Employee OffboardingThe HIVEMIND offboarding protocol:
removed in v1.0.1
v1.0 · 7.5 The Right to Be Forgotten — Employee Offboarding1. 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).
removed in v1.0.1

··· 3 unchanged paragraphs folded ···

v1.0 · 8.1 The Curious Agent ProblemThe 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.
removed in v1.0.1
v1.0 · 8.1 The Curious Agent ProblemThis is not a jailbreak. The agent is following instructions. Each individual tool call is authorized. But the synthesis crosses a clearance boundary.
removed in v1.0.1
v1.0 · 8.1 The Curious Agent Problem**Mitigation:**
removed in v1.0.1
not in v1.0
v1.0.1 · 8.1 The Curious Agent ProblemA 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.
v1.0 · 8.1 The Curious Agent Problem- 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.
v1.0.1 · 8.1 The Curious Agent Problem**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.

··· 1 unchanged paragraph folded ···

v1.0 · 8.2 Inter-Agent Social EngineeringCould 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?
removed in v1.0.1
v1.0 · 8.2 Inter-Agent Social EngineeringThis is an LLM-specific variant of social engineering: prompt injection through the inter-agent message protocol.
removed in v1.0.1
v1.0 · 8.2 Inter-Agent Social Engineering**Mitigation:**
removed in v1.0.1
v1.0 · 8.2 Inter-Agent Social Engineering- 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 8.2 Inter-Agent Social EngineeringCould 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.
not in v1.0
v1.0.1 · 8.2 Inter-Agent Social Engineering**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.

··· 1 unchanged paragraph folded ···

v1.0 · 8.3 Memory Persistence and ContaminationEven 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.
v1.0.1 · 8.3 Memory Persistence and ContaminationRestricted 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.
v1.0 · 8.3 Memory Persistence and Contamination**Mitigation:**
removed in v1.0.1
v1.0 · 8.3 Memory Persistence and Contamination- 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."
v1.0.1 · 8.3 Memory Persistence and Contamination**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."

··· 1 unchanged paragraph folded ···

v1.0 · 8.4 Single Point of Failure: The Executive AgentSTRATEGOS 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.
v1.0.1 · 8.4 Single Point of Failure: The Executive AgentSTRATEGOS has T5 clearance and access to all workspaces. If compromised, the entire information architecture is at risk.
v1.0 · 8.4 Single Point of Failure: The Executive Agent**Mitigation:**
removed in v1.0.1
v1.0 · 8.4 Single Point of Failure: The Executive Agent- 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.
v1.0.1 · 8.4 Single Point of Failure: The Executive Agent**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.

··· 1 unchanged paragraph folded ···

v1.0 · 8.5 Model Capability VarianceDifferent 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.
v1.0.1 · 8.5 Model Capability VarianceDifferent models follow clearance rules with different reliability. A 5% failure rate across thousands of daily interactions is serious compliance exposure.
v1.0 · 8.5 Model Capability Variance**Mitigation:**
removed in v1.0.1
v1.0 · 8.5 Model Capability Variance- 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.
v1.0.1 · 8.5 Model Capability Variance**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.
v1.0 · 8.6 Summary Risk Table### 8.6 Summary Risk Table
removed in v1.0.1
v1.0 · 8.6 Summary Risk Table| 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 |
removed in v1.0.1
not in v1.0
v1.0.1 · 8.6 Failure Modes and Recovery### 8.6 Failure Modes and Recovery
not in v1.0
v1.0.1 · 8.6 Failure Modes and Recovery**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.
not in v1.0
v1.0.1 · 8.6 Failure Modes and Recovery**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?
not in v1.0
v1.0.1 · 8.6 Failure Modes and Recovery**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.
not in v1.0
v1.0.1 · 8.6 Failure Modes and Recovery**State reconciliation after recovery.** After any recovery event, a targeted compliance sweep runs on the affected agent(s) before returning to normal operation.
not in v1.0
v1.0.1 · 8.7 Model Updates and Behavioral Drift### 8.7 Model Updates and Behavioral Drift
not in v1.0
v1.0.1 · 8.7 Model Updates and Behavioral DriftWhen the underlying LLM is updated, agent behavior may change unpredictably.
not in v1.0
v1.0.1 · 8.7 Model Updates and Behavioral Drift- **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.
not in v1.0
v1.0.1 · 8.8 Real-Time Communication Channels### 8.8 Real-Time Communication Channels
not in v1.0
v1.0.1 · 8.8 Real-Time Communication ChannelsThe paper's architecture focuses on email and files but organizations communicate through Slack/Teams messages, phone calls, and video meetings.
not in v1.0
v1.0.1 · 8.8 Real-Time Communication Channels- **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.
not in v1.0
v1.0.1 · 8.9 Summary Risk Table### 8.9 Summary Risk Table
not in v1.0
v1.0.1 · 8.9 Summary Risk Table| 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 |

··· 1 unchanged paragraph folded ···

v1.0 · 9. Future Directions## 9. Future Directions
removed in v1.0.1
v1.0 · 9.1 Scaling Beyond the Family Business### 9.1 Scaling Beyond the Family Business
removed in v1.0.1
v1.0 · 9.1 Scaling Beyond the Family BusinessThe 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.
removed in v1.0.1
v1.0 · 9.1 Scaling Beyond the Family BusinessFor 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.
removed in v1.0.1
v1.0 · 9.1 Scaling Beyond the Family BusinessThe 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.
removed in v1.0.1
v1.0 · 9.2 Integration with Enterprise Systems### 9.2 Integration with Enterprise Systems
removed in v1.0.1
v1.0 · 9.2 Integration with Enterprise SystemsHIVEMIND's agents currently access corporate data through filesystem paths. Full enterprise deployment requires integration with:
removed in v1.0.1
v1.0 · 9.2 Integration with Enterprise Systems- **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.
removed in v1.0.1
v1.0 · 9.3 Federated Agent Networks Across Companies### 9.3 Federated Agent Networks Across Companies
removed in v1.0.1
v1.0 · 9.3 Federated Agent Networks Across CompaniesThe 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.
removed in v1.0.1
v1.0 · 9.3 Federated Agent Networks Across CompaniesThis 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.
removed in v1.0.1
v1.0 · 9.3 Federated Agent Networks Across CompaniesThis 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.
removed in v1.0.1
v1.0 · 9.4 The Role of NemoClaw and OpenShell### 9.4 The Role of NemoClaw and OpenShell
removed in v1.0.1
v1.0 · 9.4 The Role of NemoClaw and OpenShellNemoClaw (OpenClaw's embedded/edge deployment variant) and OpenShell (the command-line interface layer) have specific roles in scaled enterprise deployment:
removed in v1.0.1
v1.0 · 9.4 The Role of NemoClaw and OpenShell- **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.
removed in v1.0.1
v1.0 · 9.5 Toward Organizational Cognition### 9.5 Toward Organizational Cognition
removed in v1.0.1
v1.0 · 9.5 Toward Organizational CognitionWe 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.
removed in v1.0.1
v1.0 · 9.5 Toward Organizational CognitionThe 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.
removed in v1.0.1
v1.0 · 9.5 Toward Organizational CognitionAs 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 9. Phased Deployment Strategy## 9. Phased Deployment Strategy
not in v1.0
v1.0.1 · 9. Phased Deployment StrategyDeploying HIVEMIND across an organization should be staged, not big-bang. Each phase has success criteria that must be met before advancing.
not in v1.0
v1.0.1 · 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.### 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.
not in v1.0
v1.0.1 · 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.### 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.
not in v1.0
v1.0.1 · 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.### 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.
not in v1.0
v1.0.1 · 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.### 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.
not in v1.0
v1.0.1 · 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.### 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.
not in v1.0
v1.0.1 · 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.### 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.

··· 1 unchanged paragraph folded ···

v1.0 · 10. Conclusions## 10. Conclusions
removed in v1.0.1
not in v1.0
v1.0.1 · 10. Future Directions## 10. Future Directions
not in v1.0
v1.0.1 · 10.1 Scaling Beyond the Family Business### 10.1 Scaling Beyond the Family Business
not in v1.0
v1.0.1 · 10.1 Scaling Beyond the Family BusinessAt 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.
not in v1.0
v1.0.1 · 10.2 Integration with Enterprise Systems### 10.2 Integration with Enterprise Systems
not in v1.0
v1.0.1 · 10.2 Integration with Enterprise SystemsFull 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.
not in v1.0
v1.0.1 · 10.3 Federated Agent Networks Across Companies### 10.3 Federated Agent Networks Across Companies
not in v1.0
v1.0.1 · 10.3 Federated Agent Networks Across CompaniesThe 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.
not in v1.0
v1.0.1 · 10.3 Federated Agent Networks Across CompaniesThis 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).
not in v1.0
v1.0.1 · 10.4 The Role of NemoClaw and OpenShell### 10.4 The Role of NemoClaw and OpenShell
not in v1.0
v1.0.1 · 10.4 The Role of NemoClaw and OpenShell- **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.
not in v1.0
v1.0.1 · 10.5 Performance and Cost Estimates### 10.5 Performance and Cost Estimates
not in v1.0
v1.0.1 · 10.5 Performance and Cost EstimatesA HIVEMIND deployment for 85 employees requires:
not in v1.0
v1.0.1 · 10.5 Performance and Cost Estimates| 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 |
not in v1.0
v1.0.1 · 10.5 Performance and Cost Estimates**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.
not in v1.0
v1.0.1 · 10.5 Performance and Cost Estimates**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.
not in v1.0
v1.0.1 · 10.5 Performance and Cost EstimatesThese are rough estimates. Actual costs depend on model choice, inference optimization (quantization, batching), and usage patterns. A detailed capacity planning exercise should precede procurement.
not in v1.0
v1.0.1 · 10.6 Toward Organizational Cognition### 10.6 Toward Organizational Cognition
not in v1.0
v1.0.1 · 10.6 Toward Organizational CognitionHIVEMIND 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.
not in v1.0
v1.0.1 · 10.6 Toward Organizational CognitionAs 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.
not in v1.0
v1.0.1 · 10.6 Toward Organizational Cognition---
not in v1.0
v1.0.1 · 11. Limitations## 11. Limitations
not in v1.0
v1.0.1 · 11. LimitationsThis paper has several significant limitations that should be acknowledged:
not in v1.0
v1.0.1 · 11. Limitations1. **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.
not in v1.0
v1.0.1 · 11. Limitations2. **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.
not in v1.0
v1.0.1 · 11. Limitations3. **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.
not in v1.0
v1.0.1 · 11. Limitations4. **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.
not in v1.0
v1.0.1 · 11. Limitations5. **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.
not in v1.0
v1.0.1 · 11. Limitations6. **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.
not in v1.0
v1.0.1 · 11. Limitations7. **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.
not in v1.0
v1.0.1 · 11. Limitations8. **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.
not in v1.0
v1.0.1 · 11. Limitations---
not in v1.0
v1.0.1 · 12. Conclusions## 12. Conclusions

··· 2 unchanged paragraphs folded ···

v1.0 · 12. Conclusions1. **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.
v1.0.1 · 12. Conclusions1. **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.
v1.0 · 12. Conclusions2. **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.
v1.0.1 · 12. Conclusions2. **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.
v1.0 · 12. Conclusions3. **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.
v1.0.1 · 12. Conclusions3. **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.
v1.0 · 12. Conclusions4. **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.
v1.0.1 · 12. Conclusions4. **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.
v1.0 · 10. Conclusions5. **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.
removed in v1.0.1
v1.0 · 10. ConclusionsWe 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.
removed in v1.0.1
v1.0 · 10. ConclusionsWhat 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.
removed in v1.0.1
v1.0 · 10. ConclusionsThe 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.
removed in v1.0.1
not in v1.0
v1.0.1 · 12. Conclusions5. **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.
not in v1.0
v1.0.1 · 12. Conclusions6. **Risk Analysis.** Ten principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling.
not in v1.0
v1.0.1 · 12. Conclusions7. **Deployment Strategy.** A four-phase rollout with explicit gate criteria, success metrics, and adoption management considerations.
not in v1.0
v1.0.1 · 12. Conclusions8. **Technical Specification.** Inter-agent protocol with message format, delivery semantics, authentication, and process isolation beyond filesystem permissions.
not in v1.0
v1.0.1 · 12. ConclusionsHIVEMIND 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.

··· 6 unchanged paragraphs folded ···

not in v1.0
v1.0.1 · ReferencesBrynjolfsson, E., & McAfee, A. (2014). *The Second Machine Age: Work, Progress, and Prosperity in a Time of Brilliant Technologies*. W. W. Norton.
not in v1.0
v1.0.1 · ReferencesDavenport, T. H., & Ronanki, R. (2018). Artificial intelligence for the real world. *Harvard Business Review, 96*(1), 108–116.

··· 17 unchanged paragraphs folded ···

v1.0 · References*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*
v1.0.1 · References*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*

Changed paragraphs in the same form, for scripts: JSON · Markdown