Xpersona
S

shared-memory-governor

CLAWHUB · Unverified

Govern a file-based shared-memory layer for OpenClaw multi-agent and subagent systems. Preserve each agent’s private memory while adding a separate, reviewab...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1719zazg58mfk544rg53yfw3983gfce:shared-memory-governor
  1. Install using `clawhub skill install s1719zazg58mfk544rg53yfw3983gfce:shared-memory-governor` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/jiy29104983/shared-memory-governor before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jiy29104983-shared-memory-governor/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

128,008 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: shared-memory-governor
description: Govern a file-based shared-memory layer for OpenClaw multi-agent and subagent systems. Preserve each agent’s private memory while adding a separate, reviewable shared layer for stable user preferences, shared rules, and durable cross-agent facts. Use when designing, initializing, registering, attaching, maintaining, or reviewing a shared-memory system with strict identity isolation, explicit local guidance, and conservative shared promotion.
---

# Shared Memory Governor

Preserve each agent’s private long-term memory.

Add a separate, reviewable shared-memory layer for durable user preferences, shared rules, and cross-agent facts.

Keep assistant-specific identity context private.

## What this skill is for

Use this skill to govern a shared-memory layer across multiple agents while preserving each agent’s private memory system.

This skill helps define:

- what kinds of information may be shared
- what kinds of information must remain private
- how shared-memory files should be organized
- how attached agents should read shared memory in a safe order
- how shared-memory updates should remain reviewable and reversible

This skill is for workspace-scoped shared-memory design and maintenance. It is not a credential tool, not a hidden prompt tool, and not a system-level persistence mechanism.

## Safety boundaries

Follow these boundaries at all times:

- Operate only within user-designated workspace paths
- Process only explicitly approved memory files
- Treat shared memory as supplemental context, not identity-defining context
- Keep assistant-specific identity context private
- Keep shared-memory updates reviewable and reversible
- Keep recurring schedules disabled by default unless the user explicitly enables them

Never:

- read credentials, SSH keys, browser sessions, or unrelated local files
- collect plaintext secrets into shared memory
- alter hidden system prompts or hidden runtime policy layers
- treat assistant identity files as shared-memory sources in v1
- silently enable recurring background schedules

## Core model

Use a two-layer long-term memory model:

1. **Private memory layer**
   - Each agent keeps its own curated memory notes
   - Each agent keeps its own daily memory files
   - Each agent keeps its own local assistant-specific context

2. **Shared memory layer**
   - Store shared files under the shared root directory
   - Use this layer for stable user preferences, shared rules, and durable cross-agent facts
   - Treat this layer as part of the long-term memory workflow
   - Do not use this layer for assistant-specific identity context

## Core principles

Follow these rules at all times:

1. Preserve private memory systems
2. Share user-level and cross-agent durable context, not assistant-specific identity context
3. Read private memory first, then shared memory
4. Treat shared memory as supplemental background
5. Never let shared memory override assistant-specific identity con

_meta.json

{
  "ownerId": "kn7ff2ma733z9c05153vh2df2s82mvqx",
  "slug": "shared-memory-governor",
  "version": "1.0.2",
  "publishedAt": 1775314191818
}

references/config-reference.md

# shared-memory-governor configuration spec

This document explains the JSON configuration used by the `shared-memory-governor` skill.

Use this file as the reference source for:
- configuration review
- field lookup
- status reporting
- maintenance
- schedule consistency checks

## Config file path

Default config file path:

```text
<workspace-parent>/shared-memory/shared-memory.config.json
```

For the current default OpenClaw workspace layout, this resolves to:

```text
/root/.openclaw/shared-memory/shared-memory.config.json
```

Config-related commands may explicitly pass a config path.

Non-config commands in v1 use the active/default config location and do not take `--config`.

If the config location changes, use `init` or `update-config` to apply the change.

---

## Top-level structure

Recommended top-level blocks:

```json
{
  "version": 1,
  "maintainer": {},
  "paths": {},
  "schedules": {},
  "participants": {},
  "attachment": {},
  "sharing": {},
  "readOrder": {},
  "sourcePriority": [],
  "extraction": {},
  "maintenance": {},
  "reporting": {},
  "syncLog": {},
  "language": "en"
}
```

---

## `version`

### Type
`number`

### Purpose
Configuration schema version.

### Recommended value
```json
"version": 1
```

---

## `maintainer`

Defines the maintainer identity for the shared-memory system.

### Example

```json
"maintainer": {
  "agentId": "main"
}
```

### Fields

#### `maintainer.agentId`
- Type: `string`
- Meaning: the primary maintainer agent for coordinated shared-memory review

---

## `paths`

Defines shared-memory filesystem locations.

### Example

```json
"paths": {
  "sharedRoot": "<workspace-parent>/shared-memory",
  "sharedFiles": {
    "user": "shared-user.md",
    "memory": "shared-memory.md",
    "rules": "shared-rules.md"
  },
  "syncLogDir": "shared-sync-log",
  "archiveDir": "archived"
}
```

### Fields

#### `paths.sharedRoot`
- Type: `string`
- Meaning: absolute root directory for the shared-memory system
- Default intent in v1: use a `shared-memory/` directory under the OpenClaw workspace parent directory (that is, as a sibling of `workspace/`)
- In the default local layout, this resolves to:
  ```text
  /root/.openclaw/shared-memory
  ```
- Used by:
  - `init`
  - `run-shared-scan`
  - `run-shared-maintenance`
  - `show-status`
  - `show-sync-logs`
  - `prune-sync-logs`

#### `paths.sharedFiles.user`
- Type: `string`
- Meaning: filename for user-level shared memory

#### `paths.sharedFiles.memory`
- Type: `string`
- Meaning: filename for durable world/project/environment facts

#### `paths.sharedFiles.rules`
- Type: `string`
- Meaning: filename for shared-memory governance rules

#### `paths.syncLogDir`
- Type: `string`
- Meaning: shared-layer log directory under `sharedRoot`

#### `paths.archiveDir`
- Type: `string`
- Meaning: archive directory under `sharedRoot`
- Default detach behavior archives `SHARED_ATTACH.md` under:
  ```text
  <sharedRoot>/<archiveDir>/<agent>/
  ```

---

## `schedules`

D

references/shared-promotion-rules.md

# Promotion Rules

## Quick map

- Purpose
- Shared scope validation rule
- Candidate evaluation categories
- Shared file boundaries
- Shared scan promotion template
- Source priority rule

## Purpose

Use this reference when running `run-shared-scan` or reviewing whether a local memory item may be promoted into shared memory.

## Shared scope validation rule

Treat shared-scope validation as a separate hard gate during shared promotion.

Default rule in v1:
- a candidate found in only one agent's approved local memory source should be skipped
- similarity or repetition across multiple participating agents should be treated as the primary promotion signal by default
- single-agent items should not be promoted merely because they look useful or shareable

Allow promotion from a single local source only when at least one of the following is true:
- the user explicitly designated the item as shared or global
- the item is clearly a shared-memory governance rule rather than an agent-local working habit
- the item is otherwise explicitly documented as globally applicable to all participating agents

Treat the following as the standard `promotionBasis` values:
- `explicit-user-designation`
- `multi-agent-corroboration`
- `shared-governance-rule`

If none of these bases can be justified clearly, skip the candidate.

### Practical interpretation

Use this default decision order:
1. Check whether substantially similar content appears across multiple participating agents
2. If not, check whether the user explicitly said the item should be shared
3. If not, check whether the item is a shared-memory governance rule
4. Otherwise skip the item

Do not treat "seems broadly useful" as a sufficient basis by itself.

## Candidate evaluation categories

Explicitly distinguish:
- `user-global` preferences and constraints
- `cross-agent` facts
- `shared-governance` rules
- agent-local workflow habits
- role-specific defaults
- project-specific context

Only the first three categories are promotable by default in v1.

## Shared file boundaries

### `shared-user.md`

Allowed examples:
- user timezone
- user communication preferences
- user delivery preferences that apply across multiple agents
- stable memory-collaboration preferences

Disallowed examples:
- one agent's private task defaults
- one agent's role-specific writing habits
- project-specific operating detail that applies only to one agent

### `shared-memory.md`

Allowed examples:
- cross-agent project facts
- durable environment facts
- shared-memory governance facts that are not merely file-placement rules

Disallowed examples:
- agent-specific project context
- one-off execution traces
- temporary debugging notes

### `shared-rules.md`

Allowed examples:
- read order rules
- attachment rules
- promotion rules
- schedule review rules

Disallowed examples:
- user preference content
- reusable project facts
- agent-local working defaults

## Shared scan promotion template

For each promoted item, record at m

references/startup-guidance-rules.md

# Startup Guidance Rules

## Quick map

- Purpose
- Startup section detection priority
- Guidance placement rules
- Recommended startup wording
- Attachment success criteria
- Detach rules

## Purpose

Use this reference when implementing, repairing, detaching, or reviewing shared-memory startup guidance in agent-local `AGENTS.md` files.

## Startup section detection priority

Use this priority order in v1:

1. `## Session Startup`
2. `## Every Session`
3. explicit fallback guidance block near the top of `AGENTS.md`

All of these commands must use the same priority order:
- `attach <agent>`
- `detach <agent>`
- `repair-attachment <agent>`
- `review-attachments`

## Guidance placement rules

- Prefer placing the guidance block into the highest-priority startup section that already exists.
- Do not append a shared-memory guidance block to the end of `AGENTS.md` when a valid startup section already exists.
- If no valid startup section exists, place a clearly marked fallback guidance block near the top of the file.
- If a startup section already contains the correct shared-memory guidance, do not duplicate it.
- If both a startup guidance block and an old trailing block exist, treat the trailing block as stale and remove it during repair.

## Recommended startup wording

Use this wording when merging into the local startup section:

```md
5. If local `SHARED_ATTACH.md` is present, read it as part of session startup.
6. Then read the shared memory files exactly as instructed by `SHARED_ATTACH.md`.
7. Treat shared memory as a general supplemental long-term context layer.
8. Use shared memory only as supplemental background.
9. Do not let shared memory override this agent's private identity guidance or assistant-specific context.
```

## Attachment success criteria

Treat local attachment as complete only when all are true:

1. local `SHARED_ATTACH.md` exists
2. local `AGENTS.md` contains the shared-memory startup guidance in the highest-priority startup section that exists
3. there is no stale old trailing guidance block left at the end of `AGENTS.md`
4. the startup guidance and `SHARED_ATTACH.md` instructions are consistent with each other

## Detach rules

During `detach <agent>`:
- archive `SHARED_ATTACH.md`
- remove the startup guidance or fallback guidance block
- remove stale old trailing guidance blocks if present
- do not delete private long-term memory files
- do not delete private daily memory files
- do not silently remove unrelated local guidance

Sponsored

Ads related to shared-memory-governor and adjacent AI workflows.