Part IV — Expert Production Engineering · Chapter 23 · Lesson 5 of 6 · 2 min read
Lesson 5: Preview Limitations and Portability Strategy
Lesson level: Expert
Purpose: Make portability promises that are supported by the actual RC2 implementation.
Learning Objectives
- Separate core language semantics, PEAC packaging, and host-specific execution.
- Document preview dependencies and support gaps.
- Choose a fallback without concealing a changed trust boundary.
5.1 Concepts
Portable values are null, booleans, integers, floats, strings, lists, and string-keyed maps. Preserving those values does not prove equal execution support in every host. PEAC and WASM-related surfaces remain preview-sensitive. The attached browser builder and SDK do not establish a complete native PeaLang VM; the source tests verify header, custom sections, policy records, save behavior, and loader presence rather than execution of exported rules in a browser.
5.2 Annotated Example
An offline questionnaire requires a real local execution engine. A server-backed TypeScript client can evaluate rules through a runtime service, but then requires network connectivity, server authentication, and data transfer. Annotation: these are different deployment contracts. State which one is implemented; never report a remote result as offline browser execution.
5.3 Guided Practice
Create a support matrix for interpreter, Python VM, Java sidecar, TypeScript client, and browser packaging. For each, record the tested version, value boundary, execution location, permissions, and evidence. Mark untested or unsupported cells explicitly.
5.4 Common Mistakes
Avoid a universal compatibility claim, treating preview metadata as a stable ABI promise, substituting a mocked prediction without labelling it, or using the existence of a loader as performance evidence.
5.5 Hands-On Lab
- Select a harmless rules fixture with expected output and error cases.
- Run it through supported interpreter and VM paths.
- Inspect browser packaging and actual native exports separately.
- Document every support gap and a tested server-backed or unavailable-state fallback.
Deliverable: Versioned support matrix, fixtures, observed results, and a migration decision. Passing means every claim is traceable to an execution test or is clearly restricted to packaging.
5.6 Review Questions
What makes a portable value contract useful? Which browser claims are not established by the source tests? Why does a server fallback change the privacy and availability model?
5.7 Applied Challenge
Design an upgrade gate that compares language results, permission denials, artifact admission, and actual browser exports before adopting a new preview version.
Lesson Summary
Portability is a tested matrix of contracts, not a format suffix. Preview gaps must remain visible to users and operators.
Lesson status: Draft complete; ready for review.