Skip to content

polytag(): app.mount(el), and collectionPortOf (refs #4) - #42

Merged
thorwhalen merged 2 commits into
mainfrom
feat/4-mount
Dec 1, 2026
Merged

thorwhalen merged 2 commits into
mainfrom
feat/4-mount

Conversation

@thorwhalen

@thorwhalen thorwhalen commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Part of #4. collectionPortOf(seed, { space, profile }) is a collection seed as a CollectionPort, in memory (a copy; toSeed() gives the state back): memberships are the contains edges of one space; a family rule on a parent node limits the tags per item with a message that says what to do (a group may be in several families; the family node is not a tag; a limit below 1 is an error); a declared profile adds its maxParentsPerItem; only records are tagged or deleted; reads are indexed; every write returns an opaque inverse token (revert refuses anything else); fieldOf reads a layout's field from a record's payload first. app.mount(el, { space }) draws the chosen view through renderShell over a view model over that port and returns { model, port, toSeed(), destroy() }; the app's own collection is untouched; a profile the facade only guessed is not enforced. Also fixed here: the redo of a combined undo applied its parts in the wrong order. Independent adversarial review: 13 findings fixed test-first.

…ectionPortOf makes a seed a CollectionPort (refs #4)
…do order, declared profiles only, family and item checks, createItem limits, fieldOf for payload dates)
@thorwhalen
thorwhalen merged commit e4413d5 into main Dec 1, 2026
3 checks passed
@thorwhalen
thorwhalen deleted the feat/4-mount branch December 1, 2026 19:31
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.

1 participant