Repository navigation
State the declared marks once, for delivery and the message painter - #1351
Merged
Merged
Conversation
leaf-agent
previously approved these changes
Sep 27, 2026
# Conflicts: # skills/leaf/assets/runtime/bounds.js # skills/leaf/assets/runtime/presentation.js
leaf-agent
approved these changes
Sep 27, 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.
The declared marks (x-space, x-inline, x-exhibit, x-bound, x-reading-role) now have one table,
schema.DECLARED_MARKS, which both painters read. Delivery paints a page's document from it, and the runtime paints a thread message from the same table, stamped into the vocabulary as$marks.Owner. #1325 made delivery paint a page's marks, which left the vocabulary stated twice. Python's
revision_delivery.pyhadDECLARED_MARKSandAUTHORED_MARKS, and derived each paint name asdata-lf-<key>. The runtime'spresentation.jshadMARKED_IN_MESSAGE, the five mark entries ofPAGE_PAINT_ATTRIBUTE, and a separatedata-boundoverride line. Nothing had drifted yet. The keys belong toEXTENSION_SCHEMA, so the table sits beside it inschema.py. Each entry names its paint attribute, the authored attribute that overrides the tag's declaration (data-width,data-bound), and whether the mark holds in a message. Every mark does except x-space, because the room belongs to the document and a message renders in the panel.What changed
registry.layer.stamp_compositionstamps$decisionsand$marks. It replaces the twostamp_decisionscalls inpage init's layer composition and a page's composition, which is the route Stamp each vocabulary's decisions into the registry, and read them in the browser #1275 took for$decisions. A declared$marksis overwritten.mark_declarediteratesDECLARED_MARKS. The runtime'smarkDeclarediteratesregistry.$marksand skips the marks that don't hold in a message. The registry intake requires$marks.PAGE_PAINT_ATTRIBUTEloses its five mark entries and holds only the runtime's own paint. The replay signature's exclusion is nowisPagePaint(name), which accepts the runtime's paint or any$markspaint.bounds.jsnamesdata-lf-boundliterally, as the theme's bound rule does. Its watch on arriving bounds (Keep the user in the box on Send, scroll bounded blocks instead of the page, and widen samples to their data-width #1364) starts at boot, before any registry has loaded.DECLARED_MARKS/AUTHORED_MARKSin delivery,MARKED_IN_MESSAGE, the runtime'sdata-boundspecial case, andPAGE_PAINT_ATTRIBUTE'sinline,space,readingRole,boundandexhibit.What still names the paint attributes.
theme.css,layouts.css, package themes,render-checks/layout.jsandbounds.jsread them by name. Those names are the stylesheet's contract, whichpackages.mddocuments for package authors.structure.AUTHORED_ALLOCATIONSnamesdata-widthanddata-boundtoo. It holds a different fact: the values an author may write, checked bypage check, and it includesdata-rail, which is not a mark.Behaviour that moved. None for a user. A served vocabulary without
$marksnow fails at intake, the same way one without$decisionsdoes.test_a_message_carries_the_marks_a_page_would_except_its_roomchecks a message's marks through the served registry: exhibit, inline, an authoreddata-bound, and no room even for an authoreddata-width. It fails whenmarkDeclaredignores themessageflag.test_replay_signatures_exclude_settlement_and_other_runtime_paintnow also checks that a mark's paint stays out of the replay signature.Phase profile. No startup change. The registry fetch and its size are the same apart from the five-entry
$marks, and delivery paints the same attributes it did before.🤖 Generated with Claude Code