narya-proofs
БесплатноБез исполняемых скриптовНе проверенMechanically verified proofs from Narya event logs. Verifies queue consistency, replay determinism, non-leakage, and GF(3) conservation. Use for proving…
от plurigrid★ 73 звезды на GitHubОб этом скилле
Narya Proofs Skill
Unified verification for event-sourced systems using JSONL interaction logs. Generates cryptographic proof certificates with GF(3) conservation guarantees.
Four Verifiers with GF(3) Assignments
| Verifier | Trit | Role | Color Range |
|---|---|---|---|
queue_consistency |
-1 | MINUS validator | Cold (180-300°) |
non_leakage |
-1 | MINUS validator | Cold (180-300°) |
replay_determinism |
0 | ERGODIC coordinator | Neutral (60-180°) |
gf3_conservation |
+1 | PLUS generator | Warm (0-60°, 300-360°) |
GF(3) Meta-Balance: Sum = -1 + -1 + 0 + 1 = -1 ≡ 2 (mod 3). Runner adds meta-trit +1 → 0 ≡ 0 (mod 3) ✓
Denotation
This skill generates cryptographic proof certificates for event-sourced systems, verifying that all invariants hold and ensuring consistency across distributed systems via mechanically checked proofs.
ProofBundle = ∏_{verifier} (Events → VerifierResult)
Certificate = sha256(Merkle(ProofBundle))
Verdict: VERIFIED ⟺ ∀ verifier: passed = true
Invariant Set
| Invariant | ID | Definition | Verifier |
|---|---|---|---|
QueueConsistency |
INV-001 | No duplicate event IDs, monotonic timestamps | queue_consistency |
ReplayDeterminism |
INV-002 | Same seed → same content hash | replay_determinism |
NonLeakage |
INV-003 | No PII/secrets in event content | non_leakage |
GF3Conservation |
INV-004 | Context trit sum ≡ 0 (mod 3) | gf3_conservation |
ProofIntegrity |
INV-005 | Certificate hash covers all verifier outputs | Hash verification |
GF(3) Typed Effects
| Verifier | Trit | Effect Type | Description |
|---|---|---|---|
queue_consistency |
-1 | VALIDATOR | No state mutation, validates structure |
non_leakage |
-1 | VALIDATOR | No state mutation, validates schema |
replay_determinism |
0 | COORDINATOR | Ensures deterministic replay coordination |
gf3_conservation |
+1 | GENERATOR | Generates proof of conservation |
Narya Compatibility
| Field | Definition |
|---|---|
before |
Initial event log (JSONL) |
after |
Proof bundle with all verifier results |
delta |
Proof of state transition (certificate) |
birth |
Empty event log |
impact |
1 if any verifier fails (state change from VERIFIED to FAILED) |
Condensation Policy
Trigger: When all 4 verifiers pass for 3 consecutive verification cycles.
Action: Archive event log segment, emit condensed proof certificate.
Proof Objects and Certificates
from dataclasses import dataclass
@dataclass
class VerifierResult:
name: str # Verifier name
trit: int # GF(3) assignment {-1, 0, +1}
passed: bool # Verification passed
details: dict # Violation details
@dataclass
class ProofBundle:
log_path: str # Source JSONL file
events_total: int # Total events processed
verifiers: dict # Results per verifier
overall: str # "VERIFIED" or "FAILED"
proof_hash: str # sha256:... certificate
gf3_meta: dict # Trit conservation metadata
Narya JSONL Log Format
Each line is a JSON object representing an event:
{"event_id": "e1", "timestamp": 1735084800.0, "thread_id": "t1", "trit": -1, "context": "workflow-A", "delta": {"type": "queue_item", "queue_id": "q1", "agent_of": 1, "item_of": "i1", "route": 1}, "content": {"action": "enqueue"}}
{"event_id": "e2", "timestamp": 1735084801.0, "thread_id": "t1", "trit": 0, "context": "workflow-A", "delta": {"type": "route_update", "interaction_id": "i1", "agent_id": 1}, "seed": 42}
{"event_id": "e3", "timestamp": 1735084802.0, "thread_id": "t1", "trit": 1, "context": "workflow-A", "delta": {"type": "agent_assignment", "queue_id": "q1", "agent_id": 1}}
Required fields: event_id
Optional fields: timestamp, thread_id, trit, context, delta, content, seed, before_hash, after_hash
1. Queue Consistency (Diagram Commutativity)
Claim: agent_of(q) = route(item_of(q)) always holds.
agent_of
Queue q ────────────► Agent a
│ ▲
│ item_of │ route
▼ │
Interaction i ───────────┘
Verifies that the diagram commutes for every event touching agent_of, item_of, or route.
from src.narya_proofs.queue_consistency import (
QueueConsistencyVerifier,
generate_proof_certificate,
NaryaEvent
)
verifier = QueueConsistencyVerifier(seed=1069)
log = [
NaryaEvent(event_id="e1", before_hash="000", after_hash="abc",
delta={"type": "queue_item", "queue_id": "q1",
"agent_of": 1, "item_of": "i1", "route": 1})
]
summary = verifier.verify_log(log)
cert = generate_proof_certificate(log, seed=1069)
# cert["verdict"] == "VERIFIED"
2. Replay Determinism (Hash Replay, Time-Travel)
Claim: Events with
Установить narya-proofs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл narya-proofs?
Mechanically verified proofs from Narya event logs. Verifies queue consistency, replay determinism, non-leakage, and GF(3) conservation. Use for proving system invariants, audit trails, or formal verification of event-sourced systems.
Как установить скилл narya-proofs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл narya-proofs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic