net.anisota.observatory.layout

A saved Observatory grid layout. Each record is a complete, self-contained snapshot of a layout — built-in button configuration, the row geometry, the flattened tile order, and embedded element snapshots — so it can be shared by URL and saved ('learned') into another user's PDS without depending on the original author's element records, mirroring the spell architecture. Tile references are 'builtin:<key>' for built-in tiles or 'element:<index>' pointing into the embedded elements array. layout.rows is the authority for geometry; layout.tileOrder is the flattened reading order of the same tiles, kept in sync so clients that predate the row model still render the layout. An optional schedule makes the layout activate automatically during a daily time window.

Repository @anisota.net did:plc:lcieujcfkv4jx7gehsvok3pr not from the namespace authority
Details · record, key any
Kindrecord
Record keyany
Authorityobservatory.anisota.net
Commit rev3n2tvobnom626
Indexed

Record

record · key any

Properties

createdAt

requiredstring · datetime

When this layout was first saved

Reference

Optional description of what this layout is for

  • maxLength: 500

Embedded snapshots of the custom elements this layout uses. Each entry mirrors the shape of a net.anisota.observatory.element record body (type, name, description, plus the type-specific payload: button, note, quote, reminder, divider, spacer, heading, or widget).

itemsunknown
Reference

name

requiredstring

Display name for this layout

  • maxLength: 80
Reference
Reference

updatedAt

requiredstring · datetime

When this layout was last modified

#createdBy

object

Attribution for the original crafter of this layout.

Properties

did

string · did

handle

string · handle

#layout

object

The grid configuration captured by this layout.

Properties

buttons

unknown

Built-in button overrides keyed by button key (enter, atmosphere, post, chronicle, harvest, tutorial). Each value may carry enabled, order, size, and variant. A stored inventory key, from the retired inventory button, is kept as written.

Patterns visualization configuration captured with this layout

rows

array

Row-based layout. Each row sits on a shared six-column track; tile spans are derived from the row's tile count and balance and always sum to 6. Rows are the authority for geometry; tileOrder is the flattened reading order of the same tiles, kept in sync so clients that predate the row model still render the layout. When rows is absent, or disagrees with tileOrder, a client re-derives rows from tileOrder. No maxLength: every row holds at least one tile, so rows.length can never exceed tileOrder.length, which is itself uncapped — a cap here and not there would make a legal tileOrder unrepresentable.

itemsref
Reference

Whether tiles shuffle within divider-bounded groups each session. Retained for compatibility with clients that still shuffle; a client using the row model preserves the stored value on write but does not act on it, because rows describe a stable layout.

The flattened projection of rows: rows in order, tiles in order within each row. Entries are 'builtin:<key>' or 'element:<index>' into the record's elements array. rows is the geometry authority and this field is the compatibility flattening kept for clients that predate the row model — a reader that understands rows uses it only to reconcile (dropping tokens no row claims, appending tokens no row carries).

itemsstring
  • maxLength: 64

#row

object

One row of the Observatory grid. 'tiles' rows hold 1-3 tiles across the six-column track. 'ledger' rows render their tiles as hairline lines (label left, meta right) and absorb the long tail. 'structure' rows hold exactly one divider, heading or empty-space element and act as a boundary between rows. Entries in the tiles array use the same token vocabulary as tileOrder: 'builtin:<key>' or 'element:<index>'. kind, band and balance use knownValues and are therefore open: a reader that does not recognise a value clamps it for that session only and must not rewrite the stored value.

Properties

balance

string

How a two-tile row divides the track: even 3:3, left 4:2, right 2:4. Meaningless (and canonically 'even') for any other tile count.

  • maxLength: 32
  • knownValues: even | left | right

band

string

The one height every tile in this row takes. Ignored by ledger rows, and by structure rows whose tile is a divider or heading.

  • maxLength: 32
  • knownValues: compact | standard | tall | panel

kind

string
  • maxLength: 32
  • knownValues: tiles | ledger | structure

tiles

requiredarray
  • maxLength: 12
itemsstring
  • maxLength: 64

#schedule

object

Optional daily activation window. When enabled, the layout takes over the Observatory between startTime and endTime (wrapping past midnight when startTime > endTime), optionally restricted to certain days of the week.

Properties

Days the window applies to (0 = Sunday … 6 = Saturday). Empty or absent means every day.

  • maxLength: 7
itemsinteger
  • minimum: 0
  • maximum: 6

enabled

boolean

Whether the schedule is active

endTime

string

Window end as 'HH:MM' (24-hour, local time)

  • maxLength: 5

startTime

string

Window start as 'HH:MM' (24-hour, local time)

  • maxLength: 5

#source

object

Provenance for this layout. 'original' was crafted here, 'learned' was saved from another user's shared layout (see originalUri/originalDid), 'migrated' marks the layout the one-time unify migration captured from the user's live grid, and 'starter' marks the layout a published generation of the starter grid wrote when it moved an account onto that generation. The last two are those passes' idempotency sentinels and must be preserved when a record is re-saved, or the pass will run again and duplicate the layout.

Properties

originalDid

string · did

DID of the user this layout was learned from

originalUri

string · at-uri

AT URI of the record this layout was learned from

type

string
  • knownValues: original | learned | migrated | starter

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • net.anisota.observatory.element

    record not from the namespace authority

    One custom Observatory element — a button, note, quote, reminder, divider, spacer, heading or widget — as its own record, so it can be shared and saved ('learned') by other users, mirroring the spell architecture. Written by src/utils/observatoryElementService.js, which always writes exactly the payload key matching `type` and nothing for the others. The element's place and enabled state live in the separate ordering index at net.anisota.observatory.layout/self (entries: [{ rkey, enabled, order