From 7c8d15c5e8c706b99babd371eb37aa49bfa91c54 Mon Sep 17 00:00:00 2001 From: Titus Date: Tue, 17 Nov 2026 14:53:21 +0100 Subject: [PATCH] Replay: the staged schema-dist serial 134 overlaid on main (not for merge) The seven files the staged distribution changes (the strand, checks and lens pages, the strand and checks fixtures, MANIFEST, VERSION), byte for byte, and the strand test's case count moved to 42. The full suite runs here before the tag; the real repin follows the published tag. Co-Authored-By: Claude Opus 5.5 --- codegen/schema-dist/MANIFEST.json | 12 +- codegen/schema-dist/VERSION | 4 +- .../schema-dist/profiles/checks.fixture.json | 6 +- codegen/schema-dist/profiles/checks.md | 6 +- codegen/schema-dist/profiles/lens.md | 4 +- .../schema-dist/profiles/strand.fixture.json | 1137 ++++++++++++++++- codegen/schema-dist/profiles/strand.md | 4 +- tests/test_strand.py | 4 +- 8 files changed, 1156 insertions(+), 21 deletions(-) diff --git a/codegen/schema-dist/MANIFEST.json b/codegen/schema-dist/MANIFEST.json index 6caedc3..4f257c1 100644 --- a/codegen/schema-dist/MANIFEST.json +++ b/codegen/schema-dist/MANIFEST.json @@ -148,8 +148,8 @@ "profiles/calendar.md": "c81c63a46eb886cb9aeedf3a668f117ffc626ff711ee2b23a2a8a402b81c7c82", "profiles/charter.fixture.json": "ba80d4e276ed81a7c185dcd66c3d6ea7af9c9e49fb947bacde2d52136acb2cd5", "profiles/charter.md": "f61a4958602bd9f8f466c0660e8ae1aff5e6fc6da397c5c493d971a8bfe286ca", - "profiles/checks.fixture.json": "0291f70f2c39bbc49545f80a79d09e59de8aebebe466ce60aea191ac068c523a", - "profiles/checks.md": "f4ffe96a7b1c9b970b7d2bf36c15bbd0427800f19c2f2e5e957a0baca9acd850", + "profiles/checks.fixture.json": "43586fddd94ebe9678bf46e6d744768a094f856b668c5917fe9e0dda46599251", + "profiles/checks.md": "6778b7e6b9cebc447486e5679ef6036dbf2f8c875c70a2f0f55660fc2c885ce9", "profiles/identity.md": "bb631fe3cae3cc7b57f1c866ebac496bb426ad0cb661ff5fdec928cccffe1616", "profiles/import-map.fixture.json": "b008245c94e5cc4c23fd7aa74731ff92522c9cec80347730076b55cb7cba507d", "profiles/import-map.json": "e36620e93c91800c82b3c40ebe73b7c833f7a041ce68ae474924a05909e20ff1", @@ -159,7 +159,7 @@ "profiles/layout.fixture.json": "6860a7654f1a92e31269cbbdd2a08049035bd19caebc2f9083b320be4872000e", "profiles/layout.md": "40fe723f7608b1f1460077584eda38938bc8865db0796b2d58fcc495a4ad1542", "profiles/lens.fixture.json": "2bf5587dc00b80b39f770c18b46edc2e9bc0234dee2fbe2f95ad96c946d6d2b4", - "profiles/lens.md": "25410f840be9e97b9b1d2d101e568c0d820c450e89433ab6f742522954207b79", + "profiles/lens.md": "5b4328d0647029cd06322809fcd9fc963ba5c07135ea22dd2006306174066eb5", "profiles/map-space.fixture.json": "253b45e091fdf4b1d54f012faf4717c53881fcd310b8ded85854731e9e7395ff", "profiles/map-space.md": "3705e02ec1f18e0631ffc9ff5bff0a1c24a2f262c23a92bbfe6eb7dae9809d05", "profiles/message.fixture.json": "418964e564db054c8e969a157f6e29e82499c04180d10bea8c55ac9f5bf5e279", @@ -177,8 +177,8 @@ "profiles/room.md": "27472fe099e37a0c0c22a66c66bf48b99f42a37b51b22f9102970735579d3b2d", "profiles/spine.fixture.json": "84a130adf7eb0d4d981cf71b4f4f5914484fdc332904751259ba01cb45c56267", "profiles/spine.md": "6bd367c3f4b101878fbc54a3c8c806630b7760173f24fef995db801b6103d92e", - "profiles/strand.fixture.json": "2b1221f1c611e94ac5851669330ab75ba62332c51764786105bcdba23b5be7e6", - "profiles/strand.md": "a7ed66890ef9ecafe5a7e1b1e73045e9e00622602ee984a3b07e14906647f96b", + "profiles/strand.fixture.json": "7bc2d2dae11c0722b1db987c070b249ddcbc55b81683c4bfa26900c7ffe0fc53", + "profiles/strand.md": "2a9bd36814a0de80a68180d2d75d3ef9d2539b9dcd52165f20b8ef0821575488", "README.md": "c6bc5bca1014b5f9c38cc34ae4a3e8098deab6b03eb080c8d9eea7175f8fa1fe", "schema/ability.yaml": "af185b2d22a5985ac323e6227a95df287fffaae0e5fca502976a02c2754f71b2", "schema/base_properties.yaml": "ec3724ceb2faca973e431a2e2ff946e55bfb55b6b8d78689b6b22d0cfb7c9a2e", @@ -206,7 +206,7 @@ "schema/zone.yaml": "cca04ee498fb813fa18b96f1ac99816e7f1a8ae1fb9e21c48b37620dbb674856", "schema.json": "581dc7b5e890acc06b1c89b0d7bdcc2f20f54f52d5a3b4af8c5a184e1e6fd48c", "SECURITY.md": "939ee364b06f0b749bdd4cbe66b2fe49322c95abe732650ec4ef062a0c03820a", - "VERSION": "71a979da8586eb91ec3bc8c5aa5f8b25ff84b4e007bc05fdd284bd8fd0739b66", + "VERSION": "d9951b2802d73c34c49e9a75661458239102b3999ab3b95891def07238a00577", "views.fixture.json": "6fda45c2d36cc82a613a4b4d99d14ba9646db2c5bf912b82e68c6b62b20441c1", "views.json": "f4d06ee16bd6c66fc28cf27146b8d199c85164e5deecabafc23af53408746fe0", "walk/lint_folder.py": "28efffa3a39d7f2ceaf69cae5c4ddce023e4989e7a5d2c26c1b4d4815eff386e", diff --git a/codegen/schema-dist/VERSION b/codegen/schema-dist/VERSION index da33129..2fb5222 100644 --- a/codegen/schema-dist/VERSION +++ b/codegen/schema-dist/VERSION @@ -1,3 +1,3 @@ canonical: 00.34.01 -serial: 133 -published: 2026-11-16 +serial: 134 +published: 2026-11-17 diff --git a/codegen/schema-dist/profiles/checks.fixture.json b/codegen/schema-dist/profiles/checks.fixture.json index 6f62701..5efa936 100644 --- a/codegen/schema-dist/profiles/checks.fixture.json +++ b/codegen/schema-dist/profiles/checks.fixture.json @@ -2,7 +2,7 @@ "profile": "checks", "profile_page": "profiles/checks.md", "notes": [ - "rules: 0 to 6 are Fernhollow's house rules as a Charter would carry them in x_checks_rules (draft 1, 2026-10-22); 7 and 8 are the room-mark rules a team's world may carry (the team packs write them), a house rule of such a world and never a rule of every world: a Report with no mark is lore (profiles/report.md). 9 is a one_of whose entry is an id in upper case over a link field (serial 122): the list's own reading, trimmed and without regard to case, so a link that holds the id in lowercase is one of the list's. 10 and 11 are a one_of over a list (serial 123), a multi-link field and an extension key holding a list: one_of applies to a field holding one value, so each is short, though the list holds only what the rule lists.", + "rules: 0 to 5 are Fernhollow's house rules as a Charter would carry them in x_checks_rules (draft 1, 2026-10-22), and 6, the list case, beside them since serial 54; 7 and 8 are the room-mark rules a team's world may carry (the team packs write them), a house rule of such a world and never a rule of every world: a Report with no mark is lore (profiles/report.md). 9 is a one_of whose entry is an id in upper case over a link field (serial 122): the list's own reading, trimmed and without regard to case, so a link that holds the id in lowercase is one of the list's. 10 and 11 are a one_of over a list (serial 123), a multi-link field and an extension key holding a list: one_of applies to a field holding one value, so each is short, though the list holds only what the rule lists.", "cases: element gives a body as a reader might hold it; expect gives, per rule index, 'ok', 'short' or 'out' (not scoped); a rule index absent from expect is not applied to that case.", "not_checked: rules a reader must report by name, never apply and never pass silently; reason is prose, a reader's words may differ. A row whose reason is null is the control among them: a rule a reader can apply (an extension key is always a field), so a reader applies it and does not report it.", "stubs: an element marked known_of: true (folder spec 4.4) is judged by no rule and counted in no rule's scoped; its absent fields are unknown, not short, and a filled field does not bring it in (serial 64).", @@ -64,7 +64,7 @@ {"rule": {"rule": "a fifth predicate", "where": {"type": "character"}, "require": {"field": "reputation", "longer_than": 3}}, "reason": "a predicate outside the four"}, {"rule": {"rule": "a type the schema does not name", "where": {"type": "person"}, "require": {"field": "name", "present": true}}, "reason": "unknown type"}, {"rule": {"rule": "a field the type does not have", "where": {"type": "character"}, "require": {"field": "budget", "present": true}}, "reason": "not a field of character and not an extension key"}, - {"rule": {"rule": "an extension key is always a field", "where": {"type": "character"}, "require": {"field": "x_bb_keeper", "present": true}}, "reason": null}, + {"rule": {"rule": "an extension key is always a field", "where": {"type": "character"}, "require": {"field": "x_team_keeper", "present": true}}, "reason": null}, {"rule": {"rule": "two predicates", "where": {"type": "character"}, "require": {"field": "reputation", "present": true, "matches": "x"}}, "reason": "exactly one predicate"}, {"rule": {"rule": "a pattern the engine refuses", "where": {"type": "character"}, "require": {"field": "reputation", "matches": "("}}, "reason": "pattern refused"}, {"rule": "not an object", "reason": "a rule must be an object"}, @@ -83,6 +83,6 @@ {"rule": 4, "scoped": 21, "short": 0}, {"rule": 5, "scoped": 8, "short": 1} ], - "note": "BB's keeper found 21 gaps on its three rules; rules 0 to 2 here find 22 on the same world a few hours later. Rules 7 and 8 are not measured on Fernhollow, which carries neither." + "note": "the world's keeper found 21 gaps on its three rules; rules 0 to 2 here find 22 on the same world a few hours later. Rules 7 and 8 are not measured on Fernhollow, which carries neither." } } diff --git a/codegen/schema-dist/profiles/checks.md b/codegen/schema-dist/profiles/checks.md index bbd4a95..988531e 100644 --- a/codegen/schema-dist/profiles/checks.md +++ b/codegen/schema-dist/profiles/checks.md @@ -40,8 +40,8 @@ **In the folder.** The key rides in `elements/law/.json` like any extension field; the folder doctor reads it there, with the same reader. -**The specimen.** Fernhollow's rules, measured live on 2026-10-22 (37 Characters, 24 Relations; the counts in the fixture's `measured` block): a reputation on every Character (4 short); a `Next:` line on every live line, a Relation whose subtype is `in talks`, `agreed`, `running` or `paused` (most short: the rule is newer than the lines); the roles sentence on every Funding line; the Source line as house rule 3 states it. The reference reader found 22 gaps where the world's keeper, reading by hand, found 21. +**The specimen.** Fernhollow's rules, measured live on 2026-10-22 (37 Characters, 24 Relations; the counts in the fixture's `measured` block): a reputation on every Character (4 short); a `Next:` line on every live line, a Relation whose subtype is `in talks`, `agreed`, `running` or `paused` (most short: the rule is newer than the lines); the roles sentence on every Funding line; the Source line as house rule 3 states it. The reference reader found 22 gaps where the world's keeper, reading by hand, found 21. The rules are that world's own house rules: a specimen of the form, not a set to adopt. -**Where the rule is read from.** The conformance fixture beside this page, `checks.fixture.json`, holds the rules, the cases with a verdict per rule, and the rules a reader must report as not checked; a reader passes when it agrees on every case. The Python package's doctor is the first reader; a tool with its own reader runs the fixture as its test. The list case rides since serial 54: the fixture's rule 6 (`where.type: ["character", "institution"]`, four cases, one with the type compared folded) and three not-checked rows for the list readings. The room-mark rules ride since serial 118: the fixture's rules 7 and 8, a team's world's own house rules and the first with an extension key as their `field`, with eight cases, one of them an empty list, which `present` reads as short, and since serial 126 a ninth, an empty object, short too: the room profile reads both as no mark since that serial, so `present` and the room's own reading answer alike. The stub cases ride since serial 64: two known-of stubs (folder spec §4.4, `known_of: true`), one bare and one with its fields filled, out of every rule, so reader rule 6 above is every reader's test and not only the doctor's; the fixture replays clean through the doctor (9 rules, 27 cases, 61 expectations, 11 not-checked rows, one of them the control a reader applies). +**Where the rule is read from.** The conformance fixture beside this page, `checks.fixture.json`, holds the rules, the cases with a verdict per rule, and the rules a reader must report as not checked; a reader passes when it agrees on every case. The Python package's doctor is the first reader; a tool with its own reader runs the fixture as its test. The list case rides since serial 54: the fixture's rule 6 (`where.type: ["character", "institution"]`, four cases, one with the type compared folded) and three not-checked rows for the list readings. The room-mark rules ride since serial 118: the fixture's rules 7 and 8, a team's world's own house rules and the first with an extension key as their `field`; an empty list reads short under `present`, and since serial 126 an empty object reads short too: the room profile reads both as no mark since that serial, so `present` and the room's own reading answer alike. The stub cases ride since serial 64: two known-of stubs (folder spec §4.4, `known_of: true`), one bare and one with its fields filled, out of every rule, so reader rule 6 above is every reader's test and not only the doctor's; the fixture replays clean through the doctor, and one of its not-checked rows is the control a reader applies. -**Ruled**: Skeld, 2026-10-22, serial 47 (the grammar; the three open points ruled as the draft's leans; the draft's sixth point); **serial 54** (2026-10-23): the list case and reader rules 6 to 8, three facts from the reference reader's first runs; Skeld, 2026-10-28, serial 84: the re-key line; Skeld, 2026-10-28, serial 85: the Charter by the charter profile's selection (the mark, not the maker); 2026-11-11, serial 118: the room-mark rules, the fixture's rules 7 and 8, a team's world's own house rules read by `present`, with eight cases; and the whitespace `present` trims, named as the room profile's set; 2026-11-13, serial 122: an id among a `one_of` list is compared by that rule's own reading, trimmed and without regard to case, not by the address profile's "The same id"; a tenth rule and two cases in the fixture; 2026-11-13, serial 123: `one_of` on a list is `short`, a list holding only what the rule lists included; rules 10 and 11 and two cases in the fixture, a multi-link field and an extension key holding a list; 2026-11-14, serial 126: `present` reads an empty object as short, as it reads an empty list, so it answers as the room and review profiles read a mark; one case in the fixture; 2026-11-14, serial 127: three cases in the fixture beside the unit separator's pin what `present` says of whitespace, a tab alone and a no-break space before a tab are short and a byte order mark alone (U+FEFF, not White_Space) is set; no reader moves. Drafted and measured with `reader.py`, the reference reader. +**Ruled**: Skeld, 2026-10-22, serial 47 (the grammar; the three open points ruled as the draft's leans; the draft's sixth point); **serial 54** (2026-10-23): the list case and reader rules 6 to 8, three facts from the reference reader's first runs; Skeld, 2026-10-28, serial 84: the re-key line; Skeld, 2026-10-28, serial 85: the Charter by the charter profile's selection (the mark, not the maker); 2026-11-11, serial 118: the room-mark rules, the fixture's rules 7 and 8, a team's world's own house rules read by `present`, with eight cases; and the whitespace `present` trims, named as the room profile's set; 2026-11-13, serial 122: an id among a `one_of` list is compared by that rule's own reading, trimmed and without regard to case, not by the address profile's "The same id"; a tenth rule and two cases in the fixture; 2026-11-13, serial 123: `one_of` on a list is `short`, a list holding only what the rule lists included; rules 10 and 11 and two cases in the fixture, a multi-link field and an extension key holding a list; 2026-11-14, serial 126: `present` reads an empty object as short, as it reads an empty list, so it answers as the room and review profiles read a mark; one case in the fixture; 2026-11-14, serial 127: three cases in the fixture beside the unit separator's pin what `present` says of whitespace, a tab alone and a no-break space before a tab are short and a byte order mark alone (U+FEFF, not White_Space) is set; no reader moves; 2026-11-17, serial 134: the specimen is one world's own house rules, a specimen of the form and not a set to adopt; the sentence on the fixture's replay and the clause on the room-mark rules name no counts, since the fixture is where they are read; the fixture's `measured` note names the world's keeper, not a person, and its control row's key is `x_team_keeper`; no rule or case moves. Drafted and measured with `reader.py`, the reference reader. diff --git a/codegen/schema-dist/profiles/lens.md b/codegen/schema-dist/profiles/lens.md index 92031e3..00ab702 100644 --- a/codegen/schema-dist/profiles/lens.md +++ b/codegen/schema-dist/profiles/lens.md @@ -2,7 +2,7 @@ **What it is.** A lens is a saved way of reading a world. The 22 types say what a world holds. A profile says what a convention IS (a message, a room element, a work item: its fields and what every reader must agree on). A lens says what to READ (which things, how far, how much). Every tool already has an unsaved one (the context skill's recipe, a pack's choice, Atlas's filters, what an NPC may talk about); a lens makes it one element every tool reads. A convention on the 22 types: nothing here adds a type or a field to the standard, and a tool that has never read this page sees an ordinary Construct with one extension key it keeps byte for byte. -**What is core is not a lens; it is the seat.** Every reading starts from the same four things, whatever the world: who I am (my Character's sheet), what names me, my mail, what changed since I last read. That is the draught's base today and nobody configures it. Lenses add to the seat and never take from it. **A lens only narrows**: what a seat starts with is the lens applied inside what the seat may already read, never past it. So a lens is never a way around a guest slice, and the security story is one sentence. +**What is core is not a lens; it is the seat.** Every reading starts from the same four things, whatever the world: who I am (my Character's sheet), what names me, my mail, what changed since I last read. That is the draught's base today and nobody configures it. Lenses add to the seat and never take from it. **A lens only narrows**: what a seat starts with is the lens applied inside what the seat may already read, never past it. So a lens is never a way around a guest slice, and the security story is one sentence. A lens is read for its reader, never for the Character whose draught it is read beside: read beside another Character's draught, it is still the reader's own view and the reader's own Character's mail, never that Character's. **What it is not.** A profile (what a thing is); a policy in the old sense (what a seat may: that is the rung and the seat); the seat's core; a graph (a graph draws a set; a lens produces one). Nor a graph profile (nodes, edges, how a Relation is drawn), a map-space profile (what a pixel means), or a world's "now" (`as_of` here points at it). @@ -92,4 +92,4 @@ A reader that is not the owner never carries `anchor_not_visible` or `not_visibl **Where the definition is read from.** The packages' reader is `resolveLens(world, lens, reader, { asOf, clock })`, the reading's date and its clock an optional fourth argument, beside `isLens(element)`, `isTemplate(element)` and `lensesInUse(membership, xLensUses)` for where a seat's choice lives, the membership winning, and `worldGraph(world, reader, options)` for the graph (the Python package in snake case: `resolve_lens(world, lens, reader, as_of=None, clock=None)`, `is_lens`, `is_template`, `lenses_in_use`, `world_graph`), and follows in their next releases, as the message and room profiles' readers went; keel reads the same profile, and the bench shows keel's reading beside the package's for the same lens: if they differ, one has a bug. The conformance fixture beside this page, `lens.fixture.json`, holds the cases every reader must agree on: the pair and the template, the legal values of `x_lens`, ten small worlds (a year world, an office of lenses, the planted world, a post room, a world with no now, a room of stubs, a world one hop deeper, a gate whose lens notes name hidden elements, a fen of readings no earlier case decided, a ledger house of hidden links and served lists) with their readers, a resolution case per rule and per key, the invariants' cases, and where a seat's choice lives. keel's reference reader is a test that replays it. A reader conforms when it passes every case. -**Ruled**: 2026-10-26, the design read and ruled; written down 2026-10-27 as this page and its fixture, with the readings the design left open taken as their leans (`from` and `to` beside `window`; `notes` per anchor; the budget counted in elements). The graph section ruled and written 2026-10-27, its five open calls taken as their leans (one page; `x_lens_leads_to`; no weight beyond `intensity`; a flag never widens a lens; edges cut by reason) and two reasons found by the first builds (`outside_lens`; `unreadable` carried). Ruled and written 2026-10-27, serial 82: a lens served only as a stub resolves as not there (rule 1); the charter, its guide and its domains are reading aids (rule 4, beside the room profile's line); `changed_within`, a cut by when an element changed, counted `stale`. Ruled and written 2026-10-28, serial 83: a stub is never read for what it does not serve (rule 1: an umbrella's stub child, a stub Message); a seat's two states, never set and chose nothing, and `lenses_from`; nothing is hopped out of what the fence cuts (rule 8); the second hop's count leaves out what rule 4 would stop; an umbrella's child keeps its own budget and the umbrella's `show` alone makes the rows, a child's notes and mail rule staying the child's, and a sibling lens a child's hop reaches kept as an element (rule 3); a note captions an anchor only, never a kept element a hop reached; a fraction is refused everywhere. Skeld, 2026-10-28, serial 86: a node's `family` is the type's colour word and nothing else. Skeld, 2026-10-29, serial 87: a word not in `colors.order` fails loudly; the graph case over all 22 types. 2026-10-29, serial 88: an empty review mark is settled in the graph, as the review profile reads it. Skeld, 2026-10-29, serial 90: a lens names its founder only where the writer has a Character of their own (a solo folder or a browser world may have none); otherwise `founder` stays unset, never invented. Skeld, 2026-10-30, serial 92: a Zone leaves map space (the graph carries Zones as nodes by default; Map, Pin and Marker stay out), the Zone being content with spatial presence through its Markers, not geometry. Skeld, 2026-10-30, serial 93: twenty readings no case decided, found by porting the reader to other engines, ruled, and nineteen cased: a link reaches only its field's target type, in a hop and in the graph's edges; a generic pair links only by one of the 22 slugs, compared exact; a dangling anchor is counted `anchor_not_visible`; an umbrella's own hop keeps its child before entering it; a child cut before it was entered stays counted; `first_line` cuts at a carriage return too and invents no description; a stub's shape; the two hidden marks are one; no `updated_at` sorts last; `x_lens_uses` once each, no empty string; two messages at one instant keep the list's order; a stored `7.0` date is 7; an integral float key reads whole everywhere (serial 83's text-only clause retired); an edge to an unseen anchor is cut by the lens's reason; a Pin's generic pair is placement; a node's name as stored; an index counts a proposed id the served list keeps; and a node's type as stored, a data fault for a lint (stated, not cased: a fixture of slugs cannot tell it from folding). Skeld, 2026-10-30, serial 94: readings found by porting the reader, ruled and cased: a public reader's served list has no proposed id and no gap; a single link stored as an empty string is served as one; a lens anchored on itself that the reader cannot see is counted `anchor_not_visible`; an anchor is a field and an id, met once per lens under the first field; each cut element is counted once by its id, never when kept, under the first reason the reader carries; an empty string is no anchor, so a lens of empty anchor lists is a filter; a body's `hidden` key; an unresolved anchor's note rides on no row. Skeld, 2026-10-30, serial 95: hidden beats `known_of` (rule 1: a hidden element a guest knows of and did not make is not in its view, no stub and no count); a guest's full row of its own hidden creation carries `hidden: true`; the hidden key rides on every served body, a Message's, a mail row's and the Guide's too. Skeld, 2026-10-30, serial 96: a guest's own hidden creation is out of an unlensed graph with no count (hidden is out by default, its flag and its count the owner's alone), and in a lensed graph's nodes, marked, as it is in a lens's `kept`. Skeld, 2026-11-01, serial 103: the two counts over a graph, `degreeOf` and `outDegreeOf`, defined on the page and cased, both packages having shipped them with no sentence to read. Skeld, 2026-11-02, serial 104: `reading_aids`, a fifth flag, brings the reading aids back into an unlensed graph, each marked `reading_aid`; any signed reader may ask it, a public reading is refused by name, last in the refusal order; a flag never widens a lens, so a lens still names `law/charter` to keep its Charter (asked for Atlas's Web, which had handed the reader the aid with `x_charter_of` stripped). Skeld, 2026-11-10, serial 114: a short row, `first_line` or `name`, carries `supertype` and `subtype` where the served body holds each as a string with something left after trimming, as stored, a known-of stub's too, so a reader of short rows can tell each row's kind and state without a second read (a short row carries no room mark); and `lenses_from` names its third word, `none`, a seat never set that nothing brings a lens, kept apart from a seat that chose nothing and from a removed seat. 2026-11-13, serial 122: an `updated_at` is read as the message profile reads a `created_at`, and one that cannot be read comes after every element of its type that has one; one more case in the fixture; a note's key is an id written as the element's own, and a key in another case is no note. 2026-11-13, serial 123: one clock per lens: an element's clock is the newest of its readable `updated_at`, `server_updated_at` and `local_updated_at`, decided element by element, a value that cannot be read ignored, and both `changed_within` and the budget's order read it (rule 5 read `updated_at` alone before, and its "no `updated_at` comes last" is now "no readable clock comes last of its type"; `changed_within` read a folder element's newer folder stamp before, and moves where `updated_at` is newer than both or a folder stamp cannot be read), so an element with no readable clock is kept by `changed_within`, never cut `stale`; a message whose `created_at` cannot be read is cut by the mail window, counted `window`; the budget's order by id is ascending by code point, each id as written; twelve more cases in the fixture, one of them a note keyed by an anchor's id in upper case. 2026-11-14, serial 128: a link list names each element once, so a list served with one element twice is one edge in the graph, read in its first place with its index the place as served, counted once at each end and once in `edges_cut` when its target is not a node, and an anchor one field names twice is one anchor in its first place (the declared-links case wanted two edges before; two cases more in the fixture). +**Ruled**: 2026-10-26, the design read and ruled; written down 2026-10-27 as this page and its fixture, with the readings the design left open taken as their leans (`from` and `to` beside `window`; `notes` per anchor; the budget counted in elements). The graph section ruled and written 2026-10-27, its five open calls taken as their leans (one page; `x_lens_leads_to`; no weight beyond `intensity`; a flag never widens a lens; edges cut by reason) and two reasons found by the first builds (`outside_lens`; `unreadable` carried). Ruled and written 2026-10-27, serial 82: a lens served only as a stub resolves as not there (rule 1); the charter, its guide and its domains are reading aids (rule 4, beside the room profile's line); `changed_within`, a cut by when an element changed, counted `stale`. Ruled and written 2026-10-28, serial 83: a stub is never read for what it does not serve (rule 1: an umbrella's stub child, a stub Message); a seat's two states, never set and chose nothing, and `lenses_from`; nothing is hopped out of what the fence cuts (rule 8); the second hop's count leaves out what rule 4 would stop; an umbrella's child keeps its own budget and the umbrella's `show` alone makes the rows, a child's notes and mail rule staying the child's, and a sibling lens a child's hop reaches kept as an element (rule 3); a note captions an anchor only, never a kept element a hop reached; a fraction is refused everywhere. Skeld, 2026-10-28, serial 86: a node's `family` is the type's colour word and nothing else. Skeld, 2026-10-29, serial 87: a word not in `colors.order` fails loudly; the graph case over all 22 types. 2026-10-29, serial 88: an empty review mark is settled in the graph, as the review profile reads it. Skeld, 2026-10-29, serial 90: a lens names its founder only where the writer has a Character of their own (a solo folder or a browser world may have none); otherwise `founder` stays unset, never invented. Skeld, 2026-10-30, serial 92: a Zone leaves map space (the graph carries Zones as nodes by default; Map, Pin and Marker stay out), the Zone being content with spatial presence through its Markers, not geometry. Skeld, 2026-10-30, serial 93: twenty readings no case decided, found by porting the reader to other engines, ruled, and nineteen cased: a link reaches only its field's target type, in a hop and in the graph's edges; a generic pair links only by one of the 22 slugs, compared exact; a dangling anchor is counted `anchor_not_visible`; an umbrella's own hop keeps its child before entering it; a child cut before it was entered stays counted; `first_line` cuts at a carriage return too and invents no description; a stub's shape; the two hidden marks are one; no `updated_at` sorts last; `x_lens_uses` once each, no empty string; two messages at one instant keep the list's order; a stored `7.0` date is 7; an integral float key reads whole everywhere (serial 83's text-only clause retired); an edge to an unseen anchor is cut by the lens's reason; a Pin's generic pair is placement; a node's name as stored; an index counts a proposed id the served list keeps; and a node's type as stored, a data fault for a lint (stated, not cased: a fixture of slugs cannot tell it from folding). Skeld, 2026-10-30, serial 94: readings found by porting the reader, ruled and cased: a public reader's served list has no proposed id and no gap; a single link stored as an empty string is served as one; a lens anchored on itself that the reader cannot see is counted `anchor_not_visible`; an anchor is a field and an id, met once per lens under the first field; each cut element is counted once by its id, never when kept, under the first reason the reader carries; an empty string is no anchor, so a lens of empty anchor lists is a filter; a body's `hidden` key; an unresolved anchor's note rides on no row. Skeld, 2026-10-30, serial 95: hidden beats `known_of` (rule 1: a hidden element a guest knows of and did not make is not in its view, no stub and no count); a guest's full row of its own hidden creation carries `hidden: true`; the hidden key rides on every served body, a Message's, a mail row's and the Guide's too. Skeld, 2026-10-30, serial 96: a guest's own hidden creation is out of an unlensed graph with no count (hidden is out by default, its flag and its count the owner's alone), and in a lensed graph's nodes, marked, as it is in a lens's `kept`. Skeld, 2026-11-01, serial 103: the two counts over a graph, `degreeOf` and `outDegreeOf`, defined on the page and cased, both packages having shipped them with no sentence to read. Skeld, 2026-11-02, serial 104: `reading_aids`, a fifth flag, brings the reading aids back into an unlensed graph, each marked `reading_aid`; any signed reader may ask it, a public reading is refused by name, last in the refusal order; a flag never widens a lens, so a lens still names `law/charter` to keep its Charter (asked for Atlas's Web, which had handed the reader the aid with `x_charter_of` stripped). Skeld, 2026-11-10, serial 114: a short row, `first_line` or `name`, carries `supertype` and `subtype` where the served body holds each as a string with something left after trimming, as stored, a known-of stub's too, so a reader of short rows can tell each row's kind and state without a second read (a short row carries no room mark); and `lenses_from` names its third word, `none`, a seat never set that nothing brings a lens, kept apart from a seat that chose nothing and from a removed seat. 2026-11-13, serial 122: an `updated_at` is read as the message profile reads a `created_at`, and one that cannot be read comes after every element of its type that has one; one more case in the fixture; a note's key is an id written as the element's own, and a key in another case is no note. 2026-11-13, serial 123: one clock per lens: an element's clock is the newest of its readable `updated_at`, `server_updated_at` and `local_updated_at`, decided element by element, a value that cannot be read ignored, and both `changed_within` and the budget's order read it (rule 5 read `updated_at` alone before, and its "no `updated_at` comes last" is now "no readable clock comes last of its type"; `changed_within` read a folder element's newer folder stamp before, and moves where `updated_at` is newer than both or a folder stamp cannot be read), so an element with no readable clock is kept by `changed_within`, never cut `stale`; a message whose `created_at` cannot be read is cut by the mail window, counted `window`; the budget's order by id is ascending by code point, each id as written; twelve more cases in the fixture, one of them a note keyed by an anchor's id in upper case. 2026-11-14, serial 128: a link list names each element once, so a list served with one element twice is one edge in the graph, read in its first place with its index the place as served, counted once at each end and once in `edges_cut` when its target is not a node, and an anchor one field names twice is one anchor in its first place (the declared-links case wanted two edges before; two cases more in the fixture). 2026-11-17, serial 134: a lens is read for its reader, never for the Character whose draught it is read beside, so beside another Character's draught it is the reader's own view and the reader's own Character's mail; no fixture change, since the fixture's reader is one argument and already the reader whose view and mail it reads. diff --git a/codegen/schema-dist/profiles/strand.fixture.json b/codegen/schema-dist/profiles/strand.fixture.json index a6530af..68c98ab 100644 --- a/codegen/schema-dist/profiles/strand.fixture.json +++ b/codegen/schema-dist/profiles/strand.fixture.json @@ -5,7 +5,7 @@ "strand: strandOf(world, reader) answers {narrative, event, location, character, now, same}; the world carries its elements as the owner is served them, the ids its hidden mark keeps (hidden), and its readers, exactly as the lens and charter fixtures do. Each filled slot is {id, type, name}, type the kind the slot holds (now holds a location); an empty slot is null.", "readers: a reader's rung is owner (the whole world), contributor (the world less the hidden), guest (exactly the whole and known_of ids it lists; a known_of id is a stub: its id, type and name, its description and its dates, no link and no extension field; hidden beats known_of) or public (the world less the hidden and the room elements, and nothing at all unless the world carries open: true), as the lens and charter fixtures define them. The strand reader resolves every slot through that one view and keeps no second copy of the rule.", "the key: the fixture gives x_strand as stored; the server's rule 1 (no key served when the named Narrative is out of the reader's view) is keel's test, not the reader's. A reader handed a key it cannot resolve answers an empty strand.", - "mark: the value is an object whose narrative member is a string id; event and location are each a string id, null or absent (null and absent read as unset); any other shape (a bare string, narrative missing or not a string, event or location an empty string, a number or an object) reads as no mark: every slot null, same null. A reader needs no id-format test: an id that names no element in the view is an empty slot; the doctor names the shape.", + "mark: the value is an object whose narrative member is a string id; event and location are each a string id, null or absent (null and absent read as unset); any other shape (a bare string, any of the three members the empty string, narrative missing or not a string, event or location a number or an object) reads as no mark: every slot null, same null. No reader trims a member: one of white space alone (a space, a tab, an ideographic space) is a string that names no element, so its slot is null, and so is an id with white space on it; a non-empty narrative that names nothing (spaces alone among them) is a mark that leaves every slot null. A reader needs no id-format test: an id that names no element in the view is an empty slot; the doctor names the shape.", "stub: a narrative the reader knows only as a stub fills the narrative slot ({id, type, name}) and nothing else, since a stub serves no events and no protagonist.", "order: the reading never depends on a multi-link's order; the event must be IN the narrative's events and the location IN the event's locations, position ignored.", "no fallback: character comes from protagonist only, never from the event's characters; location from the mark only, never from the character's location; now from the character's location only.", @@ -1817,6 +1817,854 @@ "character": null } } + }, + "harbour-story-empty-string": { + "id": "019a7f00-0000-7000-8000-00000000f227", + "name": "Grey Harbour, the story member an empty string", + "x_strand": { + "narrative": "", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-story-spaces": { + "id": "019a7f00-0000-7000-8000-00000000f228", + "name": "Grey Harbour, the story member three spaces", + "x_strand": { + "narrative": " ", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-location-an-object": { + "id": "019a7f00-0000-7000-8000-00000000f229", + "name": "Grey Harbour, the location member an object", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": { + "id": "019a7f00-0000-7000-8000-000000000321" + } + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-no-narrative": { + "id": "019a7f00-0000-7000-8000-00000000f230", + "name": "Grey Harbour, the mark with no story member", + "x_strand": { + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-narrative-a-list": { + "id": "019a7f00-0000-7000-8000-00000000f231", + "name": "Grey Harbour, the story member a list", + "x_strand": { + "narrative": [ + "019a7f00-0000-7000-8000-000000000301" + ], + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-event-one-space": { + "id": "019a7f00-0000-7000-8000-00000000f232", + "name": "Grey Harbour, the event member one space", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": " ", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-event-a-tab": { + "id": "019a7f00-0000-7000-8000-00000000f233", + "name": "Grey Harbour, the event member a tab", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": "\t", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-event-ideographic-space": { + "id": "019a7f00-0000-7000-8000-00000000f234", + "name": "Grey Harbour, the event member an ideographic space", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": " ", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-location-spaces": { + "id": "019a7f00-0000-7000-8000-00000000f235", + "name": "Grey Harbour, the location member three spaces", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": " " + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-event-and-location-spaces": { + "id": "019a7f00-0000-7000-8000-00000000f236", + "name": "Grey Harbour, the event and location members spaces", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": " ", + "location": " " + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-story-id-a-space-in-front": { + "id": "019a7f00-0000-7000-8000-00000000f237", + "name": "Grey Harbour, the story member its id with a space in front", + "x_strand": { + "narrative": " 019a7f00-0000-7000-8000-000000000301", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-event-id-a-space-behind": { + "id": "019a7f00-0000-7000-8000-00000000f238", + "name": "Grey Harbour, the event member its id with a space behind", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": "019a7f00-0000-7000-8000-000000000311 ", + "location": "019a7f00-0000-7000-8000-000000000321" + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } + }, + "harbour-place-id-a-space-behind": { + "id": "019a7f00-0000-7000-8000-00000000f239", + "name": "Grey Harbour, the location member its id with a space behind", + "x_strand": { + "narrative": "019a7f00-0000-7000-8000-000000000301", + "event": "019a7f00-0000-7000-8000-000000000311", + "location": "019a7f00-0000-7000-8000-000000000321 " + }, + "elements": [ + { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark", + "protagonist": "019a7f00-0000-7000-8000-000000000331", + "events": [ + "019a7f00-0000-7000-8000-000000000311" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails", + "locations": [ + "019a7f00-0000-7000-8000-000000000321" + ] + }, + { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper", + "location": "019a7f00-0000-7000-8000-000000000321" + } + ], + "hidden": [], + "readers": { + "owner": { + "rung": "owner", + "character": null + }, + "contributor": { + "rung": "contributor", + "character": null + }, + "guest": { + "rung": "guest", + "character": null, + "whole": [ + "019a7f00-0000-7000-8000-000000000301", + "019a7f00-0000-7000-8000-000000000311", + "019a7f00-0000-7000-8000-000000000321", + "019a7f00-0000-7000-8000-000000000331" + ], + "known_of": [] + }, + "public": { + "rung": "public", + "character": null + } + } } }, "cases": [ @@ -2562,6 +3410,293 @@ }, "same": false } + }, + { + "name": "an-empty-string-narrative-is-no-mark", + "claim": "narrative is the empty string: the empty string in any of the three members is no mark, so every slot is null (a reader that takes it as a mark naming nothing gives the same slots)", + "kind": "strand", + "world": "harbour-story-empty-string", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "a-story-member-of-spaces-names-no-story", + "claim": "narrative is three spaces: a string like any other, no reader trims it, so the value is a mark whose story names nothing, and every slot is null (a strand hangs off its story)", + "kind": "strand", + "world": "harbour-story-spaces", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "an-object-member-is-no-mark", + "claim": "location is an object holding the place's id, neither a string id nor unset: the whole value is no mark (a reader that reads the object's id fills all five)", + "kind": "strand", + "world": "harbour-location-an-object", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "a-mark-with-no-narrative-is-no-mark", + "claim": "the mark names an event and a place and no narrative: narrative is required, so the whole value is no mark", + "kind": "strand", + "world": "harbour-no-narrative", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "a-narrative-that-is-not-a-string-is-no-mark", + "claim": "narrative is a list holding the story's id, not a string: the whole value is no mark (a reader that takes the list's first id fills all five)", + "kind": "strand", + "world": "harbour-narrative-a-list", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "an-event-member-of-one-space-is-an-empty-slot", + "claim": "event is one space: a string like any other, no reader trims it, and it names no element, so the event slot is empty and with it the place then; the story, the hero and now fill (an empty string would be no mark)", + "kind": "strand", + "world": "harbour-event-one-space", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": null, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "an-event-member-of-a-tab-is-an-empty-slot", + "claim": "event is a tab alone: a string that names no element, never trimmed to an empty string, so the event and the place then are empty; the story, the hero and now fill", + "kind": "strand", + "world": "harbour-event-a-tab", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": null, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "an-event-member-of-an-ideographic-space-is-an-empty-slot", + "claim": "event is an ideographic space, U+3000, alone: a string that names no element, never trimmed by the White_Space set, so the event and the place then are empty; the story, the hero and now fill", + "kind": "strand", + "world": "harbour-event-ideographic-space", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": null, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "a-location-member-of-spaces-is-an-empty-slot", + "claim": "location is three spaces: a string that names no element, so the place then is empty and same is null; the story, the happening, the hero and now fill", + "kind": "strand", + "world": "harbour-location-spaces", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails" + }, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "an-event-and-a-location-of-spaces-are-empty-slots", + "claim": "event and location are both two spaces: each a string that names no element, so both slots are empty and the strand reads as a story begun with its hero", + "kind": "strand", + "world": "harbour-event-and-location-spaces", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": null, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "a-story-id-with-a-space-in-front-names-no-story", + "claim": "narrative is the story's id with one space in front: no reader trims a member, so it is another value and names no element, and every slot is null (a reader that trims fills all five)", + "kind": "strand", + "world": "harbour-story-id-a-space-in-front", + "reader": "owner", + "want": { + "narrative": null, + "event": null, + "location": null, + "character": null, + "now": null, + "same": null + } + }, + { + "name": "an-event-id-with-a-space-behind-names-no-event", + "claim": "event is the happening's id with one space behind: no reader trims a member, so it names no element; the event slot is empty and with it the place then, and the story, the hero and now fill (a reader that trims fills the event and the place too)", + "kind": "strand", + "world": "harbour-event-id-a-space-behind", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": null, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } + }, + { + "name": "a-place-id-with-a-space-behind-names-no-place", + "claim": "location is the place's id with one space behind, the event real: no reader trims a member, so it names no element; the place then is empty and same is null, and the story, the happening, the hero and now fill (a reader that trims the place fills it and reads same true)", + "kind": "strand", + "world": "harbour-place-id-a-space-behind", + "reader": "owner", + "want": { + "narrative": { + "id": "019a7f00-0000-7000-8000-000000000301", + "type": "narrative", + "name": "The Night the Lighthouse Went Dark" + }, + "event": { + "id": "019a7f00-0000-7000-8000-000000000311", + "type": "event", + "name": "The lamp fails" + }, + "location": null, + "character": { + "id": "019a7f00-0000-7000-8000-000000000331", + "type": "character", + "name": "Ilse the Keeper" + }, + "now": { + "id": "019a7f00-0000-7000-8000-000000000321", + "type": "location", + "name": "The Lighthouse" + }, + "same": null + } } ] } diff --git a/codegen/schema-dist/profiles/strand.md b/codegen/schema-dist/profiles/strand.md index 3170809..ce58084 100644 --- a/codegen/schema-dist/profiles/strand.md +++ b/codegen/schema-dist/profiles/strand.md @@ -18,7 +18,7 @@ The hero is named on the Narrative, nowhere else. The happening does not have to "x_strand": {"narrative": "", "event": "", "location": ""} -It names what cannot be reached through a single link (the story, and one of the story's events, and one of the event's places); the hero and now derive from single fields. Three ids and not one, because a multi-link's order is the writer's and a reader's view may strip a list: "the first event" could be a different happening for a guest than for the owner, and a strand is the same strand for everyone who can see it. Only `narrative` is required: a strand begins the moment a story is chosen, before it has a happening or a place, and every tool must show the same half-built strand with its empty slots as the next thing to make, so `event` and `location` may each be null or absent (read as unset; a `location` with an unset `event` is an empty place). The value is no mark when `narrative` is missing or not a string, when the value is a bare string, or when `event` or `location` is anything but a string, null or absent (an empty string, a number, an object): a broken writer never shows as a half-built strand. An id that names no element in the reader's view is simply an empty slot, so a reader needs no format test (the doctor names a malformed id, rule 4). The value is an extension field: a tool that does not understand it carries it byte for byte (folder spec §3.3). +It names what cannot be reached through a single link (the story, and one of the story's events, and one of the event's places); the hero and now derive from single fields. Three ids and not one, because a multi-link's order is the writer's and a reader's view may strip a list: "the first event" could be a different happening for a guest than for the owner, and a strand is the same strand for everyone who can see it. Only `narrative` is required: a strand begins the moment a story is chosen, before it has a happening or a place, and every tool must show the same half-built strand with its empty slots as the next thing to make, so `event` and `location` may each be null or absent (read as unset; a `location` with an unset `event` is an empty place). The value is no mark when it is a bare string, when any of the three members is the empty string, when `narrative` is missing or not a string, or when `event` or `location` is anything but a string, null or absent (a number, an object): such a value never shows as a half-built strand. An id that names no element in the reader's view is simply an empty slot, so a reader needs no format test (the doctor names a malformed id, rule 4). No reader trims a member: one of white space alone is a string like any other, it names no element, so its slot is empty. The value is an extension field: a tool that does not understand it carries it byte for byte (folder spec §3.3). **The reading.** `strandOf(world, reader)`, one reader in the SDK and the Python package from the fixture beside this page (the charter reader's shape: the elements inside the world, the view resolved through the lens profile's one reader, never a second copy of its rule), answers six slots as `reader` sees the world: @@ -41,4 +41,4 @@ A slot holds only its own kind: wherever this page compares an element's type to **Where it shows.** Three surfaces draw the same five slots: a tool's home for a world (Atlas Home: the slots as the first steps of an empty world, the picture beside them as the world grows), the site's Make door (what a visitor makes before an account is a strand, written with the mark at "keep this world"), and the Constellation's Create door (the same four elements, the same four links). The packages read it; keel serves the key by rule 1. A public page's hero drawn from the strand, a pack shipping a strand's shape, an import proposing one from the most-linked Narrative: later, not now. The empty slot as the next thing to make is a writer's rule: a surface that writes the strand draws all five slots, the empty ones as the next step; a surface that only reads (a read-only home, a public page) may draw the filled slots alone, and still shows a half-built strand as the strand (the story alone is one), never fills a slot from another, and never calls an empty one an error. -**Ruled**: on the first draft, 2026-10-30: the concept Titus's (a miniature of a world; a story, not THE story; story first; then and now kept apart), the links read off the standard's YAML files, the three-id mark on a tool author's question about list order, the no-fallback reading; serial 98, with the fixture beside this page. Serial 99 (2026-10-30): only `narrative` is required, on a second tool author's seam (a strand begins when the story is chosen), with the strictness on the other two members a reader asked for. Serial 100 (2026-10-31): rule 2 made definite on a reader's point: the front door serves the reading as `reading_aids.strand`, and the charter profile's order names the strand fourth. Serial 101 (2026-10-31): the reader's rule under Where it shows, on a read-only home's question (empty slots are a writer's next step; a reader may draw the filled slots alone); no fixture change. Serial 123 (2026-11-13): a mark that names its story by the story's id in another case names no story, so every slot is empty (the address profile's "The same id"); one more case in the fixture. Serial 133 (2026-11-16): each filled slot carries `type` beside `id`, the kind the slot holds (`now` a `location`), since a reader handed the strand alone fetches an id by its type; wherever the page compares an element's type to a kind, the type is trimmed and compared without regard to case, as the room profile defines it; every filled slot in the fixture carries the key, and two more cases: a story whose type is stored as ` Narrative ` fills its slot as `narrative`, and so does one whose type is an ideographic space before `Narrative`, which only the room profile's own trim reads right. +**Ruled**: on the first draft, 2026-10-30: the concept Titus's (a miniature of a world; a story, not THE story; story first; then and now kept apart), the links read off the standard's YAML files, the three-id mark on a tool author's question about list order, the no-fallback reading; serial 98, with the fixture beside this page. Serial 99 (2026-10-30): only `narrative` is required, on a second tool author's seam (a strand begins when the story is chosen), with the strictness on the other two members a reader asked for. Serial 100 (2026-10-31): rule 2 made definite on a reader's point: the front door serves the reading as `reading_aids.strand`, and the charter profile's order names the strand fourth. Serial 101 (2026-10-31): the reader's rule under Where it shows, on a read-only home's question (empty slots are a writer's next step; a reader may draw the filled slots alone); no fixture change. Serial 123 (2026-11-13): a mark that names its story by the story's id in another case names no story, so every slot is empty (the address profile's "The same id"); one more case in the fixture. Serial 133 (2026-11-16): each filled slot carries `type` beside `id`, the kind the slot holds (`now` a `location`), since a reader handed the strand alone fetches an id by its type; wherever the page compares an element's type to a kind, the type is trimmed and compared without regard to case, as the room profile defines it; every filled slot in the fixture carries the key, and two more cases: a story whose type is stored as ` Narrative ` fills its slot as `narrative`, and so does one whose type is an ideographic space before `Narrative`, which only the room profile's own trim reads right. Serial 134 (2026-11-17): the empty string in any of the three members is no mark, `narrative` too, on a package author's read (one rule for the empty string, not one for two members and another for the third); no reader trims a member: one of white space alone is a string that names no element, so its slot is empty, and a non-empty `narrative` that names nothing, spaces alone among them, is a mark that leaves every slot empty (reading rule 1); the reason the page gives for the shapes that are no mark covers those shapes alone; thirteen more cases in the fixture: `event` a space, a tab or an ideographic space, `location` spaces, and both; the story's id with a space in front and the event's and the place's each with a space behind, each naming nothing, where a reader that trims would fill the slots; a `narrative` that is the empty string, no mark, and one of spaces, every slot empty; and one each for the three shapes the page named as no mark and no case held, an object member, a mark with no `narrative` and a `narrative` that is not a string. diff --git a/tests/test_strand.py b/tests/test_strand.py index 4e431e1..e8f8247 100644 --- a/tests/test_strand.py +++ b/tests/test_strand.py @@ -35,11 +35,11 @@ def world_of(c: Mapping[str, Any]) -> dict[str, Any]: return copy.deepcopy(DOC["worlds"][world] if isinstance(world, str) else world) -def test_the_fixture_holds_serial_133s_cases() -> None: +def test_the_fixture_holds_serial_134s_cases() -> None: assert DOC["profile_page"] == "profiles/strand.md" assert DOC["mark"]["field"] == STRAND_FIELD == "x_strand" assert DOC["mark"]["members"] == ["narrative", "event", "location"] - assert len(CASES) == 29, f"the fixture holds {len(CASES)} cases, serial 133 has 29" + assert len(CASES) == 42, f"the fixture holds {len(CASES)} cases, serial 134 has 42" assert {c["kind"] for c in CASES} == {"strand"}