Skip to content

Latest commit

 

History

History
246 lines (182 loc) · 15 KB

GLOSSARY.md

File metadata and controls

246 lines (182 loc) · 15 KB

Meldframe

A design canvas that AI agents and humans edit together; the result is exported as HTML/Tailwind with the design system's variables intact.

Language

Structure

Workspace: The tenant: a set of people, files, variables, assets and quotas that belong together. Avoid: Team, organization, account

File: One design document inside a workspace. It is the unit that is opened, shared with an agent, exported and edited live. Avoid: document, board; and Project, which is a different thing (see Project)

Project: Desktop only. One repository (a local folder or a GitHub repository) that an agent works in, listed in the desktop sidebar with its chats beneath. A project is not a File and not a Workspace; the designs stay in the workspace. Decision 32. Avoid: Repository (in the sidebar), Folder, File

FileState: The in-memory tree of one File that commands are applied to. It is the planned code name (in meldframe-history) for what a File holds while it is open; it is not a second kind of file. Avoid: Document, model

Page: A named canvas inside a file that holds frames. Avoid: Sheet, screen

Frame: A top-level container on a page with a size, usually a screen or a slide. Frames come from presets (Desktop, Desktop HD, Tablet, Mobile, Phone small, A4, Letter; later Carousel, Story, Slide). Avoid: Artboard, screen

Node: Any element in a frame: a frame, text, image, shape or component instance. Nodes form a tree and keep a stable id. Avoid: Layer (a layer is how a node is shown in the layers panel), element, object

Component: A reusable node tree with instances that can override chosen properties. Planned, not yet designed. Avoid: Symbol, widget

Variant: A duplicated frame kept beside the original so two takes can be compared. Avoid: Version, branch

Design system

Variable: A named, typed value that nodes can bind to instead of holding a literal (color, number or string; shadow, gradient and typography later). Avoid: Token, style, theme value The agent tool import_tokens keeps the name the epic gave it: there "token" names the source of an import (a design-token style sheet); everywhere else the word is Variable.

Collection: A group of variables that share modes. Avoid: Library, set

Mode: One alternative set of values for a collection, such as light and dark. Avoid: Theme, skin

Alias: A variable whose value points at another variable. Avoid: Reference, link

Binding: The link between a node property and a variable. Avoid: Reference

Brand memory: Optional, portable brand rules and design decisions for a workspace, stored outside the file. Avoid: Brand kit, style guide

Change model

Command: The single vocabulary of change: add, update, remove, reparent, reorder, and the variable commands (add, remove or rename a collection, a mode or a variable, set the value of a variable in a mode). The canvas, the agent tools and undo all use it. Avoid: Mutation, action, edit event

Op: A command submitted by one actor, with an idempotency key, accepted or rejected as a whole and given a place in the file's total order. Avoid: Operation, request

Replica: One actor's working copy of a file: the last state the server confirmed plus that actor's pending ops, so an edit shows at once and the copy still ends equal to the server's order. Avoid: Mirror, local copy, cache

Pending op: An op that its actor has applied and sent but the server has not confirmed or refused yet. A remote op that is ordered before it makes the replica apply it again on the new state. Avoid: Queued op, optimistic op

Stale op: An undo or redo op that was already sent when another actor's op was ordered before the edit it reverses: the values it carries were worked out before that op, and the server will apply them because an op on its way cannot be recalled. Avoid: Old op, outdated op

Correction: An UpdateNode that the replica sends after a Stale op to set right the fields where that op would leave a value older than the other actor's. It is a pending op that is neither an edit nor part of an undo or redo step, and it falls with the ops it depends on. Only node fields are corrected, not a stale move, reorder, add or delete. Avoid: Compensation, fix, repair op

Dependency: A pending op of the same actor that another op was built on, such as the edit an undo reverses. The server accepts the op only if every dependency was applied, so an undo never lands on a premise the server refused. Avoid: Prerequisite, parent op

Batch: A group of ops submitted together, optionally all-or-nothing. A batch is the unit of review and revert. Over MCP it is the written ops of one apply_commands or import_html call: they share one key prefix ({prefix}:{n}) and belong to the actor that sent them. A call that wrote nothing is not a batch; one that wrote gets a number in its file (see Batch header). Avoid: Transaction, changeset

Batch header: The row the server keeps beside a file's log for a batch it numbered: the number (per file, from 1, never reused), the Note, how many commands the batch had and how many were written, when, and its Review state. It is not an op: it costs no quota, is not undone or reverted with the design and is never part of the file. A batch with no header (written over REST or the live socket, past a cap, or when the header write failed) is still a batch; it has no number, note or review. Avoid: Metadata

Note: The agent's plain text on a batch, sent as the note argument of apply_commands: what the batch does and why, at most 500 characters and 3 line breaks, with no hidden characters (a bad one refuses the whole call). The person sees it quoted and attributed to the actor that wrote it; another agent can read it through get_batches as untrusted data. It is text: nothing in the product acts on its content. Avoid: Comment (a person's remark pinned on the canvas, which is parked), annotation, remark

Actor: Whoever submits ops: a human editor or an agent session. Every change is attributed to one actor. Avoid: User (a user is a person; an agent session is also an actor), author

Agent: An external AI client, such as Claude Code, Cursor or Codex, that drives the canvas through MCP. Avoid: Bot, assistant

Lane: One actor's work in one file, as the Activity panel shows it: its kind (agent or person, read from the actor string for display only), its state (working, quiet or idle), its runs and its batches, newest first. The server knows no session finer than an actor, so two chats of one agent that share a grant are one actor and one lane. Avoid: Session, swimlane

Run: The stretch of one actor's work with no gap of more than 5 minutes between its ops (a longer gap starts a new run). A lane lists its runs (a person's own edits, which are single ops and not batches, show there as runs). An agent's run starts a Checkpoint, which the server takes by itself; a person's run does not. Avoid: Session, episode

Room: The live channel of one file: every open client and agent sees the same ordered changes. Avoid: Session, channel

Review: Looking at an agent's batches after they were applied, then keeping or reverting them. Avoid: Approval, staging

Review state: A person's mark on a batch: unreviewed (the default), accepted (kept) or needs review (flagged for a closer look), with the actor that last changed it and when. Only a person may set it (the principal's kind: an agent never may, whatever it is called), over a route and not over MCP, so an agent cannot accept its own work. It is not an Approval (the owner's answer to a call whose policy is Ask), not an accepted op of a Room, and not how far a batch got (applied or partial). A Revert does not change it. Avoid: Approval state, review status

Revert: A new batch, authored by the human, that restores what an agent's batch changed; it never rewrites history. Avoid: Rollback, undo (undo is only for one's own changes)

Checkpoint: A point in a file's history that can be restored, kept by the server as a row beside the file's log: the file as the server had it after change seq, never a copy of it. A person makes one with a name (Create checkpoint); the server takes one when an agent's run starts; one goes first before a revert and before a restore. A restore is new changes of the person at the end of the log, never a rewrite. A checkpoint is not part of the file and is not undone with the design. Avoid: Snapshot, save

Structure of the product

Feature module: A user-visible capability that can be left out of a build (variables, export, review, capture, assets). It registers its commands, settings, jobs, agent tools and panels in one place. Avoid: Plugin, extension, package

Registry: The single list of everything feature modules contribute, read by the editor, MCP and REST. Avoid: Catalogue, manifest

App layer: The UI-neutral part of the editor: state, actions, effects and events as plain data. Front ends only render it. Avoid: View model, store, controller

Front end: Anything that renders app state and dispatches actions: the web editor now; a desktop or mobile app, or a test harness, later. Each front end has one Shell, and the server knows what kind of front end or agent is calling from its Client kind. Avoid: Frontend, GUI

Shell: The part of a front end that owns the window, the socket and the platform services (file picker, download, clipboard, fonts). It carries out the effects of the App layer, draws its state and holds no rule: it hands the server's raw answers over and parses nothing. A front end has one shell for each target (a native window, a browser page), and the views the shells draw are shared, not copied. Avoid: Wrapper, container, runtime

Nudge: The move of the selection by one small step in world space, as one undo step: 1 unit, or 10 when coarse. A child of an auto layout frame goes one place along its flow instead, because the layout owns its place, and a selected node under a selected node that moves follows it. It is Action::Nudge of the App layer; the arrow keys make it (a plain arrow, or Shift for the coarse step), and Action::ArrowKey, its older flow-only part, is now sent only by the TypeScript client. Avoid: Bump, Step move

Client kind: The kind of client a credential belongs to: web, desktop or agent. The server reads it from the credential and never from a field, header or user-agent string the caller chose, and decides which kinds it accepts; a kind that is switched off is refused at the server with the reason, and its code stays in the build. It says how an Actor connects, not who the Actor is, and a front end that checks it for itself only gives a courtesy, not control. Avoid: Client type, platform, device

Gate: The single step that decides whether a change from any transport is allowed. Avoid: Middleware, guard

Risk tier: How much a call can change user data: Read, Change or Delete. Policy is set per tier and may be overridden per agent. The word "scope" is kept only where a protocol names it, as the OAuth scope parameter of a sign-in request (and the wire strings that carry a tier, ADR-0022); screens, tool text and the rest of the code say tier. Avoid: Permission level, scope (except as the OAuth parameter named above)

Policy: What the gate does with a call of a given risk tier: Auto (let it through), Ask (the owner must confirm) or Deny (refuse). The defaults are Read Auto, Change Auto and Delete Ask. Avoid: Permission, rule

Approval: The owner's answer to a call whose policy is Ask: it is pending, then approved, denied or expired, and an approved one admits the same call once. It is not a Review, which looks at changes after they were applied. Avoid: Permission, sign-off

Sign-in session: What a person's cookie names after they signed in: a row with a creation time and a last-used time that ends when it has been idle for 8 hours or is 24 hours old (working defaults, the owner's to change), or when it is revoked. It is not a Lane, a Run or a Room, which the Avoid words of those entries keep "session" out of; where the two could meet, say "sign-in session". A sign-in session is a person's, never an agent's. Avoid: Login session

Revocation bus: The in-memory hint that tells open sockets a Sign-in session ended: a counter and a short window of the names revoked last. A socket reads the counter, and the answer of the authenticator ("is this session still current") decides, so no rule depends on a message having arrived. Avoid: Event bus, pub-sub

Durable event: A live message that is an accepted change, numbered and replayable after a reconnect. Avoid: Persistent message

Ephemeral event: A live message that is only a hint (agent touch, capture request, progress); it is best-effort and never replayed. Avoid: Transient message, notification

Touch hint: An ephemeral event the server sends for the ops it writes (at most one per actor and file every 100 ms), naming the actor and the nodes touched and never their content. The app layer turns it into a ring on those nodes for 1.5 seconds, and into a lasting ring on the top-level nodes of the newest batch while that actor's lane is working; a person's own edits draw none. It shows where work is happening. It is not a lock, a claim or a position. Avoid: Cursor, presence

Output and verification

Export: The translation of a file into HTML/Tailwind with CSS variables, or into PNG or PDF. Avoid: Build, publish

Fidelity: How closely an export matches the canvas, defined in pixels by the fidelity contract. Avoid: Accuracy, parity

Oracle: The automated check that renders an export in a real browser and compares it with the core's result. Avoid: Visual test, snapshot test

Capture: An image of a node or frame, requested by an agent to see its own work. Avoid: Screenshot, render

Design review: A numbered critique list for a file, produced by an agent or a person and tied to the batches that address each item. Avoid: Audit, feedback

Relationships

  • A Workspace has many Files; a File has Pages; a Page has Frames; a Frame is a tree of Nodes.
  • A Collection has Modes and Variables; a Binding ties a Node property to a Variable.
  • An Actor submits Ops; Ops travel in Batches; a Batch can be reviewed and Reverted.
  • An Actor has one Lane in each File it works in; a Lane has Runs and Batches. A numbered Batch has a Batch header that holds its Note and its Review state.
  • An Actor edits through a Replica; its Pending ops wait for the Room, and an Op names its Dependencies.
  • A File has one Room; the Room gives every Op one place in a single order.
  • A Front end has a Shell for each target; the Shell carries out the effects of the App layer and holds no rule. A credential has one Client kind, and the server decides from it which kinds of client it accepts.