Part V — The Modern Experience Layer · Chapter 32 · Lesson 2 of 2
The 1.0 gate and what to re-verify in your projects
Chapters 1–26 were written against v0.63. Local PeaLang is at v3.1.39 — across the 1.0.0-experience line, then v1.1 LSP, v1.2 formatter/linter, v1.3 WASM, v1.4 React SDK, v1.5 web SDK, v1.6 Arrow backend, v1.7 vector/RAG, v1.8 notebook IDE, v1.9 host bindings, v2.0 VM optimizer, v2.1 supply-chain and performance, v2.2 JIT, v2.3 AI/ML helpers, then 3.1.37 frozen core, Conformance Suite v2 (current suite version 3.1.39), 3.1.38 bytecode optimizer v3 and 3.1.39 fast interpreter. Nothing forced a migration — but nothing waived your homework either. This lesson is that homework.
Step 1 — Pin and recompile
- Pin the exact runtime:
pea --versionin CI output and in the container image. Hash-pinning for embedders. - Recompile from source with
pea compile file.pea -o file.peac.pea optimize file.peac --verifyreports pass counts and parity;pea fast file.peac --verify --benchmarkchecks the fast path against the VM. - Diff
pea specoutput between releases — it reports the spec version, section count and any missing sections, but not registry-entry changes.
Step 2 — Re-read your security posture
let optimized = analysis.BytecodeOptimizer(module)
let report = analysis.BytecodeOptimizerReport(module)
let parity = analysis.VerifyOptimization(module, optimized)
# also run in CI: pea freeze, pea conformance-v2, pea doctor
Between v0.63 and 3.x the shape of the security model stayed; defaults got stricter and the audit trail richer. Structured errors use the pealang-error-v1 schema: ErrorValue records carry code, cause and context, and build_error() creates them for throw and host APIs. If your threat model was written for v0.63, read Chapter 14 again with fresh eyes — especially admission checks and the audit-record contract — then re-derive your sandbox policy from your actual usage data.
Step 3 — Re-audit dependencies and embedding
- Embedding: contracts are stable; verify your host wrappers still convert values at the boundary correctly. Chapter 15 is the checklist.
- Connectors: review retry/backoff and timeout settings against real latencies; the generators give you source, not an SLO.
- ML lifecycle: if you use model bundles, verify signatures against the current registry flow; unverified bundles should not load silently.
Step 4 — Adopt ergonomics deliberately
New syntax is opt-in. Migrate hot or shared modules first (Chapters 27–29 pay back fastest there), leave leaf scripts alone until you touch them next. A boring, gradual migration beats a big-bang rewrite that never finishes.
Step 5 — Verify behavior, not faith
- Run the curated suite with
pea conformance-v2, or from Python withrun_conformance_suite_v2()andconformance_gate_v2(report). It covers interpreter/VM parity, macros, static diagnostics and module diagnostics. - Check the frozen core with
pea freeze; check optimizer parity withpea optimize file.peac --verifyand fast-path parity withpea fast file.peac --verify --benchmark. - Benchmark your own workload with
analysis.benchmark_vm(source, 200)andanalysis.VerifyFastParity(module); compare against archived baselines. - For browser delivery, build a WASM artifact with
pea wasm-build file.peaand inspect its manifest withpea wasm-inspect file.wasm.compile_peac_to_wasm(module, policy=None, exports=None, imports=None)compiles bytecode to an artifact;inspect_wasm(value)reads its manifest. Neither is source-to-source translation.
Bottom line. v3.1.39 is the same language with better defaults, a much larger surface and years of hardening since v0.63. The migration cost is mostly re-verification — spend it once, keep the receipts, and your v0.63 foundations will carry you forward.