Data & analysis

LYGO Pure-Data Witness

Try it

Teach agents to register pages into the LYGO Pure-Data lattice via the public register portal pack + safety-gated CLI. Archive URLs/files as digests (HTTPS-only, SSRF block, malware/ad heuristics, size cap), pack tiny eggs, rebuild ledger, emit Continuum claims and Star Chart NODE_PDW_* submissions. Use when user asks to witness, archive, pure-data register, PDW, or use the Data Vault register portal. Network only with --i-authorize-fetch; live chart writes need --i-consent. The pure_data_witness.py fetch path and all URL mode also require --i-authorize-fetch. The all chain additionally requires --i-confirm-chain (multi-step persistence warning). HF export pack is local-only and requires --i-consent + --i-authorize-hf-export.

What it does

Teach agents to register pages into the LYGO Pure-Data lattice via the public register portal pack + safety-gated CLI. Archive URLs/files as digests (HTTPS-only, SSRF block, malware/ad heuristics, size cap), pack tiny eggs, rebuild ledger, emit Continuum claims and Star Chart NODE_PDW_* submissions. Use when user asks to witness, archive, pure-data register, PDW, or use the Data Vault register portal. Network only with --i-authorize-fetch; live chart writes need --i-consent. The pure_data_witness.py fetch path and all URL mode also require --i-authorize-fetch. The all chain additionally requires --i-confirm-chain (multi-step persistence warning). HF export pack is local-only and requires --i-consent + --i-authorize-hf-export.

The skill document

LYGO Pure-Data Witness (ClawHub) v1.3.0

Train aligned agents to archive truth into Pure-Data Witness and grow the GALAXY_PURE_DATA_ARCHIVE fork log — using the register portal for humans and this skill’s CLI for execution.

Inspectable source: https://github.com/DeepSeekOracle/lygo-protocol-stack/tree/main/clawhub/mirrors/lygo-pure-data-witness
ClawHub: https://clawhub.ai/deepseekoracle/lygo-pure-data-witness
ClawHub security-audit: https://clawhub.ai/deepseekoracle/skills/lygo-pure-data-witness/security-audit
SkillSpector / audit response: references/SKILLSPECTOR_AUDIT.md (v1.3.0 closes fetch/all consent mismatch)

FULL unlocked zip (SkillHub): https://chatagent.ca/lygoskillhub.html#full-lygo · Pages: https://deepseekoracle.github.io/lygo-protocol-stack/LYGOSKILLHUB.html#full-lygo · package lygo-pure-data-witness-full.zip

Read first: references/SECURITY.md · references/SKILLSPECTOR_AUDIT.md · references/PORTAL_TRAINING.md

Declared permissions (least privilege)

CapabilityDefault
NetworkOff — enable per-call with --i-authorize-fetch
Subprocess / shellNone
WritesUnder --out only (witness / egg / ledger / submission JSON)
HF / git / social publishNonehf-pack is local folder build + dual consent flags

When to use

  • User wants to register a page/URL/file into the Pure-Data lattice.
  • Agent should teach or drive the register portal (pack → CLI → witness).
  • Archive with refuse-rewrites digests + optional egg + Continuum claims.
  • Emit Star Chart NODE_PDW_* submission JSON (fork/archive log).

When NOT to use

  • Fetching private IPs, metadata hosts, credential URLs, or obvious malware bait.
  • Live Star Chart ingest without explicit human --i-consent.
  • Auto git push / ClawHub / HF / social publish.
  • Claiming LIVE chart placement before steward rebuild.
  • Running hf-pack without dual consent and human review of outputs.

Portal → agent contract (core)

  1. Point humans at the register portal when they need a visible registration pack.
  2. Portal builds lygo_pdw_registration_pack_v1 — it does not fetch or write the chart (CORS + safety).
  3. Agent checks safety.ok. If false → stop and explain errors.
  4. After explicit user approval, run:
    • URL: pdw_cli.py register --url … --i-authorize-fetch --i-consent
    • File: pdw_cli.py register --file … --i-consent
  5. Return witness_id, ledger root, and *.star_submission.json path.
  6. Star Chart live accept = steward/stack gate — skill never silent-publishes the sky.

Full playbook: references/PORTAL_TRAINING.md.

Safety

ControlValue
Default networkOff (local digest)
URL fetchOnly --i-authorize-fetch + HTTPS safety gate
Malware bait strings in pure_data_safety.pyReject detector (not a miner) — see audit doc
SubprocessNo in skill CLI
Star Chart live writeSkill → *.star_submission.json; stack submit needs --i-consent
HF exportLocal pack only; --i-consent + --i-authorize-hf-export; no upload
SecretsRedaction heuristics — incomplete; never archive keys/cookies

Install

npx clawhub@latest install deepseekoracle/lygo-pure-data-witness

Optional stack clone for full register+map+chart:

export LYGO_STACK_ROOT=/absolute/path/to/lygo-protocol-stack

FULL unlocked engineer zip: https://chatagent.ca/lygoskillhub.html#full-lygo

Pair with lygo-haven-star-chart when submitting fork nodes to the live sky.

Commands

cd path/to/lygo-pure-data-witness
python scripts/self_check.py
python scripts/pdw_cli.py check-url --url https://example.com
python scripts/pdw_cli.py digest --file ./page.html --out ./pdw_out
python scripts/pdw_cli.py fetch --url https://example.com --out ./pdw_out --i-authorize-fetch
python scripts/pdw_cli.py register --url https://example.com --out ./pdw_out --i-authorize-fetch --i-consent
python scripts/pdw_cli.py register --file ./page.html --out ./pdw_out --i-consent
python scripts/pdw_cli.py ledger --dir ./pdw_out --ledger ./pdw_out/ledger.json
python scripts/pdw_cli.py verify --card ./pdw_out/PDW-….json

# Low-level witness CLI — same consent contract (do NOT omit flags):
python scripts/pure_data_witness.py fetch --url https://example.com --out ./pdw_out --i-authorize-fetch
# WARNING: 'all' chains egg + claims + ledger — requires confirmation:
python scripts/pure_data_witness.py all --file ./page.html --out ./pdw_out --i-confirm-chain
python scripts/pure_data_witness.py all --url https://example.com --out ./pdw_out \
  --i-authorize-fetch --i-confirm-chain

# Local export pack ONLY (does not upload). Review every file before HF publish.
python scripts/pure_data_witness.py hf-pack --dir ./pdw_out --pack ./hf_pack \
  --i-consent --i-authorize-hf-export

Avoid until flags present: bare pure_data_witness.py fetch or all --url without consent (blocked in v1.3.0).

Stack (when LYGO_STACK_ROOT set):

python tools/pure_data_register.py --url https://example.com --i-consent
python tools/map_pure_data_to_star_chart.py --json

Star Chart section

Witnesses map to:

  • Hub LATTICE_PURE_DATA_WITNESS
  • Root NODE_PDW_ROOT
  • Per-witness NODE_PDW_ (parent-linked fork chain)
  • Galaxy GALAXY_PURE_DATA_ARCHIVE / constellation pure_data_archive

Δ9Φ963 — digest authority · portal front door · detectors ≠ miners · consent before export.

Related skills

LYGO Sovereign Workflow Orchestrator — YAML workflows with P0 gate, P1 mycelium memory, P3 consensus, P5 run identity, and consent-gated kernel egg. Sandcast...

LYGO Public Witness — public feeds are REFERENCE, dual ledgers/eggs/Star Chart are CANON. HTTPS GET allowlist (USGS, NASA EONET, ISS, lattice JSON). Never invent missing sources. Never live Star Chart write. Optional localhost Ollama summary. Use when OSINT vs private intel, public witness globe, situational overlay, World Monitor / God's Eye ideas, or /lygo-public-witness.

LYGO file-integrity and provenance advisor — hash receipts, memory archive compression, seal vocabulary. Not medical cure; not P0–P9 core. Pairs with lygo-mi...

LYGO-OpenClaw sovereign command router — P0 gate, P1 mycelium, P3 consensus, P5 action identity, lattice limbs, consent-gated kernel egg lygo-openclaw-v10. B...

LYGO-MINT Verifier — canonicalize a pack, deterministic SHA-256, append-only + canonical ledgers, portable Anchor Snippet for posting anywhere (Moltbook/X/Discord/4claw). Pure local stdlib: no subprocess, no network, no auto-publish. Ledger writes need --i-consent. Pairs with lygo-mint-walkthrough, lygo-continuum-integrator, lygo-geodesic-sealer. Use for Champion/alignment prompt packs and verifiable receipts.

68 installs

Public lattice join + verify gate for foreign LYGO-aligned agents. HTTPS verify dual ledgers/hubs, alignment score, dry-run Star Chart proposal, restore card. Zero disk writes by default; no live chart write; no auto-publish. Install clawhub:@deepseekoracle/lygo-public-lattice-gate.

1 installs