Pages
App pages from one HTML document and a capability manifest; live data, embedded resources, versions that build on save, render, release, share links, runtime API.
Raw Markdown for agents: pages.md. MCP: read_docs("pages").
A page is an app that lives in a Space and is shared through links: one HTML
document that you design freely (at most 512 KiB) plus a capability manifest
that declares everything the app can reach: link values, readable tables with
a row policy, named SQL queries, write actions and download slots. The
builder fetches the scripts, stylesheets, fonts and images the document
references from public https hosts and embeds them, so the result is one
self-contained HTML file. Visitors see it in a sandboxed frame without
network; the app asks the host for data through window.adlassApp, and the
server answers every query and action against the manifest of the version the
link serves.
Data is live: every visit runs the queries again. A dashboard or report never
needs a new version to show current figures; save one only when source or
manifest change. Every save is an immutable version, built before it is
stored. The team sees the current version right away: every member of the
Space opens it in the app (pages.view), without a link, and its actions
write for real. Links and shares serve the released version. The other kind, live_document, shares a native live
document of the Space (pages.create with kind and source_document_id; one
page per document, an existing one is returned); it reads and writes
nothing beyond its document, so each of its versions is released at once and
sharing it needs no expected_version_id. Everything below is about apps.
Flow
pages.create(space_id,name,source,manifest,settings). Withoutsourceit starts from a small HTML template.pages.updatereplacessource, the wholemanifest,settingsor the download bindings (assets); omitted fields stay. Passexpected_version_id(current_version.idof pages.get) to reject a save over a newer version (conflictpage_version_changed).- Both validate the manifest against the Space (tables, policies, query SQL
and column shapes, action fields), resolve the Space images the source
references and build the source with its external resources, then store
the version with its bundle (every embedded resource), manifest and kit
version. When it does not build they store nothing and refuse with
validation_errorandproblems(a manifest path such asdefinition.queries.orders.sql, orlineandcolumnin the source).warningsare problems that do not block. The same content as the current version stores nothing (version: null). A build fetches resources for up to 45 seconds; builds that miss the cache count against 60 per hour per Space. pages.render(link_values,paramsper query key,version): screenshots of the current version on desktop (1280×800) and mobile (390×844), its queries answered live with the policies on (at most 200 rows each; withoutparams[<query>]each parameter takes itsdefault, then itsexample). Returns screenshot urls (10 minutes), runtimeerrorsandfindings(not_ready,empty_page,horizontal_overflow,unknown_tool,tool_failed,query_failed). Over MCP the screenshots also arrive as images. Render runs without a visitor, so:viewer_emailis NULL there. The render of the current version is the gallery image. At most 30 per hour per Space.- Look at both screenshots, fix with
pages.updateand render again. Findings are hints, not a gate; build errors are. pages.queryruns one query of the current version. As a member it reads like records.sql (no policies, only the manifest's tables; relation and document link tables between them are not filtered, so links to archived records count too); withlink_valuesorviewer_email(a verified visitor) it answers as a visitor of such a link would. Errors carry the full SQL message with logical names.pages.query_manyruns up to 20 of them in one call (one item per query,ok: falsewith the error of a failing one,budget_exceededwhen the call runs out of time); the team view bundles the queries a page asks for at the same moment this way.pages.action_previewshows what an action would change (title, revision, changes) withwhenapplied and never writes.- Release: a new version reaches links and shares on its own (
released: truein the result) unless it reaches more than the released version: new or changed tables, queries, actions, downloads, link values, Space images, upload folder or bound documents. Removing is never an extension. Thenpages.getshowspending_releasewithrelease_diff: per sectionlink,tables,queries,actions,downloads,documents(Space images by id),uploads(folder_id) andassets(download slot keys) the keys the current versionadded,removedorchangedagainst the released one. A person releases it withpages.release(expected_version_id, the version they reviewed).links_pinnednames links that could not follow. - The first release happens when a person shares the page:
pages.links_create(or re-enabling a link withpages.links_update) withexpected_version_id, the current version the person reviewed; without it a page that was never released answers conflictrelease_required, with a newer versionpage_version_changed. Until thenreleased_versionis null. Once a page has a released version, sharing never releases anything: new and re-enabled links serve the released version. Tell the user the page is ready and what it reads and writes and which Space images it shows; never claim it is shared.
pages.restore_version (version_id from pages.versions_list) saves an
earlier version again as a new one, from its frozen bundle without a build;
it is released on its own under the same rule. pages.source_get returns
the source of the current version or of version, with kit_version.
Links and the person behind them
Only a person shares. pages.links_create, pages.links_update and
pages.links_retarget run only for a person: a call over REST or the API, or
the in-app assistant with the user's approval. MCP agents, routine runs and
scripts get human_only; ask the user to share the page in the app.
Only a person in the app releases: pages.release and the first release
through a share run only in the user's app session or for the in-app assistant
after the user confirmed the call. An API key, an agent client (MCP, CLI, agent
login), a routine run or a script gets human_only, also with an approval;
link calls over an API key that release nothing keep working.
A link follows every release unless it is pinned. A release names in
links_pinned each link that stays on its version and why:
viewer_email_needs_verified: the new version reads:viewer_emailand the link is not EMAIL_VERIFIED.link_values: the link'scontext.valuesdo not fit the newmanifest.link.
pages.links_retarget points a link at another released version of the page
(released_at in pages.versions_list) and pins it there; pages.links_update with pinned: false lets it follow again.
Compare the capability overviews of both versions before retargeting.
Creating a link: context.values fill manifest.link (checked by type, fixed
for the link's lifetime; another value means another link).
permissions.write lets visitors run the actions (only when the version has
actions), permissions.download (default true) allows download slots,
original documents and exports, permissions.session_days (1-365, default 7)
is how long a session stays valid on one browser. Gates: password,
access_mode ANONYMOUS, EMAIL (asks for an address) or EMAIL_VERIFIED (sends
a code and a magic link; required for allowed_emails, allowed_domains and
for any version that reads :viewer_email), expires_at, max_visits
(counts sessions). Changing a gate ends open sessions. pages.links_rotate
issues a new token, pages.links_revoke is final, pages.links_list and
pages.links_get (url, managers only) read them.
pages.view is how the team sees an app page: it returns the current
version's bundle_url, version_id, manifest, locale and the brand. Read
access to the Space is enough. The view calls pages.query (bundled as pages.query_many), pages.action
(written as the person, with when and identity checked against their
verified email; needs edit access), pages.export, pages.document,
pages.download and, for file inputs, pages.upload_initiate and
pages.upload_confirm, each with version_id: a newer current version
answers conflict page_version_changed. Repeating pages.upload_initiate
with the same idempotency_key returns the same open upload with a fresh
upload_url; pages.upload_confirm answers a file that does not match its
type or size with status: REJECTED and reason (the file is removed).
pages.shared_open opens a page someone shared with you as a guest
(read_docs("shares")).
Manifest
{
"link": {"supplier": {"type": "text", "label": "Supplier"}},
"tables": {
"orders": {"policy": "supplier_id = :link_supplier"},
"order_lines": {"policy": "order_id IN (SELECT id FROM orders WHERE supplier_id = :link_supplier)"},
"contacts": {"policy": "email = :viewer_email"},
"products": {"policy": "all"}
},
"queries": {
"orders": {
"sql": "select id, revision, title, number, status, total, total_currency, ordered_at from orders where (:q is null or number ilike '%' || :q || '%') order by ordered_at desc",
"params": {"q": {"type": "text", "max_length": 100}},
"export": true
},
"revenue_by_month": {
"sql": "select date_trunc('month', ordered_at) as month, sum(total) as total from orders where ordered_at >= :since group by 1 order by 1",
"params": {"since": {"type": "date", "default": "-365d"}}
}
},
"actions": {
"approve": {
"table": "orders", "type": "update", "label": "Approve",
"set": {"status": "approved"},
"inputs": {"review_note": {"append": true}},
"when": "status = 'proposed'",
"identity": "verified_email"
},
"attach_invoice": {
"table": "orders", "type": "update", "label": "Attach invoice",
"inputs": {"invoice_number": {"required": true},
"invoices": {"files": {"accept": [".pdf"], "max_files": 3, "max_bytes": 10485760}}},
"identity": "verified_email"
},
"contact": {
"table": "requests", "type": "create", "label": "Send",
"inputs": {"name": {"required": true}, "message": {"required": true}},
"set": {"channel": "portal"}, "identity": "link", "confirm": false
}
},
"downloads": {"price_list": {"label": "Price list"}}
}Names are the logical names of records.sql: type keys and field keys, never
ids (read_docs("records")). Every table has id, title, revision,
created_at, updated_at and one column per field; money is two columns
(total, total_currency), multi_select a text[].
Placeholders are :<name>. Reserved, filled by the server:
:link_<key>: the link's value formanifest.link.<key>.:viewer_email: the visitor's email only when verified by a code in this session (links with access modeEMAIL_VERIFIED), otherwise NULL.:viewer_verified: boolean.:today: the date in the Space's time zone. An unknown placeholder fails on save.
link: values a person sets per link. Types text, number, boolean,
date, record (with table, a type key; the value is a record id). Keys
must work as :link_<key>.
tables: only listed record types are readable, each with a mandatory
policy: a boolean SQL condition over that table's columns (subqueries over
other types of the Space are fine) or exactly "all". The policy sits in
every read of the table, also in joins and subqueries. A policy that needs a
link value the link lacks becomes FALSE and shows no rows; in a query an
unset link value is NULL. Relation tables <type>__<field> (source_id,
target_id) are readable when both ends are listed, limited to rows whose
records are visible; document link tables <type>__<field> (record_id,
document_id) likewise when their type is listed. Partner tables are never
readable.
queries: exactly one SELECT each (the records.sql guard applies), read-only.
params per name with type text, number, boolean, date,
datetime, text_list or number_list, and optional required,
default, max_length (text and text_list, at most 500), example.
Dates also take today, -30d, +7d. example feeds the save check and render and
is required for a required parameter without default. A parameter the
visitor leaves unset is NULL, so write optional filters as
(:q is null or …). Lists have at most 200 entries and arrive as typed
arrays: status = ANY(:statuses). Parameter names match
^[a-z][a-z0-9_]{0,40}$, must not start with link_ or viewer_ or be
today, and must parse as a placeholder: SQL reserved words fail
(:since, not :from). export: true allows CSV and XLSX exports of that
query. When the app offers actions on the rows of a query, select id and
revision in it: an update needs both.
actions: type update (one visible record) or create (a new record).
table: a type key. An update needs the table intables; its policy must show the record.set: literals for text, long_text, number, boolean, date, datetime, single_select (option key) and multi_select (list of keys), or exactly":link_<key>",":viewer_email"or":today"for the server value (a supplier's request keeps"supplier": ":link_supplier"). A missing value answersforbidden.inputsper field key: values the visitor passes, withrequired,append(text and long_text only; adds a lineYYYY-MM-DD HH:MM · <email or visitor>: <text>below the earlier ones) andfiles(document_relation only:acceptextensions or MIME types,max_filesdefault 1,max_bytesdefault 10 MiB). A field is either insetor ininputs. Files needsettings.uploads.folder_id, the folder the uploads land in.when: SQL condition over the table, update only. A record the policy hides and a record failingwhenboth answercondition_failed.identity:link(any visitor of the link, create only),email(a visitor who gave an address) orverified_email(verified by a code on anEMAIL_VERIFIEDlink); updates need one of the last two.confirm(default true): the host shows a confirmation sheet with the label, the record title from the server and the changes before writing.falseonly for create actions without files; update actions always ask. A created record must satisfy the policy of its table when the table is intables; otherwise the write rolls back withcondition_failed. Actions write only in a visitor session of a link withpermissions.writeand the identity the action requires; otherwise they answerforbidden. The write goes through data.write as the Space owner, journaled as the visitor, withrecord.updatedorrecord.created. A create action on a type with required fields that neithersetnorinputscovers is a save warning.
downloads: slots with a label; assets in pages.update binds each to a
document of the Space (a new version).
Limits: 20 link values, 30 tables, 40 queries with 20 parameters each,
20 actions, 10 downloads, 8,000 characters per SQL text. The guard also
limits the text after the parameters are filled in to 8,000 characters:
long text_list values can push a query over it, and it then fails with
query_failed. A link answers with the manifest of the version it serves, the
team view with the current version's.
Source
The source is one complete HTML document (<!doctype html>, <head>,
<body>). Scripts, stylesheets, fonts and images may come from any public
https host; the builder fetches them once at build time and embeds them, so
a version never changes and visitors load nothing from third
parties. Recommended hosts: jsDelivr (https://cdn.jsdelivr.net/npm/<pkg>@<version>,
with /+esm for ES modules), cdnjs, unpkg and Google Fonts. Pin versions.
- Classic scripts (
<script src>) are inlined;deferandasyncscripts move to the end of<body>in document order.integrityis verified; a mismatch fails the build.nomodulescripts are dropped. - Module scripts (
<script type="module">, inline or withsrc) are bundled together into one module, so libraries are shared between them. Bare imports (import * as THREE from "three") need an import map:<script type="importmap">{"imports": {"three": "https://cdn.jsdelivr.net/npm/three@0.170.0/+esm", "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/"}}</script>. Exact entries and prefixes ending in/work, also inside remote modules;scopesandintegrityin the import map do not. A bare import without an entry fails withbare_import; a relative import in an inline module fails withmodule_failed. Dynamicimport("…")with a fixed specifier is bundled too; a computed specifier fails in your own modules (module_failed) and is adynamic_importwarning inside a library (that code path fails at run time).import()in a classic script fails withmodule_failed. - Stylesheets (
<link rel="stylesheet">,<style>) are inlined with their@importrules and everyurl()(fonts, images) as data URIs. Of a@font-facewith several sources onlywoff2is embedded. Google Fonts work as a plain stylesheet link. - Images:
<img src>,srcsetcandidates,<picture><source srcset>,<video poster>, SVG<image href>andurl()instyleattributes are embedded byte for byte. Request a suitable size from the image host (for example?w=1600): at most 3 MiB per image. - Tailwind utility classes are compiled by the build; a Tailwind CDN script is
removed with the warning
tailwind_cdn.tailwind.config = …is harmless. - Removed without a problem:
preconnect,dns-prefetch,preload,modulepreloadandiconlinks,<base>, and<meta http-equiv>with a CSP or refresh.
Space images: reference an image document of the page's Space as
adlass-document:<document id> in src, srcset or CSS url(). The build
embeds its WebP display preview (at most 2048 px, without metadata).
Embedding needs download access to the Space of whoever saves the version.
Every visitor of a version receives the image bytes, also after the document
is deleted. The capability overview lists them under documents
(document_id, name), and release_diff.documents names the images a
version adds by id: tell the user which Space images the page shows. SVG documents
cannot be referenced: put the SVG inline. At most 40 different images per
page. Problems: document_forbidden, document_not_found,
document_not_image, unsupported_format (SVG), too_many_documents and
preview_pending (the preview is being generated; save again in a minute).
A reference left inside a JavaScript string is not resolved
(unresolved_document warning).
Build problems carry line and column: resource_failed,
resource_blocked (not a public https host), resource_too_large,
bare_import, module_failed, integrity_mismatch, importmap_unsupported,
frame_not_allowed, build_timeout (names the slowest URL),
bundle_too_large; the warning bundle_large appears from 4 MiB.
Limits: source 512 KiB, bundle 8 MiB, 3 MiB per image, 8 MiB per script, stylesheet or font.
Runtime API window.adlassApp
The kit injects window.adlassApp before your scripts:
ready: Promise of the page state{ready, title, viewer, link, locale, timeZone, theme, location}.vieweris{email, verified}or null,linkthe link values,location{path, query}.query(key, params?, {limit, offset}?): Promise of{columns, rows, hasMore}.rowsare arrays in column order (numbers as numbers, dates as ISO strings).limitdefault 200, at most 1000. Rejects with aPageError(code,message).action(key, {recordId, revision, inputs}): resolves to{ok: true, recordId, revision}or{ok: false, code, revision?}. Pass therevisionyou read: a record changed since answersconflictwith the current revision; reload and let the visitor retry. File inputs are chosen in the host's sheet, never passed by the app.navigate(path, query?): in-app navigation; the host keeps it in the share URL (/p/<token>/<path>?…), so deep links open the right view. There is no back button inside the app; draw your own.download(slot)ordownload({table, recordId, field, documentId, name}): a download slot or a document of a visible record (both needpermissions.download).exportQuery(key, params?, "csv"|"xlsx"): queries withexport: true, up to 50,000 rows.image({table, recordId, field, documentId}): Promise of a blob URL of the preview image of a record's document (WebP up to 2048 px without metadata, at most 1 MiB, no download permission needed; generated on first request when missing). An image that cannot be shown rejects withpreview_unsupported,preview_damagedorpreview_too_large(final: show a placeholder) orunavailable(still generating: retry later). Find document ids in the document link table<type>__<field>. Use it for images that depend on data;adlass-document:is for fixed images.openLink(url): https, mailto or tel; the host shows the full URL and opens it after the visitor confirms. Error codes:cancelled,conflict,condition_failed,forbidden,invalid,busy(another action is waiting for confirmation),rate_limited,query_failed,not_found,unavailable.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Fraunces:wght@600&display=swap">
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.6/dist/chart.umd.min.js"></script>
<style>
body { margin: 0; background: var(--color-background); color: var(--color-foreground); }
main { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1rem; }
h1 { font-family: Fraunces, serif; font-size: 1.75rem; margin: 0 0 1rem; }
#status { color: var(--color-muted-foreground); }
</style>
</head>
<body>
<main>
<h1>Revenue by month</h1>
<canvas id="chart" height="240"></canvas>
<p id="status">Loading…</p>
</main>
<script>
const status = document.getElementById("status");
adlassApp.ready
.then(({ locale }) => adlassApp.query("revenue_by_month", { since: "-180d" }).then(({ columns, rows }) => {
if (!rows.length) { status.textContent = "No revenue yet."; return; }
const at = (name) => columns.findIndex((column) => column.name === name);
const primary = getComputedStyle(document.documentElement).getPropertyValue("--color-primary");
new Chart(document.getElementById("chart"), {
type: "bar",
data: {
labels: rows.map((row) => new Date(row[at("month")]).toLocaleDateString(locale, { month: "short" })),
datasets: [{ data: rows.map((row) => Number(row[at("total")])), backgroundColor: primary }],
},
options: { plugins: { legend: { display: false } } },
});
status.textContent = "";
}))
.catch((error) => { status.textContent = `Could not load (${error.code || "unavailable"}).`; });
</script>
</body>
</html>Interaction
The kit handles clicks and forms inside the sandbox:
<a href="https://…">,mailto:andtel:open through the host's confirmation sheet;<a href="/path">navigates in the app (asnavigate);<a href="#id">scrolls to the element. Other links do nothing.http://links are a build warning (insecure_link).- Forms: a submit button or Enter runs the browser's validation and then
dispatches
submit, soonsubmithandlers work. Nothing is ever sent toaction; write throughadlassApp.action. - Downloads only through
downloadandexportQuery. - Do not use
alert,confirmorprompt; draw your own dialogs.
Design
You choose fonts, colors, layout, animation and graphics (inline SVG,
Chart.js, ECharts, D3 and similar). Style with the kit tokens: CSS variables
that follow the Space brand and the light or dark mode at run time, also
usable as Tailwind classes (bg-primary, text-muted-foreground,
rounded-lg):
- Surfaces and text:
--color-background,--color-foreground,--color-card,--color-card-foreground,--color-popover,--color-popover-foreground,--color-secondary,--color-secondary-foreground,--color-muted,--color-muted-foreground,--color-accent,--color-accent-foreground. - Brand accent:
--color-primary(the brand color) with--color-primary-foreground(text on it),--color-ring(focus). - Lines:
--color-border,--color-input. Errors:--color-destructive. - Status pairs:
--color-success/--color-success-foreground, likewiseinfo,warning,danger(soft background, strong text). - Chart series:
--color-chart-1to--color-chart-5(fixed, not branded). --radius-xsto--radius-xl; font sizes--text-xs,--text-sm,--text-base,--text-lg.
Brand: pages.view returns brand with set, primary, radius, mode
and the variable sets light and dark. Those sets use the MCP Apps names the
host sets on <html> at run time, and each kit token reads one of them:
--color-background = --color-background-primary, --color-foreground =
--color-text-primary, --color-primary = --color-background-inverse,
--color-muted-foreground = --color-text-secondary, --color-border =
--color-border-primary, --color-ring = --color-ring-primary,
--radius-md = --border-radius-md. Write the kit tokens in the source, not
the host names: --color-text-primary is the main text color, the brand
color is --color-primary. When brand.set is true the brand takes
precedence: use var(--color-primary) or bg-primary for accents, the
brand's radius through --radius-*, and keep dark mode working
([data-theme="dark"] on the root, or light-dark()).
Font, layout and the other colors stay free. A page that sets fixed
background and text colors sets both and settings.theme: "light".
- There is no CSS reset (no Tailwind preflight): the browser defaults for lists, headings, links and margins stay, as in any HTML document.
- The host frame already shows the title, the Space logo and name above the app; do not repeat them.
- Design for 390 px first: render shows both viewports and reports horizontal overflow.
- Every query has a loading, an empty and an error state.
Runtime limits
The frame runs with sandbox="allow-scripts" only, an opaque origin and a
CSP without network (connect-src 'none'), so:
- No
fetch, XMLHttpRequest, WebSocket or EventSource: data comes only from the manifest's queries. Anything loaded at run time (map tiles, CDN requests from a library) fails. - No
evalornew Function, no WebAssembly, no blob workers. Libraries that need them fail: Alpine.js (standard build), Vue with in-DOM templates, map libraries with tiles, WASM and worker based libraries. Mermaid as an ES module works. - No localStorage, sessionStorage, indexedDB or cookies (they throw in the opaque origin): keep state in memory.
- No
history.pushState/replaceState, no assignment tolocation, nowindow.open, no popups. <iframe>,<object>and<embed>fail the build (frame_not_allowed).@applyand@themein your own CSS are not processed. The boundary is the sandbox, the CSP and the server, which resolves every query and action against the manifest of the served version, applies the policies, checks identity,whenand revision, and accepts only typed parameter values from visitors. Visitor errors are neutral (query_failedwithout the SQL text). There is no model in the public frame. Data you write into the source is visible to every visitor of a link on that version: never put data in the code that the policies would hide.
Remaining window of actions: the policy, when and identity are checked in
their own read-only step right before the write; the revision check in the
write covers changes to the target record itself. When another table the
policy reads (for example the mapping of suppliers to contacts) changes in
the milliseconds between check and write, a permission just withdrawn can act
once more. This is accepted. Where it matters, decide with fields of the
target record in when, which the revision check covers.
Rate limits: per session 20 actions and 60 confirmations a minute; per link and IP 240 queries, 60 actions and 10 exports a minute.
Settings, results and lifecycle
settings: locale (de, en, es; default en), theme (system,
light, dark; the brand's mode wins), uploads.folder_id (target folder
of file inputs, required when an action takes files), show_brand (the
"made with Adlass" line in the frame).
pages.get shows the current and the released version, capabilities and
counters; holding only a share
link (/p/<token>), pages.resolve_link returns the same (read access to
its Space is still required). pages.list adds visits_30d and
visibility (also on pages.get): team without a usable link, restricted
when every usable link asks for a password or an email, link when one opens
for anyone; and source_document (id, name) on a live_document page; include_preview adds
preview_image_url and the visits of the last 7 days. pages.versions_list
lists the versions with current, released, released_at and
link_count.
pages.visits_list returns every visit with its events: OPENED, UNLOCKED,
UNLOCK_FAILED, QUERY (query, parameter names, offset; only when parameters or
an offset were given), ACTION (action_key, record_id), DOWNLOAD (asset_key,
query and format, or the document), UPLOAD_COMPLETED, LINK_CLICKED (url),
APP_ERROR (at most 5 per visit), HIDDEN, VISIBLE, LIVE_CONNECTED,
LIVE_EDITED. pages.stats aggregates visits, unique visitors, duration and
downloads. What visitors write lands as records: follow it with
record.created or record.updated of the target type.
pages.update also organizes a page for the whole Space without a new
version: name, category (free, at most 40 characters; null or "" clears it) and
featured (listed first for everyone). Reuse a name from categories of
pages.list (first page only, most used first); only when none fits, create a
short plural name in the language of the Space. Feature sparingly, only the
few pages the team opens most. pages.list filters by featured and
category ("" = without category).
pages.archive disables every link and removes the featuring; saving a
version never brings the page back. pages.archive with archived: false
restores it; its links are re-enabled one by one with pages.links_update. pages.delete revokes
every link and anonymises visitor data; uploaded documents remain.
A routine that keeps a page current needs no new version: the data is live. A routine run creates pages and versions but never shares or releases them (read_docs("routines")).