v2.3 → v2.4
What changed from v2.3 to v2.4
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.
Claims toned down; restart deadlock lesson addedThe 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.
- 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.
- Small additions to the risk table, the rollout's first phase and the limitations.
v2.3 · 19 June 2026v2.4 · 29 July 2026
··· 3 unchanged paragraphs folded ···
v2.3 · AbstractThe 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.
removed in v2.4
not in v2.3
v2.4 · AbstractWhen 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.
··· 12 unchanged paragraphs folded ···
v2.3 · 1.2 The Continuity ThesisThis one decision cascades into three properties that a per-person design cannot offer:
removed in v2.4
v2.3 · 1.2 The Continuity Thesis1. **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.
removed in v2.4
not in v2.3
v2.4 · 1.2 The Continuity ThesisThis one decision is intended to produce three properties that a per-person design does not provide by default:
not in v2.3
v2.4 · 1.2 The Continuity Thesis1. **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.
··· 1 unchanged paragraph folded ···
v2.3 · 1.2 The Continuity Thesis3. **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.
removed in v2.4
not in v2.3
v2.4 · 1.2 The Continuity Thesis3. **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.
··· 7 unchanged paragraphs folded ···
v2.3 · 1.4 Architecture Overview{width=70%}
v2.4 · 1.4 Architecture Overview{width=70%}
··· 11 unchanged paragraphs folded ···
v2.3 · 1.6 Related Work and Positioning- **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.
v2.4 · 1.6 Related Work and Positioning- **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.
··· 13 unchanged paragraphs folded ···
v2.3 · 2.2 Data Classification Tiers``` /corporate/ ├── public/ # directory: 0755, files: 0644 ├── internal/ # directory: 0750, group: all-employees; files: 0640 ├── confidential/ # directory: 0750, per-department group; files: 0640 ├── restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs └── secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```
v2.4 · 2.2 Data Classification Tiers``` /corporate/ +-- public/ # directory: 0755, files: 0644 +-- internal/ # directory: 0750, group: all-employees; files: 0640 +-- confidential/ # directory: 0750, per-department group; files: 0640 +-- restricted/ # directory: 0750, group: management; files: 0640 + per-dept ACLs \-- secret/ # directory: 0700, owner: agent_strategos; files: 0600 ```
··· 38 unchanged paragraphs folded ···
v2.3 · 2.7 The Knowledge Commons and the Cascade Model``` /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/
v2.4 · 2.7 The Knowledge Commons and the Cascade Model``` /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/
··· 39 unchanged paragraphs folded ···
v2.3 · 3.5 The Agent Network Along Multiple Axes{width=78%}
v2.4 · 3.5 The Agent Network Along Multiple Axes{width=78%}
··· 21 unchanged paragraphs folded ···
v2.3 · 3.7 Concurrent Action Under Arbitration{width=82%}
v2.4 · 3.7 Concurrent Action Under Arbitration{width=82%}
··· 14 unchanged paragraphs folded ···
v2.3 · 4.3 Unified Customer History — Now Trivial1. 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.
v2.4 · 4.3 Unified Customer History — Now Trivial1. 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.
··· 1 unchanged paragraph folded ···
v2.3 · 4.3 Unified Customer History — Now Trivial{width=88%}
v2.4 · 4.3 Unified Customer History — Now Trivial{width=88%}
··· 160 unchanged paragraphs folded ···
v2.3 · 7.4 Memory Files as Auditable State``` /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 └── ... ```
v2.4 · 7.4 Memory Files as Auditable State``` /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 \-- ... ```
··· 59 unchanged paragraphs folded ···
not in v2.3
v2.4 · 8.6 Failure Modes and RecoveryRecovery 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:
not in v2.3
v2.4 · 8.6 Failure Modes and Recovery1. **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.
not in v2.3
v2.4 · 8.6 Failure Modes and RecoveryThese 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*.
··· 1 unchanged paragraph folded ···
v2.3 · 8.6 Failure Modes and Recovery- 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.
v2.4 · 8.6 Failure Modes and Recovery- 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.
··· 12 unchanged paragraphs folded ···
v2.3 · 8.9 Summary Risk Table| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | Model update behavioral drift | Medium | Medium | Staging environment, canary deployment, baseline comparison | | Real-time channel leakage | Medium | Medium | Channel-level classification, consent-gated transcription |
v2.4 · 8.9 Summary Risk Table| Risk | Severity | Likelihood | Primary Mitigation | | --------------------------------- | -------- | ---------- | ------------------------------------------------------------------- | | Curious agent data aggregation | High | Medium | Query pattern monitoring, clearance-awareness prompting | | Inter-agent social engineering | High | Low | Two-tier clearance validator, restricted inter-agent prompts | | Memory contamination | Medium | Medium | Nightly semantic scan with calibrated thresholds | | Executive agent compromise | Critical | Very Low | Isolated infrastructure, dead switch, two-person review | | Model capability variance | Medium | Medium | Filesystem enforcement as primary layer, tier-based model selection | | GDPR compliance violation | High | Medium | DPIA, data minimization sweeps, purpose limitation audit | | Employee offboarding data residue | Medium | High | Structured offboarding protocol, automated purge scheduling | | Department agent crash | Medium | Medium | Watchdog restart, degraded mode, queued message replay | | 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 |
··· 4 unchanged paragraphs folded ···
v2.3 · Phase 0: Infrastructure and Legal (Weeks 1-4)- Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - **Gate:** DPIA approved, infrastructure operational, legal documentation complete.
v2.4 · Phase 0: Infrastructure and Legal (Weeks 1-4)- Complete DPIA and EU AI Act conformity assessment. - Provision server infrastructure, install OpenClaw, configure local inference. - Establish compliance officer role and audit procedures. - Draft and execute employee contract addendums. - 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.
··· 52 unchanged paragraphs folded ···
not in v2.3
v2.4 · 11. Limitations15. **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.
··· 4 unchanged paragraphs folded ···
v2.3 · 12. Conclusions1. **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.
removed in v2.4
not in v2.3
v2.4 · 12. Conclusions1. **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.
··· 5 unchanged paragraphs folded ···
v2.3 · 12. Conclusions7. **Risk Analysis.** Ten principal risk categories with concrete mitigations, including failure recovery procedures, model update management, and real-time communication channel handling.
v2.4 · 12. Conclusions7. **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.
··· 7 unchanged paragraphs folded ···
v2.3 · 12. ConclusionsHIVEMIND is a design blueprint — not a finished system. It will evolve as models improve, enterprise integration matures, and regulators develop clearer frameworks. What we believe will endure is the fundamental tension it addresses: the value of coordination versus the necessity of boundaries. Every organization deploying AI at scale will face this tension. The answer is architecture: clear rules about what flows where, enforced at the right layer, audited continuously, with humans in the loop for consequential decisions.
removed in v2.4
not in v2.3
v2.4 · 12. ConclusionsHIVEMIND 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.
··· 26 unchanged paragraphs folded ···
Changed paragraphs in the same form, for scripts: JSON
· Markdown