Recorded 2026-10-10 at the user’s request. Status: user preferences, assistant recommendations, and open design questions; not an approved specification or implementation plan. Coordinate C001, R001, M001, K001, STD001, PKG001 and the concurrency foundations. Do not interrupt FX008 or expand the active implementation milestone.
The user values Rust and PureScript modules and TypeScript’s ESM experience. They also want fp-ts-style selection and construction of specific instances, such as a last-value semigroup, without requiring a newtype. This extends C001’s existing multiple-instance direction. Recording it does not select module syntax, class syntax, implicit resolution, or a runtime representation.
Evaluate namespace/import organization, encapsulation, implementation composition, and package/build integration separately. Compare:
Assistant recommendation for M001: clear explicit imports/exports, enforced package-internal boundaries, abstract types, and predictable resolution. Evaluate imports with no hidden runtime initialization; resource acquisition and service startup would then be explicit effectful operations. Choose type/package identity and abstraction rules before polishing import spelling. Stable binary separate compilation remains deferred as recorded in M001; interface checking is a distinct concern.
Do not add ML functors automatically. First compare what functions, records, classes, and effect handlers already express. Parameterized modules are valuable where they establish relationships between abstract types; avoid parallel mechanisms with overlapping responsibilities.
An explicit instance is conceptually a dictionary of operations. Illustrative pseudocode, not approved Waxwing syntax:
combineAll(sum, numbers)
combineAll(product, numbers)
combineAll(last, numbers)
recordSemigroup({ count: sum, latest: last })
The same data type can support several implementations. Functions can construct or combine dictionaries, including selecting an instance per record field. No wrapper type is needed solely to choose behavior. Newtypes remain useful for actual domain distinctions and invariants.
Distinguish providing operations from selecting an implementation. Compare explicit evidence with optional implicit defaults; any implicit selection must have predictable ambiguity, overlap, scope and termination rules. Assistant recommendation: make explicit named evidence a supported foundation, and assess implicit convenience separately. Decided 2026-10-21 as option A: ordinary record representation, with dedicated class evidence deferred (see C001 rulings).
Rust’s orphan rules restrict trait implementations, roughly requiring a local trait or implementing type, with additional generic coverage rules. Haskell permits orphan instances; GHC can warn about them. Do not describe Haskell as imposing Rust’s ownership prohibition. These systems address implicit resolution and coherence; explicitly passed dictionaries avoid that selection ambiguity but do not remove all consistency obligations.
A sorted set built with one ordering must not be searched or merged using an incompatible ordering. Assess retaining the dictionary, type-level identity/witnesses, or abstract module types. (Ruled 2026-10-21: retain the dictionary and rebuild explicitly; structural reuse waits for a compatibility witness; see C001 rulings.) Retention alone does not make merging collections with different policies safe. Define compatibility and cross-module behavior without assuming pointer identity or newtypes are mandatory. Coordinate these decisions with map/set APIs and specialization.
Laws are separate from dictionary shape. Providing a Semigroup operation does not prove associativity; providing Ord operations does not prove their ordering laws. Distinguish compiler-established guarantees, trusted built-ins, user obligations and property-test evidence. If parallel reduction or another optimization relies on a law, specify exactly what justifies the rewrite, including effect order and observable failures. Modules/classes alone do not prove laws, race freedom, or deterministic execution.
Apply the assurance register before implementation planning. State dictionary elaboration’s typing guarantee, the coherence promise for any implicit selection, and its termination argument. Explicit evidence must survive elaboration and specialization without changing the selected implementation. Follow published qualified-type rules and flag departures under ADR 014; select a mechanized proof scope only after the rules exist.
For collections, state how lookup/update retain the governing instance and how cross-module operations handle incompatible instances. For modules, state abstraction and type-identity guarantees. Keep evidence of class laws separate from type safety and selection: property tests are bounded checks, and law-dependent rewrites need an explicit justification.
Before implementation plans, specify examples that demonstrate:
Dictionary representation is decided (C001 option A, 2026-10-21). Resolve selection in C001, module and type identity in M001/PKG001, and laws in STD001/concurrency planning. No syntax, functor system, global-instance policy or law-proof mechanism is approved by this note.
Sources consulted for the discussion; no implementation code copied: