Skip to content

refactor(deployments): replace Zone routers by their compiled code, not a release number - #137

Merged
Slokh merged 3 commits into
mainfrom
refactor/router-code-identity
Nov 24, 2026
Merged

Slokh merged 3 commits into
mainfrom
refactor/router-code-identity

fix(deployments): keep router intent hashes and drop stale pending co…

d85f86c
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Nov 24, 2026 in 6m 32s

Code review found 1 new issue (2 earlier findings still open)

Resolved 1 earlier finding in this review; 2 still open. Found 1 candidates, confirmed 3: 1 posted in this review, 2 from earlier reviews still open. See review comments for details.

Details

Severity Count
🔴 Important 2
🟡 Nit 0
🟣 Pre-existing 1
Severity File:Line Issue
🔴 Important deployments/core/pending.ts:221 Operators who resume a paused router replacement after another router code change keep the first replacement, which is a

Annotations

Check failure on line 221 in deployments/core/pending.ts

See this annotation in the file changed.

@claude claude / Claude Code Review

Operators who resume a paused router replacement after another router code change keep the first replacement, which is also stale. Hosted chains then hit a creation mismatch on every run; other chains silently record it. `replacedAddress` and `staleReplac

Operators who resume a paused router replacement after another router code change keep the first replacement, which is also stale. Hosted chains then hit a creation mismatch on every run; other chains silently record it. `replacedAddress` and `staleReplacedAction` treat any cached address or action that differs from the committed one as a current replacement (pending.ts:211, 218-221). They never check its code against this build. Fix: decide staleness of cached outputs by code identity, for exam