Skip to content
Publishing a binding

clay-kernel

0.0.1

Clay’s own engine: checks types, computes the hash of code and runs programs.

BrowserNativeCPUOfflineBuilt inAccelerator

Runs on 2 of 2 nodes

that you can see

Shared

Private

See everything that runs on cloud-nbg1-1

Details · answers, reads, artifact, licence, provenance
Built inAccelerator3 definitions

Clay’s own engine, compiled to WebAssembly. It checks types, computes the hash of code and runs programs, in the browser or on a server. The editor, the compiler and Phaistos load it.

Runs in
BrowserServer
Any WebAssembly host
Form
WebAssembly, 2.2 MB
Same answer every timeSame answer
Yes
Network
Never
Licence
None declared
Signed
By Clay, development keyBy Clay, dev key

Stands in for

Each row is a signed claim: this entry point runs instead of one exact Clay definition. The Clay code stays the meaning. If the definition changes, its hash changes, no claim matches and the Clay code runs: never wrong, only slower.

Json.fromText
@unison/json 1.4.2
#gev7hhi356vakfv1qt…
TypeText ->{Exception} JsonRuns asjson.from_text

Declines any document it doesn’t parse exactly as the library’s own parser would; the Clay code then runs and raises the library’s error. native-json.test.ts

Full hash and claim id
#gev7hhi356vakfv1qti32im8jevtj5nve8cujismi58l5a108tqo7k9cporlrtkadde93jccriau7j9jfgr14l3crjjjnrfdf9jshmgclaim eba13ae0618d8ed39753f9d41a9e033e1123e7e0357f400ba39fd0bb17846762
Signed
Json.toText
@unison/json 1.4.2
#sg8s4t0qtmf5la8s9k…
TypeJson -> TextRuns asjson.to_text

Declines a value that isn’t a well-formed Json tree; the Clay code then runs. native-json.test.ts

Full hash and claim id
#sg8s4t0qtmf5la8s9kcbgonlqt3e514r2keuq2kc2n8ehcikhtsqgef6fg0hv1do5fur6f3q2gt0opim0l9dh2rgvgdottfftld04ioclaim a13863743baa15b690d18d7c9c2959ab680c66f296bedb2f93102b91b238c719
Signed
data.Map.size, cases reordered
test only
#4p88nqo8ug5rfmuhve…
TypeMap k v -> NatRuns asmap.size

Same code with its two cases in the other order: a different hash, the same behaviour, its own claim. native-claims.test.ts

Full hash and claim id
#4p88nqo8ug5rfmuhve8e8b8kii8ucpt61ei7bmoc04ug58mf8m53t5rdo5evp8e6200fl7d9o6qd6ncacor3jc55cpnji461adjtdagclaim c5adade6f9d294fd8b9d3b4f1cd0069d2bc0f3b8bb03ac904d4a282814006069
Signed
data.Map.size
@unison/base 7.20.0
#qb1ro91juf3ipf9t4m…
TypeMap k v -> NatRuns asmap.size

Declines anything that isn’t base’s Map; the Clay code then runs. native-impl.test.ts

Full hash and claim id
#qb1ro91juf3ipf9t4m2krk2i51n66p1h160839ueq8bk98cm96ginert6s20q0ndb9r4e9otc53kvmt954gn1m4d7rng5spco99092gclaim dd5b7751079c2130a8f38217db400a05bd647c618c684f3259f1f05de190e3db
Signed

Exact bytes and where they came from

Upstream · github.com/robmurtagh/clay at 0.0.1
Project
https://github.com/robmurtagh/clay
Version
0.0.1
Commit or revision
Not recorded
Licence
None declared
How it was built · repo-local Rust (.tools), release profile opt-level 3, LTO
Toolchain
repo-local Rust (.tools), release profile opt-level 3, LTO
Built by
repo maintainer
Built at
2026-11-16T07:23:48.747Z
Notes
upstream.commit is the last commit that touched the committed wasm. Licence null: the repo declares none yet.
Memory
Not measured
CPU
Not measured
Source path
packages/kernel-rs/dist/clay_kernel.wasm
Format
file
  1. cd packages/kernel-rs && npm run build:wasm
  2. The wasm is a committed artifact (packages/kernel-rs/dist).
Native entry points · map.size, json.from_text, json.to_text
  • map.size (arity 1)
  • json.from_text (arity 1)
  • json.to_text (arity 1)

Symbols this binding exports that a signed stand-in claim may name.

Signatures · 1, development key

Checked when this page was built, against the trust set.

  • c5878029baeb4574 Clay, development key: valid (ok)
Manifest id
f106d5f88342c6d214c405f6dd2b11c9465d90a5cbd000d2dba2fe9d8f46fad2
Status
ok
Loading it from a runner · checkLoadable, with the code

Fetch /v1/manifests/f106d5f88342c6d214c405f6dd2b11c9465d90a5cbd000d2dba2fe9d8f46fad2.json, get the artifact bytes by hash, then call checkLoadable(manifest, bytes, policy). It checks the signature against the trusted keys, the revocation list, the fingerprints and sizes, and the policy’s allowed forms and determinism classes, and returns a reason when it refuses. How a runner loads a binding