PeaBox Lab › PeaLang › Learn › Chapter 24 › Lesson 1

Part IV — Expert Production Engineering · Chapter 24 · Lesson 1 of 7 · 2 min read

Lesson 1: API Stability, Deprecation, Compatibility, and Semantic Versioning

Lesson level: Expert

Purpose: Compatibility is broader than symbol retention. Release-candidate labels and preview boundaries must survive documentation and deployment decisions.

Learning Objectives

1.1 Concepts

Feature states are Experimental, Preview, Stable, Deprecated, and Removed. The specification requires migration notes for breaking changes during 0.x and backward compatibility for Stable syntax and behavior within 1.x after 1.0. It recommends retaining deprecated features for at least two minor releases. RC2 version 0.63.0rc2 is a release candidate, not a declaration of general availability. Old version strings in individual modules may describe the introduction milestone rather than the installed package.

1.2 Annotated Example

public_api_snapshot inspects top-level public functions and classes in the package root; compare_api_snapshots detects removals and simplified function-signature differences. It does not prove equivalent behavior, nested-package coverage, keyword-only defaults, or security policy. The supplied RC1-to-RC2 snapshot reports compatibility, but consumers still need contract and integration tests.

1.3 Guided Practice

Classify an additive public function, a changed default, a removed export, a stricter resource policy, and a preview artifact change. Explain which tests a signature diff cannot replace.

1.4 Common Mistakes

Do not promote every feature to Stable because a wheel exists, infer complete behavioral compatibility from a shallow snapshot, or silently change public defaults.

1.5 Hands-On Lab

Deliverable: Versioned evidence, negative-test results, and an explicit list of unresolved gates.

1.6 Review Questions

Which states are defined? What does snapshot compatibility omit? How do 0.x and 1.x compatibility expectations differ?

1.7 Applied Challenge

Create an API-change review requiring syntax, semantics, host values, permissions, performance, and migration evidence for every externally visible change.

Lesson Summary

Compatibility is broader than symbol retention. Release-candidate labels and preview boundaries must survive documentation and deployment decisions.

Lesson status: Draft complete; ready for review. Source-checked, not a release approval.

← Previous Next →