1- # v0.40.5 Version Plan - Audit-Driven Quality Cleanup
1+ # v0.40.6 Version Plan - Audit-Driven Quality Cleanup
22
33## Objective
44
@@ -11,15 +11,15 @@ ADR-0105 and recorded in ADR-0106.
1111
1212## Context
1313
14- v0.40.5 continues the product line established by v0.40.4:
14+ v0.40.6 continues the product line established by v0.40.4:
1515
1616``` text
1717openElement = Elements + UI + Framework + Protocols
1818```
1919
2020The current 11-package graph is documented in ` docs/current/PACKAGE_SURFACE.md ` .
2121v0.40.4 completed the Package Graph Collapse To 11, the Preact island proof, the
22- SignalEngine default switch under ADR-0104, and release hardening. v0.40.5 does
22+ SignalEngine default switch under ADR-0104, and release hardening. v0.40.6 does
2323not revisit those decisions; it only cleans up the internal quality gaps that
2424the audit exposed.
2525
@@ -45,35 +45,35 @@ the audit exposed.
4545
4646- ADR-0101 is the product-line reset and AutoFlow3 authority boundary.
4747- ADR-0105 approves the v0.40.x breaking cleanup train.
48- - ADR-0106 approves the audit-driven quality cleanup scope for v0.40.5 .
49- - AutoFlow3 patch automation must refuse v0.40.5 execution unless the release
48+ - ADR-0106 approves the audit-driven quality cleanup scope for v0.40.6 .
49+ - AutoFlow3 patch automation must refuse v0.40.6 execution unless the release
5050 state references the approved plan id ` ADR-0105/v0.40.x-cleanup-train ` or
51- ` ADR-0105+ADR-0106/v0.40.5 -audit-cleanup ` .
51+ ` ADR-0105+ADR-0106/v0.40.6 -audit-cleanup ` .
5252
5353## Workstreams
5454
55- ### v0.40.5 - Audit Documentation
55+ ### v0.40.6 - Audit Documentation
5656
5757- [x] Add ` docs/audit/2026-06-15-architecture-audit.md ` .
5858- [x] Reference the audit and ADR-0106 in ` docs/status/STATUS.md ` .
5959- [x] Archive the v0.40.4 plan to ` docs/release/v0.40.4-plan.md ` .
6060
61- ### v0.40.5 - Element Test Hardening
61+ ### v0.40.6 - Element Test Hardening
6262
6363- [x] Add unit tests for ` OpenElement ` lifecycle, DSD/CSR switching, signal
6464 hydration, prop reflection, and error boundaries.
6565- [x] Achieve ` element ` test/source ratio ≥ 0.7:1 (22 tests, ~ 1188 lines of
6666 tests vs ~ 1648 lines of source).
6767
68- ### v0.40.5 - UI Component Tests
68+ ### v0.40.6 - UI Component Tests
6969
7070- [x] Add rendering and interaction tests for each ` open-* ` component.
7171- [x] Add missing ` open-dropdown ` , ` open-modal ` , and ` open-tabs ` entries to
7272 ` packages/ui/src/manifest.ts ` .
7373- [x] Achieve ` ui ` test/source ratio ≥ 0.25:1 (67 tests, ~ 1264 lines of tests
7474 vs ~ 4544 lines of source).
7575
76- ### v0.40.5 - File Size Reduction
76+ ### v0.40.6 - File Size Reduction
7777
7878- [x] Split ` packages/ssg/src/route-scanner.ts ` into
7979 ` route-scanner-ast.ts ` + ` route-scanner-fs.ts ` + orchestrator
@@ -86,7 +86,7 @@ the audit exposed.
8686 ` build-constants.ts ` (` build-ssg.ts ` reduced from ~ 526 to ~ 492 lines).
8787- [x] Ensure all public exports remain unchanged.
8888
89- ### v0.40.5 - Error Handling Unification
89+ ### v0.40.6 - Error Handling Unification
9090
9191- [x] Introduce a shared ` formatError(e: unknown): string ` utility in
9292 ` packages/core/src/errors.ts ` .
@@ -95,22 +95,22 @@ the audit exposed.
9595- [x] Convert remaining bare ` throw new Error(...) ` calls in the touched files
9696 to framework error types where appropriate.
9797
98- ### v0.40.5 - Runtime Assertion Cleanup
98+ ### v0.40.6 - Runtime Assertion Cleanup
9999
100100- [x] Replace ` shadowRoot! ` assertions in ` element/src/open-element.ts ` with a
101101 local ` root ` variable guarded by an early return.
102102- [x] Add runtime guards for RegExp match indices in ` ssg/src/postprocess.ts ` .
103103- [x] Add runtime guard for ` openElement.module ` in
104104 ` ssg/src/entry-descriptor.ts ` and remove the non-null assertion chain.
105105
106- ### v0.40.5 - Naming Debt Cleanup
106+ ### v0.40.6 - Naming Debt Cleanup
107107
108108- [x] Verify no ` less: ` virtual module prefixes remain in active source.
109109- [x] Verify no ` lessjs ` / ` LessJS ` references remain in active source comments
110110 or identifiers (only the architecture-contract checker retains the
111111 legacy-name detection regex by design).
112112
113- ### v0.40.5 - Adapter-Vite Simplification
113+ ### v0.40.6 - Adapter-Vite Simplification
114114
115115- [x] Move alias normalization into ` packages/adapter-vite/src/alias-utils.ts ` .
116116- [x] Move build constants into ` packages/adapter-vite/src/build-constants.ts ` .
@@ -119,7 +119,7 @@ the audit exposed.
119119- [x] Move the HTML sanitizer specifier into a shared constant.
120120- [x] No change to the public Vite plugin API.
121121
122- ### v0.40.5 - Logging Cleanup
122+ ### v0.40.6 - Logging Cleanup
123123
124124- [x] Replace ` console.* ` calls in ` router/src/client-router.ts ` ,
125125 ` adapter-vite/src/cli/build.ts ` , ` create/cli.ts ` ,
@@ -210,6 +210,6 @@ deno task publish:dry-run
210210
211211## Release Evidence
212212
213- - ` docs/release/v0.40.5 .md ` summarizing audit-driven changes.
213+ - ` docs/release/v0.40.6 .md ` summarizing audit-driven changes.
214214- Updated ` docs/status/STATUS.md ` active line section.
215215- JSR publish dry-run and post-publish consumer smoke evidence.
0 commit comments