Document the web-platform-first frontend architecture#11
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d3689cba64
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| | Field | Value | | ||
| | ------------ | ----------- | | ||
| | Status | Development | | ||
| | Scope | Frontend | |
There was a problem hiding this comment.
Classify the record as Experience
The canonical guidance requires every meaningful change to be classified as Kernel, Extension, or Experience, but this metadata introduces Frontend as a fourth scope. That prevents the record from identifying its canonical review boundary; because it governs the application UI, classify it as Experience instead.
AGENTS.md reference: AGENTS.md:L15-L19
Useful? React with 👍 / 👎.
Summary
zod/miniWhy
Hyperkernel already uses native CSS and intentionally avoids headless UI libraries, but the repository did not preserve the complete long-term reasoning behind those decisions or explain why Svelte, SvelteKit, and Zod remain justified exceptions.
This record makes the dependency boundary explicit. Staying close to platform standards reduces source-level lock-in, keeps core interaction behavior inspectable, and reduces the direct and transitive code trusted during development, build, and runtime. It also documents the real costs: Hyperkernel must own accessibility, focus, keyboard, and cross-browser behavior for its interface primitives.
Zod is accepted because it provides a strong, composable runtime validation and TypeScript inference API that neither Node.js nor the web platform provides. Most initial use remains server-side. Client bundle size is a known concern but not currently a primary optimization goal; browser code may use Zod Mini when its functional API and smaller tree-shaken output provide the better tradeoff.
Impact
This PR changes documentation only. It does not change runtime code or dependencies. The record is marked Development because the architecture is selected and partially implemented, while representative primitives and their accessibility, browser, validation, and bundle contracts are still being developed and evaluated.
Validation
main