Kitsune semantics and browser construction
Frontend meaning, browser implementation, and the contracts required for dynamic interface composition.
From documents to application meaning
The web began as a medium for linked information and documents. For a document, the authored content and structure are themselves the artifact being presented. A browser can render that artifact in different ways, but reading and navigating the document remain central to the interaction.
As the web became an application surface, interfaces increasingly expressed data and state held elsewhere. A customer record can appear in a table, an editor, or a summary without becoming a different customer. Yet the document model still influences frontend construction: we organise pages and component trees, and often leave the meaning of the objects and actions they present implicit in implementation code. Kitsune’s starting point is that this meaning should be represented directly.
AI can now generate pages, components, and interactive artifacts on demand. Producing a surface is one capability; understanding how that surface should change with the work requires a model of its concepts, relationships, state, and behaviour. A useful dynamic interface must preserve what an action means as its presentation changes, and choose representations that help people understand and act within the application.
This leads to a research question: how can design intent and application meaning be represented so intelligence can adapt an interface while software constructs and checks the relationships already known? The proposed semantic frontend architecture below connects that representation to browser implementation. Horizon would use it to present a shared environment; other applications could use the same approach with their own objects and actions.
Semantic frontend construction
Kitsune investigates how software can construct and adapt an interface from explicit application meaning. Intelligence contributes design choices and resolves ambiguity. Tooling can resolve known relationships, generate browser implementation, and check the contracts represented by the system.
The proposed architecture places frontend semantics in a plugin within Engine, using LMIR to retain agreed behaviour and constraints. The plugin would represent state, events, commands, effects, and their relationships. Work IR can describe the operations and checks needed to carry out a change. Kitsune supplies the browser implementation layer for that direction.
This is a proposed division of responsibility. The existing component and runtime foundations do not establish a complete semantic frontend compiler, deterministic lowering pipeline, or verification system.
Application foundations
Kitsune is a web-native frontend application kit. Components describe meaning, boundaries describe context, and modules provide capabilities through a small runtime. It builds on HTML, CSS, DOM events, forms, accessibility semantics, storage, and custom elements.
These foundations are intended to support independent applications. Horizon provides a demanding use case: an environment where people and intelligent actors can inspect state, discover actions, and work through explicit permissions and boundaries. Its development can inform Kitsune without making Horizon a prerequisite for using the browser layer.
Components, boundaries, and capabilities
A component can expose an action through semantic markup. A boundary supplies the context in which that action applies. A command identifies the requested operation, and a capability module handles its consequence.
Keeping those relationships explicit makes it possible to inspect what an action means, which state it affects, and what authority it needs. A generated interface still needs to preserve the browser’s accessibility and interaction semantics.
Local context and composition
An application can contain several instances of the same component in different contexts. A boundary makes the relevant local state and capabilities available to each instance. A command needs to resolve within that context so it affects the intended object.
For example, two editors may expose the same save action while referring to different documents. The component communicates the action; its boundary identifies the document and relevant context; the capability handles persistence. Keeping those roles explicit allows the application to compose the interface without embedding every consequence in the component.
That separation also gives generated interfaces a clearer contract. A generated control must preserve the action’s meaning, its required inputs, the context in which it applies, and how its outcome is communicated. Visual similarity alone cannot establish correct behaviour.
Browser semantics as an interface contract
HTML controls, forms, focus, and accessible names already communicate useful interaction semantics. Kitsune’s use of browser foundations makes those semantics part of the application model. A capability should remain understandable through the resulting interface and usable through supported input methods.
An actor-facing representation needs to preserve the same targets and consequences as the human-facing interface. Exposing a command does not itself supply authorization, state freshness, or verification. The application must supply and enforce those requirements; Horizon investigates them at the environment level.
Dynamic views of durable objects
The DOM can describe the local context of a view. It should reference the application’s durable objects rather than become their only representation. Replacing a component or closing an interface must not discard object identity, history, commitments, or authority.
Dynamic composition can then change how an object is presented without recreating its behaviour. A model might choose a table, an editor, or a focused comparison surface. Browser tooling would construct that presentation against known data and action contracts. Design-system rules can constrain typography, spacing, and motion while leaving room for expressive composition.
Example: one document, several views
This illustrative scenario describes the intended contract, rather than output from an implemented compiler. A document has a stable identifier, revision, history, and available commands. Its presentation changes as the work changes:
| Presentation | Purpose | What must remain meaningful |
|---|---|---|
| Source card | Inspect provenance and decide whether to read | The document identifier and source metadata |
| Editor | Read or make an authorized change | The same identifier, current revision, command targets, and permission checks |
| Citation | Connect the source to a claim in another document | The source reference, provenance, and relationship to the cited claim |
The generated editor would reference the application’s existing save operation. It would not establish permission through markup or invent a new persistence mechanism. Changing presentation should preserve an active selection or return focus to a meaningful location, and a failed operation should remain distinguishable from a completed one.
Validation and evaluation
The research asks which properties can be established from an explicit frontend model: whether event targets resolve, commands receive the required inputs, state relationships are coherent, and declared constraints have corresponding checks. Those properties depend on the coverage and precision of the representation.
Rendered interaction still needs evaluation. Keyboard navigation, accessible names, focus continuity, visual quality, and whether adaptation helps the person do their work cannot be established by a coherent semantic graph alone. A useful demonstration would change a view while recording which object identities, action targets, and interaction state were preserved.
A shared action model
The Horizon technical guide follows a save-view action from observed state through a command, permission check, persistence result, and state-change event. It also describes stale state and failed outcomes.
Kitsune supplies related application concepts and browser foundations. Horizon is one potential consumer of that work. This page does not claim that the proposed Horizon contract is implemented by a published Kitsune integration.
Browser foundations
Modern Frontend develops the wider argument for browser APIs and primitives as application foundations. It provides context for Kitsune’s use of shells, boundaries, metadata, modules, and web-native components.