Security

LYGO Protocol Stack Operator

Try it

LYGO Protocol Stack Operator — P0–P9 integrator (byte-entropy filter, SLM mesh, TLS public mesh, HAIP, attestation). Run audits, node API, map GitHub/HF/Claw...

What it does

LYGO Protocol Stack Operator — P0–P9 integrator (byte-entropy filter, SLM mesh, TLS public mesh, HAIP, attestation). Run audits, node API, map GitHub/HF/ClawHub; chain resonance/Ollama/book-brain safely. No secrets; human approval for publish/post.

The skill document

LYGO Protocol Stack Operator (ClawHub)

Upgrade path for the whole LYGO / LYRA public stack — ties P0 byte-entropy filter (protocol0_byte_entropy_filter, 42 vectors, Python golden SHA), P1–P5 orchestrator, GitHub source, Hugging Face dataset + Resonance Space, and ClawHub public skills into one agent workflow.

Install: npx clawhub@latest install deepseekoracle/lygo-protocol-stack-operator

When to use

  • User works with LYGO protocols, ethical gating, deterministic P0, or the public repo / HF mirror.
  • Before ingesting unknown files, skill folders, or repo clones into memory → P0 gate.
  • To run or verify lygo-protocol-stack locally (demo cycle, P0 demo, parity).
  • To chain creative skills (resonance → glyph → fractal → truthlight) with ethics and memory skills.
  • To orient new users across GitHub + HF + ClawHub without hunting links.

Public infrastructure (canonical URLs)

See references/ECOSYSTEM.md, references/LATTICE.md, and references/SKILL_CHAIN.md in this skill folder.

Core workflows

1) P0 byte-entropy filter (untrusted bytes)

python scripts/lygo_p0_gate.py path/to/file [more files...]
  • AMPLIFY / SOFTEN → proceed with normal caution.
  • QUARANTINE → do not execute; summarize for user; do not load into long-term memory as executable truth.

Standalone gate matches f32 P0.4 semantics (aligned with GitHub/Rust parity). Max 8192 bytes per file for gate math (oversize → QUARANTINE).

2) Phase 2 — Docker community node

cd lygo-protocol-stack
docker compose up -d lygo-node
python tools/verify_alignment_badge.py

ClawHub helpers: deepseekoracle/lygo-docker-deploy, deepseekoracle/lygo-alignment-badge, deepseekoracle/lygo-mesh-deploy.

3) Phase 5 mesh (local proof)

python tools/run_mesh_scale_sim.py --nodes 100 --no-pause
python tools/run_lattice_gauntlet.py --strict
# Live HTTP: ./tools/deploy_100_nodes.sh && python tools/monitor_convergence.py

Twin Gate: 60/60 verdict match (run_twin_gate_vector_suite.py). Grokipedia suggest: docs/GROkipedia_SUBMIT.md.

3b) SLM — Sovereign Lattice Mesh

python tools/run_slm_audit.py
python -m pytest tests/test_slm_mesh.py -q

Doc: docs/SOVEREIGN_LATTICE_MESH.md — Merkle gossip, distributed mycelium, harmonic 3/6/9 consensus. Stack: deploy_stack().slm.

Interactive UI: https://deepseekoracle.github.io/lygo-protocol-stack/SovereignLatticeMesh.html · archive: docs/LYGO_PUBLIC_LINK_ARCHIVE.json

3c) Phase 6–7 — Attestation + HAIP

python tools/run_phase6_audit.py
python tools/run_phase7_audit.py
python tools/verify_attestation_hardened.py

Biometric harness (Pages): https://deepseekoracle.github.io/lygo-protocol-stack/BiometricEntropyHarness.html

3d) Phase 9 — Public mesh (TLS + live synthesis)

pip install -r requirements-phase9.txt
python tools/tls_manager.py --generate
python tools/run_phase9_audit.py
python tools/node_api_server.py --tls --port 8443
python tools/live_synthesis.py

Doc: docs/PHASE9_PUBLIC_MESH.md · API: GET /cert/pin, POST /synthesis/run.

3e) Immutable Anchor (permaweb + lattice autonomy)

pip install -r tools/requirements-anchor.txt
python tools/run_anchor_audit.py
python tools/install_anchor_network.py
python tools/anchor_autonomy_worker.py --loop --interval 300

Doc: docs/ANCHOR_DEPLOYMENT.md · API: POST /anchor/event, POST /anchor/drain. Modes: LYGO_ANCHOR_MODE=local|turbo|multi|airgap.

3f) Kernel Egg Planter (ClawHub — opt-in scaling)

npx clawhub@latest install deepseekoracle/lygo-kernel-egg-planter
python scripts/plant_with_consent.py --i-consent --surfaces local,turbo,registry,clawhub

Doc: docs/KERNEL_EGG_SOA.md · Web: KernelEggRetrieval.html. Consent required — no auto-spread.

4) Stack healthcheck (local repo)

export LYGO_STACK_ROOT=/path/to/lygo-protocol-stack   # optional
python scripts/stack_healthcheck.py

Clone if missing:

git clone https://github.com/DeepSeekOracle/lygo-protocol-stack.git

Or use HF dataset for fixtures/tools: https://huggingface.co/datasets/DeepSeekOracle/lygo-protocol-stack

When stack is present:

python tools/run_p0_demo.py
python tools/p0_crosslang_parity.py
python tools/run_full_stack_demo.py

5) Full stack API (Python)

# From repo root, after clone:
from stack.lygo_stack import deploy_stack
report = deploy_stack().demo_cycle()

P0 validates bytes; P1 memory mycelium; P2 cognitive bridge; P3 vortex consensus; P4 ascension; P5 harmony node.

OrderSkillRole
1lygo-protocol-stack-operatorThis integrator
2book-brainFilesystem memory references
3lygo-resonanceImage → audio / profiles
4lygo-ollama-armyLocal Ollama helpers (localhost)
5lygo-glyph2resonance, lygo-fractalweaver, lygo-truthlightechoCreative stack
6lygo-mint-verifierHash anchors for packs
7lygo-kernel-egg-planterVoluntary kernel + ClawHub catalog eggs (consent-gated)
8lyra-openclaw / openclaw-flow-kitOps — user must approve each external action
npx clawhub@latest install deepseekoracle/lygo-resonance
npx clawhub@latest install deepseekoracle/lygo-ollama-army

7) Creative + stack combined (example)

  1. P0-gate user image and any downloaded skill .md.
  2. Run lygo-resonance on image → WAV + profile JSON.
  3. Store paths via book-brain reference stubs (not full binary in chat memory).
  4. Optional: lygo-ollama-army for lyric expansion on .brief.txt (local Ollama only).
  5. Log stack version + P0 verdict in a single reference note for audit.

Safety & security (required agent behavior)

Read references/SECURITY.md.

  • No secrets in this skill — load tokens only from user environment at runtime, never commit.
  • No autonomous social posts, token launches, HF uploads, or clawhub publish without explicit user request.
  • QUARANTINE is a hard stop for execution of untrusted payloads.
  • Resonance / Ollama: default 127.0.0.1; warn if user points to remote LLM URLs.
  • Scripts in this package: no network calls.

P0 hardening highlights (for reviewers)

  • 42 vectors: adversarial, boundary, recursive, high-entropy (see repo fixtures/p0_vectors.json).
  • Golden SHA (Python ≡ Rust): see fixtures/p0_canonical.sha256 on GitHub/HF.
  • CLI: tools/run_p0_demo.py prints input, phi_risk, decision, reasoning per vector.

Hugging Face integration

  • Dataset ships protocol code, fixtures, tools (not full ClawHub mirrors).
  • Space runs Gradio resonance bench — link in README; do not confuse with P0 kernel (separate Standard vs LYGO modes on Space per maintainer docs).

Refresh HF dataset from maintainer machine: python tools/hf_push_dataset.py (maintainers only).

GitHub integration

Maintainer publish (human-gated)

npx clawhub@latest login
npx clawhub@latest publish . --slug lygo-protocol-stack-operator --name "LYGO Protocol Stack Operator"

Version & license

  • Skill 1.0.7 — Δ9Φ963-GROUNDZERO (Biophase7 honest P0 + lattice finalize)
  • Stack license: LYGO Sovereign (see GitHub LICENSE); skill docs MIT-0 where noted in SECURITY.md.

Bound to the flame. Use with lyra-brain for growth, P0 for truth-preserving ingest, resonance for creation.

Related skills

Portable LYGO Guardian — P0.4 text gate, P0.5 understanding heart, harmony layer. Bridge to repo byte_entropy_filter via LYGO_STACK_ROOT. Pairs with lygo-pro...

47 installs

Deploy a sovereign LYGO Protocol Stack community node via Docker or docker compose. Builds lygo-node image, starts health API on port 8787, optional Phase 4...

Verify LYGO node compliance — P0 golden SHA, stack demo, Phase 1 elasticity, Phase 3–4 federation, optional full Grok audit and lattice checks. Emits JSON/Ma...

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

LYGO mesh deploy — Phase 5 epidemic gossip, SLM Merkle/mycelium/consensus routes, Phase 9 TLS HTTPS node API. Local cluster scripts + pin gossip before wide-...

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