Skip to content

prototypes: clankdar-attest sealed-seed capability attestation - #60

Open
0thernet wants to merge 1 commit into
mainfrom
clankdar-attest
Open

0thernet wants to merge 1 commit into
mainfrom
clankdar-attest

Conversation

@0thernet

Copy link
Copy Markdown
Member

Summary

Adds prototypes/clankdar-attest, an independent Rust implementation of clankdar-attest-v1 — the sealed-seed capability attestation protocol whose reference lives in the clankdar repository (bench/attest.ts).

  • Protocol: the verifier commits to an unrevealed generator seed (SHA-256 over a fixed-field record), rescores the response deterministically, and signs a receipt that reveals the seed — afterward anyone replays the episode without trusting the verifier beyond the signed payload.
  • check is fully offline: Ed25519 signature over the verbatim payload (no re-serialization), key-id binding, seed commitment, response format, verdict rescore via the ported clankdar-score-v2 canonicalization, and answer-before-expiry.
  • check --deep, issue, verify call the canonical generator oracle (bun bench/instance.ts) so the recorded prompt and expected answer must regenerate exactly; oracle identity echoes are bound to the request.
  • Interop: Ed25519 OKP JWK keys are byte-compatible with the TS keygen; tests replay TS-issued receipts, and bun bench/attest.ts check replays Rust-issued receipts (verified live).

Scope

A receipt attests that one signed response satisfied one challenge inside one time window. It does not prove a model or AI produced the response, is not a liveness credential, grants no authority, and provides no durable replay protection.

Test plan

  • cargo fmt --manifest-path prototypes/clankdar-attest/Cargo.toml -- --check
  • cargo test --manifest-path prototypes/clankdar-attest/Cargo.toml --locked — 16 tests
  • cargo clippy --manifest-path prototypes/clankdar-attest/Cargo.toml --all-targets --locked -- -D warnings
  • Live CLI lifecycle with the real oracle + TS↔Rust receipt interop

Generated with Devin

Independent Rust implementation of clankdar-attest-v1 (reference:
bench/attest.ts in the clankdar repository). A verifier commits to an
unrevealed generator seed, rescores the response with the ported
clankdar-score-v2 canonicalization, and signs a seed-revealing receipt;
check replays offline and --deep regenerates via the bench/instance.ts
oracle. JWK keys and receipts interop with the TypeScript
implementation in both directions.

A receipt attests one signed response inside one time window — not
identity, liveness, trust, or host/tool authority.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
}
let trimmed = digits.trim_start_matches('0');
if trimmed.is_empty() {
return Some("0".to_string());
if !grid.iter().all(|row| row.len() == width) {
return None;
}
let mut out = String::from("[");
6,
424242,
"solve: AB + BA = CC",
"2454",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants