Knowledge base

Millwork knowledge base

19 pages in 1 group.

Status
Current
Owner
Joe Gaudet
Last change
2026-12-04

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.

DatePageAuthorChange
2026-12-04Codecs 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-04The adapter memoizes hydrate per record and fieldJoe Gaudet (agent)Converted from docs/adr/0002-memo-cache.md to this page. The text is the text of the Markdown file.
2026-12-04The legacy door uses withDefaults and plain schema-objectJoe 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-04The floor stays at WarpDrive 5.8.0Joe Gaudet (agent)Converted from docs/adr/0004-version-floor.md to this page. The text is the text of the Markdown file.
2026-12-04Shapes write the whole top-level raw valueJoe 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-04temporal-polyfill is an optional peerJoe 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-04A shape is a kind: 'field' with a Millwork TransformationJoe 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-04Memo keys, and new raw valuesJoe Gaudet (agent)Converted from docs/adr/0008-memo-keys.md to this page. The text is the text of the Markdown file.
2026-12-04Millwork finds the store of a checkout copyJoe Gaudet (agent)Converted from docs/adr/0009-checkout-store.md to this page. The text is the text of the Markdown file.
2026-12-04The class form is the main form; the JSON form has equal powerJoe Gaudet (agent)Converted from docs/adr/0010-declaration-forms.md to this page. The text is the text of the Markdown file.
2026-12-04Change tracking compares local and remote raw valuesJoe Gaudet (agent)Converted from docs/adr/0011-change-tracking.md to this page. The text is the text of the Markdown file.
2026-12-04The legacy door, and codec registration by nameJoe 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-04betterknown for the WKT codecJoe Gaudet (agent)Converted from docs/adr/0013-wkt-library.md to this page. The text is the text of the Markdown file.
2026-12-04Codegen is a separate package with one intermediate formJoe Gaudet (agent)Converted from docs/adr/0014-codegen-package.md to this page. The text is the text of the Markdown file.
2026-12-04How codegen classifies a contract typeJoe Gaudet (agent)Converted from docs/adr/0015-codegen-classification.md to this page. The text is the text of the Markdown file.
2026-12-04Field rules in coreJoe Gaudet (agent)Converted from docs/adr/0016-field-rules.md to this page. The text is the text of the Markdown file.
2026-12-04Codegen normalizers for REST and GraphQL wiresJoe Gaudet (agent)Converted from docs/adr/0017-normalizers.md to this page. The text is the text of the Markdown file.
2026-12-04Codegen writes standard or legacy decoratorsJoe Gaudet (agent)Converted from docs/adr/0018-codegen-decorators.md to this page. The text is the text of the Markdown file.
2026-12-04Millwork: planJoe Gaudet (agent)Converted from docs/plan.md to this page. The text is the text of the Markdown file.
2026-12-04Millwork: planJoe 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-03Codegen is a separate package with one intermediate formJoe GaudetStatus in the Markdown file: Accepted (codegen C0).
2026-12-03Codegen is a separate package with one intermediate formJoe GaudetCommit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7)
2026-12-03How codegen classifies a contract typeJoe GaudetStatus in the Markdown file: Accepted (codegen C0).
2026-12-03How codegen classifies a contract typeJoe GaudetCommit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7)
2026-12-03Field rules in coreJoe GaudetStatus in the Markdown file: Accepted (codegen C0). Adds to ADR 0010.
2026-12-03Field rules in coreJoe GaudetCommit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7)
2026-12-03Codegen normalizers for REST and GraphQL wiresJoe GaudetStatus in the Markdown file: Accepted (codegen C0).
2026-12-03Codegen normalizers for REST and GraphQL wiresJoe GaudetCommit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7)
2026-12-03Codegen writes standard or legacy decoratorsJoe GaudetStatus in the Markdown file: Accepted (codegen C5).
2026-12-03Codegen writes standard or legacy decoratorsJoe GaudetCommit 7b66d71: Add codegen: one contract gives WarpDrive, Millwork, real-enums, Formwright and harnessed code (#7)
2026-12-01Codecs use kind: 'field' and kind: 'array'Joe GaudetStatus in the Markdown file: Accepted (M0, spikes S1 and S6).
2026-12-01Codecs use kind: 'field' and kind: 'array'Joe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01The adapter memoizes hydrate per record and fieldJoe GaudetStatus in the Markdown file: Accepted (M0, spike S3).
2026-12-01The adapter memoizes hydrate per record and fieldJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01The legacy door uses withDefaults and plain schema-objectJoe GaudetStatus in the Markdown file: Accepted (M0, spike S4).
2026-12-01The legacy door uses withDefaults and plain schema-objectJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01The floor stays at WarpDrive 5.8.0Joe GaudetStatus in the Markdown file: Accepted (M0, spike S1).
2026-12-01The floor stays at WarpDrive 5.8.0Joe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01Shapes write the whole top-level raw valueJoe GaudetStatus in the Markdown file: Accepted (M0, spike S2).
2026-12-01Shapes write the whole top-level raw valueJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01temporal-polyfill is an optional peerJoe GaudetStatus in the Markdown file: Accepted (M0, spike S5). No test: this spike reads only docs/research.md.
2026-12-01temporal-polyfill is an optional peerJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01A shape is a kind: 'field' with a Millwork TransformationJoe GaudetStatus 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-01A shape is a kind: 'field' with a Millwork TransformationJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01Memo keys, and new raw valuesJoe GaudetStatus in the Markdown file: Accepted (M2). This closes the two open items of ADR 0002.
2026-12-01Memo keys, and new raw valuesJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01Millwork finds the store of a checkout copyJoe GaudetStatus in the Markdown file: Accepted (M2).
2026-12-01Millwork finds the store of a checkout copyJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)
2026-12-01The class form is the main form; the JSON form has equal powerJoe GaudetStatus in the Markdown file: Accepted (M3). This answers open questions 1 and 2 of the plan.
2026-12-01The class form is the main form; the JSON form has equal powerJoe GaudetCommit 0a16254: Build Millwork 1.0 (#1)

Changes

DateAuthorChange
2026-12-04Joe GaudetBuilt from 19 pages.

Built by skillsaw from the pages and tree.json.