docs/migrations/0.6.1-release.md

0.6.1: delivery fixes, no record changes

Applicability and exclusions

This is the single migration step for the 0.6.1 patch release. It changes no records. It exists so that /factory:migrate (which defaults to the installed version) has a verified 0.6.1 target and an explicit no-record-migration decision, as the sequential upgrade requires. It runs after the verified 0.6.0 step (release-0-6-0). A project several versions behind completes every earlier step first, in the same command.

None of the release's issues needs a record change, by developer decision:

  • Lock owners (#55): a new lock gets an owner file. Locks from earlier versions have none; a session asks the developer before taking one over and never rewrites it silently. This step never adds owner files.
  • Known noise (#80): settings.md may gain a ## Known noise section. A missing section means none. delivery.baseline entries may now name the error text; older entries stay valid.
  • Moved base and stacked tasks (#76, #79): a new base updated log line, and stacked tasks record (stacked on <ID>) in delivery.base_ref. Existing values stay valid.
  • Settle (#78): a new /factory:settle command, and a new → done (settle, PR #N merged at <sha>) log reason. /factory:tasks now runs settle first, so it can mark merged tasks done.
  • PR comments (#77): agents label their PR comments; no record changes.

Outcomes:

  • Fresh project (no catalog): nothing to migrate; record nothing.
  • Verified 0.6.0 project: write only the release-0-6-1 checkpoint after the read-only checks below pass.
  • 0.6.0 step missing or partial: complete it first; this step never runs on top of it.
  • Catalog created on 0.6.0, no migration history (a project that started using factory at 0.6.0, so there is no migration.md or it has no checkpoint for any release, partial or verified): if every task already meets the 0.6.0 record shape and nothing older is present (no numeric IDs, no reports/, no legacy .factory/ records or reservations), propose to the developer, as the migrate command describes for read-only reconstruction, that the project starts verified at 0.6.0. Once they confirm, record that reconstructed starting point in the release-0-6-1 checkpoint and continue. Anything older, any earlier checkpoint (even a partial one: resume that step instead), or a task not in the 0.6.0 shape means the earlier steps are still needed: stop.
  • Already applied (verified release-0-6-1 checkpoint): read-only check, no new entries.

Artifacts and preservation

Artifact Change Kept byte-identical
tasks/, task-ids/, journal.md, designs/, evidence/, settings.md None. Everything.
locks/ None. Existing locks without an owner file are left as they are. Everything.
migration.md The release-0-6-1 checkpoint is appended. Every existing line.
Product checkouts and branches Not touched. Everything.

Preconditions and read-only preview

Verify the installed plugin reports 0.6.1 or later and that the catalog's migration.md has a verified release-0-6-0 checkpoint (or the confirmed reconstruction above). The installed version is not evidence earlier steps ran. Check that the current records still have the 0.6.0 record shape: every task's header has every field of its track's template, depends_on is a list, every design task past draft that isn't done has a reviewer and an approach of figma or prototype, and its body has exactly ## General description, ## Goals, ## Scope of work, ## Acceptance criteria and ## Log. Don't compare with the 0.6.0 backup or inventory: tasks created, edited or finished since that migration are normal. A task outside that shape is a blocker to report, not something this step repairs. Inventory read-only: do not fetch, initialize storage or write. List any held locks (with their owner file, if present) so the developer knows which deliveries are still open; a held lock is reported, not a blocker, because this step writes no task. Preview this as an explicit no-record-migration step: the only proposed write is the checkpoint.

Approval and backup

Ask the developer to approve the preview: no record changes, one checkpoint entry. Back up migration.md externally before appending, as the migrate command requires for any live write. Recommend finishing or pausing open deliveries before updating: a lock a 0.6.0 session took has no owner file, so a 0.6.1 session that meets it asks before taking it over. If the project uses Codex, run /factory:codex after updating so $factory-settle is installed. No commit, push or product change is authorized.

Ordered migration instructions

  1. Re-read migration.md and confirm the release-0-6-0 checkpoint is still verified, or, for a catalog created on 0.6.0, that it still has no checkpoint and the developer confirmed the reconstruction in the preview. Confirm nothing changed since the preview; otherwise stop and preview again.
  2. Append the release-0-6-1 checkpoint as the migrate command describes: migration ID, descriptor hash, target 0.6.1, the inventory hash, backup location, the checks run, and "no record changes".

Verification and completion

  • This step changed only migration.md, and only by the appended checkpoint. When the same run applied earlier steps too, the sandbox's changes list covers all of them since the snapshot; judge this step by the hashes of the catalog files just before and after it, not by that list.
  • The live result matches the rehearsal.
  • The overview script, run without --prs, shows the same tasks and statuses as before the step. Don't run /factory:tasks or /factory:settle to check: they may settle merged tasks, which is a write outside this step.

Report the checks and the backup location. Migration makes no task ready, approved, settled or delivered, and starts nothing.

Repeat runs and interrupted migration

  • Verified checkpoint present: check that the checkpoint exists and the records still have the 0.6.0 record shape, read-only, and stop. Write nothing.
  • Interrupted before the checkpoint was written: nothing else was changed, so repeat the step from the preview.
  • Checkpoint written but not marked verified: re-run the checks and mark it verified, or report the failure; never append a second entry.

Rollback and recovery

Nothing but the checkpoint changes, so rollback is reinstalling plugin 0.6.0 and marking the release-0-6-1 checkpoint as rolled back rather than deleting it. 0.6.0 workflows read 0.6.1 records: an owner file in a lock is ignored, a ## Known noise section is ignored, and the new log lines are plain text. Tasks that settle marked done stay done. 0.6.0 doesn't know stacked tasks: before rolling back, list tasks whose delivery.base_ref says stacked on. If such a task's parent has merged, its PR may still target the parent's branch, and merging it there would leave its changes out of the integration branch; with the developer, rebase it onto the branch the parent merged into (from its own delivery.base, so only its own commits move) and retarget its PR there, both, as 0.6.1's Parent merged step does, or finish it on 0.6.1 first. Never run both versions as active writers on one catalog at the same time. Recovery never rewrites product history or deletes the backup.

Maintainer verification

Before release, rehearse with the sandbox helper on disposable fixture projects, never live consumer records:

  • Historical paths: a verified 0.6.0 catalog, and a 0.5.0 catalog that must take the 0.6.0 step first.
  • Mixed content: code and design tasks in several statuses, a held lock without an owner file, settings.md without ## Known noise.
  • Blockers: a missing or partial release-0-6-0 checkpoint.
  • Repeat on a verified project; interruption before the checkpoint; rollback.

node --test tests/*.test.mjs covers the migration index, the shipped-version check and the settle and overview scripts. The agent-run rehearsal is recorded in the release PR with its fixtures, commands and results; instruction tests do not prove an agent follows them.

Original Markdown, including metadata
---
schema_version: 1
migration_id: release-0-6-1
target_version: "0.6.1"
target_layout: "Same <absolute git-common-dir>/factory/ catalog and 0.6.0 task record, unchanged; 0.6.1 only adds optional content written on first use (an owner file in new locks, a Known noise section in settings.md)"
---

# 0.6.1: delivery fixes, no record changes

## Applicability and exclusions

This is the single migration step for the 0.6.1 patch release. It changes no records. It exists so that `/factory:migrate` (which defaults to the installed version) has a verified `0.6.1` target and an explicit no-record-migration decision, as the [sequential upgrade](../updating.md#select-version-scoped-migration-instructions) requires. It runs after the verified `0.6.0` step (`release-0-6-0`). A project several versions behind completes every earlier step first, in the same command.

None of the release's issues needs a record change, by developer decision:

- **Lock owners** (#55): a new lock gets an `owner` file. Locks from earlier versions have none; a session asks the developer before taking one over and never rewrites it silently. This step never adds `owner` files.
- **Known noise** (#80): `settings.md` may gain a `## Known noise` section. A missing section means none. `delivery.baseline` entries may now name the error text; older entries stay valid.
- **Moved base and stacked tasks** (#76, #79): a new `base updated` log line, and stacked tasks record `(stacked on <ID>)` in `delivery.base_ref`. Existing values stay valid.
- **Settle** (#78): a new `/factory:settle` command, and a new `→ done (settle, PR #N merged at <sha>)` log reason. `/factory:tasks` now runs settle first, so it can mark merged tasks `done`.
- **PR comments** (#77): agents label their PR comments; no record changes.

Outcomes:

- **Fresh project** (no catalog): nothing to migrate; record nothing.
- **Verified `0.6.0` project**: write only the `release-0-6-1` checkpoint after the read-only checks below pass.
- **`0.6.0` step missing or partial**: complete it first; this step never runs on top of it.
- **Catalog created on 0.6.0, no migration history** (a project that started using factory at 0.6.0, so there is no `migration.md` or it has no checkpoint for any release, partial or verified): if every task already meets the [0.6.0 record shape](#preconditions-and-read-only-preview) and nothing older is present (no numeric IDs, no `reports/`, no legacy `.factory/` records or reservations), propose to the developer, as the [migrate command](../../skills/migrate/SKILL.md) describes for read-only reconstruction, that the project starts verified at `0.6.0`. Once they confirm, record that reconstructed starting point in the `release-0-6-1` checkpoint and continue. Anything older, any earlier checkpoint (even a partial one: resume that step instead), or a task not in the 0.6.0 shape means the earlier steps are still needed: stop.
- **Already applied** (verified `release-0-6-1` checkpoint): read-only check, no new entries.

## Artifacts and preservation

| Artifact | Change | Kept byte-identical |
| --- | --- | --- |
| `tasks/`, `task-ids/`, `journal.md`, `designs/`, `evidence/`, `settings.md` | None. | Everything. |
| `locks/` | None. Existing locks without an `owner` file are left as they are. | Everything. |
| `migration.md` | The `release-0-6-1` checkpoint is appended. | Every existing line. |
| Product checkouts and branches | Not touched. | Everything. |

## Preconditions and read-only preview

Verify the installed plugin reports `0.6.1` or later and that the catalog's `migration.md` has a verified `release-0-6-0` checkpoint (or the confirmed reconstruction above). The installed version is not evidence earlier steps ran. Check that the current records still have the 0.6.0 record shape: every task's header has every field of its track's template, `depends_on` is a list, every design task past `draft` that isn't `done` has a `reviewer` and an `approach` of `figma` or `prototype`, and its body has exactly `## General description`, `## Goals`, `## Scope of work`, `## Acceptance criteria` and `## Log`. Don't compare with the 0.6.0 backup or inventory: tasks created, edited or finished since that migration are normal. A task outside that shape is a blocker to report, not something this step repairs. Inventory read-only: do not fetch, initialize storage or write. List any held locks (with their `owner` file, if present) so the developer knows which deliveries are still open; a held lock is reported, not a blocker, because this step writes no task. Preview this as an explicit no-record-migration step: the only proposed write is the checkpoint.

## Approval and backup

Ask the developer to approve the preview: no record changes, one checkpoint entry. Back up `migration.md` externally before appending, as the [migrate command](../../skills/migrate/SKILL.md) requires for any live write. Recommend finishing or pausing open deliveries before updating: a lock a 0.6.0 session took has no `owner` file, so a 0.6.1 session that meets it asks before taking it over. If the project uses Codex, run `/factory:codex` after updating so `$factory-settle` is installed. No commit, push or product change is authorized.

## Ordered migration instructions

1. Re-read `migration.md` and confirm the `release-0-6-0` checkpoint is still verified, or, for a catalog created on 0.6.0, that it still has no checkpoint and the developer confirmed the reconstruction in the preview. Confirm nothing changed since the preview; otherwise stop and preview again.
2. Append the `release-0-6-1` checkpoint as the migrate command describes: migration ID, descriptor hash, target `0.6.1`, the inventory hash, backup location, the checks run, and "no record changes".

## Verification and completion

- This step changed only `migration.md`, and only by the appended checkpoint. When the same run applied earlier steps too, the sandbox's `changes` list covers all of them since the snapshot; judge this step by the hashes of the catalog files just before and after it, not by that list.
- The live result matches the rehearsal.
- The [overview script](../../skills/tasks/overview.mjs), run without `--prs`, shows the same tasks and statuses as before the step. Don't run `/factory:tasks` or `/factory:settle` to check: they may settle merged tasks, which is a write outside this step.

Report the checks and the backup location. Migration makes no task ready, approved, settled or delivered, and starts nothing.

## Repeat runs and interrupted migration

- **Verified checkpoint present:** check that the checkpoint exists and the records still have the 0.6.0 record shape, read-only, and stop. Write nothing.
- **Interrupted before the checkpoint was written:** nothing else was changed, so repeat the step from the preview.
- **Checkpoint written but not marked verified:** re-run the checks and mark it verified, or report the failure; never append a second entry.

## Rollback and recovery

Nothing but the checkpoint changes, so rollback is reinstalling plugin `0.6.0` and marking the `release-0-6-1` checkpoint as rolled back rather than deleting it. `0.6.0` workflows read `0.6.1` records: an `owner` file in a lock is ignored, a `## Known noise` section is ignored, and the new log lines are plain text. Tasks that `settle` marked `done` stay `done`. 0.6.0 doesn't know [stacked tasks](../../skills/deliver/SKILL.md#stacked-tasks): before rolling back, list tasks whose `delivery.base_ref` says `stacked on`. If such a task's parent has merged, its PR may still target the parent's branch, and merging it there would leave its changes out of the integration branch; with the developer, rebase it onto the branch the parent merged into (from its own `delivery.base`, so only its own commits move) and retarget its PR there, both, as 0.6.1's **Parent merged** step does, or finish it on 0.6.1 first. Never run both versions as active writers on one catalog at the same time. Recovery never rewrites product history or deletes the backup.

## Maintainer verification

Before release, rehearse with the [sandbox helper](../../scripts/migration-sandbox.mjs) on disposable fixture projects, never live consumer records:

- Historical paths: a verified `0.6.0` catalog, and a `0.5.0` catalog that must take the `0.6.0` step first.
- Mixed content: code and design tasks in several statuses, a held lock without an `owner` file, `settings.md` without `## Known noise`.
- Blockers: a missing or partial `release-0-6-0` checkpoint.
- Repeat on a verified project; interruption before the checkpoint; rollback.

`node --test tests/*.test.mjs` covers the migration index, the shipped-version check and the settle and overview scripts. The agent-run rehearsal is recorded in the release PR with its fixtures, commands and results; instruction tests do not prove an agent follows them.