Skip to content

Check browser domain paths against registry-derived event types - #2187

Merged
max-sixty merged 4 commits into
mainfrom
codex/quality-types
Oct 9, 2026
Merged

max-sixty merged 4 commits into
mainfrom
codex/quality-types

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

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
leaf-agent previously approved these changes Oct 9, 2026
# Conflicts:
#	build/browser/application.ts
#	skills/leaf/assets/vendor/browser-runtime/application.js
@max-sixty
max-sixty merged commit 16e887e into main Oct 9, 2026
5 checks passed
@max-sixty
max-sixty deleted the codex/quality-types branch October 9, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants