{
 "paper": "corporate-swarm",
 "a": "1.0.1",
 "b": "1.1",
 "summary": "From v1.0.1 (17 Mar) to v1.1 (17 Mar): 9,741 words to 10,887 words, 1,147 words in new or rewritten paragraphs and 1 taken out, 30 paragraphs changed.",
 "note": {
  "title": "Limits of the formal model, a message schema, and an evaluation plan",
  "kind": "",
  "body": "## Summary\n\nA second review the same day asked for more engagement with security models beyond Bell-LaPadula and for a way to test the design. This version adds three sections and leaves the rest almost untouched.\n\n- Why Bell-LaPadula is needed but not enough: it protects secrecy but not integrity, and it does not stop leaks by implication.\n- A fixed format for messages between agents, with a confidence value that changes over the life of a piece of information.\n- An evaluation agenda to run before a full rollout.\n- The nightly compliance sweep is described in more detail.",
  "source": "commit message"
 },
 "paragraphs_changed": 30,
 "changes": [
  {
   "section": "Abstract",
   "old": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions 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.",
   "new": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions and formally grounded in the Bell-LaPadula security model, a three-level agent hierarchy (employee, department, executive), and structured inter-agent communication protocols that enforce information flow strictly downward. We ground the architecture in a detailed case study: a mid-sized family business (~50–200 employees) with Sales, IT, HR, Finance, and Production departments, each with distinct clearance requirements. We present the Sales Coordination Model as a worked example of cross-agent collaboration under clearance constraints, including customer ownership routing, redacted summary generation with template-based leakage controls, and competitive intelligence aggregation. We address privacy and legal considerations (GDPR, EU AI Act, employee transparency, right-to-be-forgotten), compliance architecture (nightly audit cron jobs, communication logging, automated quarantine), and a comprehensive risk model covering curious agents, inter-agent social engineering, memory contamination, and model capability variance. We include performance estimates, failure recovery procedures, a phased deployment strategy, and a sketch-level inter-agent protocol specification. We also distinguish clearly between what is proposed, what is operationally specified, and what remains to be empirically validated, framing HIVEMIND as an architectural design paper rather than a deployment evaluation. We conclude with future directions toward federated enterprise agent networks.",
   "marked": "Conversational AI assistants have proven effective for individual productivity, but enterprise deployment introduces a fundamentally different class of problem: how do you give every employee a powerful AI assistant while ensuring that the assistant for a junior salesperson cannot, even inadvertently, access salary data, merger plans, or infrastructure credentials? This paper presents **HIVEMIND** — a hierarchical agent swarm architecture designed for corporate deployment on OpenClaw/TinkerClaw infrastructure. We describe a five-tier data classification model mapped to Linux filesystem permissions 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 {+also distinguish clearly between what is proposed, what is operationally specified, and what remains to be empirically validated, framing HIVEMIND as an architectural design paper rather than a deployment evaluation. We+} conclude with future directions toward federated enterprise agent networks."
  },
  {
   "section": "2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": null,
   "new": "### 2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "marked": "{+### 2.6 Why Bell-LaPadula Is Necessary but Not Sufficient+}"
  },
  {
   "section": "2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": null,
   "new": "Bell-LaPadula is the right primary model because HIVEMIND's dominant enterprise risk is **confidentiality failure**: the wrong employee agent learning about salaries, credentials, legal matters, or board strategy. But Bell-LaPadula is not the only relevant security model, and the design is stronger when that is stated explicitly.",
   "marked": "{+Bell-LaPadula is the right primary model because HIVEMIND's dominant enterprise risk is **confidentiality failure**: the wrong employee agent learning about salaries, credentials, legal matters, or board strategy. But Bell-LaPadula is not the only relevant security model, and the design is stronger when that is stated explicitly.+}"
  },
  {
   "section": "2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": null,
   "new": "- **Role-Based Access Control (RBAC).** RBAC explains *who should access what* in organizational terms and maps well to departments, supervisors, and executives. HIVEMIND uses RBAC operationally through Linux users, groups, ACLs, and tool allowlists. However, RBAC alone does not formalize information flow across multi-step agent interactions. - **Chinese Wall.** Brewer-Nash is relevant where conflict-of-interest boundaries matter — for example, if a consulting firm runs multiple client-specific agent swarms. HIVEMIND does not fully implement Chinese Wall semantics, but future multi-tenant versions should. - **Biba integrity model.** Bell-LaPadula protects confidentiality; Biba protects integrity. In practice, enterprise agent systems need both. HIVEMIND's audit logs, two-person review for T5 summaries, configuration versioning, and controlled write paths are partial integrity controls, but a full formal integrity model remains future work. - **Zero Trust architecture.** Zero Trust contributes the operational assumption that no agent, process, or network path should be trusted implicitly. HIVEMIND adopts this stance in gateway authentication, least-privilege tool access, and process isolation.",
   "marked": "{+- **Role-Based Access Control (RBAC).** RBAC explains *who should access what* in organizational terms and maps well to departments, supervisors, and executives. HIVEMIND uses RBAC operationally through Linux users, groups, ACLs, and tool allowlists. However, RBAC alone does not formalize information flow across multi-step agent interactions. - **Chinese Wall.** Brewer-Nash is relevant where conflict-of-interest boundaries matter — for example, if a consulting firm runs multiple client-specific agent swarms. HIVEMIND does not fully implement Chinese Wall semantics, but future multi-tenant versions should. - **Biba integrity model.** Bell-LaPadula protects confidentiality; Biba protects integrity. In practice, enterprise agent systems need both. HIVEMIND's audit logs, two-person review for T5 summaries, configuration versioning, and controlled write paths are partial integrity controls, but a full formal integrity model remains future work. - **Zero Trust architecture.** Zero Trust contributes the operational assumption that no agent, process, or network path should be trusted implicitly. HIVEMIND adopts this stance in gateway authentication, least-privilege tool access, and process isolation.+}"
  },
  {
   "section": "2.6 Why Bell-LaPadula Is Necessary but Not Sufficient",
   "old": null,
   "new": "Accordingly, HIVEMIND should be read as a **hybrid control architecture**: Bell-LaPadula provides the confidentiality lattice; RBAC defines organizational scope; Zero Trust informs runtime assumptions; and partial Biba-like controls support integrity. This clarification matters academically because it prevents overclaiming: the paper does not present Bell-LaPadula as a complete model of enterprise agent security, only as the correct primary backbone for secrecy-preserving information flow.",
   "marked": "{+Accordingly, HIVEMIND should be read as a **hybrid control architecture**: Bell-LaPadula provides the confidentiality lattice; RBAC defines organizational scope; Zero Trust informs runtime assumptions; and partial Biba-like controls support integrity. This clarification matters academically because it prevents overclaiming: the paper does not present Bell-LaPadula as a complete model of enterprise agent security, only as the correct primary backbone for secrecy-preserving information flow.+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "### 4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "marked": "{+### 4.5.1 Structured Channel Schema and Confidence Lifecycle+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "For practical deployment, upward push channels need tighter operational specification than a prose description alone. Each approved channel should define:",
   "marked": "{+For practical deployment, upward push channels need tighter operational specification than a prose description alone. Each approved channel should define:+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "1. **Field schema.** Required fields, types, enumerations, and size limits. 2. **Classification ceiling.** Maximum allowable classification for submissions on that channel. 3. **Confidence vocabulary.** A controlled set such as `low | medium | high | verified` to avoid free-form confidence descriptions. 4. **Disposition rules.** Whether the push is stored, queued for human review, aggregated immediately, or discarded after a retention window. 5. **Escalation triggers.** Conditions under which the department agent must create a managerial alert rather than simply store the information.",
   "marked": "{+1. **Field schema.** Required fields, types, enumerations, and size limits. 2. **Classification ceiling.** Maximum allowable classification for submissions on that channel. 3. **Confidence vocabulary.** A controlled set such as `low | medium | high | verified` to avoid free-form confidence descriptions. 4. **Disposition rules.** Whether the push is stored, queued for human review, aggregated immediately, or discarded after a retention window. 5. **Escalation triggers.** Conditions under which the department agent must create a managerial alert rather than simply store the information.+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "An illustrative schema for `competitive_intelligence`:",
   "marked": "{+An illustrative schema for `competitive_intelligence`:+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "```json { \"type\": \"competitive_intelligence\", \"source_employee\": \"string\", \"event_date\": \"YYYY-MM-DD\", \"customer_context\": \"optional string\", \"competitor\": \"string\", \"claim\": \"string, max 500 chars\", \"confidence\": \"low|medium|high|verified\", \"evidence_type\": \"hearsay|email|attachment|public-web|meeting-note\", \"classification\": \"T1|T2\", \"requires_followup\": true } ```",
   "marked": "{+```json { \"type\": \"competitive_intelligence\", \"source_employee\": \"string\", \"event_date\": \"YYYY-MM-DD\", \"customer_context\": \"optional string\", \"competitor\": \"string\", \"claim\": \"string, max 500 chars\", \"confidence\": \"low|medium|high|verified\", \"evidence_type\": \"hearsay|email|attachment|public-web|meeting-note\", \"classification\": \"T1|T2\", \"requires_followup\": true } ```+}"
  },
  {
   "section": "4.5.1 Structured Channel Schema and Confidence Lifecycle",
   "old": null,
   "new": "The confidence lifecycle should also be explicit. Information enters as a claim, may later be corroborated, and can eventually be superseded. Department agents therefore maintain not just a fact store but a **claim registry** with state transitions such as `submitted -> corroborated -> operationalized -> archived` or `submitted -> contradicted -> retired`. This distinction prevents weak signals from calcifying into institutional memory simply because they were logged once.",
   "marked": "{+The confidence lifecycle should also be explicit. Information enters as a claim, may later be corroborated, and can eventually be superseded. Department agents therefore maintain not just a fact store but a **claim registry** with state transitions such as `submitted -> corroborated -> operationalized -> archived` or `submitted -> contradicted -> retired`. This distinction prevents weak signals from calcifying into institutional memory simply because they were logged once.+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "**6.3.5 Governance Metrics for Compliance Classifiers**",
   "marked": "{+**6.3.5 Governance Metrics for Compliance Classifiers**+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "A production deployment should not treat the nightly sweep as a black box. Compliance classifiers and semantic scanners need explicit operating metrics reviewed by humans:",
   "marked": "{+A production deployment should not treat the nightly sweep as a black box. Compliance classifiers and semantic scanners need explicit operating metrics reviewed by humans:+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "- **Precision by violation class.** Credential exposure detection, salary leakage detection, legal-matter detection, and cross-portfolio query anomalies should each have separate precision targets. - **Recall on seeded test cases.** The compliance team should maintain a synthetic test corpus of known violations injected into staging memories so recall can be measured after every model or rule update. - **Time-to-review.** Advisory findings only matter if they are reviewed promptly. A weekly queue that grows without bound is a silent compliance failure. - **False-positive burden per employee.** Excessive false positives damage trust and adoption; this is an organizational metric, not only a technical one.",
   "marked": "{+- **Precision by violation class.** Credential exposure detection, salary leakage detection, legal-matter detection, and cross-portfolio query anomalies should each have separate precision targets. - **Recall on seeded test cases.** The compliance team should maintain a synthetic test corpus of known violations injected into staging memories so recall can be measured after every model or rule update. - **Time-to-review.** Advisory findings only matter if they are reviewed promptly. A weekly queue that grows without bound is a silent compliance failure. - **False-positive burden per employee.** Excessive false positives damage trust and adoption; this is an organizational metric, not only a technical one.+}"
  },
  {
   "section": "6.3 Nightly Compliance Sweep",
   "old": null,
   "new": "A useful operational rule is to separate **detectors** from **dispositions**. The detector raises a flag; a rules engine or human reviewer determines consequence. This keeps the most error-prone component — semantic classification — from directly controlling the harshest operational response.",
   "marked": "{+A useful operational rule is to separate **detectors** from **dispositions**. The detector raises a flag; a rules engine or human reviewer determines consequence. This keeps the most error-prone component — semantic classification — from directly controlling the harshest operational response.+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "**7.3.5 Protocol Error Codes and Declassification Workflow**",
   "marked": "{+**7.3.5 Protocol Error Codes and Declassification Workflow**+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "Architecture papers often underspecify failure semantics. For implementers, explicit error classes matter because they determine whether an agent retries, escalates, or stops. HIVEMIND should standardize at least the following gateway responses:",
   "marked": "{+Architecture papers often underspecify failure semantics. For implementers, explicit error classes matter because they determine whether an agent retries, escalates, or stops. HIVEMIND should standardize at least the following gateway responses:+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "- `ERR_TOPOLOGY_DENIED` — sender not authorized to address recipient - `ERR_CLASSIFICATION_EXCEEDED` — payload classification above recipient ceiling - `ERR_SCHEMA_INVALID` — malformed push payload or missing required fields - `ERR_DECLASSIFICATION_REQUIRED` — response would require controlled downgrade before delivery - `ERR_HUMAN_REVIEW_REQUIRED` — no approved template exists; request queued - `ERR_TIMEOUT` — recipient unavailable within TTL",
   "marked": "{+- `ERR_TOPOLOGY_DENIED` — sender not authorized to address recipient - `ERR_CLASSIFICATION_EXCEEDED` — payload classification above recipient ceiling - `ERR_SCHEMA_INVALID` — malformed push payload or missing required fields - `ERR_DECLASSIFICATION_REQUIRED` — response would require controlled downgrade before delivery - `ERR_HUMAN_REVIEW_REQUIRED` — no approved template exists; request queued - `ERR_TIMEOUT` — recipient unavailable within TTL+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "Declassification itself should follow a documented sequence:",
   "marked": "{+Declassification itself should follow a documented sequence:+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "1. Higher-tier agent identifies responsive material above the recipient's clearance. 2. System checks for an approved redaction template matching the content category. 3. If a template exists, the system generates a downgraded object with a new object ID and logs provenance links to the source. 4. If no template exists, the response halts and moves to human review. 5. The recipient receives either the downgraded object or an explicit pending notice — never a best-effort free-form partial summary.",
   "marked": "{+1. Higher-tier agent identifies responsive material above the recipient's clearance. 2. System checks for an approved redaction template matching the content category. 3. If a template exists, the system generates a downgraded object with a new object ID and logs provenance links to the source. 4. If no template exists, the response halts and moves to human review. 5. The recipient receives either the downgraded object or an explicit pending notice — never a best-effort free-form partial summary.+}"
  },
  {
   "section": "7.3 Inter-Agent Communication Protocol",
   "old": null,
   "new": "This matters practically because many information leaks occur in edge-case handling. The dangerous moment is not the normal case; it is the case where the system is almost able to answer and improvises. HIVEMIND's implementation should make improvisation impossible at the downgrade boundary.",
   "marked": "{+This matters practically because many information leaks occur in edge-case handling. The dangerous moment is not the normal case; it is the case where the system is almost able to answer and improvises. HIVEMIND's implementation should make improvisation impossible at the downgrade boundary.+}"
  },
  {
   "section": "9.1 Evaluation Agenda Before Full-Scale Rollout",
   "old": null,
   "new": "### 9.1 Evaluation Agenda Before Full-Scale Rollout",
   "marked": "{+### 9.1 Evaluation Agenda Before Full-Scale Rollout+}"
  },
  {
   "section": "9.1 Evaluation Agenda Before Full-Scale Rollout",
   "old": null,
   "new": "Because HIVEMIND is a design paper rather than an empirical deployment report, the path from architecture to full production should include a modest but disciplined evaluation program. Before claiming enterprise readiness, the organization should run:",
   "marked": "{+Because HIVEMIND is a design paper rather than an empirical deployment report, the path from architecture to full production should include a modest but disciplined evaluation program. Before claiming enterprise readiness, the organization should run:+}"
  },
  {
   "section": "9.1 Evaluation Agenda Before Full-Scale Rollout",
   "old": null,
   "new": "1. **Red-team leakage tests.** Structured attempts to extract T4/T5 information through prompt manipulation, aggregation, and malformed push payloads. 2. **Operational pilot metrics.** Median response time, escalation rate, redaction frequency, false-positive compliance burden, and employee satisfaction. 3. **Counterfactual comparison.** Compare pilot teams using HIVEMIND against similar teams using standard personal agents or no agents, especially for customer response time and duplicated work. 4. **Post-incident reviews.** Every quarantine, major false positive, and cross-agent coordination failure should produce a written root-cause analysis.",
   "marked": "{+1. **Red-team leakage tests.** Structured attempts to extract T4/T5 information through prompt manipulation, aggregation, and malformed push payloads. 2. **Operational pilot metrics.** Median response time, escalation rate, redaction frequency, false-positive compliance burden, and employee satisfaction. 3. **Counterfactual comparison.** Compare pilot teams using HIVEMIND against similar teams using standard personal agents or no agents, especially for customer response time and duplicated work. 4. **Post-incident reviews.** Every quarantine, major false positive, and cross-agent coordination failure should produce a written root-cause analysis.+}"
  },
  {
   "section": "9.1 Evaluation Agenda Before Full-Scale Rollout",
   "old": null,
   "new": "A useful publication-quality follow-on to this paper would therefore be a field study with three outputs: empirical performance, compliance incident statistics, and qualitative adoption findings. That study would materially strengthen the architecture's academic standing.",
   "marked": "{+A useful publication-quality follow-on to this paper would therefore be a field study with three outputs: empirical performance, compliance incident statistics, and qualitative adoption findings. That study would materially strengthen the architecture's academic standing.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "9. **Formal integrity treatment is partial.** Confidentiality is well developed through the Bell-LaPadula framing, but integrity and provenance controls are described operationally rather than formalized. A stronger version would either formalize integrity constraints or narrow its claims explicitly to confidentiality-first design.",
   "marked": "{+9. **Formal integrity treatment is partial.** Confidentiality is well developed through the Bell-LaPadula framing, but integrity and provenance controls are described operationally rather than formalized. A stronger version would either formalize integrity constraints or narrow its claims explicitly to confidentiality-first design.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "10. **Benchmark and test methodology missing.** The paper proposes classifiers, validators, and redaction pipelines without a standard benchmark suite, seeded violation corpus, or acceptance thresholds. This weakens reproducibility.",
   "marked": "{+10. **Benchmark and test methodology missing.** The paper proposes classifiers, validators, and redaction pipelines without a standard benchmark suite, seeded violation corpus, or acceptance thresholds. This weakens reproducibility.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "Denning, D. E. (1976). A lattice model of secure information flow. *Communications of the ACM, 19*(5), 236–243.",
   "marked": "{+Denning, D. E. (1976). A lattice model of secure information flow. *Communications of the ACM, 19*(5), 236–243.+}"
  },
  {
   "section": "References",
   "old": null,
   "new": "NIST. (2023). *Artificial Intelligence Risk Management Framework (AI RMF 1.0)*. National Institute of Standards and Technology.",
   "marked": "{+NIST. (2023). *Artificial Intelligence Risk Management Framework (AI RMF 1.0)*. National Institute of Standards and Technology.+}"
  },
  {
   "section": "References",
   "old": "*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*",
   "new": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version 1.1 | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*",
   "marked": "*HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management* *J-series paper J10 | Version [-1.0.1-] {+1.1+} | March 17, 2026* *Author: Oscar Serra* *Classification: INTERNAL — OpenClaw/TinkerClaw Research*"
  }
 ]
}
