components icon indicating copy to clipboard operation
components copied to clipboard

[EPIC] Automated Material Expressive library improvement pipeline

Open Banegasn opened this issue 4 months ago • 26 comments

Outcome

Turn this repository into a continuously improving Material 3 Expressive component library where autonomous implementation agents can claim small, fully specified work, prove acceptance criteria, and safely advance the next dependency stage.

Audit baseline (2026-07-13)

  • 25 publishable Lit Material packages plus one private Svelte package; about 8,104 lines across package source files.
  • All 27 workspaces build, but the Angular demo emits a 731.17 kB initial bundle against a 500 kB warning budget plus four stylesheet budget warnings.
  • Only 5 Material packages have tests; the root test command currently fails before useful completion.
  • Root lint fails because ESLint is not installed; only 4 workspaces define lint.
  • No pull-request CI; existing workflows only deploy on main and publish on release/manual dispatch.
  • Production audit reports 21 advisories: 10 high and 11 moderate.
  • Published m3-card output contains an extensionless relative ESM import.
  • Form controls expose form-like APIs without form-associated custom-element behavior.
  • High-risk focus/keyboard/lifecycle gaps exist in dialog, menus, radio groups, tabs, tooltips, dynamic slots, and snackbar timers.
  • Approximately 67 transitions and 12 animations exist with zero reduced-motion rules and no shared motion tokens.
  • Release scripts mass-bump packages, rewrite registries, use ambiguous root tags, and can partially publish to two registries.
  • The declared MIT LICENSE is absent; no contributor/security templates or machine-readable custom-elements API manifest exist.
  • Demo routes/metadata/sitemap/base-path policy drift, and visual screenshots rely on CDN/private state while suppressing page errors.

Queue rules

  1. An implementation agent may claim only an open issue carrying agent-ready and not blocked.
  2. The agent opens one focused branch/PR, links the issue, and maps changes/tests to every acceptance criterion.
  3. The agent does not broaden scope; newly discovered work becomes a linked issue.
  4. Verification commands and relevant artifacts are included in the PR.
  5. After a prerequisite merges, the planning/review agent removes blocked, adds agent-ready, and updates dependency links.
  6. Public API changes require migration notes and semver/release assessment.
  7. Accessibility changes require keyboard/name assertions; visual/motion changes require reduced-motion evidence.

Phase 0 — immediately claimable foundations

  • [x] #3 — vulnerable dependencies and automated security updates
  • [x] #4 — m3-card ESM fix and archive import smoke test
  • [x] #5 — standardized lint/test/typecheck/build toolchain
  • [ ] #14 — shared Material token/theming foundation
  • [x] #18 — license, governance, and agent execution templates

Phase 1 — unlock after toolchain/package gates

  • [ ] #6 — required PR CI and release gates
  • [ ] #7 — form-associated controls
  • [ ] #8 — modal dialog focus/naming
  • [ ] #9 — menu/FAB/split-button contract
  • [ ] #10 — scoped radio-group model
  • [ ] #19 — complete tabs/tabpanel pattern
  • [ ] #20 — accessible rich/plain tooltips
  • [ ] #21 — optional semantic attribute and indicator semantics
  • [ ] #22 — dynamic slot reactivity
  • [ ] #23 — text-field API reconciliation

Phase 2 — system-wide quality and design

  • [ ] #11 — remaining interactive component accessibility
  • [ ] #12 — full cross-browser contract/coverage matrix
  • [ ] #13 — expressive motion + reduced motion (resolves the concern in #2)
  • [ ] #24 — snackbar timing/lifecycle

Phase 3 — distribution and consumer experience

  • [ ] #15 — package-aware release automation
  • [ ] #16 — generated API docs and verified framework examples
  • [ ] #17 — demo performance, visual, and accessibility regression suite
  • [ ] #25 — deployment base path, route metadata, sitemap, and canonical URLs

Program-level definition of done

  • [ ] Required PR checks enforce frozen install, lint, typecheck, tests, audit policy, build, package import, docs, and accessibility gates.
  • [ ] Every public package has executable behavioral contracts and a packed-artifact consumer smoke test.
  • [ ] Interactive components satisfy documented keyboard, focus, form, name, state, and lifecycle behavior.
  • [ ] The token/motion system is centralized, documented, themeable, and honors reduced motion.
  • [ ] Releases are package-aware, reviewable, provenance-capable, and publish the exact tested artifacts.
  • [ ] Public APIs, READMEs, demo pages, metadata, and generated manifests agree.
  • [ ] The queue contains no stale agent-ready issue whose prerequisites are unmet.

Planning ownership

The coordinating agent owns sequencing, issue clarity, dependency/label transitions, and review against acceptance criteria. Implementation is delegated to worker agents; the coordinator does not mix unrelated code changes into worker branches.

Banegasn avatar Jul 13 '26 08:07 Banegasn

Wave 1 status: #3 → PR #29 (in-review), #4 → PR #27 (in-review), #5 → PR #30 (in-review), #18 → PR #28 (in-review). #14 is claimed and in-progress. Merge order should preserve/reconcile overlaps: package/card/root scripts (#27), governance/license lifecycle (#28), dependency lock/security policy (#29), then rebase the broad toolchain PR #30 so it contains all prior P0 changes. Queue convention refined: remove agent-ready and add in-progress immediately when claimed; replace with in-review when a PR opens.

Banegasn avatar Jul 13 '26 08:07 Banegasn

Foundation merge wave completed: PRs #27, #28, #29, #30, and #31 were sequentially rebased, fully verified, and merged into main. Closed: #3, #4, #5, #18. Issue #14 remains open because #31 intentionally delivered only the shared token foundation; it is agent-ready for incremental component migrations. With package smoke and the shared quality toolchain merged, #6 is now unblocked and is the next P0 queue item.

Banegasn avatar Jul 13 '26 09:07 Banegasn

Dependency release: #14 merged via #74, establishing the shared token contract. Motion-system issue #13 is now agent-ready and will be implemented next.

Banegasn avatar Jul 28 '26 16:07 Banegasn

Policy update: legacy token compatibility is intentionally being removed in #75. Motion issue #13 is re-blocked until the clean canonical contract merges.

Banegasn avatar Jul 28 '26 16:07 Banegasn

Clean-break token policy is merged in #76. Motion system #13 is resumed against the canonical-only contract.

Banegasn avatar Jul 28 '26 16:07 Banegasn

PR CI is now merged and enforced on main (required context: quality). P0 form-associated controls #7 and modal-dialog contract #8 are now agent-ready and delegated in parallel.

Banegasn avatar Jul 29 '26 05:07 Banegasn

Execution is now parallel across all unblocked P0 tracks: #7 form-associated controls, #8 modal dialog, and #9 menu/FAB/split-button. #10 will be released after #7 merges; #12 follows with the component-family contract batches.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Merged #7 (form-associated controls) after independent review and hosted three-browser quality passed. #10 is now unblocked and delegated. #8 and #9 are in their final protected CI runs after review fixes.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Merged #9 (menu/FAB/split-button public contracts) after independent review and protected quality passed. #8 remains in final quality validation; #10 is in implementation.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Released independent #19 (tabs/tabpanel ARIA interaction contract) now that its toolchain and CI prerequisites are complete. It is delegated in parallel with #10 radio.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Merged #8 (modal dialog contract) after independent review, focused 30-case cross-engine verification, and final protected quality passed. Active implementation continues on #10 radio and #19 tabs.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Released independent #20 (tooltip accessibility/rich contract) for implementation in parallel with #10 radio remediation and #19 tabs.

Banegasn avatar Jul 29 '26 10:07 Banegasn

Merged #10 (scoped radio model) after dynamic-scope remediation, independent review, and protected multi-browser quality passed. P0 #7–#10 dependency chain is complete; #19 tabs and #20 tooltips continue in implementation.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Merged #20 (keyboard-accessible plain/rich tooltip contract) after lifecycle remediation, independent review, and protected multi-browser quality passed. #19 tabs has independent approval and is being rebased once onto this baseline to preserve both test-port assignments.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Merged #19 (ARIA tabs/tabpanel contract) after independent review, final rebase preserving tooltip/tabs browser ports, and protected multi-browser quality passed. Completed P1 batch: #19 and #20. Next planned work is #12 cross-browser contract/coverage expansion plus the remaining P1 component/accessibility queue.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Released #12 cross-browser contract/coverage expansion as the next system-level P1 stage after merging #7–#10, #19, and #20.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Released #21 optional semantic-attribute accessibility sweep in an isolated worktree, parallel to the #12 coverage-matrix batch.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Released #22 dynamic slot-layout reactivity as the third isolated P1 implementation stream.

Banegasn avatar Jul 29 '26 11:07 Banegasn

Merged #21 (semantic attribute accessibility sweep) after independent review, strict rebase, and protected quality passed. #86 coverage-matrix batch has review approval and is being rebased onto this latest baseline.

Banegasn avatar Jul 29 '26 16:07 Banegasn

Released #23 text-field API/form/a11y reconciliation after its form and semantic-attribute prerequisites merged.

Banegasn avatar Jul 29 '26 16:07 Banegasn