Millwork knowledge base
19 pages in 1 group.
The tree
Plan
The plan of Millwork and the decisions that it gave.
PRD Millwork: plan Shipped Joe Gaudet · changed 2026-12-04 18 ADRs
Millwork turns rough wire data into finished, typed parts for WarpDrive (ember-data 5.8+).
ADR Codecs use kind: 'field' and kind: 'array' Accepted Joe Gaudet · changed 2026-12-04
Each codec registers as a Transformation and the field uses kind: 'field'.
ADR The adapter memoizes hydrate per record and field Accepted Joe Gaudet · changed 2026-12-04
The WarpDrive adapter wraps each codec Transformation in a memo: WeakMap<record, Map<field, { raw, value }>>.
ADR The legacy door uses withDefaults and plain schema-object Accepted Joe Gaudet · changed 2026-12-04
Millwork uses option B.
ADR The floor stays at WarpDrive 5.8.0 Accepted Joe Gaudet · changed 2026-12-04
The peer range stays @warp-drive/core ^5.8.0.
ADR Shapes write the whole top-level raw value Accepted Joe Gaudet · changed 2026-12-04
Millwork never uses the nested setAttr path.
ADR temporal-polyfill is an optional peer Accepted Joe Gaudet · changed 2026-12-04
@millwork-ts/temporal uses the global Temporal when it is there.
ADR A shape is a kind: 'field' with a Millwork Transformation Accepted Joe Gaudet · changed 2026-12-04
shapeField, shapeArrayField and the polymorphic forms make a kind: 'field' field with type: 'millwork:shape'.
ADR Memo keys, and new raw values Accepted Joe Gaudet · changed 2026-12-04
A kind: 'field' value is memoized by record and field, while the raw value is the same reference.
ADR Millwork finds the store of a checkout copy Accepted Joe Gaudet · changed 2026-12-04
The adapter learns the store of each resource key from each record that storeFor knows.
ADR The class form is the main form; the JSON form has equal power Accepted Joe Gaudet · changed 2026-12-04
The class form is the main form: class Address extends Shape with @field.
ADR Change tracking compares local and remote raw values Accepted Joe Gaudet · changed 2026-12-04
A shape keeps no change log.
ADR The legacy door, and codec registration by name Accepted Joe Gaudet · changed 2026-12-04
Codecs are registered by name.
ADR betterknown for the WKT codec Accepted Joe Gaudet · changed 2026-12-04
The wkt codec uses betterknown.
ADR Codegen is a separate package with one intermediate form Accepted Joe Gaudet · changed 2026-12-04
A new package @millwork-ts/codegen holds the CLI millwork-codegen, the readers, the intermediate form (the contract IR), the classifier and the emitters.
ADR How codegen classifies a contract type Accepted Joe Gaudet · changed 2026-12-04
The classifier uses these rules in this order:
ADR Field rules in core Accepted Joe Gaudet · changed 2026-12-04
A field takes rules (FieldRules) in the class form (@field(ref, { rules })) and in the JSON form ({ name, rules }).
ADR Codegen normalizers for REST and GraphQL wires Accepted Joe Gaudet · changed 2026-12-04
For each contract that is not JSON:API, codegen writes a data map: for each entity, its resource type, its id field, its attributes and its relationships.
ADR Codegen writes standard or legacy decorators Accepted Joe Gaudet · changed 2026-12-04
The config takes decorators: 'standard' | 'legacy'.
What's new
The changes of the 30 days up to the newest change, newest first.
| Date | Page | Author | Change |
|---|---|---|---|
| 2026-12-04 | Codecs use kind: 'field' and kind: 'array' | Joe Gaudet (agent) | Converted from docs/adr/0001-codec-field-kind.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | The adapter memoizes hydrate per record and field | Joe Gaudet (agent) | Converted from docs/adr/0002-memo-cache.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | The legacy door uses withDefaults and plain schema-object | Joe Gaudet (agent) | Converted from docs/adr/0003-legacy-door-base.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | The floor stays at WarpDrive 5.8.0 | Joe Gaudet (agent) | Converted from docs/adr/0004-version-floor.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Shapes write the whole top-level raw value | Joe Gaudet (agent) | Converted from docs/adr/0005-nested-write-strategy.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | temporal-polyfill is an optional peer | Joe Gaudet (agent) | Converted from docs/adr/0006-temporal-browser-support.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | A shape is a kind: 'field' with a Millwork Transformation | Joe Gaudet (agent) | Converted from docs/adr/0007-shape-field-kind.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Memo keys, and new raw values | Joe Gaudet (agent) | Converted from docs/adr/0008-memo-keys.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Millwork finds the store of a checkout copy | Joe Gaudet (agent) | Converted from docs/adr/0009-checkout-store.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | The class form is the main form; the JSON form has equal power | Joe Gaudet (agent) | Converted from docs/adr/0010-declaration-forms.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Change tracking compares local and remote raw values | Joe Gaudet (agent) | Converted from docs/adr/0011-change-tracking.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | The legacy door, and codec registration by name | Joe Gaudet (agent) | Converted from docs/adr/0012-legacy-door-and-registration.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | betterknown for the WKT codec | Joe Gaudet (agent) | Converted from docs/adr/0013-wkt-library.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Codegen is a separate package with one intermediate form | Joe Gaudet (agent) | Converted from docs/adr/0014-codegen-package.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | How codegen classifies a contract type | Joe Gaudet (agent) | Converted from docs/adr/0015-codegen-classification.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Field rules in core | Joe Gaudet (agent) | Converted from docs/adr/0016-field-rules.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Codegen normalizers for REST and GraphQL wires | Joe Gaudet (agent) | Converted from docs/adr/0017-normalizers.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Codegen writes standard or legacy decorators | Joe Gaudet (agent) | Converted from docs/adr/0018-codegen-decorators.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Millwork: plan | Joe Gaudet (agent) | Converted from docs/plan.md to this page. The text is the text of the Markdown file. |
| 2026-12-04 | Millwork: plan | Joe Gaudet (agent) | Status Shipped: the packages of Millwork are at version 1.1.0 (packages/core/package.json). The Markdown file says "draft plan, no code yet" (2026-12-01). |
| 2026-12-03 | Codegen is a separate package with one intermediate form | Joe Gaudet | Status in the Markdown file: Accepted (codegen C0). |
| 2026-12-03 | Codegen is a separate package with one intermediate form | Joe Gaudet | Commit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7) |
| 2026-12-03 | How codegen classifies a contract type | Joe Gaudet | Status in the Markdown file: Accepted (codegen C0). |
| 2026-12-03 | How codegen classifies a contract type | Joe Gaudet | Commit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7) |
| 2026-12-03 | Field rules in core | Joe Gaudet | Status in the Markdown file: Accepted (codegen C0). Adds to ADR 0010. |
| 2026-12-03 | Field rules in core | Joe Gaudet | Commit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7) |
| 2026-12-03 | Codegen normalizers for REST and GraphQL wires | Joe Gaudet | Status in the Markdown file: Accepted (codegen C0). |
| 2026-12-03 | Codegen normalizers for REST and GraphQL wires | Joe Gaudet | Commit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7) |
| 2026-12-03 | Codegen writes standard or legacy decorators | Joe Gaudet | Status in the Markdown file: Accepted (codegen C5). |
| 2026-12-03 | Codegen writes standard or legacy decorators | Joe Gaudet | Commit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7) |
| 2026-12-01 | Codecs use kind: 'field' and kind: 'array' | Joe Gaudet | Status in the Markdown file: Accepted (M0, spikes S1 and S6). |
| 2026-12-01 | Codecs use kind: 'field' and kind: 'array' | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | The adapter memoizes hydrate per record and field | Joe Gaudet | Status in the Markdown file: Accepted (M0, spike S3). |
| 2026-12-01 | The adapter memoizes hydrate per record and field | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | The legacy door uses withDefaults and plain schema-object | Joe Gaudet | Status in the Markdown file: Accepted (M0, spike S4). |
| 2026-12-01 | The legacy door uses withDefaults and plain schema-object | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | The floor stays at WarpDrive 5.8.0 | Joe Gaudet | Status in the Markdown file: Accepted (M0, spike S1). |
| 2026-12-01 | The floor stays at WarpDrive 5.8.0 | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | Shapes write the whole top-level raw value | Joe Gaudet | Status in the Markdown file: Accepted (M0, spike S2). |
| 2026-12-01 | Shapes write the whole top-level raw value | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | temporal-polyfill is an optional peer | Joe Gaudet | Status in the Markdown file: Accepted (M0, spike S5). No test: this spike reads only docs/research.md. |
| 2026-12-01 | temporal-polyfill is an optional peer | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | A shape is a kind: 'field' with a Millwork Transformation | Joe Gaudet | Status in the Markdown file: Accepted (M3). This changes plan section 4.4: a shape does not use schema-object, and a shape array does not use schema-array. |
| 2026-12-01 | A shape is a kind: 'field' with a Millwork Transformation | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | Memo keys, and new raw values | Joe Gaudet | Status in the Markdown file: Accepted (M2). This closes the two open items of ADR 0002. |
| 2026-12-01 | Memo keys, and new raw values | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | Millwork finds the store of a checkout copy | Joe Gaudet | Status in the Markdown file: Accepted (M2). |
| 2026-12-01 | Millwork finds the store of a checkout copy | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
| 2026-12-01 | The class form is the main form; the JSON form has equal power | Joe Gaudet | Status in the Markdown file: Accepted (M3). This answers open questions 1 and 2 of the plan. |
| 2026-12-01 | The class form is the main form; the JSON form has equal power | Joe Gaudet | Commit 0a16254: Build Millwork 1.0 (#1) |
Changes
| Date | Author | Change |
|---|---|---|
| 2026-12-04 | Joe Gaudet | Built from 19 pages. |
Built by skillsaw from the pages and tree.json.