Deprecation and retirement¶
Every block carries a lifecycle state in its manifest, and every project that uses the block is checked against it when the project is applied. The state tells a project whether it may keep using a block, should move to a replacement, or must stop.
Lifecycle states¶
draft: not yet ready for general use.active: in use. Generation writesactivefor every new block.deprecated: still usable, with a replacement to move to and optionally an end-of-life date.retired: no longer to be used.
The state is set on the block in its manifest, and applies to all its exports; an export can carry its own. Two more fields support deprecation:
{
"lifecycle_state": "deprecated",
"replacement_authored_capability_name": "acme.billing_v2.charge",
"eol_at": "2026-12-31T23:59:59Z"
}
eol_at is an ISO-8601 date and time, and a malformed one refuses the apply.
The manifest is part of the release, so a release's lifecycle state is the one
it was published with.
What happens when a project is applied¶
Each workflow step that calls an export is checked against the export's state and the environment profile the project is applied under:
| State | Default behaviour | Code |
|---|---|---|
active |
Allowed | |
draft |
Allowed in dev, development, local and test with a warning; refused elsewhere |
DRAFT_ALLOWED_BY_ENV_PROFILE, DRAFT_BLOCKED |
deprecated |
Allowed with a warning | DEPRECATED |
deprecated, past eol_at |
Refused | DEPRECATED_EOL_EXPIRED |
retired |
Refused | RETIRED_BLOCKED |
The environment profile's lifecycle settings change these defaults:
allow_draft, allow_deprecated, block_deprecated_after_eol and
allow_retired.
Exceptions¶
A refused step can proceed in two ways, each recorded:
- An exemption for that export, by interface and method number, with a
reason and an optional expiry. The step is allowed with a warning, such as
RETIRED_BLOCKED_EXEMPTED. - Break-glass on the apply, which requires a reason and records every check it overrides.
See Policy & Governance.