ShtukbaseStandard
CORE-R03/norms/rules/core/CORE-R03.md

First a plan, then a write

MUSTblockscheckactive
Install, init and update first build the whole plan and only then write. A refusal at any step leaves the project untouched. A trial run (--dry-run) is the same plan without writing.
Why: A half-installed package is worse than a not installed one: it is invisible and hard to roll back.
Enforcer: shtuk:apps/shtuk/src/install.ts, shtuk:apps/shtuk/src/cli.ts, shtuk:apps/shtuk/test/e2e.test.ts
Page fields (14)
ruleIdCORE-R03
requirementInstall, init and update first build the whole plan and only then write. A refusal at any step leaves the project untouched. A trial run (--dry-run) is the same plan without writing.
levelMUST
floorfalse
statusactive
spherepackages
appliesTo/
enforcersshtuk:apps/shtuk/src/install.ts, shtuk:apps/shtuk/src/cli.ts, shtuk:apps/shtuk/test/e2e.test.ts
enforcerKindgate
modeenforce
becauseA half-installed package is worse than a not installed one: it is invisible and hard to roll back.
reviewBy2027-05-28
packcore
railIn doubt, run with --dry-run and read the plan.

Install, init and update first build the whole plan and only then write. A refusal at any step leaves the project untouched. A trial run (--dry-run) is the same plan without writing.

The plan is the pages to write, the pages to delete, the lock and the package list page. A trial run prints it and writes "dry run: nothing was written".

What holds it. The enforcer is the code of the tool shtuk and its test; they live in the tool's repository, not in the project: apps/shtuk/src/install.ts, apps/shtuk/src/cli.ts, apps/shtuk/test/e2e.test.ts. The evidence is the test "prints the plan, writes nothing, and is the same plan the real run carries out" in test/e2e.test.ts. These paths are not in the project, and that is fine: the norm describes the behavior of the tool that installs packages.

The package Core puts this page at /norms/rules/core/CORE-R03.md.Source text