ObjectStackObjectStack
Protocol Upgrade Guide

Protocol 18 → 19 upgrade guide

The mechanical conversions and the semantic to-dos for moving metadata from protocol 18 to 19, generated from the ADR-0087 registries.

Prerelease. Protocol 19 ships on the next dist-tag (@objectstack/spec@19.0.0-next.1 in this tree) until 19.0 GA; entries can still land before then.

Generated at docs build from the ADR-0087 registries on main (@objectstack/spec conversions/ + migrations/): an entry shows here once it merges, before the release that ships it. What a given release shipped is its own copy: every @objectstack/spec release after 17.7.0 carries protocol-upgrade-guide.md in the package and attached to its @objectstack/spec@VERSION GitHub Release; 17.7.0 and earlier carry none.

How to upgrade — from protocol 16 onward

objectstack migrate meta --from <your-major>   # replays every hop from your major to 19, in order
objectstack migrate meta --from 16 --step      # checkpoint after each major (bisect a failure)
objectstack validate && tsc --noEmit && <your tests>   # your own verify loop is the acceptance test

Mechanical rewrites are applied for you and reported as a diff; semantic TODOs are printed with acceptance criteria and are yours to resolve — the chain never auto-applies a change that requires judgment.

The chain's support floor is protocol 16 — 3 majors behind the current protocol 19, and no earlier. A consumer further behind must reach protocol 16 by another path first (an older @objectstack/cli still carries the retired steps) before this command will run. From protocol 16 forward, replaying every remaining hop in one command is the designed-for case — that part of timeliness is never load-bearing (ADR-0087); arriving from before the floor is not supported at all.

Protocol 18 → 19

Protocol 19 moves the load-time handshake: a manifest whose engines.protocol range admits protocol 18 and not 19 is refused before any of its metadata loads, so each manifest an app or package declares moves its range to ^19, together with its @objectstack/* versions. An agent's model.provider leaves the shape: no runtime ever read it, and the provider that serves an agent is the deployment's choice, so the key is deleted and the model name stays. View All and Modify All stop casting a field vote: viewAllFields: true is written beside them in every permission set entry of a source that predates the switch, so the migrated source keeps the field reads those bits cast; the semantic entry names what it does not keep. It also admits the knowledge source as a metadata type (knowledge_source, ADR-0161 K4) and settles its keys on the way in: id becomes name and source.contentFields becomes source.content, a list of field names in which '*' is refused, because each listed field is sent to the embedding provider; embedding, vectorStore, adapterConfig and refresh.cron, which nothing read, are removed; and the file and http source kinds leave with their four keys, so a source indexes the records of one object.

Mechanical (applied for you)

ConversionSurfaceChangeLoad window
knowledge-source-id-to-nameknowledge_source.idknowledge source key 'id' → 'name' (a knowledge source is a metadata type from this major, and a metadata item is identified by its name; the value is unchanged, so no index is rebuilt)retired — migrate meta only
permission-view-all-fields-beside-record-bypasspermission.objects.*.viewAllFields — absent beside viewAllRecords: true or modifyAllRecords: trueobject-permission entry ('*' included) with 'viewAllRecords: true' or 'modifyAllRecords: true' and no 'viewAllFields': 'viewAllFields: true' written beside it (from protocol 19 View All and Modify All widen records only and cast no field vote; the bit keeps every field read they cast. Modify All's edit vote is not kept, and the set's own readable: false rows now bind)retired — migrate meta only
agent-model-provider-removedagent.model.provideragent model key 'provider' removed: no runtime ever read it — the provider that serves an agent is chosen by the deployment's AI settings, never by the agent. The key is deleted; the model name, temperature and every other model key stayretired — migrate meta only
knowledge-source-content-fields-to-contentknowledge_source.source.contentFieldsknowledge source key 'source.contentFields' → 'source.content' (the list of fields whose text is embedded; a list of field names moves unchanged. A '*' member is kept and reported as a TODO: it has no mapping, and the parse refuses it until the author lists the fields)retired — migrate meta only
knowledge-source-inert-keys-removedknowledge_source.embedding / knowledge_source.vectorStore / knowledge_source.adapterConfig / knowledge_source.refresh.cronknowledge source keys 'embedding', 'vectorStore', 'adapterConfig' and 'refresh.cron' removed (ADR-0049 — none was read: the deployment configures one embedder and installs one store adapter, no adapter in the repository reads a per-source config bag, and no scheduler read the cron expression. Schedule a rebuild from a flow or a job that calls the knowledge service instead)retired — migrate meta only

Semantic (delegated to you, with acceptance criteria)

  • agent-model-provider-retired — agent.model.provider — left the shape (the provider is the deployment's choice); agent.model.model, temperature, maxTokens and topP are unchanged → no provider key: delete model.provider, whatever it held. The provider that serves an agent is chosen by the deployment's AI settings. An agent that must run on a particular model names it in model.model, which the deployment resolves among the providers it has turned on; an agent that names no model runs on the deployment's default model
    • Why not automatic: ADR-0049 enforce-or-remove: model.provider was parsed and never read. The cloud AI runtime, the one runtime that executes agents, applies the model name, temperature and maxTokens from the model block and nothing else, so an agent that declared anthropic ran on whatever provider the deployment served. The providers a deployment can turn on are its own AI settings, and the key's four values (openai, azure_openai, anthropic, local) neither matched that list nor could follow it. Authoring now refuses the key with a prescription, and TypeScript rejects it. The D2 conversion agent-model-provider-removed deletes it from existing sources and stored rows, losslessly: no value of it ever chose a provider. What no conversion can decide is whether the model an agent names is one the target deployment offers: an author who wrote a provider meant a model from it, and the deployment resolves the name only among the providers it has turned on
    • Done when: No agent declares model.provider; the key is refused at parse with its prescription, and TypeScript rejects it. Every agent that must run on a particular model names it in model.model, and that name is one of the models the target deployment's AI settings offer. Every agent parses under the new schema.
  • book-audience-two-gates-and-catch-all-claim-refused — A book `audience` object carrying both `permissionSet` and `systemPermission` (refused at the parse, by `defineStack`, `os validate` and the `/meta` save); a book whose `audience` is `{ permissionSet }` or `{ systemPermission }` with a group claiming docs by `include: '*'` (`book-gated-catch-all-include`, an error from `os validate` / `lint` / `build` and from the runtime publish gate) → Keep one gate: { systemPermission: '<capability>' } for everyone who holds the capability through any permission set, or { permissionSet: '<set>' } for the holders of that one set. Claim a gated book's pages by name: a namespace glob (include: '<namespace>_*'), a tag include or pinned pages
    • Why not automatic: A two-gate audience parsed as the set form with the capability dropped, so the book was gated on the set alone while its author believed it was gated on the capability. A gated catch-all claims every stored doc bound to no package as well, because a package scope leaves out only a doc stamped with another package, and hides it from every reader outside the audience. Stored books are not rewritten or refused at boot; the next save or publish of such a book is refused with the fix named.
    • Done when: os validate reports no book-gated-catch-all-include and accepts every book audience; a save of every book the package carries succeeds.
  • data-table-staged-edit-retired — object-grid / data-table host interface — the staged edit model: `<ObjectGrid cellSelection={false}>`, the `onBatchSave` handler on `<ObjectGrid>` and on the `data-table` schema, `data-table`'s `singleClickEdit`, and an editable `data-table` mounted without a cell-selection host or an `onRowSave` handler → Select-first editing with one save per committed cell. Pass onRowSave to <ObjectGrid> to own persistence record by record, or pass nothing and let the grid write through its own dataSource.update. A host may still pass cellSelection={true}; without the prop an editable grid is select-first and a read-only grid opens a record on a click. A bare data-table edits only inside a cell-selection host with an onRowSave handler, or is rendered as object-grid instead.
    • Why not automatic: The staged model kept edited cells as pending changes behind a "Save All" bar and handed them to onBatchSave together. It is gone, not deprecated: cellSelection accepts only true, onBatchSave is a never key on both type faces and refused by name in the parse, and singleClickEdit is no longer declared. A host that passed cellSelection={false} to get click-to-edit and a save bar now gets select-first editing that saves each cell as it is committed, so a batch handler it relied on for one transaction per save is never called. An editable data-table without a cell-selection host and an onRowSave handler now renders read-only and logs a console warning instead of staging edits it had nowhere to save. Only the host's author can tell whether per-record saves are acceptable where a batch was, and which help text and tests describe the old gestures.
    • Done when: No host passes cellSelection={false} or an onBatchSave handler, and no data-table schema carries singleClickEdit or onBatchSave; the type check refuses all of them. Every editable grid either passes onRowSave or relies on its data source to save each committed cell, and its help text and tests describe a click that selects a cell, a double-click, Enter, F2 or typing that opens its editor, and no "Save All". No editable data-table logs the read-only warning at mount.
  • disabled-holder-package-less-row-bare-write-refused — A write of a metadata item that names no package (PUT /api/v1/meta/TYPE/NAME in publish mode and with ?mode=draft, DELETE /api/v1/meta/TYPE/NAME, its draft discard with ?state=draft, and the in-process save and delete of a metadata item with no packageId; POST /api/v1/meta/TYPE/NAME/publish and POST /api/v1/meta/TYPE/NAME/rollback, and the in-process publishMetaItem and rollbackMetaItem with no packageId), for a name held only by installed packages that are disabled, of a type the registry reads by package, while a package-less row or a package-less draft is stored for that name (for the publish and the rollback, also with none stored: the publish of the disabled package's own draft, the rollback of its own row, and the rollback that stores the package-less row again from its history). Where the package-less write onto a packaged item was already closed (ADR-0146 D11: 403 NOT_OVERRIDABLE for the save, the delete, the publish and the rollback), only the draft discard moves → Enable a package that holds the name (PATCH /api/v1/packages/ID/enable; GET /api/v1/packages shows which packages are disabled), then send the same write again: it edits, drafts, removes, publishes or rolls back the package-less row as it did before. While every holder stays disabled the write answers 409 RESOURCE_CONFLICT and stores, edits and removes nothing. Naming the package on the write (?package=ID) is not the fix: it addresses that package's own row, so it leaves the hidden row where it is and stores a second row beside it. An item the ADR-0146 D11 close covers (one read-only code package ships it, with a pair, and os migrate packageless-overlays would move its row) is the exception this entry does not change: its save, its delete, its publish and its rollback naming no package answer that close first, 403 NOT_OVERRIDABLE with that close's own remedy, with the package enabled or disabled; there only the draft discard answers this 409. The publish of the disabled package's own draft and the rollback of its own row are the other exception: they address that package's own row, so their refusal names ?package= as the fix, as the save with no package-less row stored does, and the publish or rollback naming the package (?package=ID) goes through while it stays disabled.
    • Why not automatic: A package-less row stored at a name a package holds is that package's customization, never a second item, and a disabled package's items are withheld from every read that names no package. The writes that name no package still reached the row: the save edited it unseen, the draft save stored a draft the draft read then answered 404 for, the draft discard removed it, the delete removed the row, the publish promoted a draft into it and the rollback rewrote it, so enabling the package again served its item without the customization, or with a body nobody saw land. The save, the draft save, the delete and the draft discard now judge the name's holders past a stored package-less row, as they already did with none stored. The publish and the rollback judge them wherever they write: the publish where it promotes the package-less draft or the disabled package's own draft, the rollback where it restores the package-less row, stored or not, or the disabled package's own row. The two that write the package's own row answer the ?package= remedy, as the save with no package-less row stored does. A name no package holds, a package-less row at a name an enabled package holds, and, for the save, the draft save, the delete and the draft discard, a name only disabled packages hold with no package-less row stored (its refusal keeps the ?package= remedy) answer as before. There is no mechanical rewrite: whether the disabled package should be enabled again is a judgement about the deployment.
    • Done when: For every name whose holders are all disabled and for which a package-less row or draft is stored, where the ADR-0146 D11 close leaves the package-less write open: PUT /api/v1/meta/TYPE/NAME (publish mode and ?mode=draft), DELETE /api/v1/meta/TYPE/NAME (and ?state=draft), POST /api/v1/meta/TYPE/NAME/publish and POST /api/v1/meta/TYPE/NAME/rollback naming no package answer 409 RESOURCE_CONFLICT and leave every stored row of the name byte-identical (the publish where the draft it promotes is the package-less one, the rollback where it restores the package-less row; a publish with no draft answers as before). With no package-less row stored, the publish of a disabled package's own draft and the rollback naming no package answer the same 409 and write nothing: the ?package= remedy where they write the package's own row, the enable remedy where the rollback would store the package-less row again. Where that close applies, the draft discard answers the same 409, and the save, the draft save, the delete, the publish and the rollback answer 403 NOT_OVERRIDABLE as they did before, storing nothing. Once a holder is enabled again, the read naming no package serves the package-less row as it was stored, and the same writes answer as they did before the disable.
  • flow-condition-bare-ordering-before-record-date-arithmetic-refused — automation.Flow conditions (a start node config.condition, edges[].condition, a decision node's config.conditions[].expression) that order a date or datetime field of the object the flow is typed against, read by its bare name, against a text literal before they do arithmetic against a number on the same or another such field read through record.FIELD or previous.FIELD (due_date > "2026-01-01" && record.due_date + 1 > 5). The all-bare (due_date > "2026-01-01" && due_date + 1 > 5) and all-root (record.due_date > "2026-01-01" && record.due_date + 1 > 5) spellings were refused already. Not the shape: the arithmetic written first (refused already as date-arithmetic), an ordering or equality of the root read (record.due_date < today()), or daysBetween / addDays / addMonths over it → keep the ordering and replace the arithmetic: daysBetween(a, b) for the span in whole days (due_date > "2026-01-01" && daysBetween(record.due_date, today()) > 5), and addDays(d, n) / addMonths(d, n) / daysFromNow(n) to shift a date (addDays(previous.due_date, -7) < today())
    • Why not automatic: A flow run binds the trigger record twice: its fields flattened to bare names, and the row itself as record, with the row before the write as previous. A date field reaches the run as its YYYY-MM-DD text and a datetime field as its ISO-8601 instant text, so record.due_date + 1 faults the evaluator on every run, and a flow condition that faults fails the run (ADR-0032 section 1c). The authoring type check met the bare ordering against the text literal first, which the runtime answers, and set the whole condition aside; the record-root date-text check then read the root arithmetic as answered by the first check, which had answered nothing, so no finding was given. It now refuses the condition with the code, outcome arm and words the all-root spelling takes (date-text-arithmetic-run-fails / date-text-arithmetic-run-may-fail), naming the read as written. There is no mechanical rewrite: whether the author meant a span in days or a shifted date is a judgement about the condition. ADR-0032 / ADR-0087.
    • Done when: os validate and os build report no date-text-arithmetic-run-fails or date-text-arithmetic-run-may-fail finding on a flow condition that orders a bare date name and does arithmetic on a record or previous read of a date field; POST /api/v1/packages/PKG/publish-drafts publishes the flow; a write that should start it runs past the condition instead of failing there. A stored flow carrying the shape still registers (registerFlow logs it as an advisory) and keeps failing at that condition on every run until it is rewritten and published.
  • knowledge-source-content-lists-fields — A knowledge source's `source.contentFields`, and the `'*'` member that list accepted: in a `knowledgeSources` entry and in a source registered in code (`KnowledgeServicePlugin({ sources })`, `IKnowledgeService.registerSource`) → source.content: a non-empty list of field names of the object the source indexes. Where the list held '*', write the names of the fields whose text should be searchable. A field with secret: true, a credential-class field and an internal field are never embedded, named or not.
    • Why not automatic: The D2 conversion renames the key and moves a list of field names unchanged, so no document and no index changes. '*' asked the service to embed every non-system field of the object, the ones added after the source was written included. Each field in content is sent, for every record the source selects, to the embedding provider the deployment configures, so the list is a statement of what leaves the deployment, and a wildcard states nothing. The parse now refuses the member and names the fix; it refuses an empty-string member too, which named no field and indexed nothing: remove it. the chain replay renames the key, keeps the member and reports the site as a hand edit. Which fields to list is known only to the source's author: the ones users search by, and none that should not be sent to the provider.
    • Done when: No knowledge source writes contentFields, and none lists '*' in content; the parse refuses both. For each source that used '*', the fields now listed are the ones its searches should match, a search that found a record through a field left off the list is known and accepted, and a reindex has run: the changed list is a changed content recipe, which the service rebuilds inside the index generation at the next boot or source reload.
  • knowledge-source-file-http-kinds-retired — A knowledge source whose `source.kind` is `file` or `http`, with its keys `prefix`, `mimeTypes`, `urls` and `userAgent`; and host code that calls `IKnowledgeService.indexDocument` or `deleteDocument` → A source indexes the records of one object: source: { kind: 'object', object, content: [...] }. Text that lives in files or behind URLs is searchable once it is in records: load it into an object (an import, a flow or a connector) and declare a source over that object. The knowledge service then assembles, splits and embeds each record, keeps the index in step with record changes, and re-reads every hit as the asking user. There is no call that hands the service a document.
    • Why not automatic: The schema accepted three kinds of source and the service built an index from one. A file or http source registered without error and indexed nothing by itself: no loader read prefix or urls, and its documents existed only if host code pushed each one through indexDocument. Documents pushed that way had no record behind them, so a hit could not be re-read as the asking user, which is how every other answer is permission-checked. The two kinds, their four keys and the two push members are removed together: the parse refuses the kinds and the keys and names the fix, and a call to either member no longer compiles. An index that host code filled through the push door is not rebuilt by the platform, because the platform never knew where its documents came from. Where those documents should live as records, and who may read them there, is the application author's decision.
    • Done when: No knowledge source has source.kind other than object or carries prefix, mimeTypes, urls or userAgent, and no code calls indexDocument or deleteDocument on the knowledge service. For each retired source whose content still has to be searchable: the content is held in records of an object, a source over that object lists the fields to embed, a search finds it, and a user who may not read a record does not get it as a hit. Whatever an adapter still holds under a retired source's name is removed from its store.
  • knowledge-source-inert-keys-retired — A knowledge source's `embedding`, `vectorStore`, `adapterConfig` and `refresh.cron`, in a `knowledgeSources` entry and in a source registered in code; and the exported schemas `EmbeddingModelSchema`, `VectorStoreSchema` and `VectorStoreProviderSchema` with their types → (removed — none of the four was read.) The embedder is configured once for the deployment, in the knowledge settings; the store is the adapter the deployment installs, named by the source's adapter; an adapter's own options are its plugin's options. To rebuild an index on a schedule, call reindexSource from a flow or a job. refresh.onRecordChange is unchanged.
    • Why not automatic: The D2 conversion deletes the four keys from every knowledgeSources entry, one notice per key, and the delete is lossless: the knowledge service embedded with the deployment's one embedder whatever a source's embedding said, wrote to the store of the adapter the source names whatever vectorStore said, handed adapterConfig to no adapter in the repository once the one that read it left, and started no scheduler from refresh.cron. The judgment is what each was written to achieve. A source that named a model expected its vectors to come from that model; one that named a store expected its documents there; one with a cron expression expected a periodic rebuild that never ran. Whether the deployment's embedder and adapter are the intended ones, and whether a schedule is still wanted, is known only to the deployment's owner.
    • Done when: No knowledge source carries embedding, vectorStore, adapterConfig or refresh.cron; the parse refuses each, and no code imports EmbeddingModelSchema, VectorStoreSchema or VectorStoreProviderSchema. Searches answer exactly as before the upgrade. For every source whose removed key stated an intent that still matters: the deployment's knowledge settings name the embedder it expected, its adapter names the store it expected, and a flow or job calls reindexSource on the schedule its cron expression described.
  • knowledge-source-registration-governed — A knowledge source registered in code: `KnowledgeServicePlugin({ sources })` and `IKnowledgeService.registerSource(source)`; the source ids code passes to `getSource`, `unregisterSource`, `reindexSource` and `search`'s `sourceIds`; and the `sourceId` on the hits `search` returns → Write the source in the shape of the knowledge_source type: name where id stood, a name that starts with a letter, and no key the type does not declare. Prefer shipping it as metadata, in the stack's knowledgeSources. Give a source registered in code a name no source authored in the environment uses. Where a package ships a source of the same name, name the package's source by its face NAMESPACE-NAME and the one registered in code by its bare name. A source whose id began with an underscore takes a new name; once it has been built under that name, drop the index its adapter still holds under the old id: call dropSource({ source }) on that adapter (IKnowledgeService.getAdapter), where source is the source with its name set to the old id. An adapter without dropSource keeps that index until it is removed in the adapter's own store.
    • Why not automatic: Before this release the code door stored what it was given: a key the schema did not declare was kept and ignored, an id could start with an underscore, and a second registration of an id replaced the first with a warning. The door now parses with the type's one schema, so each of those is refused when the source is registered, with the parse's own prescription; the D2 conversion renames id in a stack, and a TypeScript registration that still writes it does not compile. A source registered in code belongs to no package: it is read as the environment's own source and keeps its name, its index and its documents, so nothing is rebuilt. One source is the exception: one whose id began with an underscore. Its name has to change, and an adapter keys everything it holds for a source by the source's name. So the renamed source is built from nothing under its new name, as a source the adapter has never held is: every record it covers is read, and on an adapter that embeds, the content fields of each are sent to the embedding provider again. The adapter also keeps the index it built under the old id. No source holds that key any more: nothing searches that index or keeps it in step with the records, and nothing drops it, because the service drops the index of a knowledge_source item it stops serving and never that of a registration in code. A source registered in code shares one slot with a source of the same name authored in the environment, and whichever of the two arrives second is refused (409 RESOURCE_CONFLICT, naming both doors) instead of replacing the first; registering the same name again through the code door still replaces the earlier registration. A package may ship a source of that name too, and both are kept: a bare name then means the one registered in code, and the package's is named by its face. A hit's sourceId is that same spelling, so it is no longer always the bare name. Whether a key the door used to ignore stated something the author still wants, which of two same-named sources a caller meant, and when an index left under an old id may be dropped, only the application's author knows.
    • Done when: Every source the application registers in code parses with KnowledgeSourceSchema and the application boots with no refusal from the knowledge service. No source registered in code shares its name with a source authored in the environment. Code that compares a hit's sourceId, or passes a source id to the knowledge service, uses the spelling search_knowledge lists for that source. A search that answered before the upgrade answers the same records after it, without a rebuild. For a source whose id began with an underscore, it answers them once the one build under the new name is complete, and the adapter holds nothing under the old id.
  • lookup-depends-on-param-computed-field-refused — object.fields.<field>.dependsOn[] on a lookup, master_detail or user field — the filter key the entry scopes the referenced object by (`param` in the { field, param } form, else the bare name or `field`), when it names a field of the referenced object computed on read (a formula) → a stored field of the referenced object that holds the same value, written as { field: 'this_record_field', param: 'stored_referenced_field' }; or drop the entry when the picker need not be scoped.
    • Why not automatic: The record picker filters its candidates, and the importer scopes a lookup cell, by this key on the referenced object, and the engine refuses every filter on a field computed on read. Such an entry published clean, then every picker query it scoped was refused and every import of the column failed its lookup. object-field-ref-unknown now reports it as an error, on objectstack validate and at the runtime publish gate. No D2 conversion exists: only the author knows which stored field carries the value the formula computes.
    • Done when: Run objectstack validate: no object-field-ref-unknown finding says a dependsOn entry names a field computed on read. For each entry it named, the filter key is a stored field of the referenced object, or the entry is gone, and the record picker lists candidates once the field it depends on has a value.
  • permission-view-all-modify-all-cast-no-field-vote — security.permission.objects.*.viewAllRecords and .modifyAllRecords (ObjectPermissionSchema), the `*` entry included — their field vote; and security.permission.objects.*.viewAllFields beside them → Add viewAllFields: true to every objects entry (the * entry included) that carries viewAllRecords: true or modifyAllRecords: true and should still read every field of its object. FROM objects: { crm_lead: { allowRead: true, viewAllRecords: true } } (read every field of crm_lead, including one another set hides) TO objects: { crm_lead: { allowRead: true, viewAllRecords: true, viewAllFields: true } }. Beside Modify All the set's own readable: false row now hides its field from the set's holders even with the bit: delete that row where they should still read the field. The edit is not restored by any bit, for a field another set locks or a field the set's own field row names without editable: true (an omitted editable is false): grant it with an explicit editable: true field row in the set that should edit it.
    • Why not automatic: From protocol 19 View All (viewAllRecords) and Modify All (modifyAllRecords) widen RECORDS only and cast no field vote. Until 19 View All voted every field of the object readable and Modify All voted every field readable and editable, so one set's bit re-opened a field another set hid with readable: false and unlocked a field another set locked with editable: false. Reading every field is now viewAllFields: true, which votes read on every field of the object (fields added later included) and never votes edit.

What changes: (1) a set holding View All or Modify All on an object, without viewAllFields, no longer reads a field another set hides; (2) Modify All no longer votes an edit, so a field another set locks stays locked for its holders, and so does a field the set's own field row names without editable: true (an omitted editable is false), with no second set involved; no bit restores that edit, the built-in admin sets (admin_full_access, organization_admin) included: they keep reading every field through the viewAllFields: true on their * entry, and no longer edit a field a set they also hold locks; (3) a set's own readable: false rows bind beside its own Modify All, as they already bound beside its own View All (with viewAllFields a field row of the same set beats it); (4) explain no longer reports a row-conditioned field lock as "superseded" by the Modify All field vote: the lock binds per row for every caller; (5) in @objectstack/lint the warning security-superuser-field-mask-inert is retired, since a set's own rows now bind beside its own View All or Modify All, and security-cross-set-field-reopen reports only a field one set hides that another set's viewAllFields re-opens. What does not change: which RECORDS the bits reach, the row-level bypass every sharing and RLS reader folds through, and any field no set names, which still follows the object grant.

SOURCE permission sets: os migrate meta --from 18 --write adds viewAllFields: true beside every such bit (the D2 conversion permission-view-all-fields-beside-record-bypass), so their field reads are kept. The conversion replays only there: it is a default flip, retired from the load path, so the authoring funnel skips it, and the artifact-ingestion door and every stored-row read (applyConversionsToStoredItem) refuse it by id.

STORED permission sets (Studio-saved, in sys_metadata): they are NOT rewritten on upgrade and are read with the 19 meaning, by maintainer ruling. Studio's permission matrix has no viewAllFields control today (it keeps the key when it saves a set that already carries it), so restore a stored set's reads by adding viewAllFields: true to its entry through the metadata API. No command lists the affected stored sets yet. The error direction is fewer fields seen, never a field opened.

  • Done when: Before or after moving a deployment to protocol 19, the one-step check, for every permission set in source and every one stored in the deployment: the set is affected when one of its objects entries, the * entry included, has viewAllRecords: true or modifyAllRecords: true and no viewAllFields. For each such entry whose holders should still read every field of the object, add viewAllFields: true. Beside View All that restores every read. Beside Modify All it does not restore a field the same set's own readable: false row hides: that row now hides the field from the set's holders, so delete it where they should still read the field. Sets in source: run os migrate meta --from 18 --write, which adds the bit to every such entry, then delete it where the set should NOT read fields another set hides. Stored sets: they are not rewritten and read with the 19 meaning; add the bit to each affected entry through the metadata API (Studio has no control for it today). Then, where a Modify All holder must still EDIT a field, add an explicit editable: true field row in the set that should edit it: for a field another set locks, and for a field the set's own field row names without editable: true (an omitted editable is false), which loses its edit beside Modify All with no second set involved. A set whose entry lacks the bit only sees fewer fields after the upgrade: no field that was hidden opens, and a set whose object has no field row in any set changes nothing at all. os validate reports security-cross-set-field-reopen on a field one set hides that another set's viewAllFields re-opens, so a bit added where the hide was meant is visible there.
  • protocol-18-range-refused — manifest.engines.protocol (else engines.platform, else the legacy engine.objectstack) — a range that admits protocol 18 and not 19, such as '^18', on an app's manifest, on each package manifest of a multi-package app, or on a package installed through the package service or the marketplace → Declare the protocol-19 range: engines: { protocol: '^19' }. objectstack migrate meta --from 18 --write rewrites the range of a root defineStack manifest, at the key the handshake reads. A manifest composeStacks composes from several packages has no one literal to rewrite: the command writes nothing there and lists the range for a hand edit, so change it in each package manifest. Move it together with the @objectstack/* versions: an 18.x runtime refuses '^19'.
    • Why not automatic: PROTOCOL_VERSION moved to 19.0.0, and the load-time handshake (ADR-0087 D1) compares only the major of a manifest's declared range with it. A range that admits 18 and not 19 is a major-version break, so the app plugin, the package service and the marketplace install refuse it with OS_PROTOCOL_INCOMPATIBLE before any of its metadata loads, naming the declared range, the runtime protocol and objectstack migrate meta --from 18. ⚠️ No D2 conversion: the range is the author's statement of the protocol the metadata was written against, so the runtime never rewrites it. ADR-0087.
    • Done when: Grep every manifest the project declares (objectstack.config.ts and each package manifest) for an engines.protocol range that does not admit 19. Run objectstack migrate meta --from 18 --write: it rewrites a root defineStack manifest's range to '^19', and for a manifest composed by composeStacks it writes nothing and lists the range left for a hand edit, so set each package manifest to '^19' yourself. Once every range admits 19, no door refuses the manifest with OS_PROTOCOL_INCOMPATIBLE; a manifest already declaring '^19' passes the handshake exactly as before. This hop edits or refuses the range and nothing else: a key retired in this release that the metadata still carries is refused at parse by its own message, which names its own remedy.
  • publish-refuses-seeds-and-actions-that-save-and-do-not-work — Three author-time errors, run by the runtime publish gate and by `os validate` / `lint` / `compile` / `build`: a seed record key or seed `columns` key the engine's insert door refuses, naming no field of the dataset's object, no system column the platform injects on it and none of `id` / `created_at` / `updated_at` (`seed-record-unknown-field`); a seed dataset, a flow `get_record` / `create_record` / `update_record` / `delete_record` / object-form `screen` node, or a standalone action bound to an object that does not exist (`object-reference-unknown`, a warning `object-reference-unregistered-platform` for a platform-prefixed name no known package registers; the seed binding on the CLI only, because at the publish door the save door already refuses a seed over an unknown object; the flow node a warning on the CLI, where a declared dependency the build cannot see may define the object, and an error at the publish door); an L2 action body that calls a `ctx.api` write without `api.write` in its `body.capabilities` (`action-body-write-capability-undeclared`) → Spell the seed key as the field it means, declare the field, or drop the key; point the binding at an object the stack or its artifact defines, an object it extends, or a platform object by its full name; add api.write to the action body's capabilities, or remove the write
    • Why not automatic: Each one parses and publishes, then does not work: the seed load refuses a record with a key the engine's insert door refuses and loads the rest, so the record is missing at boot; a seed over a missing object loads nothing, a flow step bound to an object no installed package defines fails the run every time it executes, and an action bound to one is carried by no page; the sandbox refuses a body's write it was not granted (403 INSUFFICIENT_PRIVILEGES) every time the action reaches it. Stored metadata is not rewritten or refused at boot. The next publish of a seed, flow, action or object that carries one of these is refused with the fix named. An action write is also judged for its params' reference / objectOverride objects, as os validate already judged them, and an action saved into a package is judged against that package's closure, as a flow saved there already was: an object another package owns resolves only when the manifest declares that package in dependencies.
    • Done when: os validate reports none of the three errors; a publish of every seed, flow, action and object the package carries succeeds.
  • translation-related-list-key-under-arrangement-refused — translation.objects.<object>._relatedLists.<list> — a translated record-page tab title, in a stack's translations, over a list the object's owner labels but the paired .custom package's relatedLists re-states as { list, hidden: true }, as a bare name, or as an entry with no label (a bare child name such as event covers every list of that child, event.related_to included, so a labelled { list: event, label } also leaves the owner's event.related_to with no label) → nothing, where the tab should stay hidden or keep the child lookup field's relatedListTitle: drop the key. Where the tab should keep the owner's translated title, re-state the .custom arrangement's entry with the owner's own label ({ list, label }) and keep the key: an object read translates a label only while it still equals the packaged one.
    • Why not automatic: The registry applies the .custom arrangement (ADR-0146 D10) after the owner's tab list and every place entry, and each of its entries replaces every entry it covers. A hidden entry leaves no tab, and a bare or unlabelled one leaves the tab titled by the child's relatedListTitle, so the served object carries no label on that list and nothing reads the key. translation-target-unknown judged the owner's label first and accepted the key before it looked at the arrangement, and never saw the arrangement's bare names. It now folds the arrangement as the registry does and reports such a key as an error. No D2 conversion exists: only the author can say whether the tab was meant to lose its title or the arrangement to keep one.
    • Done when: Run objectstack validate: no translation-target-unknown finding names an objects._relatedLists key. For each key the finding named, either the key is gone, or the .custom arrangement's entry for that list carries the owner's label and the record page shows the translated title in that locale.

Machine-readable equivalents: spec-changes.json (shipped in @objectstack/spec and attached to each GitHub Release) and the structured output of objectstack migrate meta --json.

On this page