Tasks and releases
Tasks and releases are written by agents and committed with the code, because they are the history of the
project. Warlock reads them and checks them. It never edits an agent-written file, with two exceptions: the
collected list between the markers of a release file, and warlock grimoire release --stamp, which stamps the
feature changelogs and writes a missing release file only when you pass --stamp (see “Stamp from the release flow” below).
grimoire/tasks/ open/T-014-wishlist.md done/2026-11/T-010-new-arrivals-no-country.md index.json Warlock. Not in git.One file per task, named T-<n>-<slug>.md. Open tasks live in open/. A finished task moves to
done/<yyyy-mm>/, the month it shipped.
---id: T-014type: featurefeature: catalogflow: wishlistapps: [web-client, mobile]status: waiting for approval---
# Let customers save products to a wishlist
- Asked by: the owner, 2026-11-16- Why: customers ask to keep products for later- Brief: features/catalog/versions/v3.md- Decision needed: one wishlist per customer, or several named lists?-
typeisbug,feature,decisionorchore. -
statusis one ofopen,waiting for approval,approved,in progress,blocked,done,dropped. -
featureandfloware optional.flowis a flow id insidefeature, or<feature>/<flow>. -
Brief:is a path relative togrimoire/. -
warlock grimoire guardreads these optional body lines, each a comma-separated list (globs allowed):- Files: src/app/shared/utils/money.ts, src/config/catalog.ts- Features: orders, catalog/wishlist- Locked: src/app/catalog/tests/wishlist.test.ts- Touches: migrations, dependencies- Removes: catalog/wishlist AC-3, catalog/wishlist case duplicateFiles:lists files outside the task’s feature that the change may touch.Features:names more features or flows (<feature>/<flow>).Locked:names the acceptance tests that no one may edit.Touches:names the protected areas the task may change.Removes:names the flows, criteria and cases that may go (<feature>/<flow>,<feature>/<flow> AC-3,<feature>/<flow> case duplicate). See Drift controls. -
A done task has
status: doneandshipped: <feature> <version>(shipped: catalog 2.1).
Move a single tasks file to the folder
Section titled “Move a single tasks file to the folder”If your app keeps one file of tasks (for example docs/tasks.md with T-nnn entries), move it once:
- Create
grimoire/tasks/open/andgrimoire/tasks/done/. - Make one file per entry. Name it
T-<n>-<slug>.mdand keep the id.### T-014 [feature] Wishlistbecomesid: T-014,type: featureand the heading# Wishlist. - Put the entry’s other lines in the body as
- Key: valuelines (SourcebecomesAsked by,What and whybecomesWhy). - Give each entry its status. An entry that waits for the owner’s decision gets
status: waiting for approval, and the question goes in- Decision needed: .... An entry being worked on getsin progress. A new one getsopen. - Move finished entries to
done/<yyyy-mm>/withstatus: doneandshipped: <feature> <version>, using the month they shipped. - Link a task to its feature with
featureandflowwhen it has one, so the check can follow it. - Delete the old file once every entry has moved, and point your agent notes at
grimoire/tasks/.
warlock grimoire check tells you what is left to fix: a misnamed or misplaced file, a duplicate id, a done
task without shipped.
Releases
Section titled “Releases”A release file is grimoire/releases/<release>.md. The agent writes it first: the front matter, a heading and a
brief of two or three sentences on what the release means to users.
---release: 1.4.1date: 2026-11-20---
# Release 1.4.1
Customers with no country now see new arrivals again, and orders can be paid later.Who writes what
Section titled “Who writes what”| Step | Who |
|---|---|
Move the entries from ## Unreleased under ## <release> (<yyyy-mm-dd>) in each feature changelog | The agent, or warlock grimoire release --stamp |
| Write the release file’s front matter and brief | The agent, or --stamp writes a first brief |
warlock grimoire release 1.4.1 | Warlock writes the collected list between the markers |
Without --stamp, Warlock never edits a feature changelog or the brief. A spec of the package asserts that their bytes
are unchanged after a release run.
Stamp from the release flow
Section titled “Stamp from the release flow”npx warlock grimoire release --stampRun it in the app’s release flow, after the version is bumped in package.json. It does the first two steps of the
table and then collects: every feature changelog with entries under ## Unreleased gets a ## <version> (<date>)
section holding them (and an empty ## Unreleased above), the release file is written when it is missing, and the
list is collected into it. The command prints stamped catalog, orders → 1.4.0 (2026-11-24), then
wrote grimoire/releases/1.4.0.md when it created the file. The generated brief only names the changed features, so
rewrite it in the owner’s words, then run npx warlock grimoire release 1.4.0 again if you want the list refreshed.
The stamp is the only edit Warlock makes to files an agent wrote, and only when you pass --stamp. It changes the
## Unreleased heading line and adds one heading line and a blank line; every other byte stays. It stops with GR9006
when the version is missing, the date is not yyyy-mm-dd, or a section for the version already has another date. The
commands page has the options.
Collect the list
Section titled “Collect the list”npx warlock grimoire release 1.4.1The command collects only the entries the agent stamped with that release, and writes them between the markers:
<!-- grimoire:collected:start -->## Changes
### catalog- 2.1 fixed new-arrivals: a customer with no country saw an empty list (AC-2)
### orders- 3.0 added pay-later: customers can pay within 14 days<!-- grimoire:collected:end -->- Entries are grouped by feature, newest version first.
- When the file has no markers, the command adds them at the end. When it has them, only the text between them changes.
- With no stamped entries the list says
No feature changes. - Running the command again, for this release or an older one, gives the same file byte for byte.
- Entries still under
## Unreleasedare not collected. The command prints a note, for example2 entries are still unreleased: catalog 2.2, orders 3.1, so you can stamp them first. - When the release file does not exist, has no
releaseanddate, or has no brief, the command stops withGR9005and changes nothing. Write the brief, then run it again.
warlock grimoire check reports these. warlock explain GR6001 prints the fix.
GR6001
Section titled “GR6001”A release file lists an entry that no feature changelog has under ## <release> (<yyyy-mm-dd>). Move the entry
under the release section, or run the command again so the list matches the changelog.
GR6002
Section titled “GR6002”A feature changelog has a section for a release that has no grimoire/releases/<release>.md. Write the release
file, or fix the release in the heading.
GR6003
Section titled “GR6003”The date in a changelog heading differs from the date in the release file. Use the date of the release file.
GR7001
Section titled “GR7001”A task names a feature that has no folder under grimoire/features/.
GR7002
Section titled “GR7002”A task names a flow that has no file, or a flow with no feature to look it up in.
GR7003
Section titled “GR7003”A task’s status does not match its folder. done/ holds tasks with status: done and shipped; open/ holds the
rest.
GR7004
Section titled “GR7004”A task’s shipped: <feature> <version> names a version the feature’s changelog does not have.
GR7005
Section titled “GR7005”A task’s Brief: path does not exist under grimoire/.
GR9005
Section titled “GR9005”The release file has no brief yet. Write grimoire/releases/<release>.md with release and date front matter
and the brief, then run the command again.