Skip to content

Commit 0b288d1

Browse files
committed
Merge remote-tracking branch 'origin/main' into claude/project-thread-j2xdku
2 parents 0f655ef + 7b3e955 commit 0b288d1

62 files changed

Lines changed: 4035 additions & 355 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
---
4+
5+
fix(plugin-audit): a host checkpoint signer, sink or cluster service that is registered but fails to resolve stops the sealer instead of falling back
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The audit sealer (ADR-0154) resolves three host seams on each pass: `audit.checkpointSigner`, `audit.checkpointSink` and `cluster`. It turned every resolution error into "not registered". A host signer whose factory threw (a KMS client that cannot start, a missing credential) was therefore replaced by the local signing key, a failing sink dropped the off-host export, and a failing cluster service let the pass run on the in-process lock. Nothing was logged. A seam registered as a factory was never built at all, because the sealer used the synchronous accessor, so a factory-registered host signer was silently ignored.
11+
12+
Now only an absent seam falls back: no host signer signs with the local key, no sink exports nothing, no cluster service takes the in-process lock, all as before. A seam that is registered and resolves is used, including one registered as a factory. A seam that is registered and fails to resolve stops the pass: no checkpoint is signed, and the sealer reports it at `error`, naming the slot, once while it lasts. Each pass retries.
13+
14+
A host whose signer, sink or cluster registration was failing used to seal silently with the local key or without its lock; it now seals nothing until the registration is fixed. A working host sees no change.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/cli': patch
3+
---
4+
5+
fix(cli): `objectstack start` leaves nothing of its process group behind when it exits on SIGTERM
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
On a project with an `objectstack.config.ts`, a SIGTERM sent to the `objectstack start` process made it forward the signal to its `serve` child and exit with the child's code, as before, but one process of its group was still alive at that moment: the esbuild service `serve` started to bundle the config. esbuild keeps that service process for the life of its caller and it leaves only after the caller has exited, so a supervisor that read the group right after `start` exited (a container runtime, systemd, a drill reading `kill(-pid, 0)`) found a leftover process.
11+
12+
`serve` now stops the esbuild service as soon as the config module has loaded, at boot. The service exits while `serve` is still alive to reap it, so when `start` exits on SIGTERM no process of its group is left. Boots from `--artifact` or `--prebuilt` never started the service and are unchanged.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
'@objectstack/lint': minor
3+
'@objectstack/spec': minor
4+
---
5+
6+
feat(lint)!: a `lookupFilters` `{ $record: "path" }` path through or to a multi-valued field is refused
7+
8+
Clause-②: no (narrowing) — a `lookupFilters[].value` `{ $record }` path on a lookup, master_detail or user field whose first segment is a multi-valued field of the object owning that field (a plain path to it, or a hop through it), or whose leaf behind a single-valued hop is a multi-valued field, linted clean and published; it is now refused at error as `object-field-ref-unknown` by `os lint`, `os validate`, `os build` and the runtime publish door, and reported (never refused) on the package publish receipt's object probe.
9+
Metadata-protocol: narrowed
10+
Skills-docs: follow-up #34201 — no doc or skill teaches `{ $record }` yet, so there is no teaching to correct here; the multi-valued clause rides the describes this change edits.
11+
12+
<!-- adr-0087: registered lookup-filter-record-path-multi-valued-refused -->
13+
14+
**BREAKING** only for a `{ $record }` path that reads a list. A `{ $record }` comparand stands for ONE value of the record being edited and pairs only with `eq`, `ne`, `gt`, `lt`, `gte` or `lte`, but the path check judged only that each segment names a field, so `{ $record: "accounts.cb_market" }` through a `multiple: true` lookup, or `{ $record: "tags" }`, linted clean. A hop through a multi-valued lookup reaches no single row, so the entry was left out without a word; a plain path to a multi-valued field put a list where one value goes. `object-field-ref-unknown` now refuses the path at the multi-valued field and names it. Multi-valued means `isMultiValueField`: a field flagged `multiple: true`, or a `multiselect`, `checkboxes` or `tags` field. A registry-injected column and a leaf on an object outside the stack are not judged. Measured first-party exposure: zero — no example app, platform object, skill or docs sample writes a `$record` path.
15+
16+
**FROM → TO.** FROM `{ $record: "accounts.cb_market" }` (a hop through a `multiple: true` lookup), `{ $record: "tags" }` or `{ $record: "account.markets" }` (a multi-valued leaf) TO a path that ends at, and hops through, single-valued fields only.
17+
18+
**Fix:** copy the value you mean onto a single-valued field of the record being edited (or of the record one single-valued hop away) and reference that. The semantic entry `lookup-filter-record-path-multi-valued-refused` carries the same notice into the upgrade guide and `os migrate meta`. `os explain object-field-ref-unknown` lists the position.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/spec': patch
3+
---
4+
5+
docs(spec): the `tool-requires-confirmation-retired` upgrade entry no longer tells you to send `confirm: true` to `run_action`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The migration entry for the retired `tool.requiresConfirmation` key still told an upgrading author to put the operation behind an action with `ai.requiresConfirmation: true` and then call it over the MCP `run_action` tool with `confirm: true` on the request. Those tools now refuse any call that carries `confirm`, so that advice sent you into a refusal. The entry's `replacement` and `acceptanceCriteria` now describe what the gate does today: the person the caller acts for confirms the call, in an MCP client that supports elicitation or in the app (`status: 'pending_confirmation'`), and a server with no pending-confirmation service refuses it with `ACTION_CONFIRMATION_REQUIRED` (428, `details.reason: 'no_confirmation_service'`). Send `run_action` and `resume_run` calls without `confirm`.
11+
12+
Text only: no schema, key or runtime behaviour changes. `os migrate meta` and the upgrade guide show the corrected wording.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@objectstack/plugin-hono-server': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(console,plugin-hono-server): the organization's Localization language decides the Console language for a user with no personal language
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
An administrator who set the organization's language (Setup → Localization, or the first-run checklist's "Default language and country") never changed the Console language of a member with no `sys_user.locale`. The Console stated a language on every `GET /api/v1/auth/me/localization` read (the browser's language when the app ships it, else the app's declared default), so the server's request rung always answered and its deployment-default rung, the only one that reads the organization's setting, never did. That rung also answered the settings manifest's built-in `en-US` placeholder over the app's declared `i18n.defaultLocale`.
12+
13+
`/auth/me/localization` now resolves `locale` in the order the maintainer ruled for a user with no personal language: the user's own `sys_user.locale`; else the request's `Accept-Language` top tag when the app lists that language (`i18n.getLocales()`, what discovery serves as `locale.supported`), answered in the app's own spelling (`en-US` → `en`, `ja` → `ja-JP`); else the organization's `localization.locale` when somebody set it (not the manifest's `en-US` placeholder); else the app's declared `i18n.defaultLocale`; else the settings cascade's answer, as before. `resolveSignedInUserLocale` answers the same. A host with no `i18n` service has no list to match against, so the request's language answers as before; a host with no `settings` service keeps the cascade's answer for the deployment default.
14+
15+
The Console now states a language only when the app lists the browser's language. Otherwise the browser's own header goes out and the server's deployment default decides. A stored `sys_user.locale` or a language picked on the device still wins. No response key or discovery key is added.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/scenarios': patch
3+
---
4+
5+
fix(scenarios): an operation an earlier write would meet runs on a fresh seeded copy of the app, so an app's one-way state rule no longer leaves the operations after a transition unmeasured
6+
7+
Clause-②: yes (widening) — through `./runner`: the new exported type `FreshCopy`, the new optional last parameter `fresh` of `runHalf`, and the new optional field `RowRestore.freshCopy` (`orchestrate.ts`). Nothing is removed or narrowed; `./score`, `./score/full`, `./export` and `.` are untouched.
8+
Metadata-protocol: none
9+
10+
Before each operation the runner put the rows an earlier turn had moved back to the seeded state by writing them through the app's own data doors, as the admin. A well-built app judges those writes like any other: its validation rules, hooks and record-triggered flows run on them. So on a card with a state machine the restore failed exactly where the app was right. In `asset_lifecycle`, approving scrap request DR-0006 (`submitted` → `approved`) was followed by a write-back to `submitted`, the app's one-way status rule refused it with 400 `VALIDATION_FAILED`, and every later operation of the half read `restore: … not measured`. Even a write-back the app accepted could fire its flows.
11+
12+
Now, in scratch mode (the Run half and the iterate Run half) and in ask mode, the runner still reads the seeded rows before each operation, but when an earlier turn moved one it does not write anything back. It boots a fresh copy of the same app (scratch: the same project; ask: a blank host with the same build installed the same way), signs the personas in, loads the seed and reads the seeded state there, and that operation and every later turn of the half run on the copy. The copy it replaces is stopped. No rule, hook or flow of the app sees a restore, because there is none. The operation's result carries `restored: { freshCopy: [object/id, …] }`, naming the rows that had moved, and it still counts in the `Run-operations` cell's `N started from restored rows`. When the copy cannot boot, or its seed does not load as the run's did (other rows loaded or refused, a permission set not assigned alike), the operation is NOT MEASURED with that reason, never graded on other rows.
13+
14+
The cost is one boot, the persona sign-ins and one seed load per operation that follows a write, paid only then. A run where no earlier turn moved a row boots nothing more and records exactly as before.
15+
16+
Template mode keeps writing the rows back through the app's doors: its app holds the agent's iterate, made live, which a host booted again would not hold.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
'@objectstack/runtime': patch
4+
---
5+
6+
Clause-②: no
7+
Metadata-protocol: none
8+
9+
fix(runtime): on an un-walled first boot, a seed person reference naming the first admin resolves to that admin
10+
11+
A single-tenant install loads its boot seed before the first admin's `sys_user` row exists. A `Field.user()` or `Field.lookup('sys_user')` value naming that admin therefore landed NULL, and the first-admin handoff wrote `owner_id` and no other column. Sample records assigned to the owner showed as unassigned, apart from the record owner. A later boot did not repair them either: a dataset in the default create-only mode leaves an existing row as it is.
12+
13+
The seed loader now holds each person reference its second pass left NULL, together with the row it landed on (`SeedLoaderService#resolveHeldPersonReferences`, `heldPersonReferenceCount`). `AppPlugin` retries the boot seed's held references after every `sys_user` insert. It resolves each one by the loader's own rule and writes it to that row only while the column is still NULL. A row the seed did not write keeps its value (ADR-0138 D1). A seeded row that someone assigned in the meantime keeps that assignment. A reference that still names nobody stays held until the next user insert of the process. The walled boot is unchanged: it writes no inline seed, and its per-organization replay already waits for the owner's membership.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
'@object-ui/console': patch
4+
---
5+
6+
fix(console-ai): a message sent while an image or PDF is still uploading no longer reaches the agent before the turn that carries it
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
In the console's AI chat, a turn with an image or PDF is sent only once its upload settles (seconds for a large photo), while a turn without an attachment is sent at once. So a second message sent during the upload used to reach the agent first, and the agent answered it without the file.
12+
13+
- Turns now reach the agent in the order the user sent them: a turn sent while an earlier turn's attachments are still being read waits behind that turn.
14+
- While a turn's attachments are being read, the composer reads as busy, as it does during a running reply: a message typed then queues above the composer and sends after that turn.
15+
- An upload that fails releases the busy state, and the turn still sends, naming the file as not read. A turn with no attachment is sent at once, as before.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@objectstack/plugin-audit': patch
3+
---
4+
5+
fix(plugin-audit): an activity summary names a referenced record by a title the writer may read, else by its id
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
An activity row's summary can name a record another field points at: a tracked lookup change (`Account: Acme → Globex`) or a fired milestone's `{token}` (`Deal won by {owner}`). That title is now read in the writer's scope, the scope the row's own record label is already read in. When the writer may not read the referenced record, or may read it without its title column, the summary names it by its stored id, as it does for a record that no longer exists. The rule holds per id, so one change can title the side the writer may read and keep the id of the side it may not.
11+
12+
A writer who may read the referenced record, and every system write, gets the same summary as before. Rows already written keep the summary they were written with.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@objectstack/plugin-auth': patch
3+
---
4+
5+
fix(plugin-auth): a single-use auth value is redeemed at most once, even across processes sharing a database
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
better-auth redeems its single-use values (email verification, password reset, magic-link and one-time codes, and the other values it keeps in `sys_verification`) through the storage adapter's `consumeOne`. The ObjectQL adapter now hands a redeemed value back only to the call whose own delete removed the stored row, and answers `null` to every other call, as better-auth's `consumeOne` contract requires. This holds for any number of server processes on one database.
11+
12+
A value that was already redeemed answers `null`, which better-auth refuses as an invalid or expired value. A single redemption is unchanged: it receives the value and removes it.
13+
14+
The adapter reads the data engine's delete answer to decide. A data engine whose delete answers neither whether nor how many rows it removed (`IDataEngine.delete` declares `boolean | number`) now fails the redemption with an error naming that answer, rather than handing the value back.

0 commit comments

Comments
 (0)