Lolly
アプリを開く

Document model draft

A Lolly document represents a complete tool: its typed interface, authored content, dependencies, rules, behaviour and available operations (D1). The glossary already defines a tool as a directory holding a manifest, a template and optional hooks. A document is that material plus the state a person authored and the results of running it. Four records carry it: a definition, an instance, an evaluation and an artifact (R4). Every record must carry its own schema version, and a reader may upgrade a record on read (R11). All four already exist in this repository under other names. Records and identity sets out the contract that holds each one.

An operation is what a tool can do. An operation may render, transform, extract, inspect, present or perform an authorised action (D11). One tool may expose several. The operation is the shared interface, whatever produces the result underneath. A valid tool never needs a canvas (D11). The on-device utilities take a file in and hand bytes out. Unpack, Prepare, Batch, Verify and the Rebrand review are web shell routes rather than manifest tools. Each gets a typed operation adapter with a typed outcome, and none of them needs a drawing surface (R13).

Compositions, timelines and recorded sessions are optional. An authored instance and one evaluation of it keep separate identities, so a new organisation policy never rewrites the authored instance (R6). Rules travel with a tool and may also arrive from a Lolly Work instance (D6). Governance supplies the applicable rules and the acceptance authority (D6, D12). It never fixes what a render or an operation means, because that meaning belongs to the definition (D1). Outside a governed instance the person at the keyboard holds the acceptance authority (D7).

The four records: definition, instance, evaluation and artifact, each named with the contract that holds it todayOpen this in Diagram Builder

Status

This is a draft for review, dated 2026-09-24. Nothing in it is normative until the status chapter records that the review happened.

StateWhat it covers
DecidedThirteen confirmed directions (D1 to D13) and fifteen resolutions from evidence (R1 to R15). Nine corrections from the final review (C1 to C9) are folded in.
OpenSix open questions (Q1 to Q6). Each carries a recommended default, and the draft reads on that default until the question is answered.
Not builtEvery type, every schema and every fixture. This draft adds nothing to packages/core and nothing to schemas/.

A D id is a confirmed direction. An R id is a resolution proposed from evidence; it stands unless the review overturns it. A C id is a correction the final review made before drafting started.

Where to read it

The specification is its own web document, twelve chapters long. Read it in the app, with the chapter list, the headings and a search field beside the text. The same chapters are on this site:

The twelve chapters are also written out in order as one file, document-model.md, for reading offline or handing to an agent.

How to review it

Read a chapter, then send what you found, quoting the chapter and heading. Open an issue on the repository.

What this draft does not claim