Xpersona
W

Weave

CLAWHUB · Unverified

Private provenance-backed social graph. Maintains queryable records of people, relationships, preferences, and shared experiences for recall, gifting, hostin... Skill: Weave Owner: indigokarasu Summary: Private provenance-backed social graph. Maintains queryable records of people, relationships, preferences, and shared experiences for recall, gifting, hostin... Tags: latest:2.3.0 Version history: v2.3.0 | 2026-03-28T07:36:02.993Z | auto **ocas-weave 2.3.0 changelog** - Added README.md for general documentation. - Introduced references/init_pattern.md for database initializat

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 s17bp0q5q5x87yfrmb4876eywh83rcts:ocas-weave
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-indigokarasu-ocas-weave/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

105,616 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ocas-weave
source: https://github.com/indigokarasu/weave
install: openclaw skill install https://github.com/indigokarasu/weave
description: Use when storing or retrieving facts about people, recording relationships, preparing for meetings, finding gift ideas, discovering connections between people, or syncing contacts. Maintains a private provenance-backed social graph (LadybugDB). Trigger phrases: 'who do I know in', 'what does X like', 'add this person', 'relationship with', 'gift ideas for', 'sync contacts', 'prepare for meeting with', 'update weave'. Do not use for OSINT investigations (use Scout) or general web research (use Sift).
metadata: {"openclaw":{"emoji":"🕸️"}}
---

# Weave

Weave maintains a private, provenance-backed social graph of people, relationships, preferences, and shared experiences — queryable for meeting prep, gift ideas, hosting, introductions, city connections, and serendipity discovery. Every stored fact carries source type, reference, timestamp, and confidence score; the graph never silently merges two person records and never writes back to external systems without explicit per-sync approval. All queries use Cypher — no SQL. The database initializes automatically on first use.


## When to use

- Store or update information about a person, relationship, or preference
- Look up who someone is, how they relate to others, or what they like
- Prepare for a meeting, dinner, or introduction
- Find who you know in a given city
- Generate gift ideas grounded in known preferences
- Discover serendipity connections between people
- Sync contacts from Google Contacts or Clay


## When not to use

- Web research without a social graph need — use Sift
- OSINT investigations on people — use Scout
- CRM or sales pipeline automation
- Personality profiling without evidence


## Responsibility boundary

Weave owns the private social graph: people, relationships, preferences, and shared experiences.

Weave does not own: general world knowledge (Elephas/Chronicle), OSINT research (Scout), web research (Sift), task management (Triage).

Weave is a standalone database. It does not write to Chronicle and has no runtime dependency on Chronicle. If a person in Weave also exists in Chronicle, Chronicle may store a `weave:person_id` reference on its Entity node. That is Chronicle's concern, not Weave's.


## Storage layout

```
~/openclaw/db/ocas-weave/
  weave.lbug          — LadybugDB database (auto-created on first use)
  config.json         — connector and sync configuration
  staging/            — temporary import/export files

~/openclaw/journals/ocas-weave/
  YYYY-MM-DD/
    {run_id}.json     — one journal per run
```


Default config.json:
```json
{
  "skill_id": "ocas-weave",
  "skill_version": "2.3.0",
  "config_version": "1",
  "created_at": "",
  "updated_at": "",
  "writeback": {
    "google_contacts": false,
    "clay": false
  },
  "last_sync": {
    "google_contacts": null,
    "clay": null
  },
  "retention": {
   

README.md

# 🕸️ Weave

Weave maintains a private, provenance-backed social graph of people, relationships, preferences, and shared experiences -- queryable for meeting prep, gift ideas, hosting, introductions, city connections, and serendipity discovery. Every stored fact carries source type, reference, timestamp, and confidence score; the graph never silently merges two person records and never writes back to external systems without explicit per-sync approval.

---

## Overview

Weave maintains a private social graph where every stored fact carries provenance -- source type, reference, timestamp, and confidence score. It is designed for the kind of knowledge that matters in relationships: who someone is, how they connect to others, what they like, what experiences you have shared. Queries support meeting prep, gift ideas, hosting context, city connections, and serendipity discovery across the graph. The database never silently merges two person records, never writes back to external systems without explicit per-sync approval, and uses only Cypher for all graph operations. The underlying database (LadybugDB) initializes automatically at `~/openclaw/db/ocas-weave/weave.lbug`.

## Commands

| Command | Description |
|---|---|
| `weave.upsert.person` | Add or update a person record |
| `weave.upsert.relationship` | Add or update a Knows edge between two people |
| `weave.upsert.preference` | Store a provenance-backed preference for a person |
| `weave.import.csv` | Bulk import contacts via COPY FROM |
| `weave.query` | Query the graph (lookup, connection, serendipity, city, summarize, gift modes) |
| `weave.attach` | Query an external skill database read-only |
| `weave.export` | Export data to staging directory via COPY TO |
| `weave.sync.google-contacts` | Bidirectional sync with Google Contacts |
| `weave.sync.clay` | Bidirectional sync with Clay |
| `weave.project.vcard` | Generate vCard 4.0 draft |
| `weave.writeback.contacts` | Push records to Google Contacts or Clay (disabled by default) |
| `weave.init` | Diagnostic and repair: checks schema, creates missing tables |
| `weave.status` | Graph health and config state |
| `weave.journal` | Write journal for the current run |
| `weave.update` | Pull latest from GitHub source (preserves journals and data) |

## Setup

`weave.init` runs automatically on first invocation and creates all required directories, config.json, and the LadybugDB database. No manual setup is required. It also registers the `weave:update` cron job (midnight daily) for automatic self-updates.

## Dependencies

**OCAS Skills**
- [Elephas](https://github.com/indigokarasu/elephas) -- Chronicle enrichment read-only
- [Scout](https://github.com/indigokarasu/scout) -- OSINT findings as upsert candidates
- [Dispatch](https://github.com/indigokarasu/dispatch) -- social context for communication drafting

**External**
- LadybugDB -- embedded single-file graph database (auto-created at `~/openclaw/db/ocas-weave/weave.lbug`)
- Google Contacts (

_meta.json

{
  "ownerId": "kn7fvej534qyxcfd9388xh7c1d82942k",
  "slug": "ocas-weave",
  "version": "2.3.0",
  "publishedAt": 1774683362993
}

references/connectors.md

# Connectors

Bidirectional sync for Google Contacts and Clay. Both connectors run within the same process as Weave, sharing the same Database object. Never open a connector as a separate READ_WRITE process while Weave has the database open.

Sync state is stored in `~/openclaw/db/ocas-weave/config.json`.

## Rules (both connectors)

Inbound always runs before outbound in a sync session.
Conflict resolution: Weave provenance wins. External data fills gaps; it does not overwrite higher-confidence Weave records.
Outbound requires the relevant writeback flag `true` in config AND explicit per-sync user approval. Neither alone is sufficient.
Report counts after every sync: N upserted, N skipped, N pushed, N failed.

## Google Contacts

API: Google People API v1. Scope: `https://www.googleapis.com/auth/contacts`.

Field map (Google → Weave):

resourceName → google_resource_name
names[0].displayName → name
names[0].givenName → name_given
names[0].familyName → name_family
emailAddresses[0].value → email
phoneNumbers[0].value → phone
organizations[0].name → org
organizations[0].title → occupation
addresses[0].city → location_city
addresses[0].countryCode → location_country
biographies[0].value → notes

Inbound sync:

```python
import real_ladybug as lb, uuid
from datetime import datetime, timezone
from googleapiclient.discovery import build
from pathlib import Path

DB_PATH = Path("~/openclaw/db/ocas-weave/weave.lbug").expanduser()

def sync_inbound_google(db, creds):
    conn = lb.Connection(db)
    service = build("people", "v1", credentials=creds)
    now = datetime.now(timezone.utc).isoformat()
    contacts, page_token = [], None
    while True:
        resp = service.people().connections().list(
            resourceName="people/me", pageSize=1000,
            personFields="names,emailAddresses,phoneNumbers,organizations,addresses,biographies",
            pageToken=page_token
        ).execute()
        contacts.extend(resp.get("connections", []))
        page_token = resp.get("nextPageToken")
        if not page_token:
            break

    upserted = skipped = 0
    for c in contacts:
        rn = c.get("resourceName")
        name = (c.get("names") or [{}])[0].get("displayName", "")
        if not name:
            skipped += 1
            continue
        existing = list(conn.execute(
            "MATCH (p:Person {google_resource_name: $rn}) RETURN p.id",
            {"rn": rn}
        ))
        pid = existing[0][0] if existing else str(uuid.uuid4())
        conn.execute("""
            MERGE (p:Person {id: $id})
            SET p.google_resource_name=$rn, p.name=$name,
                p.name_given=$given, p.name_family=$family,
                p.email=$email, p.phone=$phone, p.org=$org,
                p.occupation=$title, p.location_city=$city,
                p.location_country=$country, p.notes=$notes,
                p.source_type='imported', p.source_ref=$rn,
                p.confidence=0.8, p.record_time=$now
        """, {
            

references/cross_db.md

# Cross-DB Linking

LadybugDB supports read-only queries against external `.lbug` databases. Weave may query other skill databases for enrichment. Never open another skill's database as READ_WRITE.

## Key constraints

Attached and externally opened databases are READ-ONLY.
Only one ATTACH active at a time. After ATTACH, the active context switches — weave.lbug is inaccessible until DETACH.
Do not ATTACH while a write transaction on weave.lbug is in progress.

## Cypher ATTACH pattern

```cypher
ATTACH '~/openclaw/db/{skill-name}/{skill-name}.lbug' AS {alias} (dbtype lbug)
-- run read-only queries --
DETACH {alias};
```

List attached databases:
```cypher
CALL SHOW_ATTACHED_DATABASES() RETURN *;
```

## Python direct open (preferred for scripts)

Two Database objects pointing to different files never conflict — the lock is per-file.

```python
import real_ladybug as lb
from pathlib import Path

OCAS_BASE = Path("~/openclaw").expanduser()

def query_external_db(skill_name: str, cypher: str, params: dict = None):
    """Open an external lbug READ_ONLY and execute a query. Releases lock immediately."""
    db_path = OCAS_BASE / f"db/{skill_name}/{skill_name.split('-', 1)[-1]}.lbug"
    db = lb.Database(str(db_path), read_only=True)
    conn = lb.Connection(db)
    rows = list(conn.execute(cypher, params or {}))
    del conn, db
    return rows
```

## Known OCAS skill databases

ocas-elephas -- `~/openclaw/db/ocas-elephas/chronicle.lbug` -- entity knowledge graph, maintained by Elephas
ocas-triage -- `~/openclaw/db/ocas-triage/triage.lbug` -- task graph and priority queues
ocas-scout -- `~/openclaw/db/ocas-scout/scout.lbug` -- OSINT research findings

If a skill's path is unknown, check its SKILL.md storage layout section.

## Chronicle enrichment example

Chronicle may store a `weave:person_id` identifier on Entity nodes for people that exist in both systems. To find Chronicle context for a Weave person:

```python
rows = query_external_db(
    "ocas-elephas",
    """
    MATCH (e:Entity)
    WHERE e.type = 'Person' AND lower(e.name) CONTAINS lower($name)
    RETURN e.id, e.name, e.identifiers
    LIMIT 5
    """,
    {"name": person_name}
)
```

Weave reads this for enrichment only. Weave does not write to Chronicle and has no dependency on Chronicle being available.

## What not to do

Never open another skill's database as READ_WRITE.
Never run COPY FROM sourced from an attached database — export to staging CSV first, then import.
Never ATTACH while an uncommitted write transaction is active on weave.lbug.

Sponsored

Ads related to Weave and adjacent AI workflows.