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)
| Capability | Default |
|---|---|
| Network | Off — enable per-call with --i-authorize-fetch |
| Subprocess / shell | None |
| Writes | Under --out only (witness / egg / ledger / submission JSON) |
| HF / git / social publish | None — hf-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-packwithout dual consent and human review of outputs.
Portal → agent contract (core)
- Point humans at the register portal when they need a visible registration pack.
- Portal builds
lygo_pdw_registration_pack_v1— it does not fetch or write the chart (CORS + safety). - Agent checks
safety.ok. If false → stop and explain errors. - After explicit user approval, run:
- URL:
pdw_cli.py register --url … --i-authorize-fetch --i-consent - File:
pdw_cli.py register --file … --i-consent
- URL:
- Return
witness_id, ledger root, and*.star_submission.jsonpath. - Star Chart live accept = steward/stack gate — skill never silent-publishes the sky.
Full playbook: references/PORTAL_TRAINING.md.
Safety
| Control | Value |
|---|---|
| Default network | Off (local digest) |
| URL fetch | Only --i-authorize-fetch + HTTPS safety gate |
Malware bait strings in pure_data_safety.py |
Reject detector (not a miner) — see audit doc |
| Subprocess | No in skill CLI |
| Star Chart live write | Skill → *.star_submission.json; stack submit needs --i-consent |
| HF export | Local pack only; --i-consent + --i-authorize-hf-export; no upload |
| Secrets | Redaction 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_<hex>(parent-linked fork chain) - Galaxy
GALAXY_PURE_DATA_ARCHIVE/ constellationpure_data_archive
Δ9Φ963 — digest authority · portal front door · detectors ≠ miners · consent before export.
