What a version may change
Graview's stability promise says what a release may change and what it may not. Every @graview/* package shares one version; this page is docs/stability.md in the repository.
The promise
A host runs thousands of stored apps on one build of @graview/*. Before it takes a new version it needs to know three things: whether stored data folds the same, whether a declaration that compiled still compiles, and whether the tools a model calls moved. This page is the promise, and capabilities() is how a host reads what a build ships instead of guessing from a number.
Every @graview/* package shares one version (a changesets fixed group). Before 1.0, a minor may break what this page allows a major to break; each break is still said in a Compatibility: line. From 1.0 on, the rules below hold within a major.
The five surfaces
1. Ops and primitives: the stable contract
An Operation and its Primitives are history, and history is never rewritten. Within a major:
- Never changed incompatibly. A field may be added if it is optional, and an op without it reads as before (
via,author.name,author.onBehalfOfarrived this way). - No field is removed or changes meaning. No primitive is removed.
- A fold of the same log gives the same graph on every version of the major.
- An op may say what it was based on (FR-172):
lineage: { basis, confidence?, model? }, a basis of 1–500 characters, a confidence from 0 to 1 and a model name of 1–120, given asApplyOptions.lineage(or onAppendOp) and checked before anything is kept; a store refuses one that is not a lineage with aGraphError. An undo of an op that carried one keeps it asundoneLineage, so a host reading the log can tell a suggestion was declined without the op it took back.Batch.lineageis its first op's. Both fields are optional and additive within op format 1: an op without them reads and folds as before, and a build that predates them keeps them on an op it receives and draws nothing of them. A link whose making op carried a confidence below 1, by any author but a person, is PROVISIONAL until a person's op takes it away and puts it back —keep-link(KEEP_LINK,{ kind, from, to }), an act every store answers to and no list of acts offers, permitted to whoever may run an act whoseconnectsorseversnames the link's relation (or a grant namingkeep-link; before 0.1.29 any act that made or broke links or made records sufficed), and refused asmissingto a seat that may not see either end, alike whether the link is there or not (FR-55) — or the link is taken away; an undo of that keep makes it provisional again.linkProvenance(store, edge),isProvisional,provisionalLinksandprovenanceWords(@graview/core/provenance) are the one answer every face and host reads; nothing in the framework decides what to link. - Text is typed together (collaborative text, phase 2) with no new primitive and no new op field, where
@graview/core/typingis loaded —@graview/ship's server and runtime entries load it, and a page loads it when it types; without it a store answers to notype-text, writes a whole value as written and undoes as before. A keystroke istype-text(TYPE_TEXT,{ node, field, at, remove, insert, rev? }, offsets in UTF-16 code units against the field's text at revisionrev), an act every store answers to once that is loaded (a store made before too) and no list of acts offers, permitted to whoever may run an act that writes that field of that record (a declared act whosewritesnames it, or the kind'sedit-<kind>and what that rides, or a grant namingtype-text), judged under the caller's sight. The store reads the text atrevback off the log and carries the keystroke over everysplice-textsince, writing one splice; the first keystroke into a field holding no text (absent or empty) writes the text it inserts whole, wherever it said it was, as apatch-node, so its inverse is exact. It refuses asinvalida field that is not typed together, offsets the text read then does not have, and a keystroke against a field written whole sincerevor arevbehind the log's horizon; a field kept from the caller reads to it as holding no text, so its keystroke is a whole write, refused as an argument the act does not take whatever the field holds. Which fields are typed together is the declaration's (markCollaborative; read byisCollaborativeFieldon@graview/core/typing): a Markdown field, a document'stextand a string declared to hold more than 500 characters are, unless marked otherwise; a short string is not. Apatch-nodethat any act, an edit, an agent orapplyPrimitiveswrites to such a field holding text is written as the onesplice-textthat makes the change — against the text at the revision the call'sApplyOptions.basenames for the field (a three-way merge, carried over what others typed since), else against the text now — so a log written by this build holds splices where an earlier build wrote patches, and folds to the same graph. A splice claims no base (baseForskips a field typed together, and so doesopenRemote), so a stale write is a conflict only for a field that is not typed together. Undo carries the inverse of a person's splices over the splices of the same field since (undoneInverses;undoPrimitives(ops, log)reads the same): a later splice on that field does not block it, and text someone else since deleted shrinks out of what it takes back; a later whole write of the field, or the record's removal, still blocks it. - Typing is said, not stored, in words (collaborative text, phase 5): nothing in the log changes. A run of typing is the ops of one
type-textbatch, and one person's consecutive runs into one field — no other gesture between them in the log — are one change wherever a change is said: one tick ofticksOf(batches,typed), one row of Activity, one entry ofhistoryInWords, said "Ada wrote in Kitchen's notes (+42 −3)", characters counted as a person counts them. A notification of such a field says what was put in and taken out (MatchedRecord.fields[].typed:inserted,removed,spans) and never its text before and after, and a run is told once:holdTypingRunsholds a match that is a run of typing until its typist has stopped forTYPING_QUIET_MS(5 s, a host's to set) or another match for the same subscription comes, which is told after it —watchSubscriptionsand@graview/ship's handler hold through it, and tell what they hold when they stop. Within the major a subscriber hears of a run at most once and never later than the quiet interval after its last keystroke, the counts and spans keep their meaning, and the sentence is display only, like an op'sintent.
A major that must change them ships upgradeOp steps (below).
Op format 2 (0.1.43, before 1.0) took one field away: an op keeps no inverse. It was its primitives inverted, newest first, written down beside them, so every value an op wrote was in the log twice more — a 19 KB picture changed in a field was a 95 KB op, and is now 57 KB. What puts an op back is inverseOf(op), worked out from the primitives where it is read (undo, a rebase's rollback, playback, verifying a fold) and remembered per op. Operation.inverse stays as an optional field for one case only: an op read from format 1 whose stored inverse was not its primitives' own (a host could hand append one), which is kept and is what undo puts back. AppendOp.inverse is gone. The same log folds to the same graph, and undoes to the same graph, in either format.
FR-173 added one optional field and no primitive. An archived record is said on the record itself, $archived: true (a key no declared field can take), written and taken off by an ordinary patch-node, so archive and unarchive fold, undo and travel through every adapter as any patch does. The op of a merge carries mergedInto, the id of the record the duplicate went into; an op without it reads as before. A version before FR-173 folds the same log to the same graph, and reads an archived record as a live one with one more key.
The app's own actor (0.1.30) added two optional op fields, one optional author field and one record mark, and no primitive. A suggestion that waits is an op with suggests: MutationCall[], its lineage, and no primitives (suggest(store, calls, options), @graview/core/tidying): it folds to nothing. Accepting it applies the calls as an ordinary change whose lineage.suggestion names the suggestion's op; declining it is an ordinary undo of that op, with undoneLineage. An author may say automated: true (a system or agent author: the app's own actor), which the store holds to what a person declined, to records left alone and to the declaration's tidying. A record left alone is $leftAlone: true on the record, written and taken off by an ordinary patch-node, as $archived is. A version before folds the same log to the same graph, keeps the fields on an op it receives, and lists a suggestion's op as a change that touched nothing.
A seat's profile (Roadmap f-viewer-state-and-me-framework) added one optional author field and no primitive. author.profile: { id, name } says who at a shared screen, on a person's seat or the person an agent acts for: an id of letters, digits, _ and -, at most 64, and a name of at most 200 characters with something visible in it. Every op this build makes keeps a profile only in that shape, whether an act, an undo or applyPrimitives made it; one that is not one is left off, and a log another build wrote is read through the same rule. The first act of a seat with a profile, in an app with a people kind, adds one more op to that batch before its own: mutation: null, one add-node of the person at <account>~<profile id>, by that author. That op is never taken back with its batch, and the batch reads as undone without it. No seat's act can make a record whose id holds a ~: a requested id, a code act's addNode and emit are refused, and a client's id hint is ignored. A system author's act, a sync's among them, is the host's own, as a host's applyPrimitives, a snapshot and a restore are, and none of these is held to this: a record of another kind there is not read as the person, and that profile's $me refuses. What a view keeps (graview.mine) is in no op and no stored format of ours: it is the host's ViewerState.
A downgrade reads a log with these in it and folds it the same, ignoring author.profile and reading $me as the account. It treats the person's op as any other of the batch. Its undo takes the person back with the batch, or is blocked where a later act stands on the person, and its batch sentence says "Mia joins". Another seat with the act's grant is refused undoing such a batch ("no act made it, so only whoever did may take it back"). And an undo made there outlasts the downgrade: back on this build the person reads as removed for good, so that profile's $me is refused, while the account's own is unaffected.
Settled for 1.0 (0.1.49): what a suggestion and a lineage keep is promised as below, and changes only as the rules above allow.
- A suggestion is an op with
suggests,mutation: null, no primitives and itslineage; accepting it is a change whoselineage.suggestionnames it; declining it is an undo of it, withundoneLineage. These never change meaning: a log written by any build since 0.1.30 folds, waits and refuses the same (packages/core/tests/fixtures/formats/suggestions-0.1.48.json). - A suggestion may say when it stops waiting:
expiresAt, an ISO time, on its op (SuggestOptions.expiresAt). From then on it is not waiting — not insuggestions, not accepted nor declined — and nothing is undone; the same calls suggested again are a new suggestion. An op without it waits until a person answers it. A build before 0.1.49 keeps the field and reads the suggestion as waiting. - "Not now" is not in the log. A
Dismissal({ suggestion, at, until? }) is the person's own state, kept where the host keeps what a person chose and handed tosuggestions(store, principal, { dismissed }); it hides the suggestion from that person, untiluntilwhen given, and binds the app's own actor to nothing. Only a decline — an undo in the log — answers a suggestion for everyone and refuses the actor the same change again. - A decline refuses the same change by what it means as well as exactly as asked (
meaningKey,suggestionKey): a link of one relation between the same two records whichever act asks it, a merge of the same pair either way round, a record archived, unarchived, removed, left alone or let be tidied by any spelling of the act, and any other call by any spelling of its act with the same arguments, less theidof a record an act thatcreateswould make. Both keys are worked out from the calls whenever they are asked, so nothing is stored for them, and a decline already in a log matches by both. A later version may only widen what a decline catches. - A lineage is
{ basis, confidence?, model?, suggestion?, interaction?, actor?, run?, evidence? }:actorthe automated actor or judge that made the call,runthe pass it was made in (one id for a night's work, so it reads as one unit), each 1–120 characters, andevidenceat most 50 ids of the records its basis rests on, which an op names as it names any id, so a seat that may not see one is served the op withheld (FR-55). A key a build does not know is a later build's: kept as JSON keeps it (a copy, written out and read back), on the op, in the log and on the wire, when JSON can write it, it is not named__proto__,constructororprototype, and the whole lineage is at mostLINEAGE_LIMIT(4000) characters written out; anything else is refused with aGraphErrorbefore anything is kept. Before 0.1.49 such a key was dropped where the store checked a lineage. A later version may give a kept key a meaning; it never takes one away. - A vote on a suggestion (0.1.62, Roadmap f-suggestion-votes) is an op of the built-in
vote-suggestionact (VOTE_SUGGESTION,{ suggestion, vote: "for" | "against" | null }), which every store answers to and no list offers, askeep-linkis:mutationthe call, no primitives, the vote on the op (Operation.vote), and the records the suggestion names asdescribed, so a seat kept from one is served the op withheld, as the suggestion is. One standing vote per person — theactingAsid, so an agent votes as the person it acts for — the latest in the log;nullwithdraws it; an undone vote never counted.suggestions()carries each suggestion'stally: { for, against, mine? }, andvotesInandtallyOf(@graview/core/tidying) read it off a log. An undo of a vote is its voter's, the system's, or a seat's the policy grants every act. A lineage may namevoters(at most 200 ids of 1–120 characters): who had voted for a suggestion the app's own actor made at the declaration'stidying.autoAcceptAt, in the deciding vote's own batch, withsuggestionnaming it as any acceptance does. A build before it keeps the field on an op it receives, folds the same log to the same graph, lists the vote as a change that touched nothing, and counts no tally. - A suggestion of several changes (0.1.63, Roadmap f-job-approvals) may keep each call's sentence in
suggestsSaid(a string per call ofsuggests, in order), and a change that accepts some of a suggestion's calls rather than all names their places in it aslineage.items(at most 500 whole numbers): the rest still wait,suggestions()lists them asitems: { at, call, intent }[]with the maker'sbatchIntentasheadline, and a decline after that is a decline of the calls not yet taken. An acceptance withoutitemstakes every call still waiting. A workflow whoseapproveis "ask" leaves one such suggestion per run, its lineage naming the run (lineage.run,lineage.actor: "workflow:<name>"). A build before it keeps both fields, lists the suggestion's calls whole and reads a partial acceptance as the whole suggestion taken. - A vote from a seat no one person holds (0.1.63, Roadmap f-votes-shared-seat) is refused by the store on every path — the wire, a socket, an RPC, a store with no policy — in the words "Sign in to vote on this suggestion.": a principal the host marks
shared: true(every signed-out visitor served as one), avisitor, or an agent acting for either. Where the host saysvotes: { advisory: "visitors" }(StoreOptions.votes, the handler'svotes) and the seat names its visitor (Principal.visitorKey), the vote is kept instead, its op'svotecarryingadvisory: trueandvoter(that key): one standing vote per visitor, counted apart intally.advisory: { for, against }, never towardautoAcceptAt, and only that visitor's (or the system's, or a seat's the policy grants every act) to undo. A build before it reads an advisory vote's op as a vote of the shared seat's. - A suggestion's op may now have a person as its author (0.1.63, Roadmap f-proposals-for-review): a proposal is the same op —
suggests,mutation: null, no primitives, its lineage — made by the built-inpropose-changesact (PROPOSE_CHANGES,{ calls: MutationCall[], intent? }), which every store answers to and no list offers, asvote-suggestionis. Its author is the person (or the agent acting for them), and its lineage names them asproposedBy(1–120 characters, theactingAsid), with their words asbasis, else "Proposed by <name>". The call is permitted where each call it holds is one the seat may run or a grant'sproposenames; its calls are rehearsed as the store would judge them for whoever accepts it. Accepting it is a change by the reviewer whose lineage carriessuggestionandproposedBy; declining it is an undo whosebatchIntentsays "Declined <name>'s proposal: …"; its proposer withdraws it with an undo that is no decline. A build before it reads the op as any suggestion's, keepsproposedByas a lineage key it does not know, and refuses thepropose-changescall as an act it does not have.
- What a connection sent out is history (Roadmap f-sync-guest-changes-in-history): one new optional op field,
sentOut: { invited, removed, refused? }, and no primitive. After a write with guests reaches the calendar, a pass appends one op per record — credited to the connection's system author ({ kind: "system", id: "google-calendar", name: "Google Calendar" }),mutation: null, no primitives, no reads, no writes, its sentence ("Invited Ada to Long run", "Took bo@example.com off Long run") reading the event, the guests and each person's addresses indescribed, so a seat kept from one is served it withheld — in one batch for the pass, said over several records as "Invited 2 people to 3 events". A write the calendar refused, or the connection held over itsmax, is said once the same way withrefused: true("Did not invite Ada to Dinner: …"). It folds to nothing; it is never undone (checkUndo: "Nothing to take back: an invitation already went out. …"), stands in no other undo's way, and "Restore to here" (restoreBatches) leaves it be. A build before it keeps the field on an op it receives and reads the op as a change that touched nothing.AppendOpmay carrydescribedandsentOut.
Failing closed: what a reader does not know (1.0)
- An unknown primitive is refused, never skipped. The six primitives are
PRIMITIVE_OPS. A new one raisesFORMATS.opand travels only to a reader that said it reads that format (opFormat, §3), as op format 2 did. A reader that meets a primitive it does not know anyway — a log a newer build wrote, an op handed over by hand — refuses it withNewerFormatError(what: "op",unknown: 'primitive "<name>"') wherever ops are folded: opening a log (OperationLog,Store), receiving or rebasing onto ops, folding a graph (Graph.applyPrimitives, all or nothing), a seat's view of the log, a migration's fold,upgradeOp. It used to be skipped where a fold switched on the five, so an older reader's graph diverged from the log without a word. A planned primitive such assplice-textfor collaborative text ships atFORMATS.op= 3 on this path. - A typed value is reserved, as
$archivedis. A field's value that is an object with a$type—{ "$type": "rich-text", … }— is a typed value, andVALUE_TYPESnames the ones this build knows (none yet). Applying an op that writes a typed value whose type the reader does not know is refused withNewerFormatError(unknown: 'value type "<type>" in "<field>"'), the record left as it was, because writing it as an opaque object would let the next edit through that reader mangle it. Whatever only passes a value along — the log, every adapter, an export bundle, the wire, a seat's view of an op — keeps it exactly as written. An object without a$typeis an ordinary value, as before. A new value type arrives with a new op format, like a new primitive. - An author's kind is open.
AUTHOR_KINDSishuman,visitor,agent,rule,system.visitor(1.0's foundation) is a person who never joined the app — one answer to a form a host opened — and is whatformVisitormints, held to the form's role as a person is to theirs; a visitor's op saidhumanbefore, and reads as it did. A kind may be added within a major, and a reader that meets one it does not know reads it assystemfor display and policy (authorKindOf) — the app itself — and never refuses the op, which is history and folds the same whoever wrote it; the log keeps the kind as written. A seat is the host's to mint, so a kind its headers name that a build does not know is a person's seat (human), never the system's. The app's own actor is asystemoragentauthor withautomated: true, not a kind of its own. - An op's
intentis display only. It is the sentence a person reads; nothing in the framework matches on its words, and a program must not. What an op did is itsmutation, its primitives, itsbatchand itsundoes: ship reads a migration's version from its batch (migration:<from>-><to>), not from its sentence.
A link's own id and data: reserved (1.0)
A link is { kind, from, to }, one per kind per pair. It may also carry an id of its own and data, a JSON object (GraphEdge), so the day a link has a weight, a role or an order nothing stored is rewritten. Both are optional and additive within op format 2, and no format number moves.
- Kept and folded everywhere. An
add-edgethat carries them is kept as written by the graph, its snapshot, the log, the wire, a seat's view of an op, an export bundle and every adapter: memory, file, browser and SQLite whole as JSON; the SQL adapters in the edge table's optionaldatacolumn ({ id, data }as JSON), whichcreateTablesadds to a table made before it. An app's table without that column reads and writes links as it always did, and refuses a link that carries an id or data rather than keep it without them.snapshotHashcounts them when a link carries them, so a graph without them hashes as before. A merge moves a link whole; a migration that moves a link to several heirs gives each the data and none the id. - Removed by id when it names one. A
remove-edgewhose link carries anidremoves the link holding that id — the graph's own, and a migration's fold — and one that names no id removes by kind, from and to, as before; an id no link holds ismissing. An act that removes a link by its id is handed the link as held, so the removal's inverse puts all of it back. - What a write is held to (
EDGE_FIELDS): an id of 1–200 characters with no space or control character, unique among the links; data a JSON object of at most 4,096 characters as JSON. - Reserved, not open. No act the framework derives writes them, and no face shows them. A second link of one kind between the same pair stays refused (
EDGE_FIELDS.sameKindPerPairis 1): the same link again is nothing new, as it always was, and one that says it is another — an id of its own — is refused, as is an id another link holds. A version may open several links per pair within the major, since every reader already tells two apart by id; that is additive, and the changelog says so. - A build before 1.0's foundation folds the same log to the same graph — it keeps the edge object an
add-edgehands it — but removes by kind, from and to, which is the same link while there is one per pair.
2. Snapshot and log formats: versioned
What is stored carries the format it was written in (FR-31). FORMATS names the current formats (snapshot, op), and formatStamp() gives { framework, formats }. A store's meta and every bundle are stamped with it.
- A reader meeting a newer format says so with
NewerFormatErrorand does not fold it. The host refolds from the log or rolls forward. Rollback is therefore always safe: the previous version never misreads what the next one wrote. - An older format is brought up by
upgradeSnapshot(snapshot, from)andupgradeOp(op, from), one step per format change. Each step ships with a test over a fixture of the format before it (packages/core/tests/fixtures/formats/). - Anything written before stamps existed (0.1.0) is format 1.
- Op format 2 (0.1.43) writes no
inverse. A format-1 op reads on every later build:upgradeOp(op, 1)drops an inverse that is its primitives' own, and a store does the same to every op it opens on, receives or rebases onto (bareOp), so a store's log is format 2 whatever wrote it. Nothing on disk is rewritten to open it: a format-1 log opens, undoes and goes on, its old lines with their inverses beside the new lines without, and a compaction rewrites what it keeps in format 2. A store's meta is stampedop: 2when it opens, so a build before 0.1.43 meeting it refuses it withNewerFormatError("Upgrade the framework to read it") rather than undo an op it finds no inverse on; a bundle exported by 0.1.43 is stampedop: 2and refused by an olderassertBundlethe same way. A host that must roll a store back to an older build writes its log out withwithInverse(op)and stamps itop: 1. - Snapshot format 2 is a stored state whose checkpoint keeps the app as readers are, or may again be, served at a seq behind it (
Epoch.published, Roadmap f-publishing-lifecycle): a checkpoint past the publish standing at its seq, or past a seq a later publish took readers back to. Only such a store is stamped 2:formatStamp(checkpoint)reads the checkpoint a store or bundle begins at (2 when it carriespublished), ship'sopenStorestamps the meta at open and when it compacts (before the checkpoint lands when it moves to 2, after when it does not, so a failed write leaves a store stamped newer, never older), andexportBundlestamps the bundle. Every other store — never compacted, live, or compacted withformat: 1— is stamped 1, as before. A build before it refuses a format-2 meta or bundle withNewerFormatErrorrather than serve readers changes never published; a host that must roll back asks for format 1 by name (CompactOptions.format, onstore.checkpointand ship'sopened.compact): the horizon is held at the earliest seq readers are served behind it, wherever the days, the ops and the pins would have put it, and the checkpoint'sseqsays where it stopped. A pin atstore.publishedSeqis not enough on its own: it holds the horizon at or before the latest publish, and one that lands between two publishes keeps the earlier one and is format 2 with it. A format-1 snapshot reads as written (upgradeSnapshot(snapshot, 1)is the same snapshot). A host that keeps its own meta stamps it withformatStamp(store.log.horizonEpoch()). - Op format 3 (collaborative text, phase 1) adds one primitive,
splice-text:{ op, id, field, at, removed, inserted }, part of one text field changed — atat(UTF-16 code units) the field holdsremoved, andinsertedtakes its place. It keeps the text it removed, so its inverse is the same splice turned round, and a fold refuses one whose text is not there as a corrupt op (GraphError). Nothing is taken away:upgradeOp(op, 2)reads a format-2 op as written. A store's meta is stampedop: 3, so a build before it refuses to open it withNewerFormatErrorrather than meet a splice it would refuse part way; a host rolling a store back refolds it from the log on the older build. The transform (transformSplices,composeSplicesanddiffSplicefrom@graview/core/typing;transformCaretandapplySplicefrom@graview/core) is pure and settles a tie the same way on every build of the major: where two splices touch, both insertions stay, the one further left first and, at one offset, the one earlier in the log first. - Every record keeps when it was made and last touched, and by whom (Graview HQ feature:f-record-last-touched):
createdAt,createdBy,updatedAtandupdatedBy, on the record under those names, so a snapshot, a checkpoint, the archive, an export of the installation and the wire carry them as they carry any field. Each op stamps the records its primitives write as it lands (Graph.touch), and every fold — a store opening its log, a client folding what it is served,pastOf— stamps them the same way (a client that folded an op before its author's seat was bound keeps who it said then, the account, until it is served the state again; its view says the person) (a past read back from the present, with no epoch where its log begins, says nothing of a record's making before the log).…Atis the op'sat, and only an instant is read as one;…Byis the acting seat, kept as an op's author is (toucherOf: the account's id, with a profile the account's and the profile's), said to a reader as the record of the people kind it is bound to, asnamedAuthorssays an op's author, a binding since ended or moved included; none for a visitor. A record an op adds is made by that op (makingIn), but for one the framework's own undo puts back, which keeps what its payload says (none where it says none), and one an op removes and adds again (a kind renamed), which keeps what its removal carried; a host's appended undo says nothing of a record's making; an op by asystemauthor whose id ends inmigration(ship:migration, asnameOfAuthorreads it) leaves the four as they were, as do a rebase and a store opened on a log that holds one; so no act, host, import, seed or template says when a record was made, and a patch naming one of the four is passed over, but for clearing a value a kind kept under one of the names, which is no stamp. No op field carries them, but what an op carries of a record does: a removal's payload, and an undo's that puts it back, hold the four in stored logs, journals, archives and exports, and an op served to a seat may saystamps: false(it stamps nothing, and takes them off what it wrote). No format number moves. A build that predates them reads them as keys no kind declares: it holds them as stored, refuses a payload that carries them into a kind declared.strict(), and itsvalidateGraphsays such a record no longer fits (node-shape); a client and its server take this version together, and a host rolling back refolds from the log or leavesrepairPlanalone. A store stored before them opens with what its log still holds: each record that holds none takes them from the ops of its log that wrote it, its making only from the op that added it, and a record no held op wrote says none — never a time made up.snapshotHashleaves them out, so such a store verifies and its conformance hashes stand. A seat is served them as it may see them: one from whom nothing is kept, as the store keeps them, a seat since bound to a person said as that person; one from whom anything is kept, none of them, in its graph, its log and its epochs alike. A checkpoint keeps whom each seat was bound to (Epoch.bound, ended bindings included, never served to a seat), so they are said as the person after the binding went to the archive. A list, a search and the agent's search offer and judge them only for a seat told them (toldTouches,offersTouches,arrangeable(…, { touched })). A page's store answers as its server says of its seat: the state, the welcome, each push and each answer since carrytoldTouches. A seat's view (store.seenBy(seat)) acts as its seat where a call names no author, and is no boundary against a caller that names another: the store judges the author it is handed. What a judgment read decides only in the rule language; an invariant or computed value written in TypeScript is judged as its code reads. A seed or a template (unseatedSnapshot,templateSeedPrimitives) carries none of them; an export keeps them as the store does (unseatedSnapshot(snapshot, { touched: "kept" })),…Bythe acting seat as each op's author is kept, and noEpoch.bound. - A log compacted behind an undo horizon (FR-23) is not a new format. Its ops are ops, its checkpoint is an epoch marked
horizon, and the archive sits beside it. A build before compaction refuses such a store on open, because its log no longer begins at seq 0. It never misreads one. - A checkpoint keeps who made each record behind it (
Epoch.creators, record id to seat id), so anownsight knows them after a restart without the archive. The field is optional and additive within format 1: a checkpoint without it opens as before and knows its makers from the horizon on, and a build that predates it ignores it, folds the same graph and judges sights as it always did. A build that predates it and compacts again writes its next checkpoint without the field. Epochs are never served to a seat, so the ids it names stay with the host. - A checkpoint also keeps what kind each record removed behind it was (
Epoch.removed, record id to kind,{}when there is none) and who wrote each field of its graph that names a record (Epoch.writers, record id to field to seat id), so a store opened on it judges a field naming a removed record, and a seat's own words, as the whole log would (FR-199). Both are optional and additive within format 1, and no format number moves: a build that predates them ignores them, and this build opens a checkpoint without them failing closed, judging an id it cannot place that begins with a kind the app declares as a removed record of that kind. A host that keeps the archive mends such a checkpoint by taking it again at the same seq from the archive —archiveFrom(store, archive, store.log.horizon)on@graview/core/seat, which reads the archive from seq 0 or from an epoch it begins at that keepsremoved(FR-214). A build that predates them and compacts again writes its next checkpoint without them, and a store that never knew every record it held (it was opened on such a checkpoint) writes noremoved, rather than claim to. They are never served to a seat. - A checkpoint also keeps what people declined behind it (
Epoch.declines, what each decline means —meaningKey— to the id, time and author of the undo or unlink that said it,KeptDecline), so the app's own actor does not make again a change whose undo went to the archive with it. Written only when there is one, carried from the checkpoint before, and never served to a seat. Optional and additive within format 1, and no format number moves: a build that predates it ignores it and knows only the declines its tail holds, as it did, and this build opens a checkpoint without it the same way. A build that predates it and compacts again writes its next checkpoint without it. - A person's "Don't suggest this kind of thing" (
stopSuggesting, Roadmap f-inbox-needs-you-first) is an undo of the suggestion carryinglineage.stopsKind: true, so it needs no new op; a build that predates it keeps the key, as it keeps any lineage key it does not know, and reads an ordinary decline. The store judges it wherever it comes from: an undo sayingstopsKindfrom a seat whose grants do not reach that kind on any record, or that may not decide every suggestion of it now waiting, is refused, andstopsKindon anything but an undo is refused. A log a store opens is not checked against this, so these keys mean something only on the op they are made for:stopsKindon an undo that changed nothing of the app's own actor's suggestion, andliftedStopon an undo that changed nothing of an op the log no longer holds. On any other op they are inert.Epoch.declinesholds it under a key of its own,∀and the kind (suggestionKind: a link by its relation, an edit by its act and the fields it writes, anything else by its act), beside the≈meaning keys, and its entries gain an optionalstop(KeptStop: its batch, its words and one call of each kind), so a stop can be listed and lifted after its op went to the archive. All of it is optional and additive within format 1, and no format number moves. A build that predates it holds no∀lookup: the store it opens lets the actor suggest that kind, and if it compacts again it keeps the∀key and dropsstop, so after a downgrade and an upgrade the stop stands, refusing the actor, and can be neither listed nor lifted. Lifting one behind a checkpoint is an ordinaryundoof its batch; the op it makes changes nothing, names the archived op inundoesand sayslineage.liftedStop: true, which only the store writes (a client's is refused), and cannot itself be taken back. A stop binds an author markedtidying: trueandautomated: truealone (isTidyingActor): a declared workflow, an importer, a chat agent and a host's triage are held to what was declined, not to a stop. A suggestion of an edit with a field the stop does not name is still asked about. - The wire's state and welcome may carry
stops([{ batch, words, kinds }]) andstoppedKinds([kind]), absent where there are none, which is additive: an older client ignores them. A page holds a tail of the log and no checkpoint, so a stop can leave what it holds while the server still refuses the actor.stopslists those a seat may lift and may be told of, for its tray and its bell, and an ordinary undo of a batch it names lifts it;stoppedKindsis the rest, only the kinds of suggestions that seat is served, insuggestionKind's form, so its tray agrees with the server's. They are read at a socket's welcome, a state's answer and a/graview/sinceanswer that brings ops, and a client asks for the state again when ops it lands lift a stop. They are not pushed: a seat kept from a stop made while its socket is open learns it at its next welcome. - An archive may begin at an epoch rather than seq 0 (FR-214): a host that keeps a plan's window of history makes the epoch where the window begins (
archiveFrom, withcreators,removedandwriterslike a checkpoint), deletes what lies behind it and keeps the one epoch.archivedSeenBy, a full export and a mended checkpoint read from it; a range behind it is answered withkeptFrom, its seq. An export bundle that begins past seq 0 carries the epoch it begins at ascheckpoint(additive to bundle version 1), so it restores as a compacted store opened on it; a bundle without it is the whole history from seq 0, or, from a build before it, a tail that does not restore alone. - A snapshot file — a seed, a projection a product emits, what
graview serve --seedandgraview sync-seed --seedread — is@graview/core/snapshot's line format,"format": 2in its header line: when it was made (generatedAt), records per kind, links per kind and where each kind's lines are, then one record per line, each kind's together, then the links. A header key may be added when it is optional; anything a reader needs to find a kind's lines moves the format, andreadSnapshotrefuses a newer one by its number. An old{ nodes, edges }file is format 1 and reads on every build of the major (readSnapshot,fetchSnapshot,--seed). What an adapter stores (snapshot.json, a browser'slocalStorage) is not this file and is unchanged.
One writer per log, and a sync state's format (1.0)
- One writer, enforced. A scope's log has one writer.
PersistenceAdapter.appendOps(scope, ops, { head })takes the seq the first op appended takes, as the writer last knew the log; an adapter that holds its log elsewhere throwsLogHeadMovedError(scope,expected,found) and appends nothing — compare-and-set — so two writers fail loudly rather than interleave two histories under the same seqs. The memory, SQL and SQLite adapters compare and append in one transaction; the file adapter reads its head from the log's last line and the browser adapter from storage, at each append, so another process or tab is seen, though not one that writes between the read and the append.openStorealways passes the head, and reports a refusal throughonPersistErrorand writes nothing after it; a journal another tab's write left behind is reported and not put back, and the store opens on what is stored.headis optional, and an adapter written before it still works; one that ignores it gives up the check, not the store. - A sync state carries its format. A host keeps a
SyncStatebetween runs, so it is a stored format:SyncEngine.snapshotand a run'sstateare stampedformat: SYNC_STATE_FORMAT(1), a state without a stamp is format 1, and an engine handed a state in a newer format refuses it withNewerFormatError(what: "sync state") rather than run on links it would misread.
- A sync state may say what a connection last did (Roadmap f-sync-guest-changes-in-history), still format 1:
guests, by record, the addresses its last write that reached the calendar said (sent: { addresses, notified, at }) and the last write with guests that did not go (refused: { addresses, error, at }), andlastPass({ at, offline, problem?, applied, pushed, queued, conflicts, refused, invited, removed }). Both are read back by pure functions on@graview/core/sync—guestsOf(state, declaration, localId)(what was sent, quiet or mailed, the attendee addresses both sides last agreed and those matching nobody here) andconnectionStatus(state, declaration)— and a build that predates them drops them. ASyncReportmay carryguests: per record, the addresses a write that reached the calendar invited and took off, and the people it reaches and left out (leftOut, each{ person?, address?, why: "invite-off" | "no-address" | "not-a-person" }); a refused or held write invites nobody.
3. The wire and live protocols: additive within a major
WIRE (in @graview/ship) lists every route serveStore answers, and createStoreHandler answers the same routes in any runtime (FR-09). WIRE_PROTOCOL numbers the protocol. The guest-view protocol (@graview/guest, FR-04) is held to the same rules, and GUEST_PROTOCOL numbers it.
- Within a major, a route or a response field may be added. None is removed, renamed or changed in meaning.
- A request field the server does not know is ignored, never refused.
- A
callor anundo, on the socket and overPOST /graview/ops, may carrylineage(FR-172), and a lineage may name the suggestion a change accepts (lineage.suggestion), so accepting and declining a suggestion travel as acalland anundowith nothing new on the wire; the store checks it, a change whose lineage is not one is refused asinvalidwith nothing kept, and the ops every client is sent carry it.openRemotesends the lineage a call or an undo was applied with, and again when it sends a change again. A server that predates it ignores the field and keeps no lineage, so a host readscapabilities().shippedfor FR-172 before it relies on one. - A host's model is a seam on the page,
HostAi.complete: Completion(@graview/tools), settled for 1.0 in 0.1.49: it is asked with one object,{ prompt, system?, images?, signal? }(imageseach{ mediaType, data }, base64), and answers{ text, usage? }(usage{ inputTokens, outputTokens, costUsd? }). Within a major a request field may be added when it is optional, and a model that does not read it answers as before; a reply field may be added the same way. The dev server's door (AI_BRIDGE_PATH,aiDevProxy) takes the same request lesssignalas its POST body and answers{ text, usage? }or{ error }. Before 0.1.49 a completion was(prompt: string) => Promise<string>. - The live socket at
/graview/live(FR-05) holds to the same rules: a message type or a field may be added, and a message the server does not know is ignored.helloandwelcomecarryWIRE_PROTOCOL, so either side can tell what the other speaks. Its positions are cursors, as/graview/since?seq=takes them (below, *A cursor is opaque*). - A refusal's
reason(FR-46) is one ofREFUSAL_REASONS—forbidden,missing,invalid,limit,unavailable,refused,unauthenticated,quota— on the socket'srefused, on every refusing answer of the routes and on an agent tool's refused answer. A code never changes meaning. A code may be added within a major, and the changelog says so as a change to this surface; a client meeting a code it does not know treats it as a final refusal (below, *Refusal codes are open*).refused(FR-119) is an act's own rule saying no to a well-formed call — a document act'sallowedWhen, a TypeScript mutation'sActRefusal, whose reason isrefusedunless it names another;invalidis the call as sent — its arguments, one the act does not take (FR-121), a call that changes nothing. A client that predatesrefusedtreats it as it treats any code butunavailable: final, the change taken back.wouldNeedis the roles that could, when the policy knows them. A call naming a record the seat may not see is refused exactly as one naming a record that does not exist —missing, one sentence that names the act and not the id (FR-55) — and permission is asked of it as if the record were not there, so no refusal tells a guessed id from a real one. An act runs under its caller's sight (FR-55): its body, its condition, its refusal and its sentence read the store as the caller is served it, so a record the caller may not see is to the act what one that does not exist is — whether it runs, what it refuses with and why, what it writes and what problems it answers with are the same for a hidden record as for an absent one, and the page that guessed the outcome from the seat's view is confirmed by the host rather than refused after it. What it writes lands on the whole store, and the store's own bookkeeping reads the whole store — a removed record's links, a patch's prior values, a single source's other links, an id already taken — without telling the seat (FR-55). Ids are unique across the store, so a seat that may not see every record may not ask for the id of one it makes: it is refused alike (invalid, "… makes its own id here") whether a hidden record holds that id or nothing does. An id minted from a label for a kind the seat may not see every record of is the seat's own —room:green.<mark>, where the mark isseatMark(<the seat's id>): seven letters and digits, the same for the seat on any store, which no other seat's label mints and which does not spell who the seat is, since every seat that sees the record reads its id — stepping only past what it sees, and one that would land on a hidden record anyway (an id somebody asked for) takes a suffix no guess collides with; a seat that sees every record of the kind getsroom:green,room:green-2as before. An act that sets a single-source link and takes a hidden record's link with it is served to the seat whole, with what it may see — the link it took is no part of its op — and the seat may undo it, which puts that link back. A rule that must hold across what a seat may not see — no double booking — is an invariant's, not an act's.graview checkwarns of each act that reads a kind some role allowed to run it may not see (act-reads-hidden-kind, FR-105), reading a document's act for itself and a TypeScript act by the kinds it declares itreads: run by that role, it judges as though there were none. A seat's problems are judged over what it sees, facts and lines included, wherever it reads them —seenBy(…).violations(), a seat's tools, a page served only what its seat sees — so a rule that counts records the seat may not see says the count it sees, and a record it may not see never makes, mends or words one of its problems. An act's answer to a seat (answerSeenBy) gives what the act broke, what it mended and what stands after it — a change made or a preview — as the seat judges them over its own world: what it is served, and that world with the change as it is served taken back, or for a preview put on. So whether a rule that reads beyond its subject (a fact, a sweep, a relation) was broken or mended is the seat's own answer, in its own words, and never the whole graph's; the judging is@graview/core/lines', which a seat's tools load, and without it an answer to a seat says no problems at all. A fact in a rule's line is said by itslabel, or its name in words.graview checkwarns of each rule whose message says a fact over a kind some role told of it may not see in full (rule-says-hidden-fact). A rule is judged on every change and once on load; one that reads the clock —today(),now(), a computed field that does, a kind whose records retire on a date — is judged again on the day a host ticks the store to (store.tick(now), FR-176), which answers{ day, was?, appeared, cleared }and tells every subscriber with an empty diff and no ops, logging nothing.@graview/ship'sopenStoreandopenRemotetick just after each midnight by the clocktoday()reads (the app's, inbrand.timeZone, else UTC) untilclose()(openStore'stick: falseleaves it to the host); a host that sleeps through timers ticks from its own alarm. A tick holds for the rest of the day the clock read when it was made: once the clock's day moves past it, the store judges on the clock again until it is ticked, so a timer that slept through midnight never leaves a store on yesterday.clockReaders(schema, rules)on@graview/core/checksays which rules and computed fields read the clock, andgraview checknotes them (rules-read-the-clock). A store pinned to a day (invariantOptions.today) stays on it. busy(FR-45) is not a refusal: the host asked for the change again afterretryAftermilliseconds (429 withRetry-Afterover HTTP), nothing was judged, and a client keeps the change.limitis a refusal: the change can never succeed as asked, and is taken back.unavailableis the one refusal that is not final: the host takes no changes for a while and cannot say how long (503 over HTTP), nothing was judged, and a client keeps the change and sends it again, backing off. A call sent again after it landed is answered with its ops before a host'slimitis asked, so it is never told busy,limitorunavailable.- Op format 2 travels as an addition to protocol 1 (0.1.43). A reader says it reads it —
hello.opFormat,?opFormat=2onGET /graview/stateandGET /graview/since,opFormatin the body ofPOST /graview/ops,WireAsked.opFormatfor a host that routes its own requests (opFormatOf(url)reads the query) — and is sent ops bare. A reader that says nothing, as every client before 0.1.43, is sent each op with its inverse written out (opsFor), as format 1 had it, so an older tab goes on undoing and playing back against a newer server; it costs that tab the bytes format 1 did. A newer client against an older server is sent format 1, which it reads.WIRE_PROTOCOLand the subprotocol do not move. - A presence may say where somebody's caret stands in a field typed together (collaborative text, phase 4):
caret: { node, field, anchor, head, rev }, offsets in UTF-16 code units against the text their log held atrevops, which a reader carries over the splices its own log took since by anybody else. A server keeps it only when it is a record, a field and three counts, and withholds it from a seat whose sight keeps that record or that field from it; a reader that does not know it ignores it. - Op format 3 (
splice-text, collaborative text) travels the same way. A reader that saidopFormat3 or more is sent each splice as it is kept; one that said less, or nothing, is sent the same change as apatch-nodeof the field's whole text before and after it (opsFor(opFormat, ops, store)) — at a broadcast from the text as the splice left it, in a catch-up and a welcome by walking back from the text now — so its copy folds to the same text. A reader served behind the head is sent splices only through the seq it is served, the same way. A keystroke is thetype-textcall;revon it is where its sender last read the log, and one behind the horizon is answered as a stale write (conflict, withtheirsthe text now andsawtherev), since the history it would be carried over is gone; a host's compaction keeps the horizon behind every open socket (protocol.floor(peers),handler.pins(), the adapter handler'scompact). A field typed together is never compared as stale: a call'sbasenames it so a whole write over it merges three ways with what was typed since (ApplyOptions.base). - A field's revision, which a stale write is refused against, is the seq of the op that last wrote it. It is derived from the log and never stored, so it never changes a stored format.
WIRE_PROTOCOLmoves only when a client of the previous protocol can no longer be served, and that is a major.- A host that stops serving an older protocol says so with
reload(FR-44):minProtocolnames the lowest it serves, and a client carries its unsent calls across the reload.hello.wireand the subprotocolgraview.ship.1name ship's codec, so a host can serve another beside it on one path.buildinhelloandwelcomeis the host's opaque string and is never judged. A host numbers its own half of the wire withhello.hostProtocol, whichminHostProtocolanswers withreloadcarryinghostProtocol;hello.protocolstaysWIRE_PROTOCOL. - A client names its batch as a
Storemints it,batch:<tag>:<n>orundo:<tag>:<n>(isClientBatch); any other is refusedinvalid. A batch sent again is answered only with the asking seat's own ops, and one that holds somebody else's is refusedinvalid. A server mints its own batches outside that shape (served:…), and serves another seat's withheld op under an opaquewithheld:<16 hex>batch. Aviain a call or a post is a claim, ignored unless the host'sviaOfaccepts it (FR-52). - The declaration
versiona welcome, a route and adeclarationpush say is the host's own monotonic number for the declaration it serves, the one a client handsresolveApp; a push with the number a client already serves is ignored. - A declaration change is pushed as
declaration(FR-43), and every welcome says the declarationversionit serves. Neither movesWIRE_PROTOCOL. - A host that holds the app read-only says so (FR-66):
{ t: "held", sentence }to every socket that said hello when the hold starts,sentence: nullwhen it ends,heldin every welcome and on every answer a poll reads while it stands, and every change meanwhile refusedunavailablein that sentence. Additive to protocol 1, so it does not moveWIRE_PROTOCOLor the codec's name: a client that does not know the message ignores it. - What a seat is served holds no id of a record it may not see (FR-55): not in the snapshot, the log, an op's primitives, inverse, reads, writes, call or sentence, a presence, a conflict,
/graview/healthor a tool's answer — beyond the seat's own words. A field whose current value this seat wrote (or the person an agent acts for; an undo is never the author of what it puts back) is served as written, whatever it names, and a record withheld only for such a field is served; so is the seat's own call in its own ops, and an argument it sent that an answer says back. A seat that guessed an id and wrote it is then served the same whether the guess was real, and a write of the value a field already holds, when that value names what the seat may not see, is kept in the log as the seat's. An oracle that checks what a seat is served excludes the strings the seat itself wrote. An act's sentence is worded from its author's view:describereads the graph as the author is served it, so a record the author may not see is named only by what the author wrote, as one that does not exist is — and a reader who sees more reads that sentence as the author would have. The seat's own words excuse only what it wrote — values in its primitives and the inverse that puts them back, and its own calls; another author's call, sentence and name are judged by sight alone. An op records which records its sentence read (described), and another author's op is served whole only when its reader may see every one of them. An answer'sreadsname only records the seat sees; an id that names no record is left out as a hidden one is.seatLensis the judgment, andseenBy,logSeenBy, the routes, the live socket and the agent tools all read it. A seen record whose field names a hidden one is served with that field cleared when its kind declares the field optional (or does not declare it); when the field is required, clearing it would serve a record that fails its own declaration, so the record is withheld from that seat whole, as if its sight did not reach it — with its links, and with every op that touched it withheld. An op whose only mention of a hidden record is in itsreadsorwrites, and whose primitives are served as written, is served whole with those trimmed. A link the seat is not served is no part of an op that did anything else: it is left out of the op's primitives and of its inverse, and the op is judged without it — so a removal that takes a record's links to what the seat may not see is served to the seat whole, as it would be had there been no such link, and the seat may undo it (the undo puts the links back, and is served to the seat the same way). An op that did nothing but such links is withheld. Any other op that names a hidden id is withheld, and its primitives are judged by whether each record was served just before and just after them: served to served is the patch as the seat is served the record (a hidden id written into an optional field arrives as that field cleared,UNSET); not served to served is anadd-nodeof the record as now served, with its links to records the seat is served; served to not served is aremove-node; neither is nothing; and a link is served when both its ends are — an end that is not there at its moment, as a dangling link a repair removes has, is judged asseesIdjudges its id, so one that names no record is served and one that names a record the seat may not see, removed before, after or with the link, is not (FR-67). A seat from whom nothing is kept (hidesFromfalse) is served every op as it is. So the log a seat is served folds — from nothing, from any cursor, or from the epoch base its view serves after a compaction — to exactly the snapshot it is served./graview/healthkeepsokand every count the whole store's — a poller asks whether the store is well, a count names no record, and a count of only what the asker sees would call a broken store well — and itsdanglingEdgesnames only the links whose ends the asking seat may be told of; a caller the host cannot tell is judged as a seat with no id and no roles. This narrows what a seat is sent and never adds a field, so it does not moveWIRE_PROTOCOL. - A sight may keep fields as well as records (Roadmap f-field-sight):
policy.sees[].hide(field names it keeps) andpolicy.sees[].fields(the only field names it shows), both optional. A field of a record is shown to a seat when ANY sight that shows the seat that record shows the field — sights add up,ownandviajudged as for the record — so a sight with neither key shows every field. A field kept from a seat is never in anything it is served: the record (cleared, or the record withheld whole when its kind requires the field, as for a required reference), its log (an op that adds or removes a record with a kept field, writes one, or whose sentence read one is withheld whole whatever the field held, its primitives served as the seat is served the record; its own ops are served as it wrote them), an answer's diff and primitives, a conflict (a revision of a kept field is not compared or said), a search hit, a name a call resolves (a label is worked out from the served record), a form, an edit offered in place, a static page, a computed field (worked out over the served record) and a rule (judged over what the seat is served, so a kept field reads as none) — and nothing a seat reads differs between a kept field that holds a value and one that holds none. A seat may not write a field kept from it: an act that would is refusedinvalidas an argument it does not take ("does not take "phone"; it takes …"), asked before a write of the value the field holds is let go as no change, so the refusal is the same whatever it held and whatever was written; a kept field an act leaves unset is no write. An import refuses a column that goes to a kept field exactly as one that goes to no field. An op'sdescribedmay name<id>#<field>for each field of a record of a kind some sight keeps fields of that its sentence read. Judging fields is@graview/core/field-sight's; until it is loaded, a sight withhideorfieldsshows nothing — the store keeps the record rather than serve a field it cannot judge, and says the seat neither sees every record of the kind nor, when it may begin none, the kind at all (kindsKeptFrom) — except in a storeopenRemoteopened, which shows what its host served it: that store alone (FIELD_SIGHT.served), never another store the same page holds whole. An agent's tool for an act leaves out each argument that writes a field no sight granting the seat that kind shows on any record (argumentsNeverShown,@graview/core/json-schema), so the tool names no field the seat may not see, andtoolDefinitionssays the same surface without a store.@graview/ship's server entry loads it; a page that holds its whole store (openStorefrom@graview/ship/browser, or aStoreof its own) imports it, as does a host that serves seats without@graview/ship. A build before 0.1.29 ignores both keys and shows the field: a host serves a declaration that says either only on a build that exportsFIELD_SIGHTfrom@graview/core. - An act may touch what its seat cannot see (FR-55), and
replaces(FR-115) is such an act by design. Before it connects, it severs the subject's links of the relations it names, all but the one it makes — whatever record is on the far end, seen or not — exactly as connecting a cardinality-one relation severs the link it displaces. A seat that moves a component to a new owner may so cut its link to an owner it may not see. That is the policy, not a leak: the seat is served the severed link as nothing (a link is served only when both its ends are), the op as its primitives are judged above, and an agent tool's answer the same way, so the act changes what the seat cannot see without telling it what was there. An installation that must not let a seat displace a hidden record says so in the act's condition or its grants, not by relying on sight. - A status board's moves (FR-108) are judged against the graph the page holds, and the host judges them under the seat's sight. On a served app the page holds the seat's view, so a named step whose condition reads a record the seat may not see is judged without it on the page and at the host alike: a step is offered exactly when the host would run it, and run when offered. Nothing tells the seat what it cannot see, and nothing moves
WIRE_PROTOCOL. - A host's files (FR-163) are a seam on the page,
files: { upload(file, name), maxBytes, kinds }onmount,<Embed>,GraviewProvider, the Shell and the routed face's context, and the route that serves them is the host's own; within a major the seam's three members keep their meaning, and the valueuploadanswers is aFileValue(FR-162) the record keeps as it is. What the route serves is part of the app's origin, and the page draws it as such: a picture in an<img>, which never runs a script, an SVG's included; a PDF in an<object>, which draws whatever type the route answers with; anything else as a link withdownload. So a host's files route: serves each file as the type the host decided from its bytes, never the type the uploader said, withX-Content-Type-Options: nosniff; sendsContent-Security-Policy: sandboxwith everything but a PDF (an SVG or an HTML file opened from it, in a tab or in that<object>, runs as the app otherwise), and with a PDF where its readers' browsers draw one sandboxed; saysContent-Disposition: attachmentfor anything that is not a picture, a PDF or plain text; and serves a file only to a seat that sees a record holding it, the framework's sight being per record (seesId(store, principal)over the records whose fields hold thehref, byfilesOf). The dev door (devFiles,@graview/ship/dev) does the rest but the first and the last: it keeps the type it was sent, which undernosniffand the sandbox runs nothing, and every seat on a dev server is its one person. A host's page that carries aContent-Security-Policyallows the files route inobject-src('self', or the files origin) if it wants a PDF drawn inline; where it does not, or where the browser draws no PDF (an iPhone), the page draws the PDF's one line — its name, its type, its size, Open and Download — and the<object>takes its height only once the browser has loaded the PDF into it, so nothing is lost and no empty box is drawn (FR-234). - Where a host serves an app's own images (Roadmap f-brand-marks-under-app-base) is a seam on the page beside it:
assetsAt?: (path) => stringonmount,<Embed>,GraviewProvider, the Shell, the routed face's context andsplashHtml's options, asked for every path under/graview/assets/the page draws — the brand's logo (each scheme's), its page icon, the opening screen's image, the logo a worker view is handed, and an image a worker view draws by its path where the view's definition says noassetof its own. A host serving each app under a base answersbase + path. Inline SVG, an emoji, a page-relative path and any other address are drawn as given, and unsaid every path is drawn as the document names it, as before. A document still names the path on the host's root (markProblemis unchanged), so a document moves between hosts and bases as it is. Within a major, the paths it is asked for only grow. - A host's way to name another app (FR-171) is a seam on the page,
resolveApp(address, viewer)onmount,<Embed>,GraviewProvider, theShell(asked before the provider's) and the routed face's context, answering{ name, icon?, headline?, href },{ denied: true }ornull; within a major those three answers keep their meaning. The page asks once per address and viewer and remembers the answer for as long as it holds that resolver; a throw is taken asnull. A viewer the host refuses is shown "linked app (no access)" and nothing the host did not answer, so whether another app exists, what it is called and what its home says stay the host's to tell each viewer. Without a resolver the address is drawn as it is kept, a link only when it is an absolute http(s) address, opened apart from the app (rel="noopener noreferrer").hrefis followed only when it is a path on the host or an http(s) address. - A host's way to read another app's records (FR-171) is a seam beside it,
linkedRecords: LinkedRecordsonmount,<Embed>,GraviewProviderand the routed face's context:resolve(ref, viewer)withref{ address, kind, id }, answering{ address, kind, id, label, describe?, card?, fields, href?, app? }(fieldsonly what that viewer may see there),{ denied: true }, ornull;find({ address, kinds, query, limit }, viewer), answering the records that viewer may link or{ denied: true }; andopen(ref, viewer), optional, the navigation seam a press on a linked record calls in place of following itshref. Within a major those answers keep their meaning. A page asks once per record and viewer; a throw isnull. A viewer refused is shown "linked record (no access)" and nothing the host did not answer.hrefis followed only when it is a path on the host or an http(s) address.linkedRecordsOver(@graview/core/linked) is that seam over stores a host holds in memory, each record read through the far store'sseenBy(viewer);recordLinkedChange(store, { ref, fields, app?, at? })keeps a far change in the reading store's history as an ordinary op — author{ kind: "system", id: "app:<address>", name },via: "app:<address>",readsthe linking records, no primitives, no new op field, naming the fields that changed and none of their values. - A worker view's manifest and what it is handed are held to the guest protocol's rules: a key may be added when it is optional and a manifest without it means what it meant; a build that predates a key passes it over (one before 0.1.18 draws a view with
replacesas it drew every view of one: alone).replacesarrived this way (FR-149):"page"on a view of one record draws it alone in place of the record's own fields, andcheckManifestrefuses any other value and the key on a view of the home. Since FR-203 a view of many may say it too, and is then drawn on its kind's list page (/<plural>) in place of the list, a titled one at its own place as well; before,checkManifestrefused it there, so no manifest that worked reads differently, and an earlier build refuses it. What a view of one record replaces changed without the manifest's text: since FR-149 a view of one is drawn above the record's own editable fields on the scene (on Pages it always was), where it was drawn alone; a host that relied on the record being the view alone addsreplaces: "page".data-prefill(FR-150) is an attribute a view draws, judged by the host: it fills only an emptyinputortextareawhosenameis the field, from a record the view was shown, read through the viewer's sight, when an act in itsfieldsetnamed in the manifest writes that field of that record and the viewer may run it there; a press carries the value only back into that field, and any other press carrying it is refuseduntyped. A view's props are as they were: each record's fields on it by name, besideid,kindandlabel(FR-151 corrected the guide, not the props).GUEST_PROTOCOLdoes not move. - A view proposed that reads a relation whose far kind its manifest never hands it is refused before it is kept (HQ f-view-check-refuses-unread-relation-kind):
checkProposedManifeston@graview/guest/host/viewsischeckManifestand that, naming the relation and the kind to add toreads.kinds;runWorkerViewHeadless(andgraview view check) refuses itmanifest, and so doesmountWorkerViewadraft. A relation to any kind (to: "*") names no kind and stays a problem.checkManifestitself, and so a page mounting a view already kept, refuses nothing it passed: the view is drawn and the fault said toonProblemasfar-kind-not-handed. A view's problem may carrykey(ViewProblem.key, andkeyon a headless run's problem,DescribedProblem.key), which names one fault the same in every version of the app and whatever the sentence says —far-kind-not-handed:<view>:<relation>:<kinds sorted and joined by |>(farKindKey),*for a relation to any kind — so a host files it once, until the relation itself is declared between other kinds; its shape is held as a code is, never reused for another fault. A host that judges a view already kept headlessly passesstanding: true(graview view check --standing), and the fault is among its problems with that key; without it such a run is refusedmanifest. - A view's video on a provider (HQ f-view-video-embeds) arrived the same way, additive:
<graview-video data-provider data-video>ordata-watch, drawn by the host from the closed listEMBED_PROVIDERS, and turned off by a host withembeds. A provider may be added within a major, and a view of a build without it is refused that one in words (embed-refused); the origins a host'sframe-srclists areEMBED_ORIGINS. - What a view may name in
data-placeandgraview.navigateis one vocabulary since FR-235 —placeNamesOf(app)andplaceNamesFrom(schema, places)on@graview/core/navigate:overview(the Scene),home, each kind's list by its slug and each titled place by its slug, less what the viewer is kept from — and the headless check and the live host read the same list, so a name the check passes the page follows. A view'sprops.placeslists that vocabulary ({ as, title, kind }each, the Scene's and the home'skindempty) on the page as a headless run handedplacesOfalready did; a view that read only titled places from it reads the same entries among more. A version may add a name to the vocabulary and says so in the changelog; it never takesoverview,home, a list's slug or a place's slug away. - What a change broke, said with the change (Roadmap f-revisions-say-what-broke), is
@graview/core/revisions, a host's and on no page:compareViewRevision(before, after)reads two versions of a worker view — each itssource, and where the host has them a run'scss, itsdrawing(HeadlessDescribed.drawing.root, or a page's element) or aclasseslist, and the page'sheight— and answersunstyled(a class the revision still draws that a rule styled before and none styles now; a class no rule styled before is never said),selectorsRemoved(a rule taken out whose classes and ids are still drawn),sectionsMissing(a heading or a named landmark drawn before and not now),height({ before, after, change, ratio }),regressed,saidandtext;MEASURE_PICTURED_PAGE, evaluated in a page as it is pictured, andpicturedCoverage(measure, pictured?)answer{ whole, height, pictured, above, below, said }, andgraview shotsprintssaidunder a picture that holds less than the place;problemsMade(before, after, { rules })sets two judgments ({ rules?: Violation[], views?: { view, at?, says }[] }) apart asmadeandmended, each keyed as it is keyed next time (violationKey,viewProblemKey) with a rule's first repair as{ act, label, args?, missing? }, and a rule that could not judge is nevermade;beyondAsked(answer, { asked?, label? })reads an act's or a batch's answer and lists every record added, removed or changed and every link made or taken beyond each asked act's own (the records its arguments name and the record it made). Within a major the entries' keys only grow; the words are display only and may be tuned.
Refusal codes are open (1.0)
- A code may be added within a major; none is removed or changes meaning. A client that meets a code it does not know treats it as a final refusal: the change is taken back and the refusal handed on with the code as it came (
openRemote'sonRefusal,RemoteRefusedError), never kept and sent again asunavailableis. A program that branches on codes keeps a default for the rest. unauthenticated(1.0's foundation): the host does not know who is asking — no session, or one that ran out — and signing in again may let the same change through. 401 over HTTP.quota(1.0's foundation): the account the app belongs to has used what its plan allows; the change may succeed once the allowance grows, never by waiting. 403 over HTTP.- A host says either, and
limit, as its own final refusal: itslimitoradmitanswers{ refuse, reason }(HostRefusalReason;limit, 413, when it names none). A body too large to take islimit; a caller sending too much too fast is toldbusywith a wait, which is not a refusal. Neither needed a code of its own.
Served state and the head
What a seat is served is the app as this seat is served it, and nothing on any surface promises that is the store's head. FR-55 narrows what a seat is served by record and by field; a seat's served state may also end before the head, at a seq a policy chooses, and that is narrowing by seq — the same kind of change, not a break — so it moves neither WIRE_PROTOCOL nor any format.
- A seat is served through a seq,
servedSeq: the ops before it are in what it reads, none after.Store.servedSeqsays it, read-only: a store's own is its head (log.length), a past's (pastOf(store, seq)) isseq, and a seat's view (seenBy) is the seq that seat is served through. Every seat of a live app is served through the head; a reader of an app that publishes is served through the last publish (below). GET /graview/since?seq=<cursor>answers the ops after the cursor that the asking seat is served — through its served seq, which is the head unless a policy holds it behind — not necessarily every op to the head, and the cursor where they leave it. The live socket's positions mean the same:welcome.seqis where the seat stands in what it is served, andopsbrings what the seat is served as it lands. A client that takes a position for the head's takes it for the seat's (below, *A cursor is opaque*).seenBy,Store.seenBy, a provider'sstore,useGraph, an agent's reads and a seat's model prompt read the app as the seat is served it. Their doc comments say so and promise neither the head nor one view object per principal: the view is kept only to save judging again, keyed by everything serving reads (the seat's kind, the id and roles it is judged as, the agent's own id when it acts for somebody — two agents for one person are two seats — and where it is served through).- A write is always judged at the head, whatever the seat is served. A call's stale-write check (
base, FR-05) reads the head's revisions: a seat served behind the head that claims the revision it read is not stale unless the field was written after that revision, and when it was, the conflict says the head's value. - A client whose seq the ops cannot catch up is sent the whole state, never the ops after a gap: a socket's
hellowhose seq is behind the compaction horizon, or past where its seat is now served, is answered with awelcomecarryingstate(and such awelcomemay come unasked when a publish is taken back);/graview/sinceanswers such a seq withreset: true— and, behind the horizon, the ops after it, so a client that predatesresetstill sees the gap.openRemotetakes the state on either. - A checkpoint never passes a seq somebody is served at.
CompactOptions.pins(store.checkpoint, ship'sopened.compact) are such seqs, and the horizon stops at the lowest, sopastOf(store, pin)still folds from the log. A host that serves a seat behind the head passes that seq. - Publishing (Roadmap f-publishing-lifecycle). A declaration's
publishing({ mode: "live" | "on-publish", working: [roles], publishers?: [roles] }, the document's key anddefineApp's alike,StoreOptions.publishingon the store) says when edits reach readers."live", or absent, is every app as it was. Under"on-publish"a seat whose roles (an agent's read through the person it acts for) areworkingis served the head, and every other seat — a visitor, an embed, a static page, another app's linked read, a describe for a reader — is servedpastOf(store, publishedSeq)as its sight reaches it; before the first publish, the log's start (the seed, or the horizon of a log compacted past it).seenBy(principal, { as: "published" }), a provider'sasand?as=publishedserve a collaborator what readers are served, to preview it. Writes land on the head whoever makes them: a visitor's form answer is in the working state, and reaches readers with the next publish. A publish is the built-in actpublish({ through? }), offered topublishers(absent,working): one op authored by the person who published, with no primitives and the op fieldpublishedThrough— the seq readers are served through, its own seq + 1 unlessthroughnames an earlier one. The last publish op that stands says it (Store.publishedSeq), so taking a publish back is an undo of it, permitted to publishers. How a reader is served, thepublishact and the published seq are@graview/core/publishing's, an entry of its own so a live app's page carries none of it: a server, a static page, a linked read and the agent tools load it, a page fetches it with@graview/core/pastbefore it draws an app that publishes, and until it is loaded a reader of such an app is refused — never served the head. A checkpoint keeps the app as it stood at each published seq behind it that readers are or may again be served (Epoch.published, a list of epochs; alsoEpoch.publishedThrough, what stood published at its seq), so a compaction passes old publishes, a reader is served one behind the horizon from it, and only before the first publish is the horizon held, at where the log begins. Both are optional and additive within format 1: a checkpoint withoutpublishedserves readers what the log folds and refuses an undo of a publish that would send them behind the horizon. A store whose checkpoint carriespublishedis snapshot format 2 (§2), so a build that predatespublishedrefuses it rather than serve its readers the horizon; a host that must roll back to such a build compacts withformat: 1, which holds the horizon at the earliest seq readers are served behind it and says where it stopped (a pin atstore.publishedSeqalone does not: a horizon between two publishes is format 2 with it). Neither is served to a seat. On the wire, a reader'swelcome,/graview/stateand/graview/sincecarryservedThrough, a cursor as opaque as any other position (below, *A cursor is opaque*), absent in a live app, its socket is sent the ops between two publishes when the second lands, and the whole state when a publish is taken back. A build that predates publishing folds an op carryingpublishedThroughas it would without it (a marker that touches nothing) and refuses the document key by path (§4) — the fail-closed way back: an app that publishes is never opened by a build that would serve its readers the head. Named by no FR id yet:capabilities().shippedgains one when Graview Cloud files it.
A cursor is opaque (1.0)
Where a reader stands in a log is said on the wire as a cursor: a string only the server that gave it reads, meaningful to no other server and to no other store on the same one. A store keeps numbering its ops, and an op's own seq is unchanged; what moved is every position a client and a server say to each other, so a server that one day merges several writers' logs can say where a reader stands without one sequence.
- Where it is said.
GET /graview/since?seq=<cursor>takes one and answerscursor, where its ops leave the reader;GET /graview/stateanswerscursor;POST /graview/heretakesseqand answerscursorbeside its ops; the socket'shellosaysseq, and itswelcome,ackandopssayseq(Cursor,@graview/ship). - What a client may do with it. Keep the last one it was given and send it back. It must not read one, build one from an op's
seq, or compare two.openRemotespeaks the same build's codec as the server it was built with (cursorAt), and a cursor today issand a count in base 36 — which is this build's business, not a promise: a server may change what is inside within a major. - A page from before it (0.1.48 and earlier) sends the seq of the last op it has, a number. A server reads that, and a numeric string, as before for one minor (
seqAt), and stops in the minor after; such a page reads nothing it is sent as a number, so the tokens in awelcome, anackand anopsmessage do not disturb it. A seq a server can read as neither is refusedinvalid(400). SyncState.cursorwas a remote system's own string from the start and is held to the same rule: the engine keeps it and hands it back, and never reads it.
A host that lands a plan (0.1.65)
The quick ask offers a missing capability as one plan — the least change to the app and the records that finish the ask — and a host lands it through two functions it hands the provider, the embed or the pages' context. This is the contract Graview Cloud implements:
composeChange({ document, edits })applies the plan'sedits(written byplanEditsin the edit vocabulary: the kind a link points to where the app has none, the link or the field, the one act that sets it) to the app's document, grants what it adds as the app's widest grant does, judges the result with the checker, and answers{ ok: true, document, app, said }or{ ok: false, refused }.composeAppChangefrom@graview/core/composeis one.composeAppChangefrom@graview/core/composeris the one a page fetches (Roadmap f-light-composer): the same edits, grants and sentences, the result judged by the compile the page already has and the checks a change made on a page can fail (compileForAChange: the document's own acts, rules, computed values, formats, links, jobs, aliases and view keys, and the checker's routes and lens bindings) rather than the whole checker, which the host'sonProposeChangeasks again before it keeps the change; it composes edits only, and refuses a reshape'saddanddropin words. The errors a store reads of an app's schema, its acts and its rules (SchemaError,GraphError,MissingRecordError,InvalidArguments,PermissionDeniedError,ActRefusal,UndoBlockedError,ExprEvalError) are known byinstanceoffrom whichever copy of@graview/coremade it. The page rehearses the plan's records againstappin a scratch store before it offers the plan; it never offers one that would fail.onProposeChange(proposal)is handed, on Yes, aReshapeProposalwhoseeditsare the change to the app (addanddropempty), whoserecordsare the calls that finish the ask (a record made is named by itsmintedHintin the calls after it), and whosevia(ai:<name>) the records' ops carry. The host applies the change and the records as the person, as one change, and answers{ applied: true, undo, note? }—undotaking the app and the records back together,notesaid on the card — or"applied"with no way back, or"declined". A refusal is a thrown error, said on the card. A reshape's proposal carriesaddanddropand noedits, as before.checkPlanHost(host, { document, kind, members })from@graview/core/conformanceruns the assign-to-a-person plan against a host's two functions and the store it serves, and names what failed: composed, landed as one change saidviathe AI, every record linked, one undo taking it all back. A host runs it in its own tests; the todo example's dev host passes it.
These shapes are additive within a major: a new optional key on the proposal or the answer is not a change, and a host that ignores one keeps working.
A host that keeps a section's revision (0.1.65)
A right-click inside a worker view names the menu for the section under it (MenuTarget.section: { name, view, elements }, an element the view marked data-section, a landmark by its label, what labels it or its heading, else a heading's block — found by what @graview/react/drawing fetches with the first right-click inside a view: a face asks sectionsWanted(element), waits for sectionsArrive() and reads sectionUnderNow(element), and alsoWhenSectionsArrive(load) fetches what a face offers there beside it) and, for a seat that may change views, offers "Make “This week” better": Just do it, Describe changes…, Highlight area…. The page revises that section alone (@graview/tools/section: locateSection, composeSection, reviseSection — the host's light model, then its full one, the view composed whole with every byte outside the section kept), judges it as a draft drawn in the view's place (the host's own checkViewSource, what the open kit refused, and compareViewRevision: a class left unstyled or a section lost is handed back to the model once, then refused in words), and offers Keep and Discard. The host holds one door, the one it already holds for script views:
KeptViews.revise(revision)— beside hide, show, remove and restore — is handed{ name, title, source, before, section, said }(ViewRevisionKept: the whole new source and the source it replaces) on Keep, keeps it as it keeps a view a chat replaced (Graview Cloud: aspropose_viewandapply_view, the replaced version among the view's own forrestore_view), and answers once it is kept: nothing, or{ note?, undo? }(ViewReviseAnswer) —notesaid on the card,undoits own way back. Withoutundo, the page's one Undo hands the code before back torevisewithundoes: true. A refusal is a thrown error, said on the card. The page draws the kept code from then on in that page; a host that hands the view again (a new definition) is drawn from what it handed.- It is offered only where
reviseis given,current().may.viewsis true for this seat, the host'saigives a model and is notoff, and the view's code is a plain script ({ source }) the page holds.KeptViews.revised(name), where a host gives it, answers the code it keeps now.withMemoryRevisions(memoryViews())keeps revisions in memory, said "Kept until this page reloads." — the todo example's dev page and the harness use it. checkViewRevisionHost(keeper, { name, before, after, read? })from@graview/core/conformanceruns a host's door as the page does and names what failed: revising offered to a seat that may change views, the code it was handed kept (read back withread, elserevised), and one Undo putting the code before back.- Each revision is an AI interaction (
ask.kind"section", the target{ on: "place", place: <the view's name> }):acceptedonce kept,dismissedwhen discarded or undone,failedwith its words when refused. Where the host keeps what people tell Graview (ai.told), each is also a telling,decided: { type: "view", section }(a refusal{ type: "refusal" }), on{ on: "place", place: <the view's name> }, endedpreviewed,accepted,declined,undoneorabandoned, rated with the card's 👍/👎 strip. What a harness reaches: the menu's section[data-menu-section="make-better"]and its rowssection-just-do-it,section-describe,section-highlight; the outlinesection-outline; the card[data-testid="section-card"](data-section-phaseasking,working,draft,keeping,kept,undoneorrefused), its fieldsection-words,section-pointed,section-status,section-note,section-keep,section-discard,section-undo; the overlaysection-highlighter; and the draft's holder[data-graview-section-draft]in the view's place.
The revision's shapes are additive within a major, as the plan's are.
What people tell Graview (0.1.65)
Each Enter or reply on the quick ask's card is a telling (Telling, @graview/core/told), kept by the host the page reaches through HostAi.told (a ToldStore: add, change, remove, list). This is the contract Graview Cloud implements per app, and graview serve in told.json beside the store:
- The shape.
{ id, at, by, words, target: { on, kind?, id?, place? }, reading?: { which: "itself" | "held", kind, records }, people?, decided: { type: "act", act, records } | { type: "plan", edits } | { type: "answer" } | { type: "refusal" }, slot?: "graph" | "light" | "full", stages?, ms?, outcome: "previewed" | "accepted" | "declined" | "undone" | "abandoned", rating?: "up" | "down", should?, conversation, follows?, interaction?, examples?, pinned?, excluded? }. Records are named by id and kind only: no record's content, the person's own words kept (at most 300 characters, as isshould).tellingOf(draft, by)bounds and checks a draft and stamps it;changedTelling(telling, change)is how a change lands (an accepted telling ends only as undone; a rating taken away takes itsshould). An undo isoutcome: "undone", never a 👎. New optional keys are additive. - The wire.
/graview/told:POST { telling }keeps one, its author the session's, never the body's (201; 202 and nothing kept for a visitor);PATCH /<id> { change }—outcome,rating,shouldandexamplesby its teller,pinnedandexcludedby whoever keeps the app (403 otherwise);DELETE /<id>by its teller or an owner (204), gone for good;GETanswers{ tellings }: every one to whoever keeps the app, to anybody else their own and the others' that worked in a lesson (an act over a kind, or a plan on one) at least two other people's agree on (toldFor,minPeople), and to either only those about records the asker sees (toldSeenBy). 413 over 16 KB, 429 past 60 a minute, 410 where the host keeps none (--no-told), and a page then stops asking.toldOver(url)is the page's client; the dev server'sdevToldanswers the same at/__graview/told. - Read back under sight. A telling naming a record the reader cannot see — its target, the records it was read as, the people it named — is never served to them, on the wire or on the page; a page also treats a record it does not hold as unseen.
checkToldHost(host, { people, seen, hidden? })from@graview/core/conformanceruns these against a host's door for each seat, and names what failed: kept as the session, a visitor's never kept, rated only by its teller, another person's waiting for agreement, unseen records hiding it, deleted gone.graview serve's door passes it.
4. The declaration, the document format and check finding codes
A declaration that compiled and checked clean on one version compiles on the next version of the major.
- A check finding's
codenever changes meaning. A new code may appear, and a new warning or note is not a break. A new *error* on a declaration that used to pass is a break. - A code is promised by its bare name, and one prefix says where a finding came from.
compileDocument(@graview/core/check) reads the document and then runs the checker over the app it compiles to: what the document's own judgments find — reading it, its acts, its brand, its views — is said by its bare code (shape,unknown-key,brand-mark), and what the checker found carriescheck:before the checker's own code, socheck:lens-cannot-drawis the checker'slens-cannot-draw.graview check,checkAppand an edit's refusal (editDocument,propose_change) say the bare code:add-lensrefusing a timeline that cannot draw islens-cannot-draw, the same finding a stored declaration's compile says ascheck:lens-cannot-draw. The prefix is systematic and stays; a program that matches a code wherever it was said stripscheck:first (code.replace(/^check:/, "")). touched-read-keptis a new warning: a document's rule, act condition or computed value readscreatedAt,createdBy,updatedAtorupdatedByin an app whose policy keeps anything from a seat, which is told none of them; for such a seat the rule is not reported and the act says it cannot be judged.touched-field-takenis a new error, and so a break for a declaration that has one: a kind declaring a field, relation or computed value namedcreatedAt,createdBy,updatedAtorupdatedBy, which every record now keeps of its own. Rename it, or drop it and read the record's own.- A code that only ever said again what another code says may be retired, and the changelog says so.
act-without-titlewas retired this way: a mutation without a title was reported twice, as that warning and as the errormutation-untitled, which names the path and the fix and is the one finding now. A program that matched on the retired code matches onmutation-untitled. - The stored-data finding codes of
validateGraph(FR-21) hold to the same rule. Each is a record, a link or a rule that no longer fits the declaration, found by id:
| Code | What it says | repairPlan | |------|--------------|--------------| | node-shape | a record's field does not fit its kind (detail names the field) | clear an optional field, coerce a required one to its default, else drop the record with its links | | kind-unknown | a record of a kind the declaration no longer has | drop it, with its links | | edge-dangling | a link to or from a record that is not there | drop the link | | edge-disallowed | a link the declaration does not allow between those kinds | drop the link | | rule-error | a rule threw rather than judged (could-not-judge; detail names the rule) | none: the declaration's to fix | | rule-budget | a rule would have read more than its budget (over-budget) | none: the declaration's to fix | | derived-out-of-step | a record that follows another (kinds.<kind>.derives) holds a value other than its source works out (detail names the field) | set the field again from its source |
- The declaration document format (FR-01) is versioned like a stored format, and
capabilities().documentFormatslists what a build parses. - A key may be added to a document format within its version when it is optional and a document without it means what it meant:
kinds.<kind>.computed(FR-83) arrived ingraview-document@1this way. Every key is closed, so a build that predates one refuses a document that uses it asunknown-key, by path, and never misreads it. A host that keeps documents for more than one build readscapabilities().shippedbefore it writes the key. - An app's address arrived the same way (FR-243):
address,@<space>/<app>with each part lower-case letters, digits and dashes, besidenamein a document and ondefineApp. It is a claim, not a grant. A host that serves one person's checkouts (the local hub) lists the app there, and two checkouts that claim one address are one app; a host of many people's apps gives each app the address it has there, whatever the declaration claims, so a document cannot take another workspace's address by declaring it. Nothing in@graview/coreroutes by it. The compile without the checker reads any string, so a page draws an app whatever it claims;graview checksaysaddress-shape(an error) of one that is not an address, with the one it should be, andaddress-self(a warning) of a relation to@<this address>/<kind>, naming the local kind. An app that claims none checks as it did.@graview/core/app-addressreads, writes and tidies one (parseAppAddress,formatAppAddress,normalizeAppAddress). A build before it refuses the key by path. - The app's money arrived the same way (FR-100). Its one home is the brand:
brand.currency(a three-letter code) andbrand.locale(a language tag) in a document,Brand.currencyandBrand.localein a declaration, and a document'sbrandmay now carry them without anaccent. A figure or a field shown as money takescurrencyof its own; one that names none, and a template's{x | money}, take the brand's, written byIntl.NumberFormatin the brand's locale ("en-US" when it names none). A document without them says a sum as it always did: a figure with a currency in that currency, anything else as a number with no symbol. A figure's and a meter'slabelbecame a template (FR-99): a label without braces says what it said. The rule language gainedout(S, 'edge'),in(S, 'edge')and&,|and-between sets (FR-101); an expression that parsed before means what it meant, except that a|inside brackets within a template's braces, which was a formatter and refused, is now a join. A build that predates them refusesbrand.currency,brand.locale, a field'scurrencyand a set operator by path, but draws a templated label as its words and a two-argument walk as "—", so a host readscapabilities().shippedfor FR-99, FR-100 and FR-101 before it writes them. - A number's range arrived the same way (FR-114):
min,maxandstepon anumberorintegerfield (and on an act's declared argument), each optional, a field without them taking any number as before. The edit vocabulary gainedset-range, andDocumentDiffgainednarrowedRanges. A range is judged by the checker (default-range,field-range), not byreadDocument. A build that predates them refuses the keys by path, so a host readscapabilities().shippedfor FR-114 before it writes them. - An act's
setsOtherandreplacesarrived the same way (FR-115), each optional, an act without them doing what it did. One meaning changed with them: an act'sconnectsorseversshorthand on a subject that is only the far end of the relation (connects: "owns"on a component, whereownsis declared on person) now links from the record it is given to the subject, as the declaration says the relation goes; before, it tried the link the other way round, which the graph refused, so no document that worked reads differently.effectsOfmay return aReplaceEffectbeside the effects a document lists. A host readscapabilities().shippedfor FR-115 before it writes the keys. - The rest of the brand arrived the same way (FR-124):
brand.logo(inline SVG, or a path under/graview/assets/or relative to the page; a string, or{ "src", "alt" }),brand.favicon(the same forms),brand.typography(display,body,mono:system-serif,system-sans,system-mono, or a stack of faces every system has and the web fonts onDOCUMENT_FONTS),brand.shape(radius0–32,density0.75–1.5),brand.accents(a hue per kind) andbrand.scheme(light,darkorauto), each optional and each mapped onto the TypeScriptBrand(which gainslogoAlt,favicon,subtitleandscheme). A document'sdescriptionis now said on every face — the app name's hover on the app bar and the line on the routed face's home (FR-131) — and every document compiles to a brand, so a document without one is called by its ownnamewhere it was called Graview. The checker judges the new keys (brand-mark,brand-fonterrors;brand-accenta warning about an accent that does not read as given, FR-126). The edit vocabulary gainedset-nameandset-description, andset-brandtakes every key,nullclearing one;DocumentDiff's sentences for the name and the description changed words ("The app is now called…"). A build that predates them refuses the keys by path, so a host readscapabilities().shippedfor FR-124 and FR-125 before it writes them. A compiled app carries the new keys in itsbrandwithingraview-compiled@1: a page that predates them draws the brand it knows. - A logo for each scheme arrived the same way, in 0.1.42, and was named FR-197 in 0.1.44:
brand.logoas{ "light", "dark"?, "alt"?, "darkFallback"?: "invert" }beside the string and{ "src", "alt" }, which mean what they meant. A build before 0.1.42 refuses the object by path (brand.logo), so a host stores a document whose logo haslightonly on a build whosecapabilities().shippednames FR-197 — a build of 0.1.42 or 0.1.43 holds the form but does not say so.logoOfDocumenton@graview/core/documentreads any of the three forms into{ light, dark?, alt?, darkFallback? }. - One theme for every view arrived the same way (Roadmap f-app-wide-view-theme):
brand.viewsas{ "css"?, "motion"?: "none" | "fade" }in a document,Brand.viewsin a declaration — a stylesheet every worker view is drawn with before its own, and a fade between records. The stylesheet is held to the sanitizer and the 64,000 characters a view's own is, by the same code:@graview/core/cssis where the framework's one CSS sanitizer now lives (sanitizeStylesheet, theCSS_*tables,OPEN_MAX_STYLESHEET),@graview/guest's host draws through it, andgraview checksays what of a brand's sheet the open kit leaves out as a warning,brand-views-css(an error when it is too long for a stylesheet at all).set-brandtakesviews(nullclearing it, or either key), and refuses a sheet the page would draw only part of, naming the part. A build that predates it refuses the key by path (brand.views), so a host readscapabilities().shipped— or tries the key — before it writes one. A compiled app carriesviewsin itsbrandwithingraview-compiled@1: a page that predates it draws the brand it knows. - A compiled app (FR-123) is versioned like a stored format. It is what a host hands its page so the page need not compile:
serializeCompiled(compileDocument(document)), plain JSON with every template and expression already parsed, whichappFrom(from@graview/core/compiled) builds into the same appcompileDocumentmade. It says"format": "graview-compiled@1".appFromrefuses another format ascompiled-format, by name, and parts that do not match their document ascompiled-shape, and never misreads either;appFromOrCompilethen compiles the document in the page, so a compiled app cached from another build costs one request, not a broken page. It does the same for one torn on its way (refusedcompiled-shape, never thrown) and for one compiled from another document than the one handed beside it — two documents are the same when their canonical text is (canonicalize), so a host hands the document the compiled app was made from, in the current document format. Within a version the format is additive: a key an older page ignores, and a page that lacks it can do without, may be added. Anything a page would need to build the same app moves the version: a new effect, a new kind of argument, a change to what a parsed expression or template part holds. So the rule language's tree (Expr) andTemplatePartare part of this format, and a parser change that alters them is a format change. A compiled app is a cache of its document, never its source. A host keeps the document, compiles it at its own build, and may drop a compiled app at any time. It is the host's own data, checked for its format and shape and not judged again. - An app's opening screen arrived the same way (Roadmap f-splash-in-document):
brand.splashas{ "style": "plain" | "editorial" | "shader" | "ascii", "image"?, "title"?, "kicker"?, "shader"? }— the image a mark as the logo takes one, the shader the NAME of one@graview/pages/splashships (SPLASH_SHADERS), never code. Three codes judge it where the brand is judged:brand-splash-imageandbrand-splash-shader(errors; the latter a warning for a shader named on a style that draws none) andbrand-splash-style(an edit's, since a document's shape refuses the style first).set-brandtakessplashwhole,nullclearing it, andDocumentDiffsays "The app opens on an editorial screen while it loads." A build that predates it refuses the key by path (brand.splash), so a host stores a document with one only on a build that accepts it. A compiled app does not carry it: the screen is a host's first HTML's, drawn from the document. A shader name added toSPLASH_SHADERS(caustics, after 0.1.62) arrives the same way: a build that predates it saysbrand-splash-shaderof it, so a host names a new shader only on a build that ships it. - The opening screen's scheme (Roadmap f-splash-follows-declared-scheme):
brand.splash.scheme,"light","dark"or"device", is the one it opens in where the brand'sschemepins none;brand-splash-scheme(a warning) says one the brand's own overrides, andset-brandsays it ("The app opens on a dark editorial screen while it loads.").splashHtmlopens in the reader's choice where the host sayslightordark, else the scheme the app declares — the brand's, else the screen's — else the device's; a host'sscheme: "auto"no longer overrides a scheme the app declares. A build that predates the key refuses it by path (brand.splash.scheme). - An app on a home screen (Roadmap f-app-icons-home-screen) is
@graview/core/head'shomeScreenOf(brand, { base, assetsAt?, name?, png? }): the head's tags (html), the web manifest (name,short_name,icons,theme_color,background_color,display: "standalone",start_urlandscopeat the base) and thefilesa host answers under the base (/manifest.webmanifest,/icon.svgfor an SVG or emoji mark, and the PNGs/apple-touch-icon.png,/icon-192.png,/icon-512.png,/icon-maskable-512.pngwhere the mark is a PNG or the host sayspng: true). Within a major those paths keep their meaning and the tags only grow. An SVG or emoji mark is never promised as a PNG the framework does not make: withoutpng: truenoapple-touch-iconis written.graview serveandgraview previewanswer the manifest and/icon.svg, and send a PNG size to the brand's own PNG;graview previewwrites the tags into its page. A face that owns the page (the Shell, the routed face on its own, an embed toldfavicon: true) puts atheme-colorfor each scheme in the head while it is drawn (themeColorsOf), one where the brand pins a scheme. - A check finding code added this way (FR-99's
view-braces, FR-100'sbrand-currencyandbrand-locale, FR-105'sact-reads-hidden-kind, FR-108'slens-column-unreached, FR-114'sdefault-rangeandfield-range, FR-115'sact-sets-otherandact-replaces, FR-124'sbrand-markandbrand-font, FR-126'sbrand-accent, FR-132'spages-overview-taken, FR-137'spages-faces-alike, FR-148'spage-field,page-field-twice,page-group-twice,page-unknown-fieldandpage-too-large, 0.1.24'srule-says-hidden-fact, 0.1.60'styping-act-without-allowed-on, FR-232'sface-reads-content-beside-the-graph, whichgraview checksays of a project's face modules and no declaration or document ever meets, and 0.1.62'srule-covers-relation, said only of a rule'scovers) is a warning, a note or an error only about what is new:act-reads-hidden-kind,rule-says-hidden-fact,typing-act-without-allowed-on,face-reads-content-beside-the-graphandview-bracesare warnings,lens-column-unreachedis a note, and the brand, range, other-end, page and coverage codes judge keys a declaration could not hold before. A rule'srequirebecame optional the same way (Roadmap f-rule-covers-every): a rule saysrequireorcovers, one of them, and a build that predatescoversrefuses it by path (rules.<rule>.covers) as a key it does not know, so a host stores a coverage rule only on a build whose@graview/core/document.schema.jsonhas it. - The scene's name arrived the same way (FR-132), and its key was respelled when the scene left the places for the bar's switch (FR-137):
pages.sceneandpages.pages(at most 40 characters each, aspages.overviewwas) are what the switch calls the Scene and the Pages, "Scene" and "Pages" when unsaid, andarrange-pagestakessceneandpages. The scene keeps the address/places/overviewwhatever it is called.pages.overview, which named the scene's tab in 0.1.15 and 0.1.16, is read aspages.scene(a line inRESPELLED), so a stored document keeps its word, andarrange-pagesstill readsoverviewasscene, so a chat or a tool written before 0.1.17 still renames the scene.pages-faces-alikeis a warning about a declaration whose two words are the same.pages-overview-takenis a warning about a declared place whose address is the scene's; that place keeps its page on the routed face, and the place list does not offer it. A build that predates the keys passes them over. - Where a declaration opens changed without its text (FR-136): an app with a home view (the document's
views.home, or a worker view attached to"home") and no otherpages.firstopens on Pages at its home when the host names no face, where it opened on the scene, andplacesOfmarks the homefirst. Under address routing the bare address, naming no face, is the home's whatever face the host names, and the host is told the pages (onFace). A host that wants the scene there links to/places/overview, or hands a stop. An app without a home view opens as before. That address alone is the overview at altitude (FR-154): a fragment never reaches a server, so the framework writes the overview at altitude without one, and reads/places/overviewwith no fragment, or one that says nothing, as at altitude; a fragment that says where it stands (#focus=t1,#overview=1&focus=…) is read as it says, and#overview=1, written before, still opens it. - A kind's page arrived the same way (FR-148):
kinds.<kind>.page,{ "fields": [...], "groups": [{ "title", "fields" }] }, each part optional, says which facts a record's page shows first and under which headings; the rest follow in the kind's declared order, under "Details" when there are groups. The declaration'sdisplay.pageis the same choice. The edit vocabulary gainedset-page-fields({ kind, fields, groups? }; an emptyfieldsand nogroupstake the choice away), and the compile andgraview checkrefuse a name the kind does not have or one named twice (page-field,page-field-twice,page-group-twicein a document;page-unknown-fieldandpage-field-twicein TypeScript). A build that predates the key refuses it asunknown-key. One reading changed without a key: a record's facts are read in the kind's declared order on every face, indescribePlaceand inreadableFields, where they were read in the order the record's own keys were written. - A document's facts and a kind's roles arrived the same way, with no FR id (0.1.22). The document's top-level
computednames facts of the whole graph, each a rule-language expression or{ "expr", "label" }, read asfact('<name>')wherever the language is read; a fact that reads another in a circle is refused (computed-cycle).kinds.<kind>.fieldRolessays which field fills a role a lens binds by name, and the framework reads two:when(a date; a list of the kind opens newest first by it, and a timeline or calendar draws the kind there) andwho(a name; an unchosen glance leads with it andwhen);graview checkrefuses a role naming no field (field-role-missing-field) or of the wrong type (field-role-ill-typed). A kind may word its own end of a relation several kinds declare, soedge-name-sharedis no longer reported. A build that predates the keys refuses them by path. These carry no FR id, socapabilities().shippedcannot announce them, andcapabilities()does not list document keys: it is on every page's first load, and the keys a build reads are already published with it, as@graview/core/document.schema.json(JSON Schema, one per version). A host that writes a document for more than one build validates it against the schema of the oldest build it serves, or letsreadDocumentthere refuse it by path. - A picture or a document on a record arrived the same way (FR-162): the field types
imageandfile, andlistwithof: "image"orof: "file", in a document;imageField()andfileField()in a declaration, whichtoDocumentwrites as those types. The value is aFileValue,{ href, name, type, bytes, width?, height?, caption? }, itshrefa path on the host under its base (/graview/files/3f9a….jpg, or one relative to the page) and never a scheme, another host, a backslash or a path that climbs (safeFileHref); a store refuses any other value as it refuses any value that does not fit its field. A view's blocks gained{ "image": "<field>", "as": "thumb" | "gallery", "label"? }, judged by the check (view-image, an error about a block that could not be written before, andview-formatfor itsas).graview typeswrites such a field asFileValue(orreadonly FileValue[]). A build that predates them refuses the types and the block by path, so a host readscapabilities().shippedfor FR-162 before it writes them. A compiled app carries the new field types withingraview-compiled@1: a page that predates them cannot build such a field, refuses the compiled app ascompiled-shapeand compiles the document, which refuses the type by path. A change that leaves no record holding a file says so:MigrationPlan.fileslists them, and the plan's words name them; what becomes of their bytes is the host's to decide. - A document's preview arrived the same way, with no FR id (HQ f-file-values-carry-a-preview): a stored
FileValuemay saypreview,{ src, thumb?, width?, height? }—srca picture of the document its host made (a PDF's first page),thumba smaller one, each a path on the host ashrefis (isFilePreview), andsrc's size in pixels. A value without it means what it meant, and a store refuses a preview that is not that shape as it refuses any value that does not fit its field. A card, a row and animageblock's thumb draw a record by a document's preview where it holds no picture or video of its own (firstPicture,isPictured); a record's page draws each document's preview where a PDF's box stood; a worker view or a frame that asks forpicturesis handed it as a picture is (src,thumb,width,height,aspect,left), fetched as the reader where the preview is, and itsdata-lightboxopens the preview full screen. Asking for pictures takes nothing from a document: a file that is not an image or a video is handed as the record keeps it (href,name,type,bytes,caption,at), where it was its name, type and size alone; a picture and a video are handed as before. The document schema says the whole stored shape as$defs.FileValue. A build that predates it does not draw a preview, and hands a view that asks for pictures a document's name, type and size alone, so a host reads the version before it counts on either. - A link to another app arrived the same way (FR-171): the field type
app-linkin a document,appLinkField()in a declaration, whichtoDocumentwrites as that type. The value is another app's address —@owner/app, an id its host knows it by, or an absolute http(s) address, at most 500 characters (isAppAddress) — and a store refuses any other value as it refuses any value that does not fit its field.graview typeswrites it asstring. A build that predates it refuses the type by path, so a host readscapabilities().shippedfor FR-171 before it writes one; a compiled app carries it withingraview-compiled@1, and a page that predates it refuses the compiled app ascompiled-shapeand compiles the document, which refuses the type by path. A relation whosetois another app's kind is the next line. - A relation to a kind in another app arrived the same way (FR-171, the full relation): a relation's
tomay name"@<app address>/<kind>"—"@nick/house/house","@app_kf5eydr9z58jzf/house","@https://example.com/a/house/house"— every target one app's kind (parseLinkedTarget; the address is the one an app-link holds), andlinkedRecordField("@nick/house/house", { cardinality? })in a declaration, whichtoDocumentwrites as that relation. The record that links keeps which far record as a value under the relation's name,"<kind>:<id>"(linkedValue), or a list of them for"many"; the far document is never written.graview checkrefuses a relation that mixes this app's kinds with another's (linked-mixed), reaches two apps (linked-apps), is no app's kind (linked-target), or saysinverse(linked-inverse) orappendOnly(linked-append-only), a declared act that connects, severs or sets one (act-linked), and a rule that walks one without()orin()(rule-linked); a page that compiles without the checker reads such a relation as no relation. The rule language walks it by name (forHouse.listPrice) through the reader of whoever is looking: a far record it cannot read, refused or not yet answered, reads as nothing and is said — a computed value'srefusedsentence, a rulecould-not-judgewhere it would not hold without it — never thrown.graview typeswrites it asstring(orreadonly string[]). A build that predates it refuses an@target by path, so a host readscapabilities().shippedfor FR-171 before it writes one; a compiled app carries it withingraview-compiled@1. Since 0.1.35 the editadd-relationtakes such atotoo, judged by the same rules and refused with the same codes atedits.<n>, and said asscenario gains a relation, "forHouse", to one house in the app @nick/house, another app, read there as whoever is looking.;rename-relationandremove-relationwork on one, andplanMigrationkeeps its values, moves them with a rename and clears them with the relation. - A phone, a place and a length of time arrived the same way, with no FR id (the Graview Roadmap's f-more-field-types): the field types
phone,placeanddurationin a document,phoneField(),placeField()anddurationField()in a declaration, whichtoDocumentwrites as those types. A phone is a string of at most 40 characters with at least three digits and only the spaces,+,-,.,/, parentheses and extension (ext. 12,x12) people write one with (PHONE); a place a string of at most 500; a duration a whole number of minutes, none less than none, which a duration field'smin,maxandstepbound as a number's do (FR-114). A store refuses any other value as it refuses any value that does not fit its field. How each is said and linked is the page's and may change in a minor: a phone grouped as a reader in the US or Canada reads a North American number and as entered elsewhere, linkedtel:; a place linked to maps.apple.com on Apple's platforms and Google's universal Maps address elsewhere, opened apart (rel="noopener noreferrer"); a duration said "1 h 30 min", and so is a computed field that saysas: "duration"— which a TypeScript declaration says itself, and a document's compile writes for each computed field whose parsed expression adds, subtracts, negates or sums durations over a relation (KindPlan.durationsingraview-compiled@1, optional; a face reads onlyas, never the expression's words).graview typeswrites a phone and a place asstringand a duration asnumber. A build that predates them refuses the types by path; these carry no FR id, so a host validates a document that uses them against thedocument.schema.jsonof the oldest build it serves. A compiled app carries them withingraview-compiled@1: a page that predates them cannot build such a field, refuses the compiled app ascompiled-shapeand compiles the document, which refuses the type by path. - A time of day arrived the same way, with no FR id (HQ feature f-template-format-cloud-additions): the field type
timein a document,timeField()in a declaration, whichtoDocumentwrites as that type — a stringHH:MMon a 24-hour clock with no day and no zone (TIME_OF_DAY), which a store refuses otherwise ("3 PM", "15:00:00" and a datetime alike). A form, a cell and a migration read "3 PM" as "15:00" (parseTimeOfDay, from@graview/core/words); how it is said is the page's and may change in a minor ("3:00 PM" in en-US, "15:00" in en-GB, never moved by a zone).graview typeswrites it asstring. A build that predates it refuses the type by path; it carries no FR id, so a host validates a document that uses it against thedocument.schema.jsonof the oldest build it serves. A compiled app carries it withingraview-compiled@1. - A template's format grew Graview Cloud's additions within
graview-templateversion 1, as a strict superset: a question'stypemay betime(an answer is kept asHH:MM); setup words may say${id}where a letter follows the answer, and a question'saskmay say an earlier answer as${id}; andframeViews(eachname,kind,cardinality,title?,reads?) andviews(each a worker view's manifest:name,attach,cardinality,title?and the rest the installing host judges), at most five each, every name once. A build that predates them refuses those keys and thetimetype by path.graview checkof a template judges it as well as its document, adding the codesquestionandviewbesidesetup,seedandtemplate. - Markdown in a text field arrived the same way (FR-180):
"format": "markdown"on a document'stextfield,markdownField()in a declaration (a string of at most 20,000 characters, marked soisMarkdownField, from@graview/core/words, says so through optional, default and nullable), whichtoDocumentwrites as that format. The value is kept as written.retype-fieldtakes"format": "markdown"to make a text field Markdown and drops it when left out;diffDocumentssays either change and neither is breaking. The checker refusesmarkdownon any type buttext, and a number's format on atext, asfield-format. A build that predates it refuses the format by path, so a host readscapabilities().shippedfor FR-180 before it writes one; a compiled app carries it withingraview-compiled@1. The record's page draws it as prose through@graview/core/markdown— headings demoted under the page's own, paragraphs with their line breaks kept, lists, emphasis, code, quotations, rules and tables, links only tohttp:,https:andmailto:(rel="noopener noreferrer nofollow", a new tab), a picture as its words, and no HTML: within a major that reading only grows, and nothing it reads ever becomes markup. A row, a card, a describe line, a table cell, a search hit and a seat's line about a record say a text field by its start (excerptOf, from@graview/core/words): its first paragraph, heading or item, or about 160 characters, Markdown's syntax taken out; the exact words may be tuned within a major. - Whether a field is typed together arrived the same way (collaborative text, phase 2): a document's field may say
"collaborative": true | false, which only atextor astringfield takes — the checker refuses it on any other type as the errorfield-collaborative, on a key a build before it refused by path anyway — and unsaid, atextfield is typed together and astringis not.toDocumentwrites the key only where a declaration marked a field (markCollaborative) against what its type says by default.graview describesays which fields are typed together. - A date that repeats arrived the same way, with no FR id (0.1.29, the Roadmap's f-recurring-dates):
"repeats": trueon adateordatetimefield in a document,repeatField()beside the date in a declaration (startsAtRepeat: repeatField()besidestartsAt), whichtoDocumentwrites asrepeats. A record of the kind may keep, under the date's name andRepeat,{ "every": "day" | "week" | "month" | "year", "interval"?: 1–99, "on"?: weekdays ("tue") for a week or days of the month (1–31, -1 the last) for a month, "until"?: a day, "count"?: 1–1000, "except"?: days, "continues"?: a record's id }, ornullonce it no longer repeats; the date itself is the first occurrence, and a store refuses any other value (validRepeat). The key<date>Repeatis the framework's: a kind that has a field, relation or computed field of that name is refused (repeat-clash). Occurrences are worked out, never stored, and what reads the date reads the occurrence on or after the day it is judged on — the rule language,today()'s comparisons, a template, a list's sort, filter and date groups, and a kind's "in the next 7 days" — so a rule over a repeating date is judged anew when the day turns (FR-176) with nothing written. A day the series falls on that the month lacks (the 31st, Feb 29) is the month's last; a moment's time of day is kept as written, so one written without a zone stays at its wall time across a clock change and one written with a zone keeps that offset;countcounts skipped days. Time zones beyond the one a moment says, and the rest of RFC 5545 (by-week-number, by-set-position, hourly), are not this. The edit vocabulary gainedset-repeats({ kind, field, repeats }, refused of a field that is not a date);retype-fieldaway from a date letsrepeatsgo; a migration moves a record's repeat with its date when the date is renamed, and a change that stops a date repeating drops each record's repeat and says so (DocumentDiffcounts<date>RepeatamongremovedFields, so it is breaking).graview typeswrites<date>Repeat?: Repeat | null. A build that predates it refusesrepeatsasunknown-key, and a compiled app carries it withingraview-compiled@1; a page that predates it refuses such a compiled app ascompiled-shapeand compiles the document, which refuses the key by path, so a host that writesrepeatsserves builds of 0.1.29 or later. These carry no FR id, socapabilities().shippedcannot announce them. - What a declaration offers may grow without its text changing. An act that sets a status board's field to a value of its own (
booksettingstatusto"booked") is a move to that value's column (FR-108), where a board offered only a freeset-<field>act; where a named step reaches a column, the free act no longer does. A TypeScript mutation says the constants it sets assets, optional, and one without it reads as before. - Who the people are arrived the same way, with no FR id (the Graview Roadmap's f-people-kind, f-act-as-me, f-own-end-grants and "visibility scoped by relation"), each optional:
kinds.<kind>.people(trueon one kind: a record of it whose id is a principal's id is that person; the declaration'speople: true, which the installation'susersays),policy.grants[].ownEnd(true: every record the call names at the far end of the link the act connects or severs is the principal's own, and every link the act would make or break has the principal's own record at one end — so a connect on a relation of one that would replace somebody else's link is refused; a seat with no id of its own is never offered one) andpolicy.sees[].via(a relation: a record of the sight's kinds is seen only where that relation joins it, at either end, to the principal's own record;ownreads every relation and what they made).$mein an act's effect is the acting person's own record of the people kind — the person, for an agent acting for one — and never an argument, so a document that used$meas an argument's name now means the acting person by it; an act that reaches$mefor a principal with no such record is refused asrefused, with a sentence. An op whose act wrote its author's own record where its call never named it —$me, orctx.mein TypeScript — is undone only by that person (or their agent, or the system): anybody else is refused with a sentence, since the same call by them would have done something else. A document edit'srename-relationcarries a sight'sviawith it, andremove-relationis refused while a sight reads the relation, as it is while a lens draws by it. A TypeScript act reads the same id asctx.me. The checker's codes for them arepeople-ambiguous,people-unsaid,sight-via-unknown-edge,sight-via-misses-people,grant-own-end-without-linkand a document'sact-me; none fires on a declaration that says none of the new keys and no$me. A kind's JSON Schema says"x-graview-people": trueon the people kind. - The edit vocabulary gained the people and the policy (FR-170):
set-people({ kind, people };trueis refused aspeople-ambiguouswhile another kind is the people, so a move isfalseon the one, thentrueon the other),add-grantandadd-sight(a grant or a sight aspolicy.grants[]andpolicy.sees[]hold one; a role the document'srolesdoes not list joins it; a first sight on a document with no policy comes with a grant to everyone of every act, since a sight alone would take every act away), andremove-grantandremove-sight(named by what they say: a grant'srolesandmutations, a sight'srolesandkinds, each list in any order, and any other key given must match too; two that match are refused, asking for the key that tells them apart; a grant on no kind,kinds: [], gives nothing and is refused).remove-kindtakes the kind's derivededit-<kind>andremove-<kind>out of every grant, and a grant left with no act or no kind goes; it is refused while every sight shows only that kind, since the sights gone would show everyone everything, so a change saysremove-sightfirst. What the change leaves the people and the policy saying together is judged once it is whole, and refused at its last such edit by the checker's own codes (people-unsaid,sight-via-unknown-edge,sight-via-misses-people,grant-own-end-without-link);grant-actandsight-kindname an act or a kind the document lacks.DocumentDiff's sentences say a grant, a sight, a role and the people kind in the words the edits say them, where a policy changed was "Who may do what changes." (still said of a change those do not cover). The studio says a grant, a sight and the people kind it changed as these ops, where a grant or a sight was astudio-unsaidfinding and the people kind was not said at all. A build that predates them refuses the ops as an edit it does not know, so a host readscapabilities().shippedfor FR-170 before it offers them. - The rule language gained archived records (FR-173), optional within
graview-document@1:all('<kind>')reads the live records as before,all('<kind>', true)the archived ones andall('<kind>', 'all')both, andarchived()(orarchived(<record>)) says whether a record is archived. An archived record is out of every computed field, fact, rule and count that does not ask for it, so a rule over a graph with none archived judges as before. A grant, a rule's repair andeditDocument's rename and removal of a kind readarchive-<kind>,unarchive-<kind>andmerge-<kind>as they readedit-<kind>andremove-<kind>, andgraview checkknows them, so a grant naming one is no longergrant-unknown-mutation. - A kind that is never archived arrived the same way (FR-173):
kinds.<kind>.archives, only everfalse, says whatdefineNode({ archives: false })says — the kind is given itsedit-andremove-<kind>and noarchive-,unarchive-ormerge-<kind>— andtoDocumentwrites it. A document without it archives every kind as before. A grant naming one of the three on such a kind isgrant-act, as a grant naming any act the app lacks is. The edit vocabulary gainedset-archives({ kind, archives }), which says what the app stops or starts offering and is refused asgrant-unknown-mutationwhile a grant names one of the three.planMigrationbrings back, in the same op and said, a record already archived of a kind the change makes never archived (counts.broughtBack), and keeps$archivedon every other record it plans, where it used to clear it. - The app's locale says more than its money (FR-178), with no new key:
brand.locale(a document's and a declaration's) is what every day, time and number is said in on every face, throughIntl— a record's facts and glance, a template's{due}and{due | date}, a moment's{at}, a block's field, a rule's line, the calendar, the timeline's hours, the seat's lines, an arrangement's headings — and it is en-US where it names none: "Sep 10, 2023", "3:30 PM", "1,250", where every day was said day first before ("10 Sep 2023"). A host passes the reader's locale aslocaleon the embed,GraviewProviderand a pagesPageContext, which wins over the brand's. What changes is the order and the punctuation of the words a person reads, never a stored value, an op, a tool schema or a finding code;editDocument's anddiffDocuments' sentences about a locale say "Days, times, numbers and money are written for …", anddescribeAppsays what the locale makes of a day, a time and a figure. A host that matched the old day-first words reads them from its build'scapabilities().shipped, FR-178. - What a list offers to filter by arrived the same way, with no FR id (0.1.29, the Roadmap's f-filters-that-scale):
pages.lists,{ "<kind>": { "filters": [...] } }, names in order what a kind's list offers — a field, a relation,is, or<relation>.<field>(a choice at the far end of a relation); a list a document does not name offers what it offered before.arrange-pagestakesfilters: { "<kind>": [...] | null }and refuses a key the kind cannot be filtered by, and a filter's grammar takes<relation>.<field>:<value>. A template's formatterexcerpt({summary|excerpt},{summary|excerpt: <20–1000>}) arrived with it, the same way: a build that predates it refuses the template. The finding codes that came with them are warnings and judge only what is new:pages-filter-unknown(a filter the kind cannot be filtered by, passed over),pages-kind-unknown, the code it was, which now also says a kindpages.listsnames that is not there andview-whole-text(a card or a row that puts atextfield whole in a text block, which is clamped). - The order and groups a kind's list opens in arrived the same way, with no FR id (0.1.30, asked while prioritizing the Graview Roadmap):
pages.lists.<kind>.sort("<key>"or{ "by", "direction"?, "then"? }, a field, a computed field orlabel) andpages.lists.<kind>.group("<field>"or{ "by", "order"?, "closed"? }, a choice or yes-or-no field), besidefilters; a list a document does not order or group opens as it did before.arrange-pagestakessort: { "<kind>": … | null }andgroup: { "<kind>": … | null }, which a build that predates them refuses as keys it does not know. Unlikepages-filter-unknown, the finding that came with them,pages-list-arrangement, is an error: a list sorted by what the kind does not have, grouped by a field that is not a choice or a yes or no, or ordering or closing a value that is not one of its choices is refused, since such a list would open some other way unsaid; only a document that says the new keys can meet it. - What a kind's list opens as arrived the same way, with no FR id (the Roadmap's f-display-options-switch):
pages.lists.<kind>.opens, a lens over the kind by its title, draws that place's page under the list's own heading at the list's own address, until the address narrows the list (q,archived,by,with,past,sort,group, a relation, andfilterwhere the place flows) or asks for?drawn=built-in. The editarrange-pagessets it withopens({ "<kind>": "<title>" | null }). It follows its own lens when that lens is retitled and goes when that lens is removed, on that lens's kind alone.list-opens-no-placewarns of a title that is no lens over the kind, andgraview describesays what a list opens as. A document without the key means what it always did: the list opens as a list. - How a number is said arrived with no new key (0.1.29, the money bug found on a Cloud app): a number field's
format(money,percent) andunit, which a document always held, are now said on every face, and a number's"format": "duration"now means exactly thedurationtype — whole minutes, said, typed and described to a tool as that type is (x-graview-type: "duration"), itsunitno longer read. The edit vocabulary gainedset-format({ kind, field, format?, unit? },nullclearing either): a number'smoney,percentordurationandunit, or a text field'smarkdown(FR-180), refused on a field the format does not fit, which a build that predates it refuses as an edit it does not know.add-fieldandretype-fieldrefuse a format on a field it does not fit, which they took silently before for a number's format. One checker code,field-format, says a format on a field it does not fit in one sentence (""format": "money"is a number's format, and this field is a text"): an error formarkdown, a warning for a number's format, which a declaration could always hold; and a note for a number shown as a duration, which the type says once.money-currencywarns of money with neitherbrand.currencynor a currencyunit. - No key is taken away from a document format within its version, and none is renamed without the old name still being read. 0.1.16 broke this: its American spelling pass renamed a setting's
honored(washonoured) in the document as well as in the declaration, and its notes said the document format was unchanged, so every documenttoDocumentwrote before 0.1.16 that carried settings failed to compile ("Nothing knows how to apply undefined"). Since 0.1.17 (FR-134), a key renamed within a format is a line inRESPELLED(@graview/core/document): every reader —readDocument,compileDocument,appFromandappFromOrCompileon a compiled app an older build made,diffDocumentsandeditDocument— reads the old name as the new one, keeps the new one when a document says both, and never changes the document handed;toDocumentand an edit write the new name.respellDocumentdoes the same for a host and says which paths it respelled. A document stored with the old name is read the same on every later build of the major, so a host need not rewrite it, though its next save writes the new name.packages/core/tests/document/fixtures/keeps documents and compiled apps as older builds wrote them, made by those builds from npm, and each must compile; a test records every key path a document has been able to carry and fails when one is no longer read, by either name. - What the app's own actor may tidy on its own (0.1.30) arrived the same way:
kinds.<kind>.tidying("never"or"no-links") andkinds.<kind>.edges.<relation>.tidying("never"), optional ingraview-document@1, and the editset-tidying({ kind, relation?, tidying: "never" | "no-links" | "allowed" }), said in a sentence byeditDocumentand the same sentence bydiffDocuments. A kind that says"never"is given noleave-alone-<kind>orallow-tidying-<kind>, and a grant naming one is the errorgrant-act; a relation that says what its kind already says is the warningtidying-redundant. A build that predates them refuses the keys asunknown-key. The votes at which the app's own actor makes a suggestion (tidying.autoAcceptAtat the top of the document) have their own edit since 0.1.63,set-app-tidying({ autoAcceptAt: n | null }), said in a sentence byeditDocumentand the same sentence bydiffDocuments; a build that predates it refuses the edit as one it does not know. - One design proposed from a declaration arrived with no new key (Roadmap f-design-composer):
composeDesign(document | app, { records? })andinferJobs(document | app, { records? })on@graview/core/compose. What they propose is a judgment a version may change — another job, another edit, another color ofACCENT_PALETTE— and that is not a break. What is kept:composeDesignanswers{ edits, said }, every edit oneeditDocumentof the same version accepts in turn, applied in one change to a document that compiled giving one that compiles with no warning fromdesignFindings;inferJobsanswers at mostMOST_INFERRED_JOBSjobs, each onegraview checkaccepts; and neither draws anything or changes a document by itself. The critic'sdesign-job-unansweredchanged meaning with the derived home that answers jobs: it is said only of a declared home that lists none of a job's kind, with nothing titled over it, and it now carries theset-homethat answers it. - A plain document's first design arrived with no new key (Roadmap f-compose-home-from-declaration):
composeDesignalso proposes, only where the document has none, a home of a count headline and a list per kind with the dated kinds first (homeFromDeclaration), and a glance and a row for each kind, leading with its date and its status (glanceFromDeclaration,rowFromDeclaration), each answering{ edit, said }or nothing, on@graview/core/compose; a declared home, row or glance is never proposed over, and the home keeps to what each seat sees. A composed row says its date with a formatter added to the closed set,glance({at | glance}: as a glance at the record says the field), which a build before it refuses by name. What each proposes is a judgment a version may sharpen, held to whatcomposeDesignis held to. The words a host composes with are on the same entry and kept as its other names are:nounWords(kinds, kind)andpluralWords(kinds, kind)say a kind by its noun and its plural as the declaration spells them, never from its id. - The composer covers a host's first design with no new key (Roadmap f-composer-covers-cloud-first-design): a row and a glance for every named kind, a row naming the record it belongs to (
belongsTo(document, kind): a relation to one record of one other kind, one a rule requires first), an undated home list in its choice's order (choiceOfKind), a dated one from today on (where not (<date> < today()), soonest first, standing only while one is ahead), five dated or ten other records to a list (MOST_DATED_LISTED,MOST_LISTED), a headline of up toMOST_COUNTEDkinds the most linked first within a template's 300 characters, counting only those that hold something, the first of up toMOST_HOME_JOBSjobs with records waiting leading where the app declares jobs, one line saying what to add first for an app with nothing in it (Roadmap f-first-home-leads-with-jobs-not-zeros), and nothing proposed for apeople: truekind. Which relation a kind belongs to, which choice orders it and how the headline is worded are a judgment a version may sharpen, held to whatcomposeDesignis held to; the names are kept as the entry's other names are. - What a declaration is made of arrived with no new key (Roadmap f-document-traits):
traitsOf(document | app)on@graview/core/compose(andtraitsOfDocument(document)with the vocabulary on@graview/core/traits, an entry a page may fetch, carrying nothing of the composer; Roadmap f-seat-reshape) answers the traits a declaration carries, each one of the closed vocabularyTRAITS—owners,status,schedule,budget,places,sources,stock,votes,private,history,publishing,roster,routines,comparison— with the kinds, fields (<kind>.<field>), relations (<kind>.<relation>), rules, lenses (by title) and acts that carry it, its words (TRAIT_WORDS) and one sentence. The vocabulary is the surface: a name inTRAITSis never renamed or taken away within the major, and one added is said in the changelog, so a host that keeps a person's answers by trait name reads them on every later build. Which traits a given declaration is read to carry, and the sentence each is said in, are a judgment a version may sharpen — read only where the declaration leaves no doubt, asinferJobsis — and that is not a break; what is kept is that every carrier named is in the document and that nothing is read off prose. - A starting document composed from parts arrived the same way (Roadmap f-compose-from-parts):
startingDocument({ base?, drop?, add?, name, purpose? })on@graview/core/composeanswers{ document, took, left, said, edits }(edits, the ones that took in order, replay onto the base in oneeditDocumentcall and givedocument; Roadmap f-seat-reshape) — the base's document (or one kind from nothing) with each dropped kind taken out with what only it served, each dropped trait's own carriers taken out, and each added trait's module brought in joined to the kind people see most;tookandleftname each part ({ part, what, from }: a kind, field, relation, rule, lens, act, sight or trait, from the base's name or the trait that brought it). What is kept: every change is oneeditDocumentof the same version accepts in turn, the document compiles with no warning, a trait the base already carries is left as it is, and a dropped kind takes only what served it alone. What each module is made of — the field names, the acts, the rule — is a judgment a version may change, and that is not a break. Two ofeditDocument's edits do more than they did, with no new key:remove-kindnow takes the kind's hue out ofbrand.accents, the sightsviaa relation that went with the kind, and, when the kind was the people, the acts on the acting person's own record ($me), where it left each behind for the checker to refuse;rename-kindmoves the hue with the kind. - A Notion database as a connection arrived the same way (Roadmap f-notion-connection):
connections.<name>may say"system": "notion"withdatabase(its 32-character id, or{ "env" }),kind, optionalproperties(field → property name, or{ "name", "type" }),auth,direction,conflicts,everyandpaused; a"google-calendar"connection is read as before. The checker judges it with the codes a calendar's are judged with (connection-kind,connection-field,connection-field-type,connection-creates,connection-edit,connection-remove) and three new ones: the errorconnection-properties(a connection that would keep nothing in step), the warningconnection-read-only(a people property, which is only read), and the errorconnection-secret, which refuses an integration's secret written anywhere in a connection — the one new error a declaration that passed before could meet, and only by holding a secret. A build that predates it refuses"system": "notion"by path, so a host writes one only on a build that has it. What a connection keeps between runs is theSyncStateit always was; a Notion connection'scursoris its own JSON (the lastlast_edited_timeit saw and when it last read the whole database), which a host keeps without reading. A Notion connection's relations kept as edges (Roadmap f-notion-several-tables) are additive too: a key ofpropertiesmay name one of the kind's edges, mapped to a relation property (a property'stypemay be"relation"), and the checker gains the errorsconnection-relation(a relation property mapped to a field, or another type to an edge),connection-relation-target(an edge to a kind no Notion connection of the app keeps) andconnection-connect(no act a link lands through), and the warningconnection-disconnect— none of them met by a declaration that maps no edge. ASyncStatemay carryunresolved, the pages a relation reaches that no connection has linked yet, still format 1: a build that predates it drops it. - A Notion connection may keep several data sources of one database, each its own kind, and makes the properties it needs (request: Notion autocreates the necessary properties):
sources: [{ "source", "kind", "properties"?, "description"? }]stands in place of the connection's ownsource,kindandproperties(one form or the other:kindis optional now, and a connection with neither isconnection-kind), andcreate: falseturns off making properties. Withoutcreate: false, a connection that writes gives a data source each property a mapped field lacks, of the type the field is held in, on its first pass and whenever one goes missing (PATCH /data_sources/{id}): it never renames or deletes one, says one of another type and leaves it, makes no status or people property, and a connection that only reads makes none. A declaration that passed before keeps meaning what it meant, except that a connection which writes now adds the properties it mapped and did not find — saycreate: falseto keep a data source exactly as it is. The checker gains the errorconnection-sources(two sources for one kind, one data source named twice, orsourcesbeside the connection's ownkind,sourceorproperties), and saysconnection-kindandconnection-fieldatconnections.<name>.sources.<n>…. A connection of one source keeps its links' resourcepagesand its cursor as before; one ofsourceskeeps each source's links underpages:<kind>and its cursor as{ "by": { "<resource>": … } }, a host keeping both without reading them.SyncReport.saidis new: what the transport did there or found, as sentences ("Made 2 properties in Notion: Status and Due"), absent when it said nothing new. - A finding may carry
detailsandfixes(Roadmap f-connection-refusal-in-plain-words, FR-229), besidemessage,fixandedits, which mean what they meant:detailsis the framework's own sentence wheremessageis the person's, andfixesis the ways out a host offers as buttons, each{ label, edits? }with its edits ineditDocument's words where one can be written.connection-createsis the first to say them: where a calendar or a Notion connection names a kind no act makes from the event's or the page's fields alone, itsmessageis "Blocks need a Type, and Google events don't have one." and itsfixthe three ways in one sentence, where it was the framework's sentence naming the act and the arguments, which is now itsdetails; its code and its path are what they were. The edit vocabulary gainedset-connection({ name, connection }sets or replacesconnections.<name>whole, judged for its shape there and for its kind, fields and acts by the checker;connection: nulltakes it away), which a build that predates it refuses as an edit it does not know, so a host readscapabilities().shippedfor FR-229 before it offers a fix that carries one.checkApp's findings carry the same two keys, andgraview checkprints them beneath the sentence (details:, thenfix: <label>with each edit). - A weekly record is one recurring event (Roadmap f-connection-weekly-records-recur, FR-230), with one new key: a Google calendar connection's
fieldsmay namedays, a field that is an enum of weekdays or a list holdingmontosun; thenstartandendname string fields holding times of day ("09:00"), and each record is one event with a weekly rule in the app'sbrand.timeZone, its first week the week it is first sent. Astartthat repeats ("repeats": true) needs no new key: its repeat is the event's RRULE and each day set apart an EXDATE, and a recurring event made in the calendar is a record with its repeat, made and then given it throughedit-<kind>in one batch. A build that predates it refusesdaysby path (connections.<name>.fields), and judged a repeating start as a one-off event.connection-field-typejudges the new shapes at their paths (adaysfield that is not weekdays; a start or end that is not words besidedays); no declaration that passed is refused.SyncStateis what it was; what a connection's engine is handed to make a record (createInbound) may now saythen, the acts that follow the making act in its batch. - Formulas join text and build a date-time, and an act carries a change across a link (Roadmap f-formula-text-datetime, f-acts-update-linked). The rule language gained
concat,format,datetime(and its aliasat),addMinutes,weekdayandstartOfWeek; an expression that parsed before means what it meant, and a build that predates them refuses each asunknown-function.format's pattern is a closed vocabulary (EEE,EEEE,d,MMM,MMMM,yyyy,h:mm a,HH:mm, words in single quotes), said in the app'sbrand.localeand on itsbrand.timeZone— never the reader's — and a moment built lands as a datetime field keeps one (an instant in UTC); an app that says no zone builds on UTC.graview checkjudges what the declaration alone shows asexpr-typeandformat-patternat the expression's path;compileDocumentWithoutCheckand a page say nothing new. An act gainedsetsLinked({ "<relation>": { "<field>": value } }, on an act withon), optional, an act without it doing what it did; a build that predates it refuses the key by path.effectsOfmay return aLinkedSetEffect({ set, through }) beside the effects a document lists, a mutation definition may saywritesLinked, andgraview-compiled@1carries the new effect in an act's plan: a page that predates it would not run that effect, so a host serves a compiled app from the build that compiled it, as it does. The store refuses such an act, naming the record, where the principal may not run the far kind's own edit on one of the records reached; the derived tools and their input schemas are unchanged. The far kind's own edit still offers a carried field. - A record that follows another arrived the same way (Roadmap f-keep-linked):
kinds.<kind>.derives({ "from": "<kind>", "via": "<relation>", "set": { "<field>": value } }), optional, a kind without it meaning what it meant, the editset-derives({ kind, derives | null }), said in a sentence byeditDocumentand the same sentence bydiffDocuments, and the errorsderives-kind,derives-relation,derives-field,derives-valueandderives-name(andcomputed-writtenfor a worked-out field it would set). The store keeps the two in step with ordinarypatch-nodeprimitives in the op of the edit that moved either one, so no op, primitive or wire shape changes and a build before it folds the same log to the same graph; a record that follows its source differently is the stored-data codederived-out-of-step. A node definition may sayderives, andgraview-compiled@1carries it on a kind's plan: a page that predates it keeps nothing in step, so a host serves a compiled app from the build that compiled it, as it does. A connection may now map a computed field — sent, and never read back — and one that only reads refuses it asconnection-computed-read. A build that predates them refusesderivesby path, and a computed field in a connection asconnection-field. tidying: { autoAcceptAt }at the top of a document (0.1.62, Roadmap f-suggestion-votes) is optional and additive: a whole number from 1 to 10,000, compiled toGraviewApp.tidyingand handed to the store as the policy is (StoreOptions.tidying), given back bytoDocument, and refused as a shape when it is anything else. One new warning,tidying-votes-unreachable, when it is set and the app has no policy. A kind's owntidyingis unchanged.- A grant may say
propose(0.1.63, Roadmap f-proposals-for-review): acts by name or"*"that its roles may propose and may not run, on the grant'skinds; a grant that only proposes saysmutations: [], which a grant with noproposeis refused as a shape. Optional and additive ingraview-document@1andGrant; an unknown act in it is the errorgrant-actatpolicy.grants.<n>.propose;add-grantandremove-granttake it, said as "A helper may propose “Close it” for review.". Reviewing takes no grant of its own: whoever may run the calls decides. A build that predates it refuses the key by path. - Workflows arrived the same way (Roadmap f-jobs-declared, f-job-step-types, f-job-idempotency, f-job-pause-dry-run): a document's top-level
workflowsanddefineApp({ workflows }), by kebab-case name, each{ title, when, status?, approve?, steps, follows? }.whenis one or several of{ every }(words: "hour", "day", "day 03:00", "weekday 09:00", "sunday 18:00", "month 1 09:00"),{ cron }(five fields), both on the brand'stimeZone,{ made, where? },{ changed, fields?, where? },{ synced }and{ byHand: true };statusis"active"(absent, the same) or"paused";approveis"apply","suggest"or"ask", absent meaning"ask"when a step writes to a kind a two-way connection keeps in step and"apply"otherwise. A step is one of a closed set told apart by its one key (STEP_KINDS,@graview/core/workflows):{ act, over?, args?, key?, approve? }and{ agent, reads, acts, model?, budget?, approve? }; a later version may add a kind, never change what one means. A compile readsworkflowsloosely, as a page runs none;graview checkjudges it with new error codes (workflow-steps-empty,workflow-schedule-invalid,workflow-connection-unknown,workflow-kind-unknown,workflow-field-unknown,workflow-where-invalid,workflow-act-unknown,workflow-key-field-unknown,workflow-agent-acts-empty,workflow-follows-unknown,workflow-shape) and one warning (workflow-sends-out-unasked), each new and so no break. The edit vocabulary gainedadd-workflow,set-workflow,remove-workflow,pause-workflowandresume-workflow. No op, primitive or wire field is new: a run's ops are ordinary ops by an automatedsystemauthorworkflow:<name>, withlineage.runandlineage.key(a key a lineage already kept as JSON), and the runs themselves are the host's (WorkflowLog), never written into the graph. A record a keyed act step makes is asked for under the id<prefix>:wf.<workflow>.<key>where the act takes an id asked for. A build that predates workflows refuses the document key by path. - A workflow step that makes dated records from a pattern (Roadmap f-job-generate-from-pattern) is one more kind of step in
workflows.<name>.steps:{ "generate": "<kind>", "from": [{ "kind", "where"?, "dates" }], "window", "set"?, "key"?, "link"?, "using"?, "overwrite"?, "approve"? }, additive besideactandagentand refused by a build that predates it as a step of no kind it runs. What it makes it makes through the act that creates the kind, under the id its key gives (<kind>:wf.<workflow>.<key>), so the store's own refusal of a second record under one id is what keeps it from making two; no op, primitive or wire form is new. New finding codes, each an error and said only of a generate step:workflow-generate-dates-unknown,workflow-generate-window-invalid,workflow-generate-set-unknown,workflow-generate-value-invalid,workflow-generate-link-unknown,workflow-generate-no-act,workflow-generate-act-ambiguous,workflow-generate-act-makes-other; it is held toworkflow-kind-unknown,workflow-where-invalid,workflow-act-unknownandworkflow-key-field-unknownas the other steps are. - A workflow step that labels each record (Roadmap f-feedback-triage-agent) is one more kind of step in
workflows.<name>.steps:{ "classify": "<kind>", "where"?, "field", "options"?, "instruction"?, "floor"?: { "<option>": { "links"?, "words"?, "expr"? } }, "setAside"?: { "<option>": <0 to 1> }, "confirm"?, "relabel"?, "model"?, "budget"?, "approve"? }, additive and refused by a build that predates it as a step of no kind it runs. It sets the label through the act that writes the field and archives througharchive-<kind>, with the reason on the op's existinglineage(basis,confidence,model,run); no op, primitive or wire form is new. Its changes wait for a person unless the step says its ownapprove, and an option inconfirmwaits whatever it says: a host can hold that nothing it shows the public is labeled so without a person's yes. New finding codes, each an error and said only of a classify step:workflow-classify-field-not-choice,workflow-classify-option-unknown,workflow-classify-floor-empty,workflow-classify-threshold-invalid; it is held toworkflow-kind-unknown,workflow-where-invalidandworkflow-archive-neveras the other steps are. - A classify step took two more keys (Roadmap f-workflow-runs-say-more):
"otherwise": "<option>", the label a record no option clears is set to (the model chose none and no floor rule holds) where it was left unlabeled for a person, and"applyAt": { "<option>": <0 to 1> }, at or above which a judgment of that option is set without asking; below it, it waits as the step says, and an option inconfirmwaits whateverapplyAtsays. Both are additive, and a build before them refuses the step by its unknown key. They are held to the codes the step had: an option the field does not have in either isworkflow-classify-option-unknown, and anapplyAtpast 0 to 1 isworkflow-classify-threshold-invalid; no code is new. - What a host reads off a workflow run grew in the same change, each addition kept by the host and never in the graph.
WorkflowRun(@graview/tools/workflows) says what its model steps spent,spent: { calls, inputTokens, outputTokens, costUsd?, steps: { step, calls, inputTokens, outputTokens, costUsd?, model? }[] }(a classify step's requests throughdecidecounted with the tokens its answers said, a label answered from the cache spending nothing, a dry run's calls counted too), and the workflows whose runs started it,chain(the first first; empty for a run a clock, a person, a connection or a person's change started).triggeredBynames the workflow whose run made the ops that fired a trigger (by: { workflow, run? }, read fromlineage.runor theworkflow:<name>author), and a run started withtrigger.bycarries the chain of the run it names in the host's log; one whose chain is longer thanrunWorkflow'schainLimit(MOST_CHAIN, 3, when unsaid) is held, dry, with a note naming the chain and the limit, so workflows that wake each other stop. A run a host kept beforechainreads as a chain of none. The Scene'sRunSaid(workflowRuns,lastRunWords) takes each ofmade,changed,archivedandsuggestedas the ids or a count, and says the same words either way. - A workflow step that publishes an app's drafts (Roadmap f-workflow-step-publishes) is one more kind of step in
workflows.<name>.steps:{ "publish": "head" | "run", "approve"? }, additive and refused by a build that predates it as a step of no kind it runs. It runs the built-inpublishact as the workflow's actor, so the publish op is the one a publisher makes, carrying the run'slineageas every op a run makes does (a publish op may now carrylineagewhere its caller gave one; one without it reads as before). An undone publish op, and a publish call in a declined suggestion, are not declines, so a later publish by an automated author is not refused for them. New finding code, an error said only of a publish step:workflow-publish-live, in an app that does not publish. A run (WorkflowRun) may carrypublished: { step, changes, from, to, through, as }[], absent when no step published, kept by the host and never in the graph.
- A Google calendar connection's guests may be capped (Roadmap f-sync-guest-changes-in-history):
fields.guestsin its{ via }form takesmax, the most guests one event invites. An event a write would invite somebody to past it is held unsent and said in the report'srefused("Dinner has 34 guests; this connection invites at most 20") and once in the history. One new error,connection-guests-max, for amaxthat is not a whole number above 0; a build that predates it refusesmaxby path (connections.<name>.fields.guests). No declaration that passed is refused. Google's own error message now follows the status in a refusal (google-calendar: HTTP 400: Too many attendees), where it was the status alone. - The guests typed in a field take the cap too (request:guests-field-form-takes-max):
fields.guestsmay be{ "field": "<field>", "notify"?, "max"? }, which"guests": "<field>"is said short. It is held as the{ via }form is — an event overmaxheld unsent, in the same words — and judged by the same findings:connection-guests-maxatconnections.<name>.fields.guests.max, andconnection-guests-fieldatconnections.<name>.fields.guests.field.guestsInFieldandguestsViaRelationon@graview/core/syncread either form. A build that predates it refuses the object by path (connections.<name>.fields.guests), so a host writes it only on a build whose@graview/core/document.schema.jsonhas it; the string form means what it meant. - A connection's
systemmay be"todoist"(Roadmap f-todoist-connection), additive ingraview-document@1and refused by a build that predates it as a system it does not know:{ "system": "todoist", "project", "section"?, "label"?, "auth"?, "kind", "fields": { "content", "description"?, "due"?, "deadline"?, "priority"?, "labels"?, "section"?, "assignee"?, "parent"?, "completed"? }, "sendExisting"?, "direction", "conflicts"?, "every"?, "paused"? }. Its findings are the connection codes there are, and one new warning,connection-completed. A write an engine hands a transport says the remote's names of what changed (RemoteWrite.changed), and a transport may answer what the remote holds where it is not what was sent and why (RemoteAck.fields,held): each optional, and used by the Todoist transport alone. - What a Notion connection of several
sourcessays names the kind each sentence is of (request:notion-said-names-its-source): "left alone in Notion for <kind>: …", "<kind>'s <name>: the property … is left out", "could not make … in Notion for <kind>: …", as "Made N properties in Notion for <kind>" and "no property in the data source for <kind> …" did; and a note two sources both say is said for each. A connection of one source says what it said.SyncReport.saidByis new besidesaid: the same sentences in the same order, each{ kind?, sentence }—kindthe kind of the source it is of, absent for a sentence of the whole connection — present exactly whensaidis, so a host shows each beside its kind without reading the words.saidand its words are display only.@graview/ship'srunConnectionstakesonReport(connection, report), called with each connection's report as each pass ends (the first included; a throw is said, and the pass goes on), and answersfirstPass, the first pass's reports by connection name (empty when nothing runs), so a host reads a pass as data rather than splittingsayReport's line, whose words stay display only.
- What LifeLogics Estimates found (0.1.63, Roadmap f-lifelogics-findings) changed the declaration in five ways, each additive or a refusal of what never drew. A money field (or a computed field said as money) may say
"places": 0, optional ingraview-document@1, and a template{x | money: 0}: the sum in whole units, rounded;set-formattakesplaces(0, ornullto clear it), the document refuses it on a field that is not money, and a build that predates it refuses the key by path, so a host writes it only on a build whose@graview/core/document.schema.jsonhas it. Money is otherwise rounded to the cent before it is judged whole, so it never reads ".00"; the words a sum is said in are the page's, as they were. A kind may work out 60 computed fields where it could 20 — a document with more than 20 is refused by a build before it — andset-glancetakes a computed field, as the document always did, but not one kepthidden. A timeline whosestartorendis not a number field islens-cannot-drawat the binding's path, as one with no columns already was — a warning, so a stored document still opens — andadd-lensrefuses either (lens-cannot-draw, an error atedits.<i>.bindings.<kind>.<role>oredits.<i>.options.columns), its fix naming the bindings a timeline takes and the calendar for spans of dates; nothing that drew is refused. A choice named bare in a template — a describe line, a label, a badge, a rule's sentence — is said by its option's label, else its id spoken, where it said the id; an option written with capitals keeps them where none labels it (humanizeValue). A gesture of several acts that its caller named nothing for is said, inBatch.intentand history, by each act's sentence (the first two and how many more past three), where it was said by its first; an op'sintentis display only, and no op changes.
5. Derived tool names and input schemas
Tools are derived from the declaration (createToolRuntime, graview mcp), and a model that listed them before a change sends what it learned then.
- A change to a derived tool's name, description or input schema for an unchanged declaration is called out in a
Compatibility:line, even when it is a fix. - A change caused by the declaration (a renamed field renames an argument) is the app's change, not the framework's. The framework's part is saying which tools moved.
- FR-110 is such a change. Every derived
edit-<kind>saysadditionalProperties: false, so an argument it does not take is refused asinvalidwhere it was dropped. A document's act always says itswrites, read off what itssetsand effects set on its subject ([]when that is nothing), so an argument that only feeds a record the act makes no longer counts as a write of the subject, andedit-<kind>offers that field again. The conformance kit announces the two fixtures it moved (document:vendors,document:two-lines, 0.1.14). A TypeScript mutation that declares nowritesis read as before. - FR-121 is such a change. Every act's tool says
additionalProperties: false— a document's act, a TypeScript mutation whose input is a plainz.object,remove-<kind>— and a call with an argument the act does not take is refused asinvalid, naming what it takes, where the argument was dropped and the act ran without it. An act that creates still takesid. An input its author madez.looseObject, or gave acatchall, keeps what it is not told about and its tool says nothing new; one that is not an object's shape is not judged. An argument given asundefinedis no argument. The conformance kit announces the two fixtures it moved (document:vendors,document:two-lines, 0.1.15).
- A file field's argument (FR-162) is described as an object of
href,name,typeandbytes, withwidth,heightandcaptionoptional, and a list of them as an array of that object; a seat may set one to a value the host's upload gave, and a value whosehrefis not a path on the host is refused asinvalid. The derivededit-<kind>of a declaration that has no such field is unchanged.
- A number field's argument with a
formator aunit(0.1.29) is described with"x-graview-format"(money,percent,duration, orunitfor a measure),"x-graview-currency"for money and"x-graview-unit"for a measure or a duration, and a description saying the value is a plain number ("An amount of money in USD: a plain number, 1250.5 for 1,250.50 USD."; "A fraction said as a percent: 0.15 is 15%."), after the field's own description where it has one; the type and range are unchanged. The conformance kit announces it ondocument:vendors.
- An app-link field's argument (FR-171) is described as a string of at most 500 characters with the address's
patternand"x-graview-app-link": true; a seat sets it to another app's address, and anything else is refused asinvalid. The derivededit-<kind>of a declaration that has no such field is unchanged.
- A relation to another app's kind (FR-171) is an argument of the derived
edit-<kind>, described as a string of at most 300 characters — or an array of at most 200 — with"x-graview-linked": { address, kinds, cardinality }and a description saying it is"<kind>:<id>"; a seat finds the value withfind_linked(relation,query,of,limit), a read listed only for an app with such a relation, answered through the host'slinkedRecordsas the seat. The tools of an app with no such relation are unchanged.
- A Markdown field's argument (FR-180) is described as the text field's string with
"contentMediaType": "text/markdown"and its description ending "Written in Markdown."; what it takes is unchanged. A derived edit's history line says a string longer than 60 characters by its start (excerpt), not whole.
- A phone, a place and a duration field's argument says which with
"x-graview-type": "phone" | "place" | "duration", and a duration's"x-graview-unit": "minutes"; a field that says nothing of itself is described in words ("A length of time in whole minutes: 90 is 1 h 30 min."). A phone is a string with the phone'spattern, a place a string, a duration anintegerof at least 0: a seat sends 90, never "1h 30m", which is refused asinvalid. The derivededit-<kind>of a declaration that has none of these fields is unchanged. - A time field's argument says
"x-graview-type": "time"and itsHH:MMpattern, described in words where it says nothing of itself ("A time of day on a 24-hour clock, HH:MM with no day and no zone: 15:00 is 3 PM."): a seat sends "15:00", never "3 PM", which is refused asinvalid.
- A date that repeats is described to a seat as an object of
every,interval,on,until,count,exceptandcontinues,additionalProperties: false, with"x-graview-repeat": true, ornull; the derivededit-<kind>of a kind with one takes it beside the date. Such a kind gains three derived acts, permitted as its edit is:skip-<kind>("Skip this one",{ id, on }),detach-<kind>("Change just this one",{ id, on, …fields }: a record of its own on that day, with the series' fields and the links the series makes, and the day an exception on the series) andsplit-<kind>("Change from here",{ id, on, …fields }: the series ends the day before and a new one,continuesnaming it, starts that day);fieldnames the date where a kind has more than one that repeats. Each refuses a day the series does not fall on asrefused. A kind with no date that repeats gains none, and its tools are unchanged.
- Drawing a view and keeping it as a lens arrived as two tools a host opts into (the seat as a guide, B3):
draft_view, a read, andkeep_lens, which hands the host'sdrafts.keeptheadd-lensedit. A runtime lists them only when givendrafts(keep_lensonly withdrafts.keep, and never on a read-only seat), andtoolDefinitionsonly when tolddrafts: "draw"or"keep", so a surface that did not ask keeps its tools and its hash. Their names, input schemas and answers are held to this section from now on. A lens either tool takes or returns is a declared lens ({ title, lens, on, bindings?, options? }) and is judged as one under the seat's sight; a kind the seat may not see is answered as one that is not there.
- Running, pausing and resuming the app's workflows arrived as three tools a host opts into (Roadmap f-jobs-declared):
run_workflow({ name, dryRun? },nameone of the app's workflows as anenum), answered with the run —run,workflow,outcome,dry,made,changed,archived,suggested,heldBack,notes— andpause_workflowandresume_workflow({ name }), which hand the host'sworkflows.editthepause-workfloworresume-workflowedit and answer the edit that takes it back. A runtime lists them only for an app that declares workflows and only when givenworkflows(seatWorkflowsfrom@graview/tools/workflows, the host's store, log of runs and model;pause_workflowandresume_workflowonly with itsedit), never on a read-only seat, andtoolDefinitionsonly when toldworkflows: { names, manage? };graview mcponly with--workflows. A surface that did not ask keeps its tools and its hash; an act can no longer take any of the three names. A run is the app's own actor's (workflow:<name>), whoever asked.
- FR-167 moved the read tools' answers and three input schemas. Every read answers at most
READ_CHARS(8,000) characters of JSON, for a seat's turn and an MCP client alike.get_graphtakesoffsetand answers a page of at most 25 records, the edges out of them,totaland, when there are more,more;get_nodetakesoffsetand answers its links as{ kind, id, label }, 20 each way a page, where it answered whole edges;get_violationstakesoffsetand answers{ violations, total, more? }where it answered an array;search_graphanswers at most 20 hits whateverlimitasked, withmoreand withoutmatched. A field's text past 600 characters is cut and says its length, and any other read too long to fit answers{ cut, partial }. Within a host's turn, a call repeated with the same input is answered{ already }.
- FR-173 added three derived acts to every kind, beside
edit-<kind>andremove-<kind>:archive-<kind>andunarchive-<kind>({ id }, "Bring it back") andmerge-<kind>({ id, into }: the recordidis archived andintotakes its links). None is destructive; each is permitted through the acts that create the kind, asremove-<kind>is, and a grant may name each on its own. An app that declares an act of one of these names keeps its own.search_graphandget_graphtakearchived—falsewhen unsaid,true, or"all"— and reach only the live records unless it is given;get_nodereads an archived record by its id and saysarchived: true, as its links to one do. A seat that listed the tools before 0.1.29 sees three more per kind. - A search's answer may now hold near hits (0.1.29, the Roadmap's f-semantic-search). When the words find fewer than
NEAR_BELOW(5) records exactly,search(@graview/core/search) adds the records a near word finds — one slip in a word of 4–7 letters, two in a longer one, or another form of the word (a plural, -ing, -ed) — ranked after every exact hit, each a node hit withnear: trueand awhywhosestrengthis"near", withasked(the word typed),matched(the record's own word that answered) andby("spelling","stem"or"meaning").near: falseasks for exact hits only, as going to a record by name and the conversation's "things called …" do.search_graphanswers the same: a near hit saysnear: trueandwhy.matched, so an agent never takes one for what it asked. A host's ranker (HostAi.near, ornearoncreateToolRuntimeandcreateMcpHttpHandler, orrankonsearch) is asked under the same rule with the candidates as{ id, kind, label, texts }and answers{ id, score, matched? }[](0–1, nearer higher), at once or as a promise; the result carries it aslater, which Find shows when it arrives andsearch_graphwaits for. Find asks it only once the typing pauses (300 ms; an ask a later keystroke overtook answers nothing without reaching the host). Itsmatchedis the host's words, not the record's: a hit keeps at most 80 characters of it (MATCHED_MOST), andsearch_graphhands it to an agent marked as words somebody else said,{ untrusted: true, authoredBy: "the host's ranker", text }, as it marks record text another seat wrote. The ranker is handed only records the seat may see: candidates are filtered by the seat's sight — the kinds kept from it and, record by record, the policy'ssees— and by the kinds searched, the horizon and the conditions before it is asked, so a hidden record's text never reaches a host's model, and a score for an id it was not handed is dropped. A ranker that throws leaves the exact answer. Find's row for a near hit carriesdata-nearand says "Near “<word>”" ([data-testid="find-near"]), with the field that answered;/search's row says the same in[data-testid="search-why"][data-near]. - The ninth walk (W-201) narrowed who a derived act reaches, and only where a grant to every role is the whole way to it. A kind's derived
edit-,remove-,archive-,unarchive-andmerge-<kind>ride the declared acts that make (or, for the edit, write) the kind; riding only a grant withroles: "*"that names those acts — "Anybody may join",{ roles: "*", mutations: ["join"] }— the derived act now reaches the records that seat made, as the log says who made each, and is refused on any other ("Not permitted: … — only on what you made; a coordinator can."), where it reached every record the seat could see. Nothing else changes: a grant of everything to everybody ({ roles: "*", mutations: "*" }, whichadd-sightwrites on a document with no policy, FR-170) names every derived act outright and reaches every record a seat may see; a grant that names the derived act, or says*, reaches every record; and a role's own grant on the acts it rides ({ roles: ["member"], mutations: ["join"] }) reaches every record of the kind, as before. The tool list a seat is handed is unchanged; a call on another's record is refused asforbidden.
A caller names what it makes (1.0)
Ids stay readable slugs when nobody asks for one. Every act that creates — an app's own in code, a document's, a repeat's — takes an optional id beside its own arguments (takesAnId), so an offline batch or an agent's chain names its records up front and refers to them before any server answers; applyAll applies its calls in order, so a later call of the same batch names the record an earlier one made by that id.
- Honored exactly, or refused in a sentence. A free id of 1–200 characters with no space or control character is the id the record gets. One a record holds is refused (
Id "<id>" is already taken) and the whole change with it, never renamed or suffixed; a malformed one is refused before anything runs; and an act that names its records itself, asked for an id, says so (did not make a record with id "<id>") rather than drop it. The id goes to the first record the act mints (freshId), andApplyResult.mintedsays, by call, the id each call's act minted first. - A seat that does not see everything may ask only for an id of its own — one ending
.<seatMark(me)>, optionally followed by-<n>, as the ids minted for it do — since a refusal of any other id could say a record it may not see holds it. - A demand and a hint. An id a caller asked for — the
idargument, an agent's chain, an offline batch naming its own records — is a demand: made exactly or refused, as above. An id a client minted on its own for a press it applied first is a hint:openRemotesends such a call withmintedHintbeside its arguments (a field ofMutationCall, additive on the wire; a server before it ignores it). The store makes the record under the hint when it is free and the seat may ask for it, so the rebase keeps the id and a press after it that names the record names the one the server holds. When somebody took it meanwhile the store mints as ever (-2), never refusing, and a later call of the same change that names the hint names the record it made; the rebase then holds the server's id, as it always did. Two people adding "Groceries" at once both land. A press in a later change, sent before the answer, still names the hint. The log keeps each call as the store read it, without the hint. - The tool schema's
idargument is unchanged. accept_suggestionanddecline_suggestion(0.1.62, Roadmap f-suggestion-votes) answervoted: "for" | "against"from a seat the store would refuse the change — the vote kept in place of it, the suggestion still waiting — andlist_suggestionscarries each suggestion'stally; no tool is added, and no input schema moves.propose_changes(0.1.63, Roadmap f-proposals-for-review,{ calls: { act, args }[], intent? }, answered withproposaland itsintent) is listed for a seat whose principal — or the person an agent acts for — the policy lets propose an act it may not run, and for no other: a surface whose policy names noproposekeeps its tools and its hash.list_suggestionscarriesproposedByon a person's proposal.
Held to semver from 1.0: the JavaScript APIs
The five surfaces are what stored data, a declaration and a model depend on. From 1.0 the JavaScript a host and a product call is held to semver as well: within a major nothing exported from a package's exports entries is removed or renamed, a function's parameters change only by an optional addition, and a type changes only so that what compiled against it still compiles — an interface a host implements (PersistenceAdapter, SubscriptionStore, KeptViews, RemoteSystem) gains only optional members, and a union a host reads (RefusalReason, Author["kind"]) may grow, so a host's switch keeps a default. That holds for Store and its options, openStore, openRemote, createStoreHandler, serveStore, the persistence adapters, SyncEngine, the React hooks and providers of @graview/react, and the declaration's define* functions. What a page draws — the React components of @graview/primitives, @graview/pages and @graview/embed, and their DOM — is the look (below) except where this page names a marker a host reaches. A module a package does not list in exports, and anything named internal, is not held.
The files that count as each of the five surfaces for the Compatibility: line are listed in scripts/lib/surfaces.mjs, which since 1.0's foundation also names the sync engine and its state (packages/core/src/sync/), subscriptions and their stored file (/graview/subscriptions, subscriptions.ts, file-subscriptions.ts), a host's views and their file (views.ts, remote-views.ts, file-views.ts), presence (packages/ship/src/presence.ts) and the refusal codes (refused.ts).
Not a surface: the look
The values the theme writes — the shipped palettes, the default faces, weights, radius and spacing, the kit's defaults — are not one of the five, and a patch may move them; the custom properties' names, the Brand keys and what each means are kept, and a change to a value is said on the changeset's Compatibility: line. A host that wants its look held still declares its own brand (schemes, typography, shape), which the framework never overrides.
How a notice looks is the look too (FR-75, FR-236): a toast or a banner is one hairline all round in the app's radius, its tone a small tinted chip at its head ([data-testid="notice-chip"], hidden from a reader, who is told the tone by the status or alert the notice is announced through) and never a colored border on one side; the sentence is [data-testid="notice-sentence"]. What a host's page or harness reaches is kept and said on the Compatibility: line when it moves: the card [data-testid="notice"] with its data-kind and data-tone, its acts [data-testid="notice-action"], its [data-testid="notice-dismiss"], and — on a warning or error toast the framework raised itself, when the host gave onReport (FR-237) — a native [data-testid="notice-report"] whose accessible name is Report this: <the toast's first sentence>, which hands the host { message, code?, place?, record?, version } and leaves the toast standing. The hook's shape is a JavaScript API (NoticeReport, on mount, <Embed>, @graview/embed/pages and the Shell), held as the section above says. A banner stands at the top of the picture it is about, at its middle; on the one face, where the bar is fixed over a page that scrolls under it, it stands under the bar's foot — under a host's strip as well, where there is one — and never over the bar or its places (HQ f-banner-notices-under-bar).
The design kit's revision 03 is such a change. The shipped schemes are built on Graview's identity — paper #f7f7f2, ink #18213a, muted #586174, En Dash navy #001769 as the light accent, #9aabff on a navy ground #0a0f1f in the dark — and paint no wash (wash: "none"); TYPOGRAPHY.body names Montserrat first (never fetched: the host loads it, or the system sans stands in), with three new properties for its weights (--graview-weight-display, -body, -label: 550, 450 and 600 on the framework's face, 600, 400 and 600 on a face a brand names); h1 and h2 are tracked at −0.025em; the default radius is 8 px (6 small) where it was 12 (9). A brand that names its own schemes, faces and radius draws exactly as before but for the heading weight (--graview-weight-display, 600 where the browser's bold was 700), the two largest headings' tracking and buttons' labels at 600. A brand derived with brandFromAccent over the shipped schemes takes the new grounds, panels and inks with its own accent. system-sans in a document is the system's own stack as it always was.
The routed face's type is the look too. It is one scale written by the theme as four custom properties — --graview-text-small, --graview-text-body, --graview-text-heading and --graview-text-title (0.833, 1, 1.2 and 1.728rem, a minor third from the reader's rem) — whose values a patch may move and whose names are kept; an app's own stylesheet that sets one moves that step wherever the face uses it. Headings take the theme's heading rule (--graview-font-display, --graview-weight-display), so a brand's own face and weight always win. What a host's page or harness reaches in a derived list is kept and said on the Compatibility: line when it moves: a row li.graview-row (in ul.graview-rows) holding its link a.graview-row-title and its glance span.graview-row-glance, a search hit the same row as [data-testid="search-hit"], and a group's or a section's heading h2.graview-group-head. A row's glance leaves off the field its group is by and a choice the list is narrowed to one value of.
The one face's panel is the look too (HQ f-one-face-wider-panel, f-one-face-panel-padding). Beside the city at Nearby a desk's panel opens at 55% of the window, or the share a host's panel names (held to 0.25–0.75), never wider than 1192 px and never leaving the city less than 480; a width the person drags it to is kept for that app in that browser and wins; a phone's sheet opens at 40%. Those numbers a patch may move. What a host's page and a view's stylesheet read is kept and said on the Compatibility: line when it moves: while the page is in the panel (out of the window at Nearby, or standing on the Map) the page [data-graview-one-place] and each worker view's root [data-graview-view-root] on it carry data-graview-in-panel, which a full page never does; and the one face's frame sets --graview-gutter, the page's gutter at its sides, in both places, 20px on a full page and 16px in the panel, where the page's column keeps 16 above and 24 below in place of a full page's 40 and 96, each moving there as the page does. Outside the one face it is unset, so a view reads it as var(--graview-gutter, 20px). A view spaces itself by @container queries on its own box rather than by vw: the panel is a little over half the window, and the window's width says nothing of it. --graview-gutter was --graview-page-gutter before 0.2.1.
How the app bar lays itself out is the look too. Since it fits its box, it reads its own width and never the screen's (a phone's bar below 640 px of its own), Find is a small box that says its shortcut and is drawn wide while it is used, and below 900 px of its own Find is the magnifier, which opens the box over the row. Where a face has both, the scene and the pages are in the app menu the chevron beside the app's name opens, with a host's rows and the scheme choice, and what waits for the reader and what has happened are one inbox, a bell with one count. What a host's page or harness reaches is kept as it was and said on the Compatibility: line when it moves: the test ids (app-menu-open, app-menu, app-faces, app-face-scene, app-face-pages, app-menu-row, app-menu-scheme-<choice>, inbox-button, inbox, inbox-tab-<tab>, app-share-open, app-share, app-find, app-find-open, find-box, nav-find, app-places-open, app-place-current). A host whose own bar stands above the embed says what the embed's bar leaves out (bar: { faces: false, name: false }, EmbedBar): with faces: false there is no Scene or Pages in the app menu, with name: false no app-home and no app-name; the places, app-find-open, the standing and profile-button are drawn as ever, and bar: true is the whole bar it always was. On the one face (FR-239; what a routed face that owns its page draws unless its host says sceneUnderPages: false, and an embed only where its host says sceneUnderPages: true) the bar, the embed's or the routed face's own, stands in the one face's bar slot, [data-graview-one-face-bar] (also [data-testid="one-place-bar"]), fixed at the window's top above every layer of the face at Page, Nearby and Map; the slot and its attribute are kept and said on the Compatibility: line when they move.
A host may keep a strip of its own above the one face's bar (HQ f-host-top-inset; Graview Cloud's staff announcements). It says how tall the strip stands as the custom property --graview-host-top, set on the document's root or any element around the face, in any length, and changed as the strip comes and goes; or as hostTop, in pixels, on mount, <Embed> and @graview/embed/pages (FrameOptions.hostTop), which writes it on the embed's element. The bar's slot then stands at the strip's foot; the page keeps room for both above its first words (--graview-one-face-bar is the strip and the bar together); the page as a panel, the boards, the level control and the Map are laid out under the bar in the window's height that is left; the city is not drawn under the strip; and a banner stands under the bar. Unset, the face is as it was. It is read where the one face stands against the window (routing: "address", or a routed face that owns its page); a face held to a box is wherever its host put the box, and keeps none. The property's name, the option and what each moves are kept and said on the Compatibility: line when they move.
Where the places stand is the look as well (FR-145): on a bar with room after the name, the switch and the tools, the app's primary places stand on the row as words, in their order and never more than six with Home — the one the reader is on always among them — and the rest fold into "More"; with too little room the one control returns; a phone's bar keeps the one control. Which places are primary is the declaration's (pages.primary, kinds by name or plural and pictures by title); unsaid, every kind but the ones that support the others (a kind pages.hide leaves off the home, a kind of a module drawn only for its keepers, a note pointing at several kinds that nothing points at) stands, with its pictures, and Connections folds. On the scene the bar's places are the scene's (FR-144): "Everything" (app-place-scene:whole) and each picture (app-place-scene:<kind>:<as>), each with the scene's address for it as its data-place-path (/places/overview for everything, the overview at altitude by its address alone since FR-154; /places/overview#focus=…&in.view=<as>). Inside a district no picture draws, or on a record, the one control names where the reader is — the kind's plural ("Rules") or the record's name — as a place kept off the lists: app-place-current says it, its key is scene:district:<focus>, and it is offered on neither the row nor the drop-down. How many stand changes with the width, the brand's face and the app's places, so a harness never counts on it. What is kept, at every width and on every face, is how a place is reached — one recipe:
- Every place the bar offers is one element in the embed,
[data-testid="app-place-<key>"], carrying itsdata-place-path(the same key and path as before FR-145; a list'skind:<kind>, a picture'splace:<kind>:<as>, the home'shome,connections). - If that element is visible, press it (it stands on the row).
- If not, press
[data-testid="app-places-open"]— "More" where places stand, the one control where none do, on a phone the page's first line — and press it in[data-testid="app-places"], the list it opens. [data-testid="app-place-current"]says the place the reader is on: the one control's words, or the place standing on the row, markedaria-current="page".
The list is grouped as before (data-place-group: home, lists, pictures), holding the places that do not stand; app-places-open is absent only when every place stands. The places standing on the row are inside nav[data-testid="app-places-standing"].
How a list arranges is the look too: one quiet line under its title — the count in words ("16 tasks", "4 of 16 tasks" where something narrowed it), then "Sort", "Group" and "Filter", each opening a short list (usePopover("arrange")), and each condition as words with a ×; a narrow line is the count and one "Arrange". A list shorter than eight records has no controls unless its address arranged it. What a host's page or harness reaches is kept and said on the Compatibility: line when it moves: the line [data-testid="<prefix>-bar"] (role="group", named "Arrange"; the prefix is arrange on the derived face and in a lens, list on an app's page that says so), the count <prefix>-count (with <prefix>-kept for "4 of 16"), the words <prefix>-sort, <prefix>-group, <prefix>-add (Filter) and <prefix>-all (Arrange) — buttons whose value is the chosen sort or group, as the selects' was — and the open list [data-testid="arrange-list"], whose entries are buttons carrying the condition or choice as data-value (due, holds:today, price:at-most:25000) and aria-pressed for the one chosen; the direction's <prefix>-direction-asc/-desc and a date group's width <prefix>-bucket-<day|week|month|year|decade> are in those lists; a condition is <prefix>-condition; a date's day is asked in the list (<prefix>-ask-day, <prefix>-day, <prefix>-day-add). The addresses are as before (?sort=, ?group=, ?filter=, ?q=, and the older ?by=, ?<edge>=, ?with=, ?past=1). Adding a record on a list page is one press, [data-testid="act-open-<act>"], which opens form-<act> in place; the form stands open while the list is empty. A list of a kind with a when role (fieldRoles.when) opens, when its address says nothing, newest first by it at any length; a list of forty records or more otherwise opens by name; and a list of forty or more is sectioned by year or letter under [data-testid="list-index"] (each list-section); a harness that wants the stored order passes ?sort=. An app's design that draws a list draws it with ListPage and so carries the same line and ids.
What a kind opens to in the scene when the app drew it no picture is the look too: going into its district (#focus=aggregate:<kind>, a kind with no lens) draws its stop in the box a lens fills — the plural, the count and the description; the creating act first, asked in place; what is overdue or due this week, its problems by rule and what changed since the reader last looked; then a picture its data chooses (a board by its main choice up to 300 records, a calendar where today's month has short records on its main date, else a table of its glance and relations, 50 rows at a time), with the other shape one press away and "Keep as a lens"; from altitude it opens in the panel beside the map a lens opens in (lens-panel), one panel at a time, focused as #overview=1&focus=aggregate:<kind>, where a single press still lists the district (district-panel), which is the seat's add-lens (recipeDraft, @graview/tools/draft). Which shape a kind gets may move with a patch. What a host's page or harness reaches is kept and said on the Compatibility: line when it moves: the region [data-testid="kind-stop"] (named by its h2, data-graview-shape board, calendar or table), kind-stop-primary, kind-stop-acts, kind-stop-problems, kind-stop-as-<shape> (aria-pressed), kind-stop-keep, the table kind-stop-table, each row a pick target for its record (data-graview-pick), with its kind-stop-row-go and kind-stop-row-acts, and kind-stop-more; the arranging line's prefix is kind-arrange; the table asked for is in.as=table in the stop. A view an app registers for the kind at many × full replaces the stop, as before.
What a page draws while a part it fetches has not arrived is kept the same way (FR-139): the line [data-testid="lazy-part-missing"] in the part's place, a polite status, with its button [data-testid="lazy-part-retry"] ("Try again"); a part that never arrives draws that line and throws nothing into the embed. retryingImport is on its own entry, @graview/core/retry, for a page only: the main entry, tools and ship carry no import() of a computed URL, which workerd refuses. A selected record in the scene marks its host data-graview-record-focus, under a declared page is one [data-graview-primitive="panel"] holding [data-graview-spec="page"], and a district's name is [data-graview-district-name] (FR-141, FR-143). Once the place an embed is on has drawn and settled, its root wears data-graview-drawn, the place's path its value, and loses it in the commit that moves anywhere else (FR-188); data-graview-painted is worn the same way once the page and its views are painted, what stands under the page on the one face perhaps still to come, never for time alone (a place said drawn by its ten seconds is never said painted: wait for either), and at the city once that has come too: what @graview/pages/splash lifts on (or on data-graview-drawn), where a picture waits for data-graview-drawn; a worker view's region says data-worker-view-drawn once it has drawn what it was last shown, or data-worker-view-failed; a frame guest's iframe says data-guest-view-drawn, or data-guest-view-failed="silent", and is aria-busy until then. @graview/embed/pages wears both attributes on its root. A view proposed and not kept (draftView, FR-187) is drawn in [data-graview-draft-view="<name>"] (a group named "Draft: <title>") under its line [data-testid="draft-view-line"], on the whole embed and the pages alone, and handle.setDraftView swaps it in place. In an embed, the panes the bar opens and the notices at the foot stay inside the embed's box where they fit there; a harness finds them there, never at the window's foot.
Which chunks a face's first draw asks for is the look as well, and moves with the faces (FR-194); what a host's build reads is kept and said on the Compatibility: line when it moves: @graview/embed/first-draw's firstDrawChunks(metafile, face), which reads an esbuild metafile's outputs (each output's entryPoint and its imports) and returns the chunks a face — "pages", "scene", "graview" or "picture" — asks for as it first draws, by the metafile's names for them, and FIRST_DRAW_DOORS, the doors it reads, each { package, module } (a module by its path in the package's build without its extension). A door the list names that a build never splits off is passed over, so a list a version grows is never one a host's build fails on. What a page fetches before it is wanted (the acts' pane, a date's editor, the Scene beside the Pages) waits until an embed's place has first worn data-graview-drawn.
How the quick ask looks is the look too (Roadmap f-quick-ask-framework; no face draws a field at its foot or a conversation thread): ⌘K (Ctrl+K) opens one card beside what the reader is on, a command bar that becomes the answer card when words are asked, and Find's / stays Find's. What a host's page or harness reaches is kept and said on the Compatibility: line when it moves: the marker [data-graview-quick-ask] (scene or pages) where it is drawn; the card [data-testid="quick-ask"] (role="region", named "Ask about <the thing>" or "Answer about <the thing>", data-quick-ask bar or answer, data-quick-ask-beside the data-graview-view it stands beside or page, data-quick-ask-side right, left, below, above or top), its line quick-ask-about, its field quick-ask-input (a combobox), each row quick-ask-option (data-quick-ask-kind act, show, place, record or ask), quick-ask-close; on an answer, quick-answer, quick-answer-asked, quick-answer-text, each quick-answer-offer (data-ai-offer, data-ai-offer-type), and the ghost of the changes it proposed, ai-ghost, drawn on the card; the context menu's [data-menu-item="ai-ask"] ("Ask about this…"); Find's last row find-ask and the search page's search-ask; the lines' key beside Up, lines-key and its pane lines-key-pane. The Shell's, a routed face's and the embed's quickAsk (a boolean; a setting kept from 0.1.30 as "field" or "hidden" is read with quickAskOf) and handle.setQuickAsk say whether it is drawn, and it is drawn only where the host's ai gives a model and is not off. Nothing in it asks a reader which machine answers: the host gives it once, as ai (HostAi: answer, thinking, fast, and the complete, turn and decide behind them); its answers are kept as AI interactions (ask.kind "ask", with answer), and a change it proposed is a ghost accepted as one batch through ai:<interaction>. The conversation (useGraview().seatTalk, kept under graview:seat:<the app's name>) is the engine a product's own ChatPanel draws; no face draws it. A change to the app itself the conversation proposes (Roadmap f-seat-reshape) is drawn as the card [data-testid="chat-reshape"] (a group named "A change to the app"), its chips chat-reshape-chip (data-reshape-part trait:<name> or kind:<name>, aria-pressed on or off), its loss line chat-reshape-breaking, chat-reshape-accept and chat-reshape-decline; what a host holds is the hook onProposeChange(proposal) → "applied" | "declined" on GraviewProvider, FrameOptions and the pages' context, the proposal's shape (@graview/tools/reshape: said, add, drop, card { said, adds, keeps, drops, breaking } — the reading, never edits; the host composes them with composeReshape({ document, add, drop }) on @graview/core/compose, which answers { edits, document, took, left, said, breaking, notDone }), and that the seat's turn lists propose_change only when the host handed the hook and the seat may change the declaration (mayChangeDeclaration). Which traits a sentence is read to need, what a module adds and the words TRAIT_BRINGS says for it, are a judgment a version may sharpen, and that is not a break.
Sentences a program may match are said in the changeset when they move: the insight observation insight:load:<id>:<edge> reads "<name> <the relation's words>: all <n> <plural>" (or "<n> of the <m> <plural>") since FR-142, a relation's words from its description or inverse, else its key spoken (edgeWords, @graview/core/words).
- Every kind is given
leave-alone-<kind>andallow-tidying-<kind>({ id }, 0.1.30), unless its declaration says it is never tidied, and an agent's tools gainlist_suggestions,accept_suggestionanddecline_suggestion({ suggestion }). The conformance kit announces the new tools ondocument:vendors,document:two-linesanddocument:shortlist-0.1.10.
The conformance kit
@graview/core/conformance ships fixtures: declaration documents with the check findings and tool schemas this framework made of them, and op logs with the snapshot hash each folds to. conformance() runs them against this build, or against a build a host hands it, and returns the differences by fixture id. A host runs it before it takes a version.
The fixtures are append-only. node scripts/conformance-fixtures.mjs only ever adds a fixture with a new id, and a lock holds the rest. A change to a recorded fixture is an announced difference (ANNOUNCED), with the version that made it and what changed.
The Compatibility line
A pull request that touches a file on one of the five surfaces asks every changeset it adds for a line:
Compatibility: additive — `Operation.via` is a new optional field; ops without it read as before.The line says the surface, whether the change is *additive*, *breaking* or *unchanged*, and for whom. scripts/require-changeset.mjs refuses a changeset without one (CI's changeset job), and the files that count as each surface are in scripts/lib/surfaces.mjs. The line goes into each package's CHANGELOG with the rest of the changeset, so every release lists what it did to compatibility.
capabilities()
import { capabilities } from "@graview/core";
capabilities();
// { version: "0.1.43", protocol: 1, documentFormats: ["graview-document@1"], formats: { snapshot: 1, op: 2 },
// shipped: ["FR-06", "FR-11", …] }shipped lists the ids of the seams this build ships, by the ids Graview Cloud filed them under. A host retires its interim for a seam when the id appears. A test holds the list to the FR ids the changesets name, so a seam cannot ship unannounced or be announced without shipping.
FRAMEWORK_VERSION is the version alone, for a host that records which framework folded a store.