Implementing an Approved Base Semantic Slice
Turn a maintainer-approved Base P/T boundary into a minimal, coherent, executable vertical slice.
Implementing a new Base Prototype is normally an advanced contribution. The contributor’s primary responsibility is to implement the approved protocol faithfully, not to reopen subject identity, ownership, or public API while coding.
What counts as approved?
Section titled “What counts as approved?”Before implementation, the issue or linked checkpoint must approve:
- the independent protocol subject and Base-admission conclusion;
- input facts, owners, observable outputs, and synchronization rules;
- the negative boundary;
- Root, Part, and anatomy identities;
- exact props, states, events, methods, and absence assertions;
- the P entity, T entity, and executable-evidence plan;
- required Module, Host Capability, and cross-Adapter evidence; and
- later design-language projections and compositions that remain out of scope.
A directory name, draft code, informal consensus, or reference component library is not approval. Do not implement while the issue still carries needs maintainer design.
Base-admission check
Section titled “Base-admission check”An approved slice should satisfy:
- Independent subject: it does not exist for styled-library inheritance or package symmetry.
- Explicit information path: each core guarantee has an input fact, owner, output, and rule.
- Cross-host stability: protocol meaning does not depend on React, Vue, or a DOM trick.
- Distinct responsibility: existing Base protocols or composition cannot express it without loss.
- Negative boundary: visual, business, focus, layout, form, and announcement responsibilities that it does not own are explicit.
- Executable evidence: every retained criterion maps to a substantive T case and real test.
If implementation reveals that one of these cannot hold, report the design gap instead of forcing the code through an empty asHook, host escape hatch, or special-case branch.
Implementation workflow
Section titled “Implementation workflow”1. Turn criteria into a delivery map
Section titled “1. Turn criteria into a delivery map”For each P criterion, list:
- owner;
- allowed inputs;
- observable output;
- controlled/uncontrolled or lifecycle rule;
- negative assertion;
- T case;
- implementation path; and
- required Adapter or host profile.
This mapping is the review spine. File count is not a completion measure.
2. Implement the smallest owner
Section titled “2. Implement the smallest owner”- Only the approved owner holds state.
- Parts consume ownership through context, relationships, or existing shared capabilities.
- Keep styled variants, host raw objects, and future composition out of Base.
- When direct Prototype and authored
asHookdescribe one protocol, share implementation rather than fork behavior. - Respect existing setup, runtime, view-epoch, and terminal-disposal boundaries.
3. Build P/T and focused evidence
Section titled “3. Build P/T and focused evidence”- Make P criteria individually addressable.
- Anchor T cases to exact criteria.
- Verify results and absence assertions in executable tests.
- Controlled requests must not silently mutate final state.
- Cover disabled, empty, duplicate, structural-churn, teardown, and other checkpoint boundaries.
- Tests across the three Web Adapters prove one Web host profile, not general multi-host conformance.
4. Complete package and consumer surfaces
Section titled “4. Complete package and consumer surfaces”Every new public Base identity or anatomy family must appear on a reachable website page in the same pull request. A checkpoint may decide which approved states the page demonstrates, but it cannot omit this preview surface. Record the local preview route in the pull request.
The complete consumer surface includes:
- family source, shared types, and public subpath;
- exact root exports;
- CLI registry and facade generation;
- Base docs, API notes, and a real demo;
- Web Component, React, and Vue previews; and
- spec workspace and Agent projections.
Keep later Shadcn, Brutalist, or other design-language projections in separate contributions.
Use the website demo as real consumption evidence
Section titled “Use the website demo as real consumption evidence”The demo should consume Base through a public package subpath and prefer Base’s own anatomy, triggers, state, events, and defaults for visible interaction. It must not rely on page control logic that consumers do not receive with the package to simulate autonomous behavior.
For example, a Dialog demo should use dialog-trigger to request Root open. Calling a Dialog expose from an unrelated Button callback bypasses the cataloged anatomy information path. Minimal external orchestration is allowed only when Base has no natural trigger by design, or when public controls are themselves the protocol under demonstration. Toast-style invocation and direct Transition control are typical exceptions.
Keep any exception outside the Prototype, use public APIs only, and explain its necessity and the consumer-owned portion in the demo source and pull request. It must not hide missing anatomy, misplaced ownership, uncataloged capability, or Adapter drift. The internal Demo Matrix may add three-Adapter evidence but cannot replace the website page.
5. Handle design gaps explicitly
Section titled “5. Handle design gaps explicitly”Pause and request a checkpoint if:
- a criterion has no unique owner;
- implementation needs public API absent from the checkpoint;
- existing Module or Host Capability slices cannot carry required behavior;
- the three Adapters expose different protocol semantics;
- implementation needs a raw host event, target, or object escape hatch;
- the negative boundary prevents the approved behavior; or
- applicable entities genuinely contradict one another.
Report the exact criterion, implementation evidence, and alternatives instead of silently widening scope.
Pull-request organization
Section titled “Pull-request organization”A reviewer should be able to follow:
approved checkpoint→ P criteria and relations→ T cases and executable paths→ owner implementation→ focused Base tests→ required Adapter evidence→ exports, CLI, docs, and demoStacked or draft pull requests may help review a large slice, but do not separately merge half of a public guarantee when that would create known spec drift. Every merged unit must be independently coherent and valuable.
Validation
Section titled “Validation”Run issue-specific focused tests first, then at least:
corepack pnpm@10.32.1 check:prototype-catalogcorepack pnpm@10.32.1 workspace:generatecorepack pnpm@10.32.1 check:agent-doccorepack pnpm@10.32.1 check:typescorepack pnpm@10.32.1 testcorepack pnpm@10.32.1 docs:buildChanges to the public package graph also require package manifest, build, budget, and relevant consumer smoke checks. Record what was run, what was not applicable, and all remaining uncertainty.
Final check
Section titled “Final check”- Implementation did not reopen the approved API by analogy.
- No empty Base identity was created for a styled-library need.
- A single Web Adapter fact was not promoted into cross-host semantics.
- P criteria, T evidence, implementation, and public projections agree.
- Later styled projections and compositions remain out of scope.
- DCO, provenance, and material AI-assistance disclosure are complete.