How Lakeport is built·/docs/contributor-guide

Code quality and contributor guide

A useful contributor question is: is the code actually good, or is it just working?

Answer it for the part you intend to change. Read the executed definition, the theorem statements that refer to it, and the host implementation that consumes its output. A passing smoke test covers the exercised scenarios; a theorem covers its stated proposition. Neither establishes the quality of the whole codebase.

Start with packages/lakeport-cli/src/LakeportCli/ for compiler work, packages/lakeport-style/LakeportStyle/ for app presentation, and the relevant platform package for host behavior. SDK signatures can change before 1.0. Check callers when changing a public record or protocol.

Keep evidence precise. Record the command, toolchain, target, and result for build and runtime checks. Use proved only for a kernel-checked theorem. Keep trusted dependencies and unknown or failed gates visible. Do not turn a modeled guarantee into a claim about the browser, native host, or remote service.

The CLI source guide covers local toolchain configuration. Repository access is required.

For an app change, run lakeport check . and the project's own tests. For a compiler or host change, run the relevant framework tests and verify the affected consumers and targets. The CLI exposes lakeport test with an optional -k filter; inspect its test names before choosing a subset.

This manual does not prescribe a fixed interface redesign or claim a measured count of duplicated host code. Establish a reproducible issue against the current source before proposing a refactor.