feat(aidd-ui): govern UI systems and experience contracts - #708
Draft
blafourcade wants to merge 5 commits into
Draft
feat(aidd-ui): govern UI systems and experience contracts#708blafourcade wants to merge 5 commits into
blafourcade wants to merge 5 commits into
Conversation
added 5 commits
August 23, 2026 00:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
aidd-uiwas a loader smoke test, not an architectural concern. UI decisions were either implicit or mixed into implementation planning, with no stable contract for design-system evolution or feature experience.Architecture
Ownership is now explicit:
aidd-pmowns product intent and requirements.aidd-contextowns durable project memory.aidd-uiowns shared UI-system contracts, feature experience contracts, and experience review.aidd-devowns implementation and technical correctness.The authority model is:
ui.md= feature experience decisionsMemory remains read-only to
aidd-ui. Repository evidence wins on drift, which is reported for a separate Context-owned refresh.Design-system contract
01-systemmakes the design system a governed capability rather than an asset bundle. It discovers existing conventions, maps ownership scopes, establishes the minimum viable system when absent, and manages explicit deltas through draft, approval, verification, promotion, reconciliation, and retirement.All decisions follow
existing -> reuse -> extend -> create. Higher-level page and composite patterns are considered before primitives and tokens. Concurrent scopes use explicit locks; replacement and nested-scope rules avoid parallel systems and ambiguous ownership.The plugin contracts asset roles, sources, constraints, and acceptance criteria. It does not generate binary assets or production components; those remain implementation work.
Skills
Five domains survived the responsibility review:
01-system: versioned shared UI-system authority and lifecycle02-design: versioned feature-local experience contract, including structure, expression, assets, refinement, and implementation handoff03-review: evidence-pinned, nonnormative experience findings04-accessibility: reusable accessibility requirements and review fragments05-adapt: reusable viewport, input, content-pressure, and motion adaptation fragmentsSeparate handoff and polish skills were removed because they duplicated the design lifecycle. Accessibility and adaptation remain separate providers because each has an independently invocable validation domain.
Compared with Impeccable, which directly shapes and edits frontend implementation,
aidd-uiproduces versioned AIDD decision artifacts and provider fragments. It does not copy Impeccable's command ecosystem, browser tooling, or implementation ownership.Dev integration
Frontend planning discovers and consumes a ready
ui.mdcontract by reference. The legacy wireframe path remains a bounded fallback while the provider is optional. UI-system and contract revisions are revalidated before implementation; drift stops execution and requests replanning.The net change to
aidd-dev:01-planis five lines versusnext; the lifecycle detail lives in the owningaidd-uiskills.Validation
pnpm exec lefthook run pre-commit=> passedpnpm exec lefthook run pre-push=> passed; CLI suites skipped because no matching push filesnode --test \"scripts/__tests__/*.test.js\"=> 8/8 passedclaude plugin validate plugins/aidd-ui --strict=> passedclaude plugin validate plugins/aidd-dev --strict=> passednode scripts/check-skill-argument-hints.mjs=> passednode scripts/check-markdown-links.js=> 0 broken links across 734 links04-skill-generateR1-R19 => ship, no defectsThe evaluator now stages specialist providers, creates deterministic Git fixtures, snapshots files and directories, rejects unexpected mutations, and fails on any nonzero or signaled Claude CLI exit. Four UI cases and two Dev cases hit CLI exit 143 during parallel runs; each passed in an isolated rerun. One fallback defect and one brittle assertion were corrected before the final results above.
Known limitations
aidd-uiremains alpha andrecommended: false.Certification