SPEL v0.4 actor-model port: lez-multisig ported and tested end to end

Target: logos-co/spel PR #301 (refactor/lez-v0.4.x @ dbb6aec) · LEZ 616256b (moudy/lez-books) · Bedrock node logos-blockchain@3926a532 · updated 2026-11-11

Verdict: the port works. I ported logos-co/lez-multisig, an M-of-N governance program, from the old instruction framework to the v0.4 actor model. I then ran it end to end on a local LEZ v0.4 chain, using only #301's spel: deploy, create, propose, approve, execute, a chained call into another program, and a configuration change. Every step passed. The run surfaced one real spel bug (inspect applying the wrong IDL), plus documentation gaps, LEZ-side rough edges, and the absence of any chain-backed test in CI.

Findings are posted on the PR: #301 comment. The port is on branch feat/lez-v0.4-actor-model of lez-multisig.

1. The live run

Script: scripts/e2e-v04.sh on the branch. It starts its own Bedrock node and sequencer, then drives everything through spel.

StepCommandResult
Deployspel deploy multisig + a hello_world targetboth addresses returned
Create a 2-of-3 multisigsend … create-multisig (no signer)config PDA written: threshold 2, member_count 3
Propose a call to the targetsend --signer m1 … proposeproposal PDA written, proposer auto-approved
Execute with 1 of 2 approvalssend --signer m3 … executerefused (exit 2, nothing changed)
Second approvalsend --signer m2 … approve2 of 2
Executesend --signer m3 … executeproposal Executed; the target account's state is 68692121 = "hi!!"
Config changepropose-config AddMember → approve → executemember_count: 4

Along the way spel generate-idl produced a clean IDL v2 for the ported core (12 messages, 5 types, no annotations), and spel program-id read the guest .bin. On the fixture side, generate-idl on token_core matches the committed golden byte for byte. send's access-list and authorization printout made the multi-actor relays easy to follow.

2. How the port maps

3. Findings

  1. spel bug: inspect ACCOUNT@<other program> applies the wrong IDL and exits 1. With a spel.toml naming only multisig, reading the target's account decodes it with the multisig IDL:
    (vault_owner (GsDB…), Aq1M…): 4 bytes
    Hex: 68692121
    ❌ Borsh decode failed: enum variant index 104 out of range (max 1)
    Without a spel.toml in scope the same command prints the hex and exits 0. The IDL should only be auto-applied when the program after @ is that program.
  2. A refused message gives no reason. The below-threshold execute is included in a block, and spel can only report "no declared actor changed: the program probably refused the message (LEZ reports no outcome)". The handler's panic message is lost. The cause is on the LEZ side, but it's the main debugging pain point for actor programs.
  3. The documented token example can't be reached. The tutorial and quickstart point at github.com/logos-co/lez-programs, which doesn't exist (404). logos-blockchain/lez-programs main is still on the old framework (lee_core v0.2.4 + spel-framework macros).
  4. generate-idl only resolves crate and path-dependency types. A git-dependency type fails, e.g. LEZ's clock with lee_core::Timestamp. The multisig works around it by using AccountId and raw byte arrays in its messages.
  5. deploy floods stderr with about 1.6 MB of Transaction data is Public(PublicTransaction { … }) dumps per program. They come from a println! in the LEZ wallet library (lez/wallet/src/lib.rs:824); stdout stays clean.
  6. No chain-backed e2e in CI. All sequencer jobs were retired and only build and test run. A deploy → send → inspect script like this one would have caught finding 1.
  7. From the static review: a unit struct decodes as [] instead of {} (decode.rs:63); a one-field tuple struct decodes as a bare scalar but must be sent as [x] (parse.rs:195); workspace members globs only handle a single trailing * (dep_walk.rs:241).

4. Running a local LEZ v0.4 chain

5. What changed since the first version of this report

The 2026-11-10 version concluded that a live e2e was blocked on the Bedrock node, and that multisig couldn't serve as the test. Both were wrong:

The earlier gap list still stands, now confirmed live: no chain-backed CI, the missing quickstart repo, and the IDL type limitation.

Run on an isolated local stack: Bedrock node + LEZ sequencer + spel #301, RISC0_DEV_MODE. Prepared by laptop/SPEL (vpavlin).