← How the benchmark works

diff --git a/.wingfoil/directives/custom/project-conventions.md b/.wingfoil/directives/custom/project-conventions.md
new file mode 100644
index 0000000000000000000000000000000000000000..fc752710c04f77c671c81d80edc51e5deea97add
--- /dev/null
+++ b/.wingfoil/directives/custom/project-conventions.md
@@ -0,0 +1,28 @@
+---
+id: project-conventions
+name: project-conventions
+type: directive
+kind: custom
+title: "Tidy Tasks conventions"
+---
+
+# Tidy Tasks conventions
+
+The project is a TypeScript ESM package (`"type": "module"`, strict, `erasableSyntaxOnly`) that runs
+`.ts` files directly on Node. Follow what the code already does.
+
+- Test with `npm test` (`node --test "test/*.test.ts"`, `node:test` and `node:assert/strict`). There is
+  no build step and no test dependency: do not introduce a framework, a bundler or a transpiler.
+- Imports of local files carry the `.ts` extension; type-only imports use `import type`.
+- No TypeScript syntax that needs transpiling: no `enum`, no `namespace`, no constructor parameter
+  properties. Use union types and `as const`-style constants (see `PRIORITIES`).
+- Domain values are immutable: `readonly` fields, and operations return new values instead of mutating.
+- Failures are `Result` values built with `ok()` and `err()`, with a `TodoErrorCode` and a message fit for
+  the person using the app. A new kind of failure adds a code to `TodoErrorCode`.
+- Titles are trimmed and are the key of a task; the list is ordered by `compareTasks` (open first, then
+  most urgent, then title). Keep listings in that stable order.
+- `src/index.ts` is the only public API the app's screens use: export new public functions and types from
+  it, and keep internals out of it.
+- Tests go in `test/*.test.ts`, drive the list through `src/index.ts`, and cover a happy path and an error
+  or edge path for each behaviour (for example `duplicate`, `not-found`, `invalid-state`).
+- Comments: TSDoc on exported functions and interfaces, written as plain sentences; no commented-out code.
diff --git a/.wingfoil/dna.yaml b/.wingfoil/dna.yaml
index 37cbf4b993146ae92371780bd5541e782d0b0232..96d83a481e44762275188b7dad6f20efbbaddf31 100644
--- a/.wingfoil/dna.yaml
+++ b/.wingfoil/dna.yaml
@@ -10,15 +10,21 @@ project:
 # Modules — the parts of the system (anatomy for navigation). Add your own.
 modules:
   - name: domain
-    description: the task list and its operations, under src/domain
+    description: the task list and its operations, under src/domain (task.ts, list.ts, result.ts, summary.ts); pure, deterministic, errors returned as Result
   - name: api
-    description: the public API the app's screens use, src/index.ts
+    description: the public API the app's screens use, src/index.ts; every export the screens need is re-exported there
+  - name: tests
+    description: node:test suites under test/, run through the public API in src/index.ts (npm test)
 
 # Stacks — technologies + methodologies in use. The methodologies come from the Kanban template.
 stacks:
   technologies:
     - name: TypeScript
       category: language
+    - name: Node.js
+      category: runtime
+    - name: node:test
+      category: testing
   methodologies:
     - name: Kanban
     - name: Specification by Example (BDD)
@@ -41,8 +47,8 @@ team:
 
 # Resource paths — query categories used to navigate the project.
 paths:
-  sources: []
-  tests: []
-  docs: []
+  sources: [src]
+  tests: [test]
+  docs: [docs, README.md]
   config: [.wingfoil]
-  governance: []
+  governance: [docs/memory]
diff --git a/.wingfoil/roles.yaml b/.wingfoil/roles.yaml
index 024cc1fe16873fb603701a399312f0cb659e8b76..fbd7d9cd322bbcba26f0fc7a4c1e34e714798804 100644
--- a/.wingfoil/roles.yaml
+++ b/.wingfoil/roles.yaml
@@ -11,11 +11,18 @@ assignments:
     - r2-tsdoc-on-exports
     - r3-no-clock-or-randomness
     - r4-errors-as-result
+    - project-conventions
   reviewer:
     - code-review
+    - project-conventions
+    - r1-no-new-dependency
+    - r2-tsdoc-on-exports
+    - r3-no-clock-or-randomness
+    - r4-errors-as-result
     - traceability
   qa:
     - testing
+    - project-conventions
   architect:
     - architecture
     - determinism