{
 "paper": "corporate-swarm",
 "a": "2.3",
 "b": "2.4",
 "summary": "From v2.3 (19 Jun) to v2.4 (29 Jul): 21,251 words to 21,492 words, 646 words in new or rewritten paragraphs and 405 taken out, 29 paragraphs changed.",
 "note": {
  "title": "Claims toned down; restart deadlock lesson added",
  "kind": "",
  "body": "## Summary\n\nThe abstract is shortened by a third and many claims are softened: \"talent retention becomes a non-issue\" becomes \"role knowledge can persist through turnover\", and onboarding \"can become\" inheritance. Offboarding is no longer said to be free; access still has to be removed with care.\n\n- From an incident noted on 21 July: a gateway restart waited more than four hours for \"no active work\" because dead tasks still looked alive. The failure section now states that a recovery path must not depend on the health of what it recovers, and that new work is paused while a restart drains.\n- Small additions to the risk table, the rollout's first phase and the limitations.",
  "source": "commit message"
 },
 "paragraphs_changed": 29,
 "changes": [
  {
   "section": "Abstract",
   "old": "The most expensive failure in a mid-sized company is not a data breach — it is a resignation. When a senior salesperson leaves after seven years, the relationship history, the negotiation instincts, and the undocumented customer quirks walk out with them, and the replacement spends months rebuilding what was never written down. This paper presents **HIVEMIND** — a multi-agent AI architecture for corporate deployment on OpenClaw/TinkerClaw infrastructure whose central design commitment is **organizational continuity**: the institutional knowledge lives in the agents, and the agents outlive the humans who use them. The key architectural move is **role-bound agents** — one canonical agent per job function (a single *sales rep* agent, a single *field engineer* agent), shared by every human who holds that role, rather than a personalized agent per individual. This decision makes talent retention a non-issue (the agent never resigns), collapses cross-department coordination to one channel per function, and reduces onboarding to a single sentence: the new hire tells the agent which territory they now own. Knowledge enters the swarm through a **knowledge cascade** — a centralized, version-controlled Markdown vault (company canon, industry context, customer-relationship model, product catalog) that agents mount via symlinks, authored and maintained by former trainers reborn as **knowledge stewards** who now train the AI once instead of each hire repeatedly. Security is the enabling constraint, not the headline: we retain a five-tier data classification model mapped to Linux filesystem permissions and formally grounded in the Bell-LaPadula model, now applied at role granularity, with a controlled declassification pipeline, nightly compliance sweeps, and human-in-the-loop quarantine. We ground the architecture in a mid-sized family business (~50–200 employees) and a rewritten Sales Coordination case study in which customer ownership is resolved contextually by a single shared agent rather than through inter-agent email routing. We address GDPR and the EU AI Act, a comprehensive risk model, bounded-autonomy operational governance (end users signal IT rather than self-administer their gateway), failure recovery, and a phased deployment strategy. We frame HIVEMIND as an architectural design paper, distinguishing what is proposed, what is operationally specified, and what remains to be empirically validated.",
   "new": null,
   "marked": "[-The most expensive failure in a mid-sized company is not a data breach — it is a resignation. When a senior salesperson leaves after seven years, the relationship history, the negotiation instincts, and the undocumented customer quirks walk out with them, and the replacement spends months rebuilding what was never written down. This paper presents **HIVEMIND** — a multi-agent AI architecture for corporate deployment on OpenClaw/TinkerClaw infrastructure whose central design commitment is **organizational continuity**: the institutional knowledge lives in the agents, and the agents outlive the humans who use them. The key architectural move is **role-bound agents** — one canonical agent per job function (a single *sales rep* agent, a single *field engineer* agent), shared by every human who holds that role, rather than a personalized agent per individual. This decision makes talent retention a non-issue (the agent never resigns), collapses cross-department coordination to one channel per function, and reduces onboarding to a single sentence: the new hire tells the agent which territory they now own. Knowledge enters the swarm through a **knowledge cascade** — a centralized, version-controlled Markdown vault (company canon, industry context, customer-relationship model, product catalog) that agents mount via symlinks, authored and maintained by former trainers reborn as **knowledge stewards** who now train the AI once instead of each hire repeatedly. Security is the enabling constraint, not the headline: we retain a five-tier data classification model mapped to Linux filesystem permissions and formally grounded in the Bell-LaPadula model, now applied at role granularity, with a controlled declassification pipeline, nightly compliance sweeps, and human-in-the-loop quarantine. We ground the architecture in a mid-sized family business (~50–200 employees) and a rewritten Sales Coordination case study in which customer ownership is resolved contextually by a single shared agent rather than through inter-agent email routing. We address GDPR and the EU AI Act, a comprehensive risk model, bounded-autonomy operational governance (end users signal IT rather than self-administer their gateway), failure recovery, and a phased deployment strategy. We frame HIVEMIND as an architectural design paper, distinguishing what is proposed, what is operationally specified, and what remains to be empirically validated.-]"
  },
  {
   "section": "Abstract",
   "old": null,
   "new": "When a senior employee leaves a mid-sized company, relationship history, negotiation instincts, and undocumented customer quirks often leave with them. This paper presents **HIVEMIND**, an enterprise architecture and organizational-design proposal for preserving that institutional context in role-bound agents on OpenClaw/TinkerClaw infrastructure. One canonical agent serves each job function—a sales-rep agent, for example, is shared by everyone who holds that role—rather than attaching durable organizational memory to one employee. The pattern is intended to reduce knowledge loss, simplify stable cross-function channels, and let new occupants inherit role context; those benefits remain hypotheses to test against personal-agent and conventional knowledge-management baselines. Knowledge enters the swarm through a **knowledge cascade**: a centralized, version-controlled Markdown vault (company canon, industry context, customer-relationship model, product catalog) mounted through permission-preserving links and maintained by **knowledge stewards**. A five-tier data-classification model maps to Linux filesystem permissions and a Bell-LaPadula-inspired confidentiality policy, with controlled declassification, compliance sweeps, and human-reviewed quarantine. We ground the proposal in a mid-sized family-business scenario (~50–200 employees) and a Sales Coordination case study in which a shared agent resolves customer ownership contextually. We also specify operational governance, failure recovery, GDPR and EU AI Act considerations, and phased evaluation gates. HIVEMIND is a position paper and deployable design hypothesis, not evidence that role-bound agents already outperform alternatives.",
   "marked": "{+When a senior employee leaves a mid-sized company, relationship history, negotiation instincts, and undocumented customer quirks often leave with them. This paper presents **HIVEMIND**, an enterprise architecture and organizational-design proposal for preserving that institutional context in role-bound agents on OpenClaw/TinkerClaw infrastructure. One canonical agent serves each job function—a sales-rep agent, for example, is shared by everyone who holds that role—rather than attaching durable organizational memory to one employee. The pattern is intended to reduce knowledge loss, simplify stable cross-function channels, and let new occupants inherit role context; those benefits remain hypotheses to test against personal-agent and conventional knowledge-management baselines. Knowledge enters the swarm through a **knowledge cascade**: a centralized, version-controlled Markdown vault (company canon, industry context, customer-relationship model, product catalog) mounted through permission-preserving links and maintained by **knowledge stewards**. A five-tier data-classification model maps to Linux filesystem permissions and a Bell-LaPadula-inspired confidentiality policy, with controlled declassification, compliance sweeps, and human-reviewed quarantine. We ground the proposal in a mid-sized family-business scenario (~50–200 employees) and a Sales Coordination case study in which a shared agent resolves customer ownership contextually. We also specify operational governance, failure recovery, GDPR and EU AI Act considerations, and phased evaluation gates. HIVEMIND is a position paper and deployable design hypothesis, not evidence that role-bound agents already outperform alternatives.+}"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": "This one decision cascades into three properties that a per-person design cannot offer:",
   "new": null,
   "marked": "[-This one decision cascades into three properties that a per-person design cannot offer:-]"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": "1. **Talent retention becomes a non-issue.** The agent never resigns. When a salesperson leaves, nothing is snapshotted, migrated, or scrubbed — the agent simply keeps serving the next occupant. Offboarding collapses to a single edit: the new hire tells the agent \"I now cover the northern territory,\" and a workload-division file is updated.",
   "new": null,
   "marked": "[-1. **Talent retention becomes a non-issue.** The agent never resigns. When a salesperson leaves, nothing is snapshotted, migrated, or scrubbed — the agent simply keeps serving the next occupant. Offboarding collapses to a single edit: the new hire tells the agent \"I now cover the northern territory,\" and a workload-division file is updated.-]"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": null,
   "new": "This one decision is intended to produce three properties that a per-person design does not provide by default:",
   "marked": "{+This one decision is intended to produce three properties that a per-person design does not provide by default:+}"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": null,
   "new": "1. **Role knowledge can persist through turnover.** The agent does not resign with its current user. When a salesperson leaves, the shared role memory need not be migrated from a personal agent; access and the workload-division file still require controlled offboarding and reassignment.",
   "marked": "{+1. **Role knowledge can persist through turnover.** The agent does not resign with its current user. When a salesperson leaves, the shared role memory need not be migrated from a personal agent; access and the workload-division file still require controlled offboarding and reassignment.+}"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": "3. **Onboarding becomes inheritance.** A new hire does not start from zero. They start from everything the role has ever learned, and contribute back to it.",
   "new": null,
   "marked": "[-3. **Onboarding becomes inheritance.** A new hire does not start from zero. They start from everything the role has ever learned, and contribute back to it.-]"
  },
  {
   "section": "1.2 The Continuity Thesis",
   "old": null,
   "new": "3. **Onboarding can become inheritance.** A new hire can start with the role's governed history rather than rebuilding it from zero, then contribute back to that shared context.",
   "marked": "{+3. **Onboarding can become inheritance.** A new hire can start with the role's governed history rather than rebuilding it from zero, then contribute back to that shared context.+}"
  },
  {
   "section": "1.4 Architecture Overview",
   "old": "![Figure 1. HIVEMIND's three-level agent hierarchy. A single **executive** agent (L3-EXEC, T5) sits over one **department** agent per function (L2-SALES / L2-IT / L2-HR, T4), each over a **role** agent shared by everyone who holds that job function (L1-SALES-REP / L1-FIELD-ENGR / L1-SUPPORT, T3). Queries flow downward only; structured intelligence pushes flow upward; lateral traffic between role agents is mediated by the department agent — and every inter-level edge is gated by the clearance lattice, enforced by the Linux kernel, not the model.](images/fig-architecture.png){width=70%}",
   "new": "![Figure 1. HIVEMIND's three-level agent hierarchy. A single **executive** agent (L3-EXEC, T5) sits over one **department** agent per function (L2-SALES / L2-IT / L2-HR, T4), each over a **role** agent shared by everyone who holds that job function (L1-SALES-REP / L1-FIELD-ENGR / L1-SUPPORT, T3). Queries flow downward only; structured intelligence pushes flow upward; lateral traffic between role agents is mediated by the department agent — and every inter-level edge is gated by the clearance lattice, enforced by the Linux kernel, not the model.](images/fig-architecture-tinker.png){width=70%}",
   "marked": "![Figure 1. HIVEMIND's three-level agent hierarchy. A single **executive** agent (L3-EXEC, T5) sits over one **department** agent per function (L2-SALES / L2-IT / L2-HR, T4), each over a **role** agent shared by everyone who holds that job function (L1-SALES-REP / L1-FIELD-ENGR / L1-SUPPORT, T3). Queries flow downward only; structured intelligence pushes flow upward; lateral traffic between role agents is mediated by the department agent — and every inter-level edge is gated by the clearance lattice, enforced by the Linux kernel, not the [-model.](images/fig-architecture.png){width=70%}-] {+model.](images/fig-architecture-tinker.png){width=70%}+}"
  },
  {
   "section": "1.6 Related Work and Positioning",
   "old": "- **Paperclip** (open-source \"zero-human company\" orchestration) mirrors HIVEMIND's structural thesis closely — each role is a separate agent, work flows through tickets, per-agent budgets are tracked centrally — and is direct evidence the org-chart paradigm works. What it lacks is exactly HIVEMIND's subject: no clearance or information-flow model (any agent reads anything), no governed shared memory, no persona persistence. HIVEMIND can be read as Paperclip with a Bell-LaPadula spine and a full cognitive stack — and role-binding goes one step further than Paperclip's per-role agents by making the role agent *shared across occupants* for continuity. - **Coordinator/teammate execution models** contribute useful vocabulary: a *teammate* in a separate context communicating through a file-based mailbox maps naturally onto HIVEMIND's clearance-filtered channels (Section 3.3) — every message is a file with owner, group, and permission bits, which is precisely the enforcement substrate. **Single-agent role-switching** (e.g., GStack: one process, multiple role prompts) marks the low-cost end of the design space and is a legitimate small-organization alternative (Section 10). - **headroom** (Chopra, 2026; ~24.7k★, Apache-2.0) is a production context-compression system built on **Compress-Cache-Retrieve (CCR)**: it caches originals and retrieves them on demand, reporting 60–95% token savings at near-zero accuracy delta with a runnable eval. It bears directly on HIVEMIND's memory subsystem and creates one tension and one template — reversible retrieval collides with the lattice (Section 2.10), while its shipped accuracy-delta eval is the discipline HIVEMIND borrows for its redaction-fidelity eval (Section 4.4.2). - **addyosmani/agent-skills** (~56.8k★) contributes a **doubt-driven-development** loop whose reusable kernel — a *fresh-context adversarial reviewer denied the source* — maps onto HIVEMIND's hardest problem, implication-leakage at the declassification boundary. Section 4.4.1 re-purposes it as a leakage oracle: run across a clearance boundary, a quality check becomes an information-flow test.",
   "new": "- **Paperclip** (open-source \"zero-human company\" orchestration) mirrors HIVEMIND's structural thesis closely — each role is a separate agent, work flows through tickets, per-agent budgets are tracked centrally — and is direct evidence the org-chart paradigm works. What it lacks is exactly HIVEMIND's subject: no clearance or information-flow model (any agent reads anything), no governed shared memory, no persona persistence. HIVEMIND can be read as Paperclip with a Bell-LaPadula spine and a full cognitive stack — and role-binding goes one step further than Paperclip's per-role agents by making the role agent *shared across occupants* for continuity. - **Coordinator/teammate execution models** contribute useful vocabulary: a *teammate* in a separate context communicating through a file-based mailbox maps naturally onto HIVEMIND's clearance-filtered channels (Section 3.3) — every message is a file with owner, group, and permission bits, which is precisely the enforcement substrate. **Single-agent role-switching** (e.g., GStack: one process, multiple role prompts) marks the low-cost end of the design space and is a legitimate small-organization alternative (Section 10). - **headroom** (Chopra, 2026; ~24.7k stars, Apache-2.0) is a production context-compression system built on **Compress-Cache-Retrieve (CCR)**: it caches originals and retrieves them on demand, reporting 60–95% token savings at near-zero accuracy delta with a runnable eval. It bears directly on HIVEMIND's memory subsystem and creates one tension and one template — reversible retrieval collides with the lattice (Section 2.10), while its shipped accuracy-delta eval is the discipline HIVEMIND borrows for its redaction-fidelity eval (Section 4.4.2). - **addyosmani/agent-skills** (~56.8k stars) contributes a **doubt-driven-development** loop whose reusable kernel — a *fresh-context adversarial reviewer denied the source* — maps onto HIVEMIND's hardest problem, implication-leakage at the declassification boundary. Section 4.4.1 re-purposes it as a leakage oracle: run across a clearance boundary, a quality check becomes an information-flow test.",
   "marked": "- **Paperclip** (open-source \"zero-human company\" orchestration) mirrors HIVEMIND's structural thesis closely — each role is a separate agent, work flows through tickets, per-agent budgets are tracked centrally — and is direct evidence the org-chart paradigm works. What it lacks is exactly HIVEMIND's subject: no clearance or information-flow model (any agent reads anything), no governed shared memory, no persona persistence. HIVEMIND can be read as Paperclip with a Bell-LaPadula spine and a full cognitive stack — and role-binding goes one step further than Paperclip's per-role agents by making the role agent *shared across occupants* for continuity. - **Coordinator/teammate execution models** contribute useful vocabulary: a *teammate* in a separate context communicating through a file-based mailbox maps naturally onto HIVEMIND's clearance-filtered channels (Section 3.3) — every message is a file with owner, group, and permission bits, which is precisely the enforcement substrate. **Single-agent role-switching** (e.g., GStack: one process, multiple role prompts) marks the low-cost end of the design space and is a legitimate small-organization alternative (Section 10). - **headroom** (Chopra, 2026; [-~24.7k★,-] {+~24.7k stars,+} Apache-2.0) is a production context-compression system built on **Compress-Cache-Retrieve (CCR)**: it caches originals and retrieves them on demand, reporting 60–95% token savings at near-zero accuracy delta with a runnable eval. It bears directly on HIVEMIND's memory subsystem and creates one tension and one template — reversible retrieval collides with the lattice (Section 2.10), while its shipped accuracy-delta eval is the discipline HIVEMIND borrows for its redaction-fidelity eval (Section 4.4.2). - **addyosmani/agent-skills** [-(~56.8k★)-] {+(~56.8k stars)+} contributes a **doubt-driven-development** loop whose reusable kernel — a *fresh-context adversarial reviewer denied the source* — maps onto HIVEMIND's hardest problem, implication-leakage at the declassification boundary. Section 4.4.1 re-purposes it as a leakage oracle: run across a clearance boundary, a quality check becomes an information-flow test."
  },
  {
   "section": "2.2 Data Classification Tiers",
   "old": "``` /corporate/ ├── public/ # directory: 0755, files: 0644 ├── internal/ # directory: 0750, group: all-employees; files: 0640 ├── confidential/ # directory: 0750, per-department group; files: 0640 ├── restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs └── secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```",
   "new": "``` /corporate/ +-- public/ # directory: 0755, files: 0644 +-- internal/ # directory: 0750, group: all-employees; files: 0640 +-- confidential/ # directory: 0750, per-department group; files: 0640 +-- restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs \\-- secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```",
   "marked": "``` /corporate/ [-├──-] {++--+} public/ # directory: 0755, files: 0644 [-├──-] {++--+} internal/ # directory: 0750, group: all-employees; files: 0640 [-├──-] {++--+} confidential/ # directory: 0750, per-department group; files: 0640 [-├──-] {++--+} restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs [-└──-] {+\\--+} secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```"
  },
  {
   "section": "2.7 The Knowledge Commons and the Cascade Model",
   "old": "``` /corporate/knowledge/ # the commons: dir 0755, files 0644 (T1/T2) ├── canon/ # company identity, values, org chart ├── industry/ # sector, regulation, competitors, terms ├── customers/ # B2B/B2C model, personas, relationship norms ├── catalog/ # products / services, specs, positioning ├── process/ # SOPs ├── glossary/ # acronyms, ontology ├── voice/ # communication standards └── roles/ ├── sales-rep/ # role slice: playbooks, pricing ladder │ └── workload-division.md # who covers what (T2/T3) ├── field-engineer/ └── support/",
   "new": "``` /corporate/knowledge/ # the commons: dir 0755, files 0644 (T1/T2) +-- canon/ # company identity, values, org chart +-- industry/ # sector, regulation, competitors, terms +-- customers/ # B2B/B2C model, personas, relationship norms +-- catalog/ # products / services, specs, positioning +-- process/ # SOPs +-- glossary/ # acronyms, ontology +-- voice/ # communication standards \\-- roles/ +-- sales-rep/ # role slice: playbooks, pricing ladder | \\-- workload-division.md # who covers what (T2/T3) +-- field-engineer/ \\-- support/",
   "marked": "``` /corporate/knowledge/ # the commons: dir 0755, files 0644 (T1/T2) [-├──-] {++--+} canon/ # company identity, values, org chart [-├──-] {++--+} industry/ # sector, regulation, competitors, terms [-├──-] {++--+} customers/ # B2B/B2C model, personas, relationship norms [-├──-] {++--+} catalog/ # products / services, specs, positioning [-├──-] {++--+} process/ # SOPs [-├──-] {++--+} glossary/ # acronyms, ontology [-├──-] {++--+} voice/ # communication standards [-└──-] {+\\--+} roles/ [-├──-] {++--+} sales-rep/ # role slice: playbooks, pricing ladder [-│ └──-] {+| \\--+} workload-division.md # who covers what (T2/T3) [-├──-] {++--+} field-engineer/ [-└──-] {+\\--+} support/"
  },
  {
   "section": "3.5 The Agent Network Along Multiple Axes",
   "old": "![Figure 3. The whole-paper synthesis: one agent network, six axes. The same org chart of role-bound agents (L1 role agents shared across occupants, under L2 department agents, under L3-EXEC) carries six orthogonal flows, each drawn as a differently-colored path — clearance (red, downward), supervision (purple), knowledge propagation (green, from the commons to every occupant at once), self-modification (blue, users → L2-IT → rollout), workload sharing (orange), and bottleneck reduction (teal, one shared agent serving many humans). A mechanism that serves one axis often taxes another; naming the axes makes the trade-offs explicit.](images/fig-synthesis.png){width=78%}",
   "new": "![Figure 3. The whole-paper synthesis: one agent network, six axes. The same org chart of role-bound agents (L1 role agents shared across occupants, under L2 department agents, under L3-EXEC) carries six orthogonal flows, each drawn as a differently-colored path — clearance (red, downward), supervision (purple), knowledge propagation (green, from the commons to every occupant at once), self-modification (blue, users → L2-IT → rollout), workload sharing (orange), and bottleneck reduction (teal, one shared agent serving many humans). A mechanism that serves one axis often taxes another; naming the axes makes the trade-offs explicit.](images/fig-synthesis-tinker.png){width=78%}",
   "marked": "![Figure 3. The whole-paper synthesis: one agent network, six axes. The same org chart of role-bound agents (L1 role agents shared across occupants, under L2 department agents, under L3-EXEC) carries six orthogonal flows, each drawn as a differently-colored path — clearance (red, downward), supervision (purple), knowledge propagation (green, from the commons to every occupant at once), self-modification (blue, users → L2-IT → rollout), workload sharing (orange), and bottleneck reduction (teal, one shared agent serving many humans). A mechanism that serves one axis often taxes another; naming the axes makes the trade-offs [-explicit.](images/fig-synthesis.png){width=78%}-] {+explicit.](images/fig-synthesis-tinker.png){width=78%}+}"
  },
  {
   "section": "3.7 Concurrent Action Under Arbitration",
   "old": "![Figure 4. Concurrent action under arbitration. Phase A (left): four workers each read the shared state and draft an exact patch fully in parallel, no lease held — ~95% of wall-clock. Phase B (right): workers acquire a short-lived lease on only the object(s) their patch touches and apply; disjoint objects (1, 2, 4) land concurrently while the two workers contending for object 3 serialize through its lease, the object passing hands the instant an edit lands. Each applied unit is committed as its own attributable change. Because every write to an object is serialized through its lease against one shared state, the streams never diverge — \"clean merge\" is a non-event.](images/fig-arbitration.png){width=82%}",
   "new": "![Figure 4. Concurrent action under arbitration. Phase A (left): four workers each read the shared state and draft an exact patch fully in parallel, no lease held — ~95% of wall-clock. Phase B (right): workers acquire a short-lived lease on only the object(s) their patch touches and apply; disjoint objects (1, 2, 4) land concurrently while the two workers contending for object 3 serialize through its lease, the object passing hands the instant an edit lands. Each applied unit is committed as its own attributable change. Because every write to an object is serialized through its lease against one shared state, the streams never diverge — \"clean merge\" is a non-event.](images/fig-arbitration-tinker.png){width=82%}",
   "marked": "![Figure 4. Concurrent action under arbitration. Phase A (left): four workers each read the shared state and draft an exact patch fully in parallel, no lease held — ~95% of wall-clock. Phase B (right): workers acquire a short-lived lease on only the object(s) their patch touches and apply; disjoint objects (1, 2, 4) land concurrently while the two workers contending for object 3 serialize through its lease, the object passing hands the instant an edit lands. Each applied unit is committed as its own attributable change. Because every write to an object is serialized through its lease against one shared state, the streams never diverge — \"clean merge\" is a [-non-event.](images/fig-arbitration.png){width=82%}-] {+non-event.](images/fig-arbitration-tinker.png){width=82%}+}"
  },
  {
   "section": "4.3 Unified Customer History — Now Trivial",
   "old": "1. María asks the agent: \"Prepare a briefing for the González account for my call tomorrow.\" 2. The agent already holds every salesperson's González touchpoints in its shared memory — no cross-agent request is needed. 3. The only filtering that still applies is *upward* tier filtering for data the sales role does not clear: - Sales interactions (T3): ✓ included in full. - Customer-specific pricing tiers negotiated by management (T4): ✗ replaced with a **Redacted Summary** (Section 4.4), delivered via controlled declassification from L2-SALES. - Legal proceedings involving this customer (T5): ✗ replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 4. The agent synthesizes the briefing.",
   "new": "1. María asks the agent: \"Prepare a briefing for the González account for my call tomorrow.\" 2. The agent already holds every salesperson's González touchpoints in its shared memory — no cross-agent request is needed. 3. The only filtering that still applies is *upward* tier filtering for data the sales role does not clear: - Sales interactions (T3): included included in full. - Customer-specific pricing tiers negotiated by management (T4): excluded replaced with a **Redacted Summary** (Section 4.4), delivered via controlled declassification from L2-SALES. - Legal proceedings involving this customer (T5): excluded replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 4. The agent synthesizes the briefing.",
   "marked": "1. María asks the agent: \"Prepare a briefing for the González account for my call tomorrow.\" 2. The agent already holds every salesperson's González touchpoints in its shared memory — no cross-agent request is needed. 3. The only filtering that still applies is *upward* tier filtering for data the sales role does not clear: - Sales interactions (T3): [-✓-] {+included+} included in full. - Customer-specific pricing tiers negotiated by management (T4): [-✗-] {+excluded+} replaced with a **Redacted Summary** (Section 4.4), delivered via controlled declassification from L2-SALES. - Legal proceedings involving this customer (T5): [-✗-] {+excluded+} replaced with a caution notice: \"Active legal matter. Escalate any contract discussions to management before committing.\" 4. The agent synthesizes the briefing."
  },
  {
   "section": "4.3 Unified Customer History — Now Trivial",
   "old": "![Figure 2. Contextual history with upward-tier filtering, under role-binding. María asks the one shared L1-SALES-REP agent, which already holds the whole team's history natively — no cross-agent fan-out. Only data above the sales role's clearance is filtered: T3 interactions pass verbatim, T4 pricing authority is replaced by a redaction template, and T5 legal matter becomes a caution notice. The result respects the requester's clearance, not the source's, and every declassified segment is logged with classification and hash.](images/fig-history-flow.png){width=88%}",
   "new": "![Figure 2. Contextual history with upward-tier filtering, under role-binding. María asks the one shared L1-SALES-REP agent, which already holds the whole team's history natively — no cross-agent fan-out. Only data above the sales role's clearance is filtered: T3 interactions pass verbatim, T4 pricing authority is replaced by a redaction template, and T5 legal matter becomes a caution notice. The result respects the requester's clearance, not the source's, and every declassified segment is logged with classification and hash.](images/fig-history-flow-tinker.png){width=88%}",
   "marked": "![Figure 2. Contextual history with upward-tier filtering, under role-binding. María asks the one shared L1-SALES-REP agent, which already holds the whole team's history natively — no cross-agent fan-out. Only data above the sales role's clearance is filtered: T3 interactions pass verbatim, T4 pricing authority is replaced by a redaction template, and T5 legal matter becomes a caution notice. The result respects the requester's clearance, not the source's, and every declassified segment is logged with classification and [-hash.](images/fig-history-flow.png){width=88%}-] {+hash.](images/fig-history-flow-tinker.png){width=88%}+}"
  },
  {
   "section": "7.4 Memory Files as Auditable State",
   "old": "``` /agents/ ├── sales-rep/ # owned by agent_salesrep, group: sales-dept-ro │ ├── MEMORY.md # shared institutional memory for the sales role │ ├── memory/ │ │ └── 2026-03-17.md │ ├── workspace/ │ │ ├── clients/ │ │ └── knowledge/ # symlinks into /corporate/knowledge (Section 2.7) │ ├── people/ # thin per-person interaction profiles (Section 2.7) │ └── SOUL.md ├── field-engineer/ # similar structure, one per ROLE ├── sales-dept/ # owned by agent_sales, group: strategos-ro │ ├── MEMORY.md │ └── department-intel/ └── strategos/ # owned by agent_strategos, root group └── ... ```",
   "new": "``` /agents/ +-- sales-rep/ # owned by agent_salesrep, group: sales-dept-ro | +-- MEMORY.md # shared institutional memory for the sales role | +-- memory/ | | \\-- 2026-03-17.md | +-- workspace/ | | +-- clients/ | | \\-- knowledge/ # symlinks into /corporate/knowledge (Section 2.7) | +-- people/ # thin per-person interaction profiles (Section 2.7) | \\-- SOUL.md +-- field-engineer/ # similar structure, one per ROLE +-- sales-dept/ # owned by agent_sales, group: strategos-ro | +-- MEMORY.md | \\-- department-intel/ \\-- strategos/ # owned by agent_strategos, root group \\-- ... ```",
   "marked": "``` /agents/ [-├──-] {++--+} sales-rep/ # owned by agent_salesrep, group: sales-dept-ro [-│ ├──-] {+| +--+} MEMORY.md # shared institutional memory for the sales role [-│ ├──-] {+| +--+} memory/ [-│ │ └──-] {+| | \\--+} 2026-03-17.md [-│ ├──-] {+| +--+} workspace/ [-│ │ ├──-] {+| | +--+} clients/ [-│ │ └──-] {+| | \\--+} knowledge/ # symlinks into /corporate/knowledge (Section 2.7) [-│ ├──-] {+| +--+} people/ # thin per-person interaction profiles (Section 2.7) [-│ └──-] {+| \\--+} SOUL.md [-├──-] {++--+} field-engineer/ # similar structure, one per ROLE [-├──-] {++--+} sales-dept/ # owned by agent_sales, group: strategos-ro [-│ ├──-] {+| +--+} MEMORY.md [-│ └──-] {+| \\--+} department-intel/ [-└──-] {+\\--+} strategos/ # owned by agent_strategos, root group [-└──-] {+\\--+} ... ```"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "Recovery paths must not depend on the health of the state they are meant to recover. This requirement matters most during a graceful restart: a gateway that waits for \"no active work\" can deadlock if its activity counter treats durable session records as proof that workers are alive, or if it continues admitting work while draining. A restart controller therefore needs four explicit invariants:",
   "marked": "{+Recovery paths must not depend on the health of the state they are meant to recover. This requirement matters most during a graceful restart: a gateway that waits for \"no active work\" can deadlock if its activity counter treats durable session records as proof that workers are alive, or if it continues admitting work while draining. A restart controller therefore needs four explicit invariants:+}"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "1. **A fail-open deadline is on by default.** Deferral has a finite built-in timeout; disabling it requires an explicit administrative choice. An optional timeout that becomes infinite when unset is not a safety valve. 2. **Liveness uses fresh evidence.** A persisted session record is bookkeeping, not a heartbeat. Only a recent worker event, bounded by a documented freshness window, may veto recovery. 3. **Drain mode controls admission.** Once restart is pending, the gateway pauses new intake or excludes not-yet-started queue entries from the blocking count. Otherwise each diagnostic prompt or newly queued task can prolong the outage it is trying to report. 4. **Recovery state is observable.** Operators can see the restart deadline, blocking task identifiers, last-event timestamps, queue depth, and whether intake is open. Each override is logged.",
   "marked": "{+1. **A fail-open deadline is on by default.** Deferral has a finite built-in timeout; disabling it requires an explicit administrative choice. An optional timeout that becomes infinite when unset is not a safety valve. 2. **Liveness uses fresh evidence.** A persisted session record is bookkeeping, not a heartbeat. Only a recent worker event, bounded by a documented freshness window, may veto recovery. 3. **Drain mode controls admission.** Once restart is pending, the gateway pauses new intake or excludes not-yet-started queue entries from the blocking count. Otherwise each diagnostic prompt or newly queued task can prolong the outage it is trying to report. 4. **Recovery state is observable.** Operators can see the restart deadline, blocking task identifiers, last-event timestamps, queue depth, and whether intake is open. Each override is logged.+}"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": null,
   "new": "These are architecture requirements rather than universal numeric prescriptions. A live gateway incident motivating them used a 15-minute default deferral deadline and a 10-minute freshness window; deployments should tune both against workload duration and recovery objectives. The reusable lesson is the separation of *record existence*, *worker liveness*, and *admission state*.",
   "marked": "{+These are architecture requirements rather than universal numeric prescriptions. A live gateway incident motivating them used a 15-minute default deferral deadline and a 10-minute freshness window; deployments should tune both against workload duration and recovery objectives. The reusable lesson is the separation of *record existence*, *worker liveness*, and *admission state*.+}"
  },
  {
   "section": "8.6 Failure Modes and Recovery",
   "old": "- 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, L3-EXEC and L2-IT are alerted for manual intervention.",
   "new": "- Employee agents detect the failure when their messages receive `TIMEOUT` responses from the gateway. - Employee agents enter a **degraded mode**: they continue serving their human user with locally available data but cannot initiate cross-agent queries or receive updates. - The gateway queues incoming messages for the crashed department agent up to capacity while ordinary service remains active. If a gateway restart enters drain mode, admission follows the restart invariants above rather than extending the drain indefinitely. - Automated restart: systemd watchdog restarts the department agent process. On restart, the agent replays queued messages. - If restart fails three times, L3-EXEC and L2-IT are alerted for manual intervention.",
   "marked": "- 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-] {+up+} to [-queue capacity).-] {+capacity while ordinary service remains active. If a gateway restart enters drain mode, admission follows the restart invariants above rather than extending the drain indefinitely.+} - Automated restart: systemd watchdog restarts the department agent process. On restart, the agent replays queued messages. - If restart fails three times, L3-EXEC and L2-IT are alerted for manual intervention."
  },
  {
   "section": "8.9 Summary Risk Table",
   "old": "| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |",
   "new": "| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Graceful-restart deadlock | High | Medium | Default deadline, freshness-based liveness, drain admission control | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |",
   "marked": "| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | {+Graceful-restart deadlock | High | Medium | Default deadline, freshness-based liveness, drain admission control | |+} Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |"
  },
  {
   "section": "Phase 0: Infrastructure and Legal (Weeks 1-4)",
   "old": "- Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete.",
   "new": "- Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - Exercise crash and graceful-restart recovery with synthetic active, stale, and queued tasks. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete, and recovery tests show that stale bookkeeping and new arrivals cannot block restart beyond the configured deadline.",
   "marked": "- 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. - {+Exercise crash and graceful-restart recovery with synthetic active, stale, and queued tasks. -+} **Gate:** DPIA approved, infrastructure operational, legal documentation [-complete.-] {+complete, and recovery tests show that stale bookkeeping and new arrivals cannot block restart beyond the configured deadline.+}"
  },
  {
   "section": "11. Limitations",
   "old": null,
   "new": "15. **Recovery invariants come from one operational incident.** The graceful-restart requirements in Section 8.6 are grounded in a live gateway failure, but the specific deadline and freshness windows have not been evaluated across enterprise workload distributions. They should be treated as configurable pilot parameters, with recovery-time and lost-work measurements reported before broad deployment.",
   "marked": "{+15. **Recovery invariants come from one operational incident.** The graceful-restart requirements in Section 8.6 are grounded in a live gateway failure, but the specific deadline and freshness windows have not been evaluated across enterprise workload distributions. They should be treated as configurable pilot parameters, with recovery-time and lost-work measurements reported before broad deployment.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "1. **The Continuity Thesis and Role-Bound Agents.** One canonical agent per job function, shared by every occupant of that role, making the agent the durable holder of institutional knowledge. This turns the most expensive recurring failure in a mid-sized company — the talent leak — into a non-event: the agent never resigns, offboarding collapses to a workload-map edit, cross-department coordination collapses to one channel per function, and onboarding becomes inheritance.",
   "new": null,
   "marked": "[-1. **The Continuity Thesis and Role-Bound Agents.** One canonical agent per job function, shared by every occupant of that role, making the agent the durable holder of institutional knowledge. This turns the most expensive recurring failure in a mid-sized company — the talent leak — into a non-event: the agent never resigns, offboarding collapses to a workload-map edit, cross-department coordination collapses to one channel per function, and onboarding becomes inheritance.-]"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "1. **The Continuity Thesis and Role-Bound Agents.** One canonical agent per job function, shared by every occupant of that role, makes the agent a candidate durable holder of institutional knowledge. The design predicts less knowledge loss, simpler stable coordination channels, and inherited onboarding context; a comparative field study must determine whether those gains outweigh reduced personalization and wider intra-role visibility.",
   "marked": "{+1. **The Continuity Thesis and Role-Bound Agents.** One canonical agent per job function, shared by every occupant of that role, makes the agent a candidate durable holder of institutional knowledge. The design predicts less knowledge loss, simpler stable coordination channels, and inherited onboarding context; a comparative field study must determine whether those gains outweigh reduced personalization and wider intra-role visibility.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "7. **Risk Analysis.** Ten principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling.",
   "new": "7. **Risk Analysis.** Principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling. Recovery explicitly separates durable bookkeeping from liveness and closes admission during a graceful drain.",
   "marked": "7. **Risk Analysis.** [-Ten principal-] {+Principal+} risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel [-handling.-] {+handling. Recovery explicitly separates durable bookkeeping from liveness and closes admission during a graceful drain.+}"
  },
  {
   "section": "12. Conclusions",
   "old": "HIVEMIND is a design blueprint — not a finished system. It will evolve as models improve, enterprise integration matures, and regulators develop clearer frameworks. What we believe will endure is the fundamental tension it addresses: the value of coordination versus the necessity of boundaries. Every organization deploying AI at scale will face this tension. The answer is architecture: clear rules about what flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions.",
   "new": null,
   "marked": "[-HIVEMIND is a design blueprint — not a finished system. It will evolve as models improve, enterprise integration matures, and regulators develop clearer frameworks. What we believe will endure is the fundamental tension it addresses: the value of coordination versus the necessity of boundaries. Every organization deploying AI at scale will face this tension. The answer is architecture: clear rules about what flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions.-]"
  },
  {
   "section": "12. Conclusions",
   "old": null,
   "new": "HIVEMIND is an enterprise architecture position, not a finished system or a demonstrated research advance. Its role-bound pattern earns a stronger claim only after controlled pilots compare it with personal agents and conventional knowledge systems on continuity, coordination, adoption, security, and recovery. What should endure regardless of that result is the design problem: organizations need explicit rules for what knowledge persists, who may receive it, how concurrent work is controlled, and how the system recovers when its own bookkeeping becomes unreliable.",
   "marked": "{+HIVEMIND is an enterprise architecture position, not a finished system or a demonstrated research advance. Its role-bound pattern earns a stronger claim only after controlled pilots compare it with personal agents and conventional knowledge systems on continuity, coordination, adoption, security, and recovery. What should endure regardless of that result is the design problem: organizations need explicit rules for what knowledge persists, who may receive it, how concurrent work is controlled, and how the system recovers when its own bookkeeping becomes unreliable.+}"
  }
 ]
}
