Changes

Docs · Reference

Copy as Markdown
View as Markdown

UJN language: changes

This file lists the changes to the UJN language spec, newest revision first.

UJN 0.1 draft · revision 23 · November 29, 2026 · Changes

Revision 23, November 29, 2026#

An editorial revision that prepares the spec for publication. No rule, key, value, default, type, warning, grammar line or example changes. Every numbered section keeps its heading and number, so links to sections still work.

  • Front matter. A new opening replaces the overview, the parts table and the revision history. It defines UJN and says who the spec is for, which text wins where two disagree, what "the module" and "the platform" mean, and how the spec is organized. The revision history moved to this file.
  • Plain voice. Notes written for the review of earlier drafts now read as plain statements. "You" meaning the reviewer and "I" or "my proposal" meaning the author are gone; "you" meaning whoever writes a journey stays.
  • No private references. References to private decision records and discussions, their item names and dates, and file paths are removed or replaced by the point they stand for. The model schema is cited as version 5 (ujn-model-v5.schema.json); older schema versions are no longer cited as current.
  • Tools, not the platform. "The platform" now reads "tools" or "the tools that read the model" where that is what it meant. It stays only where it means the wider platform.
  • Sections, not parts. The spec no longer groups its sections into parts 1 to 5. Each reference to a part names the sections it covers, or the one section it means.
  • Open questions. Each "Still open" note in the text links to its item in section 23.
  • Appendix A, How the drawing is laid out. New. How the module places things in the drawing moved there, its wording unchanged except for voice and paths: from 13.3 Direction hints to A.1, from 13.10 How arrows are drawn and routed to A.2, and from 19.8 Space along an arrow to A.3. What a writer acts on stays in those sections: the syntax, which hints exist and what they mean, what is allowed and what is a warning. Each of them says where its moved text now is.

Earlier revisions (written during the review)#

These notes are kept as they were written while the spec was under review, newest first like the rest of this file, with file paths cut to file names. In them, "version" means revision, and a part is a group of sections: part 1 is sections 1 to 12, part 2 is section 13, part 3 is sections 14 and 15, part 4 is sections 16 to 18, and part 5 is sections 19 to 21. "The sheet" is a decision record of the review, which is private to the project.

What version 22 changes#

Version 21 Version 22
An arrow's payload and the pill of the return beside it were placed one after the other. With arrow_spacing the second often had no room under the return and was drawn over the arrow, or the arrow came out twice as long The two are placed as one group about the middle of the line, the payload toward the arrow's source, 8 px apart, and the layout counts the group. The payload starts 3 px lower, clear of the return's head, and lower still under the cross of a failed return (13.6, 13.10, 19.8)
The rule said a pill keeps 4 px from everything It keeps 4 px where it can, then 3, 2 and 1 px, before it counts as having no place (13.10)
A pill of a pair went past the pair's other line as soon as the middle of its piece was taken, and read as that line's label It takes its places on its own side first, down to 2 px from other things; for a place past the other line the layout is made again with more room first (13.10)
A pill that fits on no straight piece had one place per piece: the inner one of two loops on one node had none It also goes beside a piece as that piece would be with square corners, where the pill is still by its own line (13.10)
A pill with no free place was drawn at the first place in order, and the warning said it was drawn over something else It is drawn where it covers the least, which can be a free place off its line; the warning says "drawn where it is least in the way" (13.10, 21)
A row above or below with returns that have no label kept too little room between its targets, and a gap that had to grow could stay too small beside an arrow that runs straight The gap counts the return's lane, and it is measured again after it grows (13.3)
An arrow_spacing from 0.5 to 1 could make an arrow 40 px longer It puts the pill that near its source (19.8)
13.2, 13.3, 13.6, 13.7 and 19.8 said more than the build does: a cross at the midpoint, a pill of a row always beside the last piece, arrow_spacing as the least room beside a pill They say what is drawn

What version 21 changes#

Version 20 Version 21
A pill sat where the layout engine left room for it; with arrow_spacing, at its spacing from the source box. It was kept off straight lines, boxes and other pills only, so it could be drawn over the rounded corner of another arrow, an arrowhead or a payload. A payload did not move with its pill. A pill with no free place was drawn over something, and nothing said so In every drawing a pill sits at the middle of a straight piece of its arrow, overlaps nothing and keeps 4 px from everything else where it can. Where the middle is taken it takes the nearest free place; where there is none the layout is made again, and a pill still without a place gets a warning (13.10, 19.6, 21)
The room along an arrow counted the pill only, unless arrow_spacing was set It counts all the text of the arrow in every drawing: a payload wider than the pill, the pill of a return drawn beside the arrow, a payload and that pill side by side (19.8)
A row of targets hinted above or below a node kept no room for a pill beside an arrow; a lone target none beside its line The targets of a row stand far enough apart for the pills, and the row keeps room past its end; a lone target keeps room beside its line (13.3)
A cross sat at the middle of the longest piece, its corners counted in; the crosses of a failure and of the failed return beside it could meet A cross sits at the middle of the longest straight piece; the two crosses of a pair sit 8 px back from that middle each (13.10)
A pill at the edge of the drawing had to stay inside it The drawing grows for it (13.10)

What version 20 changes#

Version 19 Version 20
With arrow_spacing set, the room between columns followed the spacing, but the layout was otherwise as without it: many arrows ran much longer than the spacing, their text and the head's room (in jrn-auth at 20 px, 191 to 456 px between columns where about 100 were asked) The layout is pulled together: connected nodes kept in line, arrows shortened after routing, routing channels no wider than the spacing. Where that leaves a pill no free place, the layout without it is used. A pill takes its spacing, else the place the layout left it, else any free place along its line (19.8)

What version 19 changes#

Version 18 Version 19
With arrow_spacing set, an arrow longer than it asked for (its columns shared with wider labels, or a route that bends) had its pill wherever the layout put it, often far from both boxes The pill sits at the arrow's spacing from its source box, or from its target box when the first piece is too short; where something is in the way, it slides along its line to the nearest free spot (19.8)

What version 18 changes#

Version 17 Version 18
A failure that sends the user back was either a return (..>), which hid the failure, or a negative arrow with a hint (-left-x->), which did not go back: it counted as a way forward, and it was not drawn beside the arrow it answers .x.>, a failed return: a return in every way, drawn as a failure (13.2, 13.7); the model marks every arrow negative or not (20.5; schema ujn-model-v5.schema.json)

What version 17 changes#

Version 16 Version 17
The room along an arrow was the layout's own: 70 px from a box to the pill and from the pill to the next box, 70 between two boxes with no pill arrow_spacing sets it, for every arrow in the render block or for one arrow in its block; default, or no key, keeps the 70 (19.8)

What version 16 changes#

Version 15 Version 16
A row's arrows left from near the ends of the side, 12 px apart, with no room for the returns drawn beside them: on a short side they crossed, and returns landed off the node Each arrow and each drawn return has a lane of its own, spread about the middle of the side; the lanes keep the order of the targets and the turns nest, a return one lane from its arrow; on a side too short for that, the arrows fan out from its middle (13.3)
Hover text dropped anything between < and >, and every ** and __, so price < 10 and /admin/** lost text Text the drawing reads as creole shows the words the drawing shows; every other key shows as written (9.3)
In quotes, only \n, \" and \\ were allowed, and the module read \\ twice, so "C:\\new" broke the line \" is a quote; every other backslash reads as in any PlantUML label: \n breaks the line, \\ is one backslash (section 5)
A misspelled color name was taken, and drawn white It is a warning, and the color is not used (section 5)
id_position and point on a node had to be written in lower case, unquoted Read like the render block: quotes and case do not matter (4.6, 18.2)

What version 15 changes#

Version 14 Version 15
A second hint to the same side of a node stayed a wish The targets stand in a row on that side, each reached from a point of its own (13.3)
Nothing showed on hover In SVG, a node or an arrow shows what the drawing shortens or leaves out; tooltip adds the designer's own text (9.3); the model carries it (20.4, 20.5; schema ujn-model-v4.schema.json)
Meta lines and payloads in light gray, regular Bold, darker gray: they were hard to read at 10 px (19.3, 19.4)

What version 14 changes#

Version 13 Version 14
A bar's id tab was centered under the bar Past the bar's far end: under an upright bar (flow right), beside the right end of a flat one (flow down), clear of the arrows on the bar's long sides (14.2). The module drew bars upright in a flow that ran down, with their arrows leaving through the tab; it now lays them across the flow as 14.2 says

What version 13 changes#

Version 12 Version 13
An id inside its node went on the type line inside or inside-top there, inside-bottom on the last line (4.6)

What version 12 changes#

Version 11 Version 12
A display id in white on the node's frame color Dark bold text on the node's light tint, outlined in its frame color; a white chip on a view's title bar, which is already tinted (4.6, 19.3, 19.4). The white text was hard to read at its small size

What version 11 changes#

Version 10 Version 11
A display id hung in a gray tab under its node id_position: outside, inside or hidden, on a node or in the render block (4.6)
Gray text on a pale tab White on the node's own frame color, outside or inside (4.6, 19.3); white on near-black in black and white (19.4)

What version 10 changes#

Version 9 Version 10
A reference pointed along the flow only, so one placed above its source by -up-> still pointed sideways It points away from the source it sits beside (13.10)
The way a reference points could not be set point: auto, up, down, left or right (18.2)

What version 9 changes#

Version 8 Version 9
Arriving and leaving arrows on one side: the leaving ones first, from the top or the left Which comes first is the layout's choice; between two nodes with going arrows both ways, each keeps to the right of its travel, so the two run in two lanes and do not cross (13.10)
The layout drew a journey one way It draws it a few ways and keeps the clearest, reading the order of the statements as the order of the journey (13.10)
Arrows fanning out from one point could cross They nest: the one that runs farthest turns first (13.10)

What version 8 changes#

Version 7 Version 8
The layout placed a return like any other arrow, so a loop closed by a return could be drawn backward A return without a hint is laid out going back: its target before its source (13.7, 13.10). Found while drawing the authentication journey, where a toast's return to Login put the action after Login in front of it.

What version 7 changes#

Version 6 Version 7
A hint was a wish, "honored where it does not break a routing rule" How each hint is honored, along, against and across the flow, and the three cases where a hint across the flow stays a wish (13.3). Found while building the module.
Going arrows on one side shared one point, arriving and leaving alike Arriving ones sit 25% apart from leaving ones, so no arrowhead lands on a line that leaves (13.10)

What version 6 changes in parts 1 to 4#

Version 5 Version 6
The palette was "the theme's default" Written out (19.3), with black and white (19.4)
Rounded corners only render { corners: square } switches a diagram to square ones (19.2)
Left to right only render { direction: down } (19.2)
The model was described part by part Described in full in one place (section 20)

What version 5 changes in parts 1 to 3#

Version 4 Version 5
data, start, end, ref were reserved, written as previews with a handle only Full statements (sections 16 to 18)
Every arrow out of an actor needed a trigger Not the arrow of the actor who starts the journey, into a start (17.4)
A handoff's resume went straight to the view the link opens It may go into a handoff-return start, which carries the route (17.4)
No reachability rule Once a journey has a start, every node needs a path from one (17.5)
Arrow roles: exit, call, reply, resume Also write and read (16.4); schema ujn-model-v3.schema.json

What version 4 changes in parts 1 and 2#

Version 3 Version 4
Only preprocessor lines could come before the journey line increment and color blocks may come before it too, so a theme file can be included first (section 2). Found while building the module.
action and handoff were reserved, written as previews with a handle only Full statements (sections 14 and 15)
The exit rules counted every arrow out of an action An arrow from an action into a system is a call, not an exit (14.4)
Arrows had no role in the model role: exit, call, reply or resume (14.8); schema ujn-model-v2.schema.json

What part 2 changes from the sheet's arrow examples#

Sheet example Now
login --> check : [Sign in] {email, password} login --> check : [Sign in] { payload: [email, password] }: braces always open a block
login --> reg : [Create account] returns login --> reg : [Create account] { returns }
#future after the label { flags: [future] }: # always means a color
A guard on the exits of a decision diamond The guard after the trigger, on the arrow itself: : [Sign in] valid credentials

What changed from the first draft#

First draft Now
view login "Login" <<modal>> [VIEW-001] #future { … }: title, type and flags on the line view login [AUTH-10] on the line; type, title and flags go in the block
The title was required The title defaults to the handle: view register is a complete statement
{ had to close the statement line { may also stand alone on the next line
ids view SCR from 100 an increment block with auto, prefix, delimiter, start and digits per kind
Every node without an id got one Display ids are assigned only with auto
Display ids keyed trace links, so assigned ids drew a warning Display ids are for viewing only and may change; links use unique_id
No permanent id unique_id: {{auto}}, filled once with a random id by -populate_ids; unique_id_friendly
#future flags on the line flags: [future] in the block; # now always means a color
yes / no true / false; a key on its own means true
Lists without brackets Lists in [ ]; the brackets may be left out for one item
No colors color_* keys on a node, view_color and view_color_<type> defaults, themes by !include
Trailing comments were not allowed A ' after a space, outside quotes, starts a comment
A journey block journey JRN-AUTH "…" { … } Journey entries are key: value lines right under the journey line