The check
warlock grimoire check reads the written files, the book and the tests, and reports every place where they
disagree: a step that names a route that does not exist, a criterion no test proves, a file no feature owns. It
only reads. It never changes a written file or a source file.
npx warlock grimoire checknpx warlock grimoire check --all # list every findingnpx warlock grimoire check --jsonThe output
Section titled “The output”One line per finding, then the counts:
grimoire/features/auth/flows/login.md:29 GR4001 warning auth/login AC-1 has no testgrimoire/features/catalog/flows/browse-products.md:26 GR4001 warning catalog/browse-products AC-1 has no testgrimoire/features/catalog/flows/new-arrivals.md:30 GR4001 warning catalog/new-arrivals AC-3 has no testgrimoire/features/catalog/flows/wishlist.md:12 GR2001 error route step "POST /api/wishlist" matches no route (expected)grimoire/features/catalog/flows/wishlist.md:13 GR2004 error notification step "wishlist-price-drop" matches no notification (expected)grimoire/features/catalog/flows/wishlist.md:30 GR4001 warning catalog/wishlist AC-1 has no test (expected)0 errors, 3 warnings, 3 expected (routes: fresh)- Each line is
<file>:<line> <code> <severity> <message>. A finding with no single place shows-. - Under each error that is not expected, a line
fix: …says what to do. - Problems come first: errors, then warnings, each by file and line. Expected findings come last.
- The last line counts the errors and warnings that are not expected, and the expected findings. It also says how fresh the route facts were.
- Errors always print in full. When a code has more than five warnings, the text shows the first five of that code,
then
… GR3001: 6547 findings in all, 6542 not shown, and a line says how many findings were not listed. A project with no written files yet therefore prints a few lines per code, not thousands.--alllists every finding. - The last lines are the book state and the time, after any output the app printed while it booted.
--jsonis always complete. It prints the report object:findings(each withcode,severity,message,at,expected,subjectandhint),counts,okandroutes.
The command exits with code 1 when there is an error that is not expected, and 0 otherwise. Warnings never fail it.
Expected findings
Section titled “Expected findings”A feature or flow with status: proposed describes work that is not built yet, so its routes, pages and tests do
not exist. Every finding about it is marked (expected): it is listed so you can see what is still to build, and it
never fails the check. Once the code exists, set the status to building or shipped; from then on the same
findings are problems.
Route facts
Section titled “Route facts”Route steps, and mail, job, event and notification steps, are checked against facts that need the app to boot. The
check refreshes them when the routes files changed (routes: fresh). A route step matches a route the same way
warlock scry --route does: params written either way (:id or [id]), a trailing / ignored, the method in any
case, and ALL matching any method. GR2001 means no route matches that way.
- When they are older than the routes files (
routes: stale), the steps are checked against the cached facts and the report addsGR8003. - When there are none (
routes: missing, the app did not boot), those steps are not checked.GR8002says why. Page steps andaffectssteps are always checked.
What it checks
Section titled “What it checks”| Area | It reports | Codes |
|---|---|---|
| Written files | a file that does not follow its template | GR1001–GR1028 |
| Steps | a route, page, mail, notification, job, event or flow that does not exist | GR2001–GR2007 |
| App names | a feature, flow, criterion or task naming an app with no folder, or one its feature does not list | GR2008, GR2009 |
| References | a changelog entry or README relation naming a flow or criterion that does not exist | GR2010–GR2012 |
| Source files | no header sentence, no feature, two owners, a wrong @feature tag or folder, a file no flow reaches | GR3001–GR3006 |
| Tests | a criterion with no test, a @proves line that names nothing or has the wrong form, failed or old results | GR4001–GR4008 |
| Apps | blocks, conditions, pages, layouts and screens that point at nothing | GR5001–GR5010 |
| Versions | the README version or date out of step with the changelog, a release that does not match | GR6001–GR6008 |
| Tasks | a task naming a feature or flow that does not exist, or in the wrong folder | GR7001–GR7005 |
| Code rules | with rules: in grimoire/settings.md: physical directions in styles, generic error text, kind, .js | GR3007–GR3010 |
| Focused tests | a test focused with .only or skipped with .skip | GR4011, GR4012 |
| Shown | a @shows line that names nothing, a language with no capture, a scene that failed | GR4013–GR4016 |
| Approvals | a change since the approved baseline, a rejected change that is still there | GR4017–GR4019 |
| Public API | routes that differ from the approved snapshot | GR7013 |
warlock grimoire guard reports GR7006–GR7012 for a change checked against its task (see
Drift controls).
Steps and criteria of a retired flow are not looked up: its code is gone on purpose.
A test proves a criterion with a line comment directly above it:
// @proves catalog/new-arrivals AC-2it("returns the global list when the customer has no country", async () => { // …});The check reads these lines from the test files the book lists: spec files under the source roots,
e2e/**/*.e2e.ts and tests/**/*.{test,spec}.ts at the project root. Lines inside block comments are ignored. See
Test results for the reporter that records their last results.
Look up a code
Section titled “Look up a code”npx warlock explain GR2001It prints the title, the fix and the skill for the code. Every code is listed below.
From code
Section titled “From code”import { checkGrimoire, formatCheckReport, openGrimoire } from "@warlock.js/grimoire";import { createWarlockAdapter } from "@warlock.js/grimoire/warlock";
const snapshot = await openGrimoire(process.cwd(), createWarlockAdapter(), { routes: "cached" });const report = checkGrimoire(snapshot);
console.log(formatCheckReport(report).join("\n"));scanProofsInText(text, file) reads the @proves lines of one test file’s text, and scanProofs(root, files) reads
them from a list of project-relative test files. Both return the proof lines and the GR4003–GR4005 findings.
What GR3006 leaves out
Section titled “What GR3006 leaves out”A route step reaches the handler’s files and the middleware files the matched route names; the routes file’s other
imports are not followed, because it imports every controller of its module. Files whose role runs them by being
present (migration, seed, command, main, layout and root) are never reported. A command is a file named
*.command.ts or one directly in a module’s commands folder. A file only spec files import is left out only when it
is a test helper, that is, it sits in a tests, __tests__, fixtures, support or test-utils location (or is
named *.test-utils.*). A source file only its own spec imports is still reported: it is dead code.
GR5008 without route facts
Section titled “GR5008 without route facts”Mail and notification entries are checked against what the booted app reports. Without route facts
(routes: missing) they are skipped, like the route and named-thing steps, so a first open in dev shows no false
GR5008.
Each code keeps its meaning across releases. An error fails the check unless it is expected; a warning never does.
GR1xxx: written files
Section titled “GR1xxx: written files”GR1001
Section titled “GR1001”A written file has no front matter.
- Severity: error
- What to do: Start the file with the front matter block its template shows, between two
---lines. - Skill:
write-a-feature
GR1002
Section titled “GR1002”The front matter cannot be read.
- Severity: error
- What to do: Write one
key: valueper line; lists as[a, b]or as- itemlines under the key; close the block with---. - Skill:
write-a-feature
GR1003
Section titled “GR1003”A required front matter key is missing.
- Severity: error
- What to do: Add the key named in the message; the template of that file lists every required key.
- Skill:
write-a-feature
GR1004
Section titled “GR1004”A front matter value has the wrong form.
- Severity: error
- What to do: Use the form the message names: dates as yyyy-mm-dd, versions as 2.1, ids in lower-case-with-dashes, a status from the list (a task status is open, waiting for approval, approved, in progress, blocked, done or dropped; a question for the owner is waiting for approval).
- Skill:
write-a-feature
GR1005
Section titled “GR1005”A front matter key is not part of the template.
- Severity: warning
- What to do: Remove the key, or move what it says into the body of the file.
- Skill:
write-a-feature
GR1006
Section titled “GR1006”A required heading is missing.
- Severity: error
- What to do: Add the heading named in the message, spelled as in the template.
- Skill:
write-a-feature
GR1007
Section titled “GR1007”A heading is not part of the template.
- Severity: warning
- What to do: Use the template’s headings; put the text under one of them or remove it.
- Skill:
write-a-feature
GR1008
Section titled “GR1008”A step line has the wrong form.
- Severity: error
- What to do: Write steps as
1. route POST /wishlist: a number, a kind, then the name used in code. - Skill:
write-a-feature
GR1009
Section titled “GR1009”A step names an unknown kind.
- Severity: error
- What to do: Use one of: page, route, mail, notification, job, event, outside service, affects.
- Skill:
write-a-feature
GR1010
Section titled “GR1010”Steps are not numbered 1, 2, 3 in order.
- Severity: error
- What to do: Number the steps from 1 without gaps, in the order a user meets them.
- Skill:
write-a-feature
GR1011
Section titled “GR1011”A case line has the wrong form.
- Severity: error
- What to do: Write cases as
- double submit two taps save once: the question, spaces, then the answer. - Skill:
write-a-feature
GR1012
Section titled “GR1012”A case question is not answered.
- Severity: warning
- What to do: Answer the question under Cases (or
does not applyand why), or list it under Not handled. A flow with no writes (only pages and GET, HEAD or OPTIONS routes) may leave outduplicateanddouble submit. - Skill:
write-a-feature
GR1013
Section titled “GR1013”A criterion line has the wrong form.
- Severity: error
- What to do: Write criteria as
- AC-3 a guest is sent to sign in, optionally- AC-4 [mobile] …. - Skill:
write-a-feature
GR1014
Section titled “GR1014”A criterion id is used twice in one flow.
- Severity: error
- What to do: Give the new criterion the next free number. Never renumber existing criteria.
- Skill:
write-a-feature
GR1015
Section titled “GR1015”A changelog line has the wrong form.
- Severity: error
- What to do: Write entries as
- 2.1 fixed new-arrivals: what changed (AC-2). - Skill:
record-a-change
GR1016
Section titled “GR1016”A changelog entry uses an unknown word.
- Severity: error
- What to do: Use one of: added, changed, fixed, removed.
- Skill:
record-a-change
GR1017
Section titled “GR1017”A changelog heading has the wrong form.
- Severity: error
- What to do: Use
## Unreleased, or## <release> (<yyyy-mm-dd>)for entries of a release. - Skill:
record-a-change
GR1018
Section titled “GR1018”A blocks table has the wrong form.
- Severity: error
- What to do: Use the columns Block, Flow, Who sees it, Changes with; one row per part of the page.
- Skill:
describe-an-app
GR1019
Section titled “GR1019”An id does not match its folder or file name.
- Severity: error
- What to do: Make the front matter
id(orrelease) equal the folder or file name. - Skill:
write-a-feature
GR1020
Section titled “GR1020”A file in the grimoire folder is not part of the layout.
- Severity: warning
- What to do: Move the file to where the layout expects it, or remove it.
- Skill:
use-the-grimoire
GR1021
Section titled “GR1021”A feature, app, page or screen folder has no README.md.
- Severity: error
- What to do: Add README.md with the front matter of its template.
- Skill:
write-a-feature
GR1022
Section titled “GR1022”Two files use the same id.
- Severity: error
- What to do: Give each feature, app or task its own id.
- Skill:
write-a-feature
GR1023
Section titled “GR1023”A task file is misnamed or misplaced.
- Severity: error
- What to do: Name tasks
T-<n>-<slug>.md, intasks/open/ortasks/done/<yyyy-mm>/. - Skill:
record-a-change
GR1024
Section titled “GR1024”The collected-list markers of a release file are broken.
- Severity: error
- What to do: Keep the start and end markers in pairs, or remove both and run
warlock grimoire releaseagain. - Skill:
record-a-change
GR1025
Section titled “GR1025”A written file cannot be read.
- Severity: error
- What to do: Save the file as UTF-8 text.
- Skill:
use-the-grimoire
GR1026
Section titled “GR1026”The feature README lists a flow that has no file.
- Severity: error
- What to do: Add
flows/<flow>.md, or remove the flow from the README’s Flows list. - Skill:
write-a-feature
GR1027
Section titled “GR1027”A flow file is not listed in the feature README.
- Severity: warning
- What to do: Add the flow to the README’s Flows list.
- Skill:
write-a-feature
GR1028
Section titled “GR1028”A list line has the wrong form.
- Severity: error
- What to do: Write list lines as
- name text: the name, spaces, then the text. - Skill:
write-a-feature
GR1029
Section titled “GR1029”An image line points outside grimoire/screenshots.
- Severity: warning
- What to do: Keep screenshots in
grimoire/screenshots/and write the path relative to the Markdown file, like. - Skill:
write-a-feature
GR1030
Section titled “GR1030”A flow has no summary.
- Severity: warning
- What to do: Write one or two plain sentences under the flow’s
# Title: who does what, and what they get. - Skill:
write-a-feature
GR2xxx: names that point at nothing
Section titled “GR2xxx: names that point at nothing”GR2001
Section titled “GR2001”A route step names a route that does not exist.
- Severity: error
- What to do: Fix the method and path in the flow, or add the route in code.
- Skill:
record-a-change
GR2002
Section titled “GR2002”A page step names a page that does not exist.
- Severity: error
- What to do: Fix the route path in the flow, or add the page to one of the feature’s apps. A step scoped like
page /support [web-admin]looks only in that app. - Skill:
record-a-change
GR2003
Section titled “GR2003”A mail step names a mail that does not exist.
- Severity: error
- What to do: Use the mail’s name as code defines it, or add the mail.
- Skill:
record-a-change
GR2004
Section titled “GR2004”A notification step names a notification that does not exist.
- Severity: error
- What to do: Use the notification’s name as code defines it, or add it.
- Skill:
record-a-change
GR2005
Section titled “GR2005”A job step names a job that does not exist.
- Severity: error
- What to do: Use the job’s name as code defines it, or add the job.
- Skill:
record-a-change
GR2006
Section titled “GR2006”An event step names an event that does not exist.
- Severity: error
- What to do: Use the event’s name as code emits it, or add the event.
- Skill:
record-a-change
GR2007
Section titled “GR2007”An affects step names a feature or flow that does not exist.
- Severity: error
- What to do: Write
affects <feature>/<flow>with an existing feature and flow. - Skill:
write-a-feature
GR2008
Section titled “GR2008”A name refers to an app with no folder.
- Severity: error
- What to do: Add
grimoire/apps/<app>/README.md, or fix the app id. - Skill:
describe-an-app
GR2009
Section titled “GR2009”A flow names an app its feature does not list.
- Severity: warning
- What to do: Add the app to the feature’s
apps, or fix the app id in Differs by app or the criterion. - Skill:
write-a-feature
GR2010
Section titled “GR2010”A changelog entry names a flow that does not exist.
- Severity: error
- What to do: Fix the flow id before the
:, or add the flow. - Skill:
record-a-change
GR2011
Section titled “GR2011”A changelog entry names a criterion the flow does not have.
- Severity: error
- What to do: Fix the criterion id, or add the criterion to the flow.
- Skill:
record-a-change
GR2012
Section titled “GR2012”A README relation names a flow that does not exist.
- Severity: error
- What to do: Fix the
<feature>/<flow>reference in Affects and affected by. - Skill:
write-a-feature
GR2013
Section titled “GR2013”A case names a criterion the flow does not have.
- Severity: error
- What to do: Fix the
(AC-n)at the end of the case line, or add the criterion under Acceptance criteria. - Skill:
write-a-feature
GR2014
Section titled “GR2014”An image line names a screenshot file that does not exist.
- Severity: warning
- What to do: Add the image under
grimoire/screenshots/, or fix the path. - Skill:
write-a-feature
GR3xxx: source files
Section titled “GR3xxx: source files”GR3001
Section titled “GR3001”A source file has no header sentence.
- Severity: warning
- What to do: Start the file with a one-sentence comment saying why it exists.
- Skill:
document-a-file
GR3002
Section titled “GR3002”A source file belongs to no feature.
- Severity: warning
- What to do: Add its folder to a feature’s
folders, or tag it@feature <id>in its header. - Skill:
document-a-file
GR3003
Section titled “GR3003”A source file has two owners.
- Severity: error
- What to do: Keep one owner: remove the duplicate folder from one feature, or keep one
@featuretag. - Skill:
document-a-file
GR3004
Section titled “GR3004”A @feature tag names a feature that does not exist.
- Severity: error
- What to do: Fix the tag, or write the feature.
- Skill:
document-a-file
GR3005
Section titled “GR3005”A feature’s folders entry does not exist.
- Severity: error
- What to do: Fix the folder or file path, or remove it from
folders. - Skill:
write-a-feature
GR3006
Section titled “GR3006”A file in a feature’s folders is reached by no flow.
- Severity: warning
- What to do: Describe the behaviour in a flow, or delete dead code.
- Skill:
record-a-change
GR3007
Section titled “GR3007”A style uses a physical direction where a logical one is needed.
- Severity: error
- What to do: Use the logical form (
margin-inline-start,text-align: start,inset-inline-start,ms-4,text-start,start-0) so right-to-left languages work. When the physical side is really meant, writegrimoire-allow logical-css: <why>in a comment on that line. - Skill:
guard-a-change
GR3008
Section titled “GR3008”A user-facing error message is generic.
- Severity: error
- What to do: Say what failed and what to do next (“Could not reach the server, check your connection”), mapped from the error code. When the text is not shown to users, write
grimoire-allow specific-errors: <why>in a comment on that line. - Skill:
guard-a-change
GR3009
Section titled “GR3009”A discriminator field is named kind.
- Severity: error
- What to do: Name the field
type. - Skill:
guard-a-change
GR3010
Section titled “GR3010”A relative import path ends in .js.
- Severity: error
- What to do: Drop the extension:
./orders.service, not./orders.service.js. - Skill:
guard-a-change
GR4xxx: criteria and tests
Section titled “GR4xxx: criteria and tests”GR4001
Section titled “GR4001”A criterion has no test.
- Severity: warning
- What to do: Write a test with
// @proves <feature>/<flow> AC-<n>above it, or say in the task why not. - Skill:
record-a-change
GR4002
Section titled “GR4002”A @proves line names a flow or criterion that does not exist.
- Severity: error
- What to do: Fix the
@provesline to name an existing<feature>/<flow> AC-<n>. - Skill:
record-a-change
GR4003
Section titled “GR4003”A @proves line has the wrong form.
- Severity: error
- What to do: Write
// @proves <feature>/<flow> AC-<n>on its own line. - Skill:
record-a-change
GR4004
Section titled “GR4004”A @proves line is not directly above a test.
- Severity: error
- What to do: Move the line right above the
it(…)ortest(…)it describes. - Skill:
record-a-change
GR4005
Section titled “GR4005”One test proves two criteria.
- Severity: warning
- What to do: Split the test so each proves one criterion.
- Skill:
record-a-change
GR4006
Section titled “GR4006”A test proving a criterion failed in its last run.
- Severity: error
- What to do: Fix the code or the test, then run the tests again.
- Skill:
record-a-change
GR4007
Section titled “GR4007”A criterion’s test result is older than the test file.
- Severity: warning
- What to do: Run the tests again.
- Skill:
record-a-change
GR4008
Section titled “GR4008”A criterion’s test did not run in the last run.
- Severity: warning
- What to do: Run the tests that prove the criterion.
- Skill:
record-a-change
GR4009
Section titled “GR4009”Tests prove criteria but no test results are recorded.
- Severity: warning
- What to do: Add
grimoireReporter()from@warlock.js/grimoire/vitesttotest.reportersin the Vitest config and run the tests; in production, ship the results file with the deploy. - Skill:
record-a-change
GR4010
Section titled “GR4010”The reporter could not match a proving test to its result.
- Severity: warning
- What to do: Keep the
it(...)ortest(...)call on the line right under the@provescomment, with a plain string name. - Skill:
record-a-change
GR4011
Section titled “GR4011”A test is focused with .only.
- Severity: error
- What to do: Remove
.only: it makes the runner skip every other test in the file. - Skill:
record-a-change
GR4012
Section titled “GR4012”A test is skipped with .skip.
- Severity: warning
- What to do: Remove
.skip, or use.skipIf(<condition>)with the reason the test cannot run there. - Skill:
record-a-change
GR4013
Section titled “GR4013”A @shows line has the wrong form or no matching shows() call.
- Severity: error
- What to do: Write
// @shows <feature>/<flow> AC-<n>on its own line, directly aboveawait shows(context, "<feature>/<flow> AC-<n>", …)naming the same criterion. - Skill:
record-a-change
GR4014
Section titled “GR4014”A @shows line names a flow or criterion that does not exist.
- Severity: error
- What to do: Fix the
@showsline and itsshows()call to name an existing<feature>/<flow> AC-<n>. - Skill:
record-a-change
GR4015
Section titled “GR4015”A shown criterion has no capture in a language.
- Severity: warning
- What to do: Run the browser tests (
npx warlock e2e);GRIMOIRE_SHOTS=allcaptures every flow, not only the changed ones. - Skill:
record-a-change
GR4016
Section titled “GR4016”A shown criterion failed in a language.
- Severity: error
- What to do: Open the capture and the error in the Bird view, fix the code or the scene, then run the browser tests again.
- Skill:
record-a-change
GR4017
Section titled “GR4017”A capture differs from its approved version.
- Severity: warning
- What to do: Compare the two images in the Bird view; the owner approves or rejects the change (
warlock grimoire approve <id>). List it in your report. - Skill:
record-a-change
GR4018
Section titled “GR4018”A flow, criterion, case or proving test changed since the last approval.
- Severity: warning
- What to do: The owner approves or rejects it in the Bird view (
warlock grimoire approve <id>). List it in your report. - Skill:
record-a-change
GR4019
Section titled “GR4019”A change the owner rejected is still there.
- Severity: error
- What to do: Undo the rejected change the message names, then run the check again.
- Skill:
record-a-change
GR5xxx: apps, pages and blocks
Section titled “GR5xxx: apps, pages and blocks”GR5001
Section titled “GR5001”A block points to a flow that does not exist.
- Severity: error
- What to do: Fix the
<feature>/<flow>in the Flow column or the block file. - Skill:
describe-an-app
GR5002
Section titled “GR5002”A condition is not declared in the app README.
- Severity: error
- What to do: Add the condition under Conditions in the app README, or use a declared one.
- Skill:
describe-an-app
GR5003
Section titled “GR5003”A page’s route does not exist in its site.
- Severity: error
- What to do: Fix the
routeof the page file, or remove the page file if the page is gone. - Skill:
describe-an-app
GR5004
Section titled “GR5004”A page names a layout with no file.
- Severity: error
- What to do: Add
layouts/<layout>.mdto the app, or fix the page’slayout. - Skill:
describe-an-app
GR5005
Section titled “GR5005”An app’s root matches no site or mobile app.
- Severity: error
- What to do: Set
rootto the site folder (src/web/$sites/<site>) or the mobile app folder. - Skill:
describe-an-app
GR5006
Section titled “GR5006”A screen’s route does not exist in the mobile app.
- Severity: error
- What to do: Fix the
routeof the screen file, or remove it if the screen is gone. - Skill:
describe-an-app
GR5007
Section titled “GR5007”A block file has no row in its page’s Blocks table.
- Severity: warning
- What to do: Add the block to the page’s Blocks table, or remove the block file.
- Skill:
describe-an-app
GR5008
Section titled “GR5008”An entry point in Also reached from does not exist.
- Severity: error
- What to do: Fix the mail, notification or page name.
- Skill:
describe-an-app
GR5009
Section titled “GR5009”A site or mobile app has no folder in grimoire/apps.
- Severity: warning
- What to do: Add
grimoire/apps/<app>/README.mdfor it. - Skill:
describe-an-app
GR5010
Section titled “GR5010”A name in backticks in Changes with is not a declared condition.
- Severity: warning
- What to do: Declare the condition under Conditions in the app README, fix the name, or write it without backticks when it is not a condition.
- Skill:
describe-an-app
GR6xxx: versions, changelogs and releases
Section titled “GR6xxx: versions, changelogs and releases”GR6001
Section titled “GR6001”A release lists a changelog entry that is not stamped with it.
- Severity: error
- What to do: Move the entry under
## <release> (<date>)in the feature’s CHANGELOG.md. - Skill:
record-a-change
GR6002
Section titled “GR6002”A changelog release section has no release file.
- Severity: error
- What to do: Write
grimoire/releases/<release>.md, or fix the release in the heading. - Skill:
record-a-change
GR6003
Section titled “GR6003”A changelog release date differs from the release file.
- Severity: error
- What to do: Use the date in the release file’s front matter.
- Skill:
record-a-change
GR6004
Section titled “GR6004”The README updated is older than the newest changelog entry.
- Severity: error
- What to do: Reshape the README to describe the feature as it is now, and set
updated. - Skill:
record-a-change
GR6005
Section titled “GR6005”The README version differs from the newest changelog entry.
- Severity: error
- What to do: Set
versionto the newest entry’s version. - Skill:
record-a-change
GR6006
Section titled “GR6006”A changelog word does not match its version step.
- Severity: warning
- What to do: Use a whole-number version for added and removed, a decimal for changed and fixed.
- Skill:
record-a-change
GR6007
Section titled “GR6007”A flow’s since is newer than its feature’s version.
- Severity: error
- What to do: Fix
since, or the featureversion. - Skill:
write-a-feature
GR6008
Section titled “GR6008”A new whole-number version has no brief.
- Severity: warning
- What to do: Write
versions/v<n>.mdbefore building it. - Skill:
write-a-feature
GR7xxx: tasks
Section titled “GR7xxx: tasks”GR7001
Section titled “GR7001”A task names a feature that does not exist.
- Severity: error
- What to do: Fix the task’s
feature, or write the feature first. - Skill:
write-a-feature
GR7002
Section titled “GR7002”A task names a flow that does not exist.
- Severity: error
- What to do: Fix the task’s
flow, or write the flow first. - Skill:
write-a-feature
GR7003
Section titled “GR7003”A task’s status does not match its folder.
- Severity: error
- What to do: Done tasks live in
tasks/done/<yyyy-mm>/withstatus: doneandshipped; open tasks intasks/open/. - Skill:
record-a-change
GR7004
Section titled “GR7004”A task’s shipped names a version the changelog does not have.
- Severity: error
- What to do: Fix
shipped: <feature> <version>, or add the changelog entry. - Skill:
record-a-change
GR7005
Section titled “GR7005”A task’s brief does not exist.
- Severity: warning
- What to do: Fix the
Brief:path, or write the brief. - Skill:
write-a-feature
GR7006
Section titled “GR7006”A changed file is outside the task.
- Severity: error
- What to do: Change only the files of the task’s features and its
Files:line. When the file belongs to the change, add it toFiles:(or its feature toFeatures:) and say why in the task. - Skill:
guard-a-change
GR7007
Section titled “GR7007”The change removes a flow, criterion or case the task does not name.
- Severity: error
- What to do: Restore it, or name it in the task’s
Removes:line once the owner agreed. - Skill:
guard-a-change
GR7008
Section titled “GR7008”The change deletes a proving test.
- Severity: error
- What to do: Restore the test, or name its criterion in
Removes:when the criterion goes too. - Skill:
guard-a-change
GR7009
Section titled “GR7009”The change edits a locked test.
- Severity: error
- What to do: A locked test is the task’s acceptance: change the code, not the test. Ask the owner when the test itself is wrong.
- Skill:
guard-a-change
GR7010
Section titled “GR7010”A changed test has fewer assertions than before.
- Severity: warning
- What to do: Keep every assertion, or say in the task why one goes.
- Skill:
guard-a-change
GR7011
Section titled “GR7011”The change touches a protected area the task does not name.
- Severity: error
- What to do: Leave the area unchanged, or name it in the task’s
Touches:line once the owner agreed (migrations, auth, public-api, config, lockfile, dependencies, or an area of the settings). - Skill:
guard-a-change
GR7012
Section titled “GR7012”A commit does not name its task.
- Severity: error
- What to do: Name the task id in the commit message (
T-12). - Skill:
guard-a-change
GR7013
Section titled “GR7013”The public API differs from its approved snapshot.
- Severity: warning
- What to do: Once the owner agreed, approve it with
warlock grimoire approve api; otherwise undo the change. - Skill:
guard-a-change
GR8xxx: building the book
Section titled “GR8xxx: building the book”GR8001
Section titled “GR8001”The project’s source files could not be read.
- Severity: error
- What to do: Read the message; fix the file or folder it names, then build again.
- Skill:
use-the-grimoire
GR8002
Section titled “GR8002”Route facts could not be read because the app did not boot.
- Severity: warning
- What to do: Run
warlock doctor, fix what stops the app from booting, thenwarlock grimoire build. - Skill:
use-the-grimoire
GR8003
Section titled “GR8003”Route facts are older than the routes files.
- Severity: warning
- What to do: Run
warlock grimoire buildto refresh them. - Skill:
use-the-grimoire
GR8004
Section titled “GR8004”Pages or screens could not be read.
- Severity: warning
- What to do: Read the message; fix the page file it names, then build again.
- Skill:
use-the-grimoire
GR9xxx: commands and queries
Section titled “GR9xxx: commands and queries”GR9001
Section titled “GR9001”The file is not in the book.
- Severity: error
- What to do: Pass a code file under the source roots, as a project-relative path.
- Skill:
use-the-grimoire
GR9002
Section titled “GR9002”No route matches.
- Severity: error
- What to do: Pass
"<METHOD> <path>"as the route is registered;warlock routeslists them. - Skill:
use-the-grimoire
GR9003
Section titled “GR9003”No feature has that id.
- Severity: error
- What to do: Use an id from
grimoire/features/. - Skill:
use-the-grimoire
GR9004
Section titled “GR9004”No flow has that id.
- Severity: error
- What to do: Use
<feature>/<flow>with a file ingrimoire/features/<feature>/flows/. - Skill:
use-the-grimoire
GR9005
Section titled “GR9005”The release file has no brief yet.
- Severity: error
- What to do: Write
grimoire/releases/<release>.mdwithreleaseanddatefront matter and the brief, then run the command again. - Skill:
record-a-change
GR9006
Section titled “GR9006”A query argument has the wrong form.
- Severity: error
- What to do: Read the command’s help (
warlock scry --help) and pass the argument in that form. - Skill:
use-the-grimoire
GR9007
Section titled “GR9007”The book is not built.
- Severity: error
- What to do: Run
warlock grimoire build, then ask again.warlock scryonly reads the book; it never builds it. - Skill:
use-the-grimoire
GR9008
Section titled “GR9008”The guard has no task to check the change against.
- Severity: error
- What to do: Pass the task id (
warlock grimoire guard T-12), pass--commits <range>whose commits name their tasks, or have exactly one taskin progress. - Skill:
guard-a-change
GR9009
Section titled “GR9009”Git could not answer.
- Severity: error
- What to do: Run inside a git repository and pass a base that exists (
--base origin/main); in CI, fetch the full history. - Skill:
guard-a-change
GR9010
Section titled “GR9010”Nothing matches the approve or reject target.
- Severity: error
- What to do: Pass a change id from the Bird view or the check, a
<feature>/<flow>,api, or--all. - Skill:
record-a-change