{
 "paper": "corporate-swarm",
 "a": "1.2",
 "b": "1.3",
 "summary": "From v1.2 (2 Jun) to v1.3 (2 Jun): 13,702 words to 14,124 words, 469 words in new or rewritten paragraphs and 47 taken out, 20 paragraphs changed.",
 "note": {
  "title": "A three-agent prototype is proposed",
  "kind": "",
  "body": "## Summary\n\nThe improvement notes said the paper was only architecture and that even a small prototype would help. This version describes a three-agent reference prototype (sales, IT, management) with real clearance checks, as the first thing to build. The customer-history example gains detail, and the title moves into a metadata header.\n\nFigures referenced but not on disk:\n- images/fig-hierarchy.pdf\n- images/fig-history-flow.pdf",
  "source": "commit message"
 },
 "paragraphs_changed": 20,
 "changes": [
  {
   "section": "HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management — Architecture, Clearance Models, and Coordinated Intelligence",
   "old": "# HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management — Architecture, Clearance Models, and Coordinated Intelligence",
   "new": null,
   "marked": "[-# HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management — Architecture, Clearance Models, and Coordinated Intelligence-]"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": "Before presenting the detailed design, we provide a high-level view of the HIVEMIND architecture:",
   "new": "Before presenting the detailed design, we provide a high-level view of the HIVEMIND architecture (Figure 1).",
   "marked": "Before presenting the detailed design, we provide a high-level view of the HIVEMIND [-architecture:-] {+architecture (Figure 1).+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": "```{=latex} \\begin{figure}[H] \\centering \\includegraphics[width=\\linewidth,height=0.85\\textheight,keepaspectratio]{images/fig-hierarchy.pdf} \\caption{HIVEMIND three-level agent hierarchy and clearance-enforced information flow.} \\end{figure} ```",
   "new": null,
   "marked": "[-```{=latex} \\begin{figure}[H] \\centering \\includegraphics[width=\\linewidth,height=0.85\\textheight,keepaspectratio]{images/fig-hierarchy.pdf} \\caption{HIVEMIND three-level agent hierarchy and clearance-enforced information flow.} \\end{figure} ```-]"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": null,
   "new": "![Figure 1. HIVEMIND three-level agent hierarchy. Employee agents (L1) sit under one department agent (L2) per function; all department agents report to a single executive agent, STRATEGOS (L3). Each level carries a clearance ceiling, and every inter-level edge is gated by the gateway's topology and clearance rules.](images/fig-hierarchy.pdf)",
   "marked": "{+![Figure 1. HIVEMIND three-level agent hierarchy. Employee agents (L1) sit under one department agent (L2) per function; all department agents report to a single executive agent, STRATEGOS (L3). Each level carries a clearance ceiling, and every inter-level edge is gated by the gateway's topology and clearance rules.](images/fig-hierarchy.pdf)+}"
  },
  {
   "section": "5.3 Unified Customer History",
   "old": null,
   "new": "Figure 2 traces this flow end to end, showing where each clearance tier is included verbatim, redacted through a template, or replaced with a caution notice before the package reaches the requesting agent.",
   "marked": "{+Figure 2 traces this flow end to end, showing where each clearance tier is included verbatim, redacted through a template, or replaced with a caution notice before the package reaches the requesting agent.+}"
  },
  {
   "section": "5.3 Unified Customer History",
   "old": null,
   "new": "![Figure 2. Clearance-filtered Customer History Request. LUNA (T3) requests González history from SALES-AGENT (T4); SALES-AGENT fans out to the relevant agent memories, then filters each result by tier — T3 interactions pass verbatim, T4 pricing is replaced by a redaction template, T5 legal matter becomes a caution notice — and returns only the filtered package. Raw cross-agent memory never reaches LUNA.](images/fig-history-flow.pdf)",
   "marked": "{+![Figure 2. Clearance-filtered Customer History Request. LUNA (T3) requests González history from SALES-AGENT (T4); SALES-AGENT fans out to the relevant agent memories, then filters each result by tier — T3 interactions pass verbatim, T4 pricing is replaced by a redaction template, T5 legal matter becomes a caution notice — and returns only the filtered package. Raw cross-agent memory never reaches LUNA.](images/fig-history-flow.pdf)+}"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**6.3.1 Information Leak Detection**",
   "new": "**7.3.1 Information Leak Detection**",
   "marked": "[-**6.3.1-] {+**7.3.1+} Information Leak Detection**"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**6.3.2 Compliance Violation Detection**",
   "new": "**7.3.2 Compliance Violation Detection**",
   "marked": "[-**6.3.2-] {+**7.3.2+} Compliance Violation Detection**"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**6.3.3 Behavioral Anomaly Detection**",
   "new": "**7.3.3 Behavioral Anomaly Detection**",
   "marked": "[-**6.3.3-] {+**7.3.3+} Behavioral Anomaly Detection**"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**6.3.4 Memory Contamination Check**",
   "new": "**7.3.4 Memory Contamination Check**",
   "marked": "[-**6.3.4-] {+**7.3.4+} Memory Contamination Check**"
  },
  {
   "section": "7.3 Nightly Compliance Sweep",
   "old": "**6.3.5 Governance Metrics for Compliance Classifiers**",
   "new": "**7.3.5 Governance Metrics for Compliance Classifiers**",
   "marked": "[-**6.3.5-] {+**7.3.5+} Governance Metrics for Compliance Classifiers**"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "**7.3.1 Message Format**",
   "new": "**8.3.1 Message Format**",
   "marked": "[-**7.3.1-] {+**8.3.1+} Message Format**"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "**7.3.2 Delivery Semantics**",
   "new": "**8.3.2 Delivery Semantics**",
   "marked": "[-**7.3.2-] {+**8.3.2+} Delivery Semantics**"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "**7.3.3 Authentication**",
   "new": "**8.3.3 Authentication**",
   "marked": "[-**7.3.3-] {+**8.3.3+} Authentication**"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "**7.3.4 Gateway Topology**",
   "new": "**8.3.4 Gateway Topology**",
   "marked": "[-**7.3.4-] {+**8.3.4+} Gateway Topology**"
  },
  {
   "section": "8.3 Inter-Agent Communication Protocol",
   "old": "**7.3.5 Protocol Error Codes and Declassification Workflow**",
   "new": "**8.3.5 Protocol Error Codes and Declassification Workflow**",
   "marked": "[-**7.3.5-] {+**8.3.5+} Protocol Error Codes and Declassification Workflow**"
  },
  {
   "section": "10.2 A Three-Agent Reference Prototype",
   "old": null,
   "new": "### 10.2 A Three-Agent Reference Prototype",
   "marked": "{+### 10.2 A Three-Agent Reference Prototype+}"
  },
  {
   "section": "10.2 A Three-Agent Reference Prototype",
   "old": null,
   "new": "The smallest configuration that exercises every load-bearing mechanism — clearance enforcement, mediated cross-agent retrieval, and template-based declassification — is three agents on three OpenClaw workspaces: one employee agent, one department agent, and the executive agent. We specify it here as a bootstrap that turns the architecture into something a single engineer can stand up, not as a deployment we report results from.",
   "marked": "{+The smallest configuration that exercises every load-bearing mechanism — clearance enforcement, mediated cross-agent retrieval, and template-based declassification — is three agents on three OpenClaw workspaces: one employee agent, one department agent, and the executive agent. We specify it here as a bootstrap that turns the architecture into something a single engineer can stand up, not as a deployment we report results from.+}"
  },
  {
   "section": "10.2 A Three-Agent Reference Prototype",
   "old": null,
   "new": "- **Agents.** `agent_luna` (L1, sales, T3 ceiling), `agent_sales` (L2, T4), `agent_strategos` (L3, T5). Each runs under its own Linux user with the group memberships of Section 8.2; the kernel, not the prompt, enforces the lattice. - **Data fixtures.** A `/corporate` tree with one T3 sales-interaction file readable by all three, one T4 pricing-authority file readable only by `agent_sales` and above, and one T5 legal-matter file readable only by `agent_strategos`. Three files are enough to test all three filtering outcomes (verbatim, redaction template, caution notice) of the Customer History Request flow. - **The minimal test.** `agent_luna` issues a Customer History Request for an account whose record spans all three files. A correct implementation returns the T3 content verbatim, the T4 content as a populated redaction template, and the T5 content as a caution notice — and a direct `cat` of the T4/T5 files from `agent_luna`'s shell returns `permission denied`. That single round-trip validates the simple-security property, the mediated-retrieval gate, and the declassification pipeline at once. - **What it does not prove.** Three agents cannot surface the failure modes that only appear under concurrency and volume — alert fatigue in the nightly sweep, gateway queue saturation, department-agent cognitive load, or behavioral drift across a model update. Those require the staged pilot of Section 10.1. The prototype's purpose is narrower and worth stating plainly: it moves HIVEMIND from a design that is argued to be enforceable to one that is demonstrably enforced on a single machine, which is the precondition for trusting the larger claims.",
   "marked": "{+- **Agents.** `agent_luna` (L1, sales, T3 ceiling), `agent_sales` (L2, T4), `agent_strategos` (L3, T5). Each runs under its own Linux user with the group memberships of Section 8.2; the kernel, not the prompt, enforces the lattice. - **Data fixtures.** A `/corporate` tree with one T3 sales-interaction file readable by all three, one T4 pricing-authority file readable only by `agent_sales` and above, and one T5 legal-matter file readable only by `agent_strategos`. Three files are enough to test all three filtering outcomes (verbatim, redaction template, caution notice) of the Customer History Request flow. - **The minimal test.** `agent_luna` issues a Customer History Request for an account whose record spans all three files. A correct implementation returns the T3 content verbatim, the T4 content as a populated redaction template, and the T5 content as a caution notice — and a direct `cat` of the T4/T5 files from `agent_luna`'s shell returns `permission denied`. That single round-trip validates the simple-security property, the mediated-retrieval gate, and the declassification pipeline at once. - **What it does not prove.** Three agents cannot surface the failure modes that only appear under concurrency and volume — alert fatigue in the nightly sweep, gateway queue saturation, department-agent cognitive load, or behavioral drift across a model update. Those require the staged pilot of Section 10.1. The prototype's purpose is narrower and worth stating plainly: it moves HIVEMIND from a design that is argued to be enforceable to one that is demonstrably enforced on a single machine, which is the precondition for trusting the larger claims.+}"
  },
  {
   "section": "References",
   "old": "_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _J-series paper J10 | Version 1.2 | June 2, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_",
   "new": "_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _J-series paper J10 | Version 1.3 | June 2, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_",
   "marked": "_HIVEMIND: Hierarchical Agent Swarms for Enterprise Knowledge Management_ _J-series paper J10 | Version [-1.2-] {+1.3+} | June 2, 2026_ _Author: Oscar Serra_ _Classification: INTERNAL — OpenClaw/TinkerClaw Research_"
  }
 ]
}
