fix(types): [PKG-FACTORY-01] preserve published factory compatibility

This commit is contained in:
Harvey Zhao committed 2026-09-13 16:53:27 +08:00
1 parent 1117107032
commit c4c7491e16
35 files changed
+670 -229

No files matched your search

+11 -3
View File
@@ -3632,18 +3632,26 @@
{
"id": "FACTORY-TYPE-01",
"title": "Canvas and Ambilight default self property narrows assignability of historical factory replacements",
"status": "open",
"status": "resolved",
"confirmation": "reproduced",
"owners": [
"PKG-FACTORY-01"
],
"compatibleResolution": "Preserve historical complete factory assignments while modeling actual export variants explicitly; do not equate unchanged Parameters with complete callable compatibility. The 72-case proposal matrix demonstrates that required or optional self.default and pure export-default/export-equals shapes each preserve different historical consumers; the proposed latest-release type baseline is awaiting explicit user acceptance.",
"compatibleResolution": "User accepted latest published 1.1.0 root type shapes on 2026-09-13 (ADR-025). Pure factories preserve reverse assignments and NodeNext namespace; additive runtime declarations model optional calls and self aliases. Earlier 1.0 conflicts have explicit migrations.",
"closureCriteria": "Both historical and candidate replacement fixtures, all supported export/declaration paths and installed consumers verified; unresolved variant conflicts require an explicit decision rather than silent narrowing.",
"evidence": [
"refactor/baselines/factory-assignment-gaps.json",
"refactor/changes/2026-09-12-PKG-DPIP-04-types.md",
"refactor/baselines/factory-compatibility-proposals.json",
"refactor/factory-compatibility-decision.md"
"refactor/factory-compatibility-decision.md",
"refactor/type-compatibility-policy.md",
"refactor/baselines/factory-compatibility-validation.json",
"refactor/changes/2026-09-13-PKG-FACTORY-01-compatible-types.md"
],
"resolutionRationale": "34 actual isolated installation cases, 14 zero-diagnostic candidate modes with 14/15 invalid statements each, eight focused tests and shared strict consumer checks; old diagnostics and legal namespace replacements retained. JavaScript files unchanged.",
"resolutionEvidence": [
"refactor/baselines/factory-compatibility-validation.json",
"refactor/changes/2026-09-13-PKG-FACTORY-01-compatible-types.md"
]
},
{