Engine
typeEngine is the contract a registered engine satisfies. Methods take and return plain values only, so the engine never receives a reference into registry state (tasarim-v6 §5.4 defence (a)).
Value
registry.Engine
SampleSeed
untyped stringSampleSeed is rendered once at registration; its hash is the fingerprint.
Value
"spike-sample"
record
typeValue
registry.record
Board
typeBoard is registry-owned state that a foreign engine can get a pointer to.
Value
registry.Board
engines
v0.Tree// engine pkgpath -> \*record
- OID
- 003ad7…37e5:4
engines details
board
*registry.Board- OID
- 003ad7…37e5:6
board details
bumps
intValue
1
Register
func(e registry.Engine) stringRegister stores the caller realm's engine. The id is the caller's pkgpath, so a realm can only ever register itself.
- OID
- 003ad7…37e5:9
Register details
RenderWith
func(id string, seed string) stringRenderWith runs a registered engine. Read-only: reached through qeval.
- OID
- 003ad7…37e5:11
RenderWith details
RenderInTx
func(id string, seed string) stringRenderInTx runs an engine inside a transaction. UNSAFE PROBE: a qeval discards writes, so this is how the spike observes on chain what engine code can do from a write path — the thing core never does (I-12).
- OID
- 003ad7…37e5:12
RenderInTx details
VerifyFingerprint
func(id string) boolVerifyFingerprint re-renders the sample and compares it with the hash stored at registration; false means the engine's output changed.
- OID
- 003ad7…37e5:13
VerifyFingerprint details
Fingerprint
func(id string) string- OID
- 003ad7…37e5:14
Fingerprint details
IsRegistered
func(id string) bool- OID
- 003ad7…37e5:15
IsRegistered details
SharedBoard
func() *registry.BoardSharedBoard returns a pointer into registry state. UNSAFE PROBE: the spike checks that a foreign engine writing through it is refused by the VM (interrealm v2 §3.2 readonly check).
- OID
- 003ad7…37e5:16
SharedBoard details
BoardCount
func() intBoardCount reads the probe target.
- OID
- 003ad7…37e5:17
BoardCount details
UnsafeBump
func()UnsafeBump is a non-crossing exported function that mutates registry state. UNSAFE PROBE: interrealm v2 §4.1 says a non-crossing call into /r/registry borrows /r/registry's storage, so a foreign engine calling it SHOULD succeed. That is exactly why production core exports no state-changing non-crossing function (invariant I-12).
- OID
- 003ad7…37e5:18
UnsafeBump details
Bumps
func() intBumps reads the UnsafeBump counter.
- OID
- 003ad7…37e5:19
Bumps details
Render
func(path string) string- OID
- 003ad7…37e5:20
Render details
mustRecord
func(id string) *registry.record- OID
- 003ad7…37e5:21
mustRecord details
sha256Hex
func(s string) string- OID
- 003ad7…37e5:22