Repository navigation
Check browser domain paths against registry-derived event types - #2187
Merged
Merged
Conversation
Derive browser commands and admitted kernel events from the canonical registry, and check the actual action producer, pending ledger, authored capture and thread/projection folds against concrete domain records. Move command-envelope validation and semantic wiring into the checked dispatcher; leave presentation callbacks and dynamic widget detail at their existing boundaries. Declare browser envelope ownership once for ingress and generation. Keep kinds and meaning revision-bound while fixed ownership comes from the running kernel. Validate commands before kind-specific admission gates, including malformed done versions, and remove stale sample attention written by a producer. Local declined Done and settlement commands no longer manufacture undefined widget workflows. Nondrawable optimistic move detail leaves the authored order until server refusal rather than throwing during publication. Provenance now reads the structured event coordinate instead of parsing its rendered key. Validation: browser type/build gate; 275 runtime and 84 browser model tests; 46 focused Python contract tests; two replacement-contract regressions; real widget click through POST, admitted meaning and selection; scoped pre-commit. Independent nonediting Claude review found no remaining actionable defects.
leaf-agent
previously approved these changes
Oct 9, 2026
# Conflicts: # build/browser/application.ts # skills/leaf/assets/vendor/browser-runtime/application.js
leaf-agent
approved these changes
Oct 9, 2026
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.
Core browser Thread and Event types previously inferred as any from unchecked folds, and widget dispatch crossed unchecked callbacks before reaching the ledger. Kernel command/event declarations now derive from the admission registry; checked dispatch, ledger, authored-state and projection code use concrete domain records. Existing public widget-envelope validation moves into the checked submission owner, and Python validates command structure before kind-specific admission readers.
Kernel envelope ownership has one registry declaration. Captured revision schemas still own event kinds and meaning. Dynamic widget detail remains schema driven, and Python remains runtime validated rather than statically typed. The static gate rejects deliberately broken revision/timestamp producers without adding runtime test cases.
Validation: browser type/build checks, 275 runtime and 84 browser model tests, 46 focused Python cases plus replacement-contract and captured-ownership contrasts, pre-commit, independent code review, and a real widget click through POST/admission/rendered selection. Startup loads one additional native dispatch module and 14,110 bytes; the module supplies the synchronous gesture producer, and most remaining additions are types, JSDoc, generated declarations and compile-only checks.