M2 / LEZ v0.4 Port-Readiness Review

RFP-019 (TWAP Oracle) · RFP-004 (AMM/DEX) · RFP-013 (Stablecoin) — logos-blockchain/lez-programs

Exact refs read for this review (state them precisely, per instructions):
lez-programs: real current GitHub main, commit 071375c0f58a9f010b5b8cc55799e1d76ba11ea2 (2026-10-21 10:59 +0200) — checked out locally as branch m2-review-main. The pre-existing local clone's main was stale (behind by ~80 commits); fetched fresh over HTTPS since the configured git@github.com remote fails host-key verification in this sandbox. lee_core/clock_core pinned at tag v0.2.5-rc2.
logos-execution-zone: branch dev, commit 7cba743a9b41b1994377b799e11bbbcebaac4239 (2026-10-21 18:45 +0300) — checked out locally as branch dev-review. No v0.4 tag or release exists in this repo: the latest actual tag is v0.3.1; dev is unreleased, ahead of it.
Verdict: M2 cannot be validated on-chain, and this review does not pretend otherwise. There is no LEZ v0.4 testnet, no tag, no release, and no actor-model port branch for any of the three programs — the one branch with "0.4" in its name (chore/lez-core-0.4.3) is a dependency-version bump with zero program-logic changes (confirmed: diffing it against main shows no touched programs/*/src/*.rs files outside core). This review is therefore exactly what was asked for: a pre-implementation readiness assessment — current-source carry-forward judgments for every M1 finding, plus direct, cited verification of the handful of actor-model primitives that already exist and are cheap to check on dev (an Actor addressing type, async-message declare/promote rules, fees, and the events-dropped-on-private-path property already confirmed in the #507 review). Everything else about the actor model — a clock actor, cross-actor reads as a distinct primitive, how private transactions interact with async messages — is not yet built on dev, so those parts of this review are flagged as open questions, not guesses dressed up as findings.

Summary

ProgramM1 findings carried forward unresolvedM1 findings already fixed (independent of v0.4)Single biggest actor-model risk
RFP-019 TWAP05 (permissionless recording), 06 (no full oracle module), 07 (no price scale field)01, 02, 03, 04 — the core TWAP math (time-weighting, manipulation clamp, window honesty, timestamp honesty) is already fixed on current main, well before any v0.4 portTrusted-time and pool-read primitives for the actor model don't exist yet on dev — can't be designed against, only flagged as open
RFP-004 AMM01, 02 (default), 03, 04, 05 (display), 06, 07, 08 — all still present, nearly all pure UI/module/docsnone of the UI findings; but the privacy framing itself is now outdated — privacy-circuit code and tests exist on v0.2.5-rc2, but a live run could NOT confirm the private/group-authority swap tests passing (they errored with CircuitProvingError or hung); UNCONFIRMED, needs a clean-env re-runThe headline one: a swap's payout becoming a durable async message risks UnboundAsyncDestination/UndeclaredActor — confirmed as a real, chargeable (fee-burning) failure mode on dev today, with no port design yet for declaring/promoting the recipient's token actor upfront
RFP-013 Stablecoin01 (oracle scale, now isolated to the redemption-rate controller), 04 (circular bootstrap, partially worked around)05 (module coverage, now complete — 19/19 instructions); 02 (one-shot-signer) likely fixed by an independent v0.2.5 SPEL change, but not regression-tested and due another look once the real v0.4 auth model existsNone of the three M1-013 on-chain findings are actor-model-specific — they're pre-port blockers. The real actor-model-specific risk is 03: there is no SPEL toolchain release yet that both encodes i128 and targets a v0.4-shaped program at all

RFP-019 — TWAP Oracle

M1 carry-forward matrix

#M1 findingCurrent statusClassification
019-01Accumulator not time-weightedFIXED code-read — record_tick.rs:124-129 integrates tick × elapsed_ms into a running cumulative sum, the standard TWAP accumulator shape (mirrors Uniswap v3's tickCumulative).(c) runtime-independent — this is pure arithmetic in the program's own logic, already correct. The v0.4 port must faithfully reproduce this (it won't come for free from the runtime), but it is not a new design problem.
019-02Manipulation clamp protects only one observationFIXED code-read — the MAX_TICK_DELTA clamp runs on every call to record_tick (record_tick.rs:118-122), and the doc comment at publish_price.rs:25-28 confirms the live-tick extrapolation tail is clamped by the same bound, not just the stored observations.(c) runtime-independent — same as 019-01.
019-03Published price ignores configured windowFIXED code-read — each PriceObservations PDA is keyed by window_duration (record_tick.rs:52, compute_price_observations_pda), and its sampling guard (min_interval = window_duration / OBSERVATIONS_CAPACITY, record_tick.rs:82-85) calibrates the ring buffer so the oldest valid entry is the window start — doc comment at publish_price.rs:30-32 states this explicitly: "no boundary search is needed."(c) runtime-independent.
019-04Timestamp masks observation ageFIXED code-read — publish_price.rs:18-23's own doc comment names this exact failure mode and its fix: the TWAP is extrapolated to now via the current tick, so "a price that has simply not changed yields a fresh timestamp and the correct (unchanged) value, instead of a stale window stamped with a current time."(c) runtime-independent.
019-05Recording is a permissionless call, not a pool side-effect (RFP wants no off-chain keeper)STILL PRESENT code-read — the guest's record_tick/publish_price instructions (methods/guest/src/bin/twap_oracle.rs:142-188) carry no #[account(signer)] or caller-authorization attribute at all; any top-level transaction naming the right (public, derivable) PDAs can call them.(b) must be fixed deliberately — the real fix is architectural (chain record_tick as a synchronous call from the AMM's own swap handler, the same pattern bridge_lock uses to chain into cross_zone_outbox::Emit, confirmed in the #506 review), not a protocol upgrade. It can be done before v0.4 and should be — nothing about the actor model fixes this automatically.
019-06No oracle modulePARTIALLY ADDRESSED verified via GitHub API — an open, unmerged PR (#446, "scaffold the universal module") adds a headless oracle_module, but only three read-only discovery methods (setOracleProgramId, programInfo, feedAddresses); its own description says "transaction operations remain assigned to" later PRs (#442 recording, #443 publication — both still open issues, not started).(b) must be fixed deliberately — and twice over: the scaffold targets v0.2.5-rc2 (modules/oracle/ffi/Cargo.toml, confirmed via the PR diff), not the actor model, so once the full module lands it will need its own separate v0.4 port.
019-07Price account has no scale/decimals field (ties to 013-01)STILL PRESENT code-read — OraclePriceAccount (programs/twap_oracle/core/src/lib.rs:354-371) has base_asset, quote_asset, price: u128, timestamp, source_id, confidence_interval — no scale field. The value is Q64.64 by convention only, confirmed by doc comments throughout the file (e.g. line 476: "The price is stored as a Q64.64 ratio") and by tick_to_oracle_price's own math (lines 396-490).(b) must be fixed deliberately — adding a scale/decimals field is an account-layout decision, orthogonal to the runtime. See RFP-013-01 below for the consumer-side half of this same bug.
On the "universal oracle module" the task asked to check (added ~2026-10-21): found via GitHub search, not a code grep — PR #446 ("feat(oracle): scaffold the universal module and shared transaction contracts", opened against base lez-v0.2.x, head 3esmit:feat/oracle-module-scaffold-437), part of an 8-issue epic (#436-444). State: open, not merged. It adds modules/oracle/ (a headless C++/Qt module backed by a stateless Rust oracle_ffi), but — per its own description — "only the three discovery methods are public in this scaffold," with every write/recording/publication method explicitly deferred. It targets the current runtime (v0.2.5-rc2), not dev.

Actor-model impact for TWAP

Trusted time (a "clock actor") — OPEN QUESTION, not yet buildable against

dev does not yet have a distinct "clock actor" abstraction to design against. What exists: the clock remains a fee-exempt system transaction — lee/state_machine/src/public_transaction/message.rs:48-50's own doc comment: "Correct for system transactions (clock, deposits, dispatches); charged transactions use try_new_with_fees." There is no sign yet of clock state being wrapped in the new Actor/async-message addressing at all — it looks, so far, like clock access will likely continue to be a plain, synchronously-readable account (the same pattern record_tick and publish_price already use: declare CLOCK_01_PROGRAM_ACCOUNT_ID, read its data in the same execution). But this is inference from the absence of any clock-specific Actor code, not a confirmed design — flag this explicitly to the port team as something to pin down early, since if clock reads do become async, TWAP's entire sampling-guard and timestamp-honesty logic (findings 01-04, just confirmed fixed) would need re-deriving from scratch.

Pool reads ("cross-actor reads") — no distinct primitive found

Grepped lee/state_machine/core/src and lee/state_machine/src for any read-specific cross-actor primitive (ReadOnly, read_only, cross_actor, etc.) — nothing. ProgramShardSelector (the v0.2.x/v0.3.x mechanism for declaring which other accounts/programs a call may see) no longer exists as a type on dev at all; it has been replaced by Actor-keyed declaration (public_actors: impl IntoIterator<Item = Actor>, confirmed in message.rs:29-43). Best read: declaring an Actor and reading its state synchronously within one execution is likely the direct successor of today's shard-selector reads, and TWAP currently reads only its own PDAs anyway (it doesn't read AMM pool reserves directly today — the task's "pool reads" framing describes a future design where the oracle might pull from a pool rather than being pushed to via UpdateCurrentTick). Not yet confirmed either way — there is no code on dev that exercises a program reading another program's account as a non-caller, so this is analysis, not a citation.

Keeper fees — confirmed, interacts directly with 019-05

Fees are real on dev: FeeDeclaration, fee: Option<FeeDeclaration> (message.rs:19-21), with only clock/deposit/dispatch system transactions exempt. This is the same fee-on-every-submit requirement already live on the current runtime since commit f2aa3de ("require an explicit fee payer for every submit"). Combined with 019-05 still being a bare permissionless top-level call: a keeper calling record_tick on a schedule now pays a real fee every time, with no subsidy/treasury design anywhere in this codebase. This sharpens, rather than creates, the case for fixing 019-05 by chaining recording into the AMM's own swap path (which already pays a fee for the swap itself) — the alternative (a standing keeper service paying its own fees forever) is a real operational cost nobody has designed for yet.

What the port must do (RFP-019)

RFP-004 — AMM / DEX

M1 carry-forward matrix

#M1 findingCurrent statusClassification
004-01Rejected tx shown as successSTILL PRESENT code-read — every module submit path (swap, create pool, add/remove liquidity — amm_module_impl.cpp:899-908, 1127-1136, 1293-1301, 1454-1462) returns success on send_generic_public_transaction's reply alone, never polling the tx result or re-reading state. UI shows "Swap submitted" / "Position submitted" / "Liquidity removed" immediately (SwapCard.qml:488-498, NewPositionForm.qml:524-528, PoolDetailPage.qml:407-409) — the last of these claims completion outright. The repo's own docs admit the chain itself conflates "confirmed" and "succeeded" (README.md:199-200, docs/testnet-runbook.md:809-811).(c) runtime-independent — a confirmation-polling gap in the module/UI; unrelated to what runtime executes the transaction.
004-02Pool-creation default locks most of the depositSTILL PRESENT (UI default) code-read — the on-chain MINIMUM_LIQUIDITY = 1_000 lock (amm/core/src/lib.rs:292) is standard, intentional AMM design, not a bug. The harmful part is the UI default: 1:1 price, 0 decimals (NewPositionForm.qml:44-45, 89-90) prefilled to the minimum viable pair (~1001/1001 base units, liquidity.rs:121-122), which locks ~99.9% of the minted LP. The form now at least labels "Expected LP" vs. "Locked LP" (NewPositionForm.qml:473-483) — better disclosure, same default.UI default: (c) runtime-independent. On-chain lock itself: not a bug to fix, just something the port must faithfully reproduce.
004-03App-created pool invisibleSTILL PRESENT code-read — the Pools/Positions lists read only the static registry (AmmUiBackend.cpp:363-370), never chain discovery; nothing listens for the pool-creation success signal (NewPositionFlow.qml:38 has zero listeners in apps/amm/qml). The app's own UI text admits it: PositionsPage.qml:404, "Positions are matched against the pools in the app's pool config."(c) runtime-independent — explicitly an app-layer design choice (comment at AmmUiBackend.cpp:365-368), not a protocol gap.
004-04Decimals ignoredSTILL PRESENT code-read — liquidity form hardcodes decimalsA/B: 0 (NewPositionForm.qml:89-90); the registry parses but documents decimals as unused (RegistryLoader.cpp:37); swap rejects decimal points outright (SwapCard.qml:255-262). Root cause confirmed structural: the token program has no decimals field at all (no match for "decimal" anywhere in programs/token/core/src) — decimals can only ever be off-chain metadata the UI chooses to apply.(c) runtime-independent — and will stay that way unless/until the token program's own account shape grows a decimals field, which is an independent decision from the v0.4 port.
004-05Displayed fee understates the real feePARTIALLY FIXED code-read — the rate now comes from the real on-chain config (AmmConfig.swap_fee_bps, surfaced via FFI, modules/amm/ffi/src/api/swap.rs:24-29) rather than a hardcoded guess, fixing what was likely the headline M1 bug. What's still wrong: the UI computes the fee as a float (DummySwapState.qml:16-17) against the chain's integer ceiling-rounded formula (core/src/lib.rs:493-494), understating by <1 base unit and displaying fractional base units; and the network (sequencer) fee is never shown at all, only the pool swap fee.(c) runtime-independent — display-math and missing-line-item bugs; the on-chain fee math itself is already correct.
004-06Stale balancesSTILL PRESENT, and risk increases under v0.4 code-read — every refresh call fires immediately on submit success (AmmUiBackend.cpp:242-243 etc.), before the transaction can even be in a block; nothing schedules a later re-check. See the dedicated risk callout below — this interacts directly with the AMM's headline actor-model risk.(b) must be fixed deliberately in the port specifically (not just carried forward) — see below.
004-07README broken installSTILL PRESENT code-read — the README never builds/installs amm_module, only lez_core and the UI package (apps/amm/README.md:77-110), despite the app declaring both as dependencies (apps/amm/metadata.json). nix build '.#lgx' from the repo root likely resolves to the wrong overlaid package given the documented last-one-wins collision in the root flake (flake.nix:443-468).(c) carries forward unchanged — docs/build, not runtime-related.
004-08Runbook/module version driftSTILL PRESENT, worse code-read — now three different lez_core pins exist across flakes/README/module docs, plus a contradictory comment in the root flake itself (flake.nix:4-7 says one thing, :37-39 says another). The shipped testnet registry still targets v0.2.4 ImageIDs while the module code refuses v0.2.4-style ImageID resolution since v0.2.5.(c) carries forward unchanged, trending worse — adding a fourth version (v0.4) to track will not help by itself.
privacy framing"M1 is public-swaps-only" (stated as a hard limit of v0.2.4)UNCONFIRMED — live run could not pass the private tests code-read — private-swap / add / remove-liquidity code and tests exist on v0.2.5-rc2 (programs/integration_tests/tests/amm.rs), but a live run in the v0.2.5 re-review could not confirm them — the group/private-authority circuit tests failed with CircuitProvingError("rx len failed") or hung (plain public-path tests all passed). Whether that is a real regression or a dev-mode/sandbox artifact is unresolved; needs a clean-environment real-proving re-run. The limit has moved: the module and app are still public-only (every submit path uses send_generic_public_transaction, no private-send path exists in amm_module_impl.cpp), and a swap paying into a brand-new private account still isn't possible (output holding must already exist, owned by the token program).Program/runtime capability: unconfirmed — private-swap tests exist but errored/hung in a live dev-mode run (clean-env re-run needed). Module/app: still (c) UI-layer.

Actor-model impact for AMM — the headline risk

The swap-payout-as-async-message risk is real and already demonstrable on dev

This is the single most important actor-model finding in this whole review. dev already has the exact mechanics the task asked to verify:

pub struct Actor {
    pub account_id: AccountId,
    pub program_account_id: AccountId,
}   // lee_core account.rs:194-198 — an addressable (account, program) pair

Every message is now addressed to: Actor (message.rs:29), and the set of actors a transaction may touch must be declared upfront as public_actors. Two tests pin the exact, and critically different, failure costs:

// validated_state_diff/tests.rs:370-397 — root actor undeclared: cheap, upfront, UNCHARGED
an_undeclared_root_actor_is_invalid_input_and_not_charged()
  -> LeeError::InvalidInput("Root actor is not declared"); !error.is_chargeable()

// validated_state_diff/tests.rs:404-430 — a send DURING execution to an undeclared actor: CHARGED, REVERTED
a_send_to_an_undeclared_actor_from_a_later_transition_is_charged()
  -> ExecutionError::UndeclaredActor { actor }; the caller pays, the swap reverts

And separately, a more severe variant for genuinely async (not same-block) delivery:

// error.rs:91-92
#[error("A durable async message reached {actor:?}, an address without a recovery binding")]
UnboundAsyncDestination { actor: Actor }

Read together, this is exactly the risk the task named: if a ported AMM's swap payout to the trader's output-token holding becomes a durable async message rather than today's synchronous chained call, then (a) atomicity changes — the input side (debit trader, credit pool) could land in this block while the output side lands later, meaning funds can be "in flight"; (b) if the recipient's token-holding Actor isn't declared in the transaction, the failure is the expensive kind — the trader pays a real fee for a swap that burns the input side and never delivers the output, per the second test above; and (c) UnboundAsyncDestination implies some destinations need an explicit recovery binding set up in advance — how and when that gets established for an ordinary user's token holding is not specified anywhere in this codebase, which is a genuine open design question, not just an implementation detail.

What the port must guarantee, concretely:

M1-004-06 (stale balances) gets structurally worse, not just carried forward

Today, "stale balance right after submit" is a UI timing bug: the chain state updates promptly (same block, same transaction), the UI just refreshes a moment too early. Under the async-payout model above, there can be a real, protocol-level gap between the swap landing and the payout actually arriving at the recipient's actor. A UI that just refreshes-a-bit-later will no longer be good enough — it needs a genuine "settlement pending" state tied to whether the payout message has actually been delivered, not a fixed delay. Classified as (b) must be fixed deliberately in the port, not (c), specifically because of this interaction.

Open question: does private-swap capability survive the port?

All of the actor-model research above comes from lee_core's public transaction path (public_transaction::message). This review did not verify whether or how the privacy-preserving circuit interacts with Actor-addressed async messages on dev — that code path wasn't explored given time, and dev's privacy-preserving module structure wasn't cross-checked against the async-messaging primitives above. Given private AMM swaps now demonstrably work at the program/runtime level (table above), whether that capability is preserved, degraded, or requires redesign under the actor model is a real open question for the port team, not something this review can answer from the current dev state.

What the port must do (RFP-004)

RFP-013 — Stablecoin

M1 carry-forward matrix

#M1 findingCurrent statusClassification
013-01Oracle price-scale mismatch (Q64.64 vs RAY)STILL PRESENT, narrower than before code-read — the mismatch no longer touches the health/debt calculation directly (that reads the oracle only for freshness — "liveness gate only," generate_debt.rs:113-123) but it does corrupt the redemption-rate controller: update_redemption_rate.rs:54,61 passes the raw Q64.64 oracle.price straight into advance_redemption_price and then run_controller_tick, which subtracts it directly against a RAY-scaled value (controller.rs:70-72). The project's own runbook documents the live workaround rather than a fix: docs/testnet-runbook.md:831-833 warns never to call publish_price for real, because "a published 1.0 reads as ~1.8e-8," and tells operators to seed the price manually in RAY scale (:761-762) — directly contradicting the oracle's own Q64.64 contract.(b) must be fixed deliberately — either OraclePriceAccount gets a scale field (RFP-019-07) and the stablecoin converts, or the stablecoin does an explicit Q64.64→RAY conversion at the read site. Neither happens automatically from a runtime port.
013-02Plain signer account works only once (SPEL output filter × v0.2.4 Claim)LIKELY FIXED, by an independent pre-port change — not regression-tested. The mechanism was in spel-framework's own macro output filter, not in lee_core: up to v0.2.4 it silently dropped the (pre, post) pair for any account the program neither owned nor explicitly claimed; v0.2.5 removed that rule and replaced it with the opposite one (a declared account whose diff is missing now fails with DeclaredAccountMissingFromOutput, rather than being silently dropped). Claim itself is gone from the stablecoin program (initialize_program.rs:222-225, open_position.rs:119-120). Caveat: no integration test exercises a default-owned signer used twice — every test seeds signers with a non-default program_owner instead (stablecoin.rs:422-428), so this is well-reasoned, not proven.Needs fresh re-assessment once v0.4 exists, not carried forward as "fixed" — the task's own framing is right that the actor model changes auth again; whatever mechanism replaces today's ownership-and-output-diff rules could reopen this in a new shape entirely.
013-03No released SPEL encodes i128 instruction parametersconfirmed, via GitHub API — not a code-read — exactly 2 of 19 stablecoin instructions carry i128 fields: InitializeProgram's and SetControllerGains's proportional/integral gains (programs/stablecoin/core/src/lib.rs:94,96,270,272). The fix (spel PR #289, "parse and serialize signed integer args") is merged, but only into a prerelease: present in v0.7.0-rc.3 (2026-10-19, 13 commits ahead of the fix) but not in the latest stable release v0.7.0 (2026-09-17, which predates the fix).(c) toolchain-only, not runtime-related at all — porting lee_core to the actor model does not touch SPEL's CLI argument parser. This is a pure release-timing blocker, independent of the v0.4 port.
013-04Circular bootstrap (init needs an oracle for a token it creates)PARTIALLY FIXED, by a workaround, not a structural fix code-read — InitializeProgram (initialize_program.rs:146-160) does require an already-initialized oracle naming the stablecoin's own (not-yet-created) definition as base_asset; the escape is that the stablecoin's token-definition address is a deterministic PDA (core/src/lib.rs:549-563) and CreateOraclePriceAccount never actually checks that base_asset exists (create_oracle_price_account.rs:48-91 checks the PDA/signer/clock/window/non-zero-price only). The deploy script automates the correct ordering. What's left: no two-phase init, no placeholder oracle; the bootstrap oracle's price goes stale after at most 24h (core/src/lib.rs:102) and can't be refreshed via publish_price because of finding 013-01; the only escape is an admin override (admin.rs:263-305) that checks neither freshness nor scale either.(b) must be fixed deliberately — the PDA-address-ordering trick is a real workaround worth keeping, but the staleness-under-013-01 interaction needs independent attention regardless of runtime.
013-05Module incompleteFIXED code-read — all 19 Instruction variants now have a module method (modules/stablecoin/src/stablecoin_module_impl.h) and an FFI planner; no "not implemented"/"TODO"/"stub" found outside tests.Module-only, not runtime-related — but will need redoing against whatever FFI/module shape the actor model requires, so this is "fixed for now," not "fixed forever."

Actor-model impact for stablecoin

Oracle scale (013-01) and i128 (013-03) — neither is an actor-model problem

Worth stating plainly since the task asked to re-assess both against "the 0.4 SPEL toolchain": 013-01 is pure on-chain conversion logic, unaffected by the runtime engine underneath it. 013-03 is purely about SPEL's own CLI argument parser — a completely separate tool/repo from lee_core. Porting the stablecoin program to the actor model does not, by itself, fix either one, and does not make either one harder either. They should be fixed on the current runtime, independent of the v0.4 timeline.

Open question: is there even a SPEL-on-0.4 toolchain to target?

SPEL's own version numbering (currently v0.7.0/v0.7.0-rc.3) is unrelated to LEZ's protocol version numbering — there is no "SPEL 0.4." The real question the task is pointing at is whether SPEL's IDL generation and instruction-encoding model works unchanged against an actor-model-shaped Instruction/Actor-addressed program at all, once one exists. This review did not — and given there is no actor-model program to generate an IDL from yet, could not — check SPEL's compatibility with the new addressing model. This is squarely a readiness blocker, not a finding with a current answer.

Does the actor model resolve the one-shot-signer trap (013-02)?

Not confirmable — see the matrix above. The mechanism that caused it (spel-framework's old output-diff filter) is already gone, independent of and before any v0.4 work. Whatever authorization/ownership model the actor model introduces is a different question this review could not investigate (no code for it exists yet), so "does the actor model resolve it" has no answer beyond "it isn't the same bug anymore, and a new auth model could just as easily reopen it in a new shape."

What the port must do (RFP-013)

Readiness blockers & open questions (consolidated)

#BlockerStatus
1No LEZ v0.4 testnet release or tagConfirmed via GitHub API: latest tag in logos-execution-zone is v0.3.1; dev (commit 7cba743a, 2026-10-21) is unreleased, ahead of it. lez-programs itself is still two versions behind, pinned at v0.2.5-rc2.
2No actor-model port branch for any of the 3 programsConfirmed: chore/lez-core-0.4.3 (the only "0.4"-named branch) is a dependency bump only — diffed against main, zero files under programs/*/src/ (outside core) changed.
3No stable SPEL release that encodes i128 correctlyFix merged (#289) but only shipped in prerelease v0.7.0-rc.3; latest stable v0.7.0 predates it.
4No confirmed SPEL-on-actor-model compatibility storyCannot be checked until an actor-model-shaped program exists to generate an IDL from.
5No clock-actor or cross-actor-read primitive on dev yetSearched; neither exists as a named primitive. TWAP's and the stablecoin's account-reading patterns can't be redesigned against something that isn't built.
6No design for destination-actor declaration/recovery-binding in client toolingThe AMM's headline risk (above) has no corresponding client-side (module/wallet) design yet for which actors to declare before submitting a swap.
7Universal oracle module (#446 + epic #436-444) is unmerged and v0.2.5-targetedWill need its own v0.4 port on top of whatever lands now — track as a second, later port item, not a prerequisite blocker.
8No module/UI port plan exists for any programEvery module-layer M1 finding across all three programs (install docs, version drift, decimals, discovery, refresh timing) needs its own fix regardless of runtime, and will need re-verifying again against whatever client API shape the actor model's modules end up using.

What works well

How to re-run / re-verify

# lez-programs — get the real current main (the pre-existing local clone here was stale)
cd lez-programs
git fetch https://github.com/logos-blockchain/lez-programs.git main:refs/remotes/github-https/main
git checkout -b m2-review-main github-https/main
git log -1 --oneline   # should be 071375c or later

# logos-execution-zone — the actor-model branch
cd logos-execution-zone
git fetch https://github.com/logos-blockchain/logos-execution-zone.git dev:refs/remotes/github-https/dev
git checkout -b dev-review github-https/dev
git log -1 --oneline   # should be 7cba743a or later

# Confirm no v0.4 tag exists:
git tag | sort -V | tail -5   # -> v0.3.1 is the latest

# Confirm chore/lez-core-0.4.3 is a dependency bump only:
git fetch https://github.com/logos-blockchain/lez-programs.git chore/lez-core-0.4.3:refs/remotes/github-https/lez-core-0.4.3
git diff main...github-https/lez-core-0.4.3 --stat -- 'programs/*/src/*.rs' ':!programs/*/core/src/*.rs'
  # -> empty

# Re-derive the key actor-model primitives cited in this report:
grep -n "struct Actor" lee/state_machine/core/src/account.rs
grep -n "UnboundAsyncDestination" lee/state_machine/src/error.rs
grep -n "an_undeclared_root_actor_is_invalid_input_and_not_charged\|a_send_to_an_undeclared_actor" \
  lee/state_machine/src/validated_state_diff/tests.rs

# Spot-check the TWAP fixes:
sed -n '115,130p' lez-programs/programs/twap_oracle/src/record_tick.rs
sed -n '1,35p'    lez-programs/programs/twap_oracle/src/publish_price.rs