From f5754612df741462f33adee91e86d0d64faea748 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Nov 2026 16:31:05 +0000 Subject: [PATCH] docs(changelog): add the eleven changes 18.5.0 shipped with no CHANGELOG line, and an erratum on the 18-5 page The 18.5.0 version commit b914e724 left eleven changesets in .changeset/ that landed after its Version Packages branch point; their code shipped in the 18.5.0 tarballs. Each entry is added to its package's release section in the stock generator's form under the commit that added it, the eleven files are deleted so the next release does not present them as new, and the 18-5 page gains an erratum naming the listed_twice narrowing of os audit verify. Claude-Session: https://claude.ai/code/session_01ADHkmPfCRZtZTTC4KzLjJR Co-authored-by: Claude --- .changeset/31908-p4b2-bounded-checkpoints.md | 21 ------ .../33186-managed-add-people-actions.md | 12 ---- .../33609-related-list-parent-lookup-page.md | 14 ---- ...aging-preferences-emitting-organization.md | 12 ---- .../33660-ai-model-picker-cost-multiplier.md | 17 ----- .../33689-ai-action-confirmation-elicited.md | 30 -------- ...33724-install-relaxes-declared-not-null.md | 17 ----- .changeset/33739-scenario-runner-effort.md | 16 ----- .../33753-scenario-dates-follow-run-date.md | 12 ---- .../33754-scenario-grader-written-date.md | 12 ---- .changeset/a2-skills-docs-32678-32825.md | 8 --- content/docs/releases/v18/18-5.mdx | 71 ++++++++++++++++++- packages/cloud-connection/CHANGELOG.md | 11 +++ packages/drivers/driver-sql/CHANGELOG.md | 11 +++ packages/drivers/driver-turso/CHANGELOG.md | 11 +++ packages/platform-objects/CHANGELOG.md | 8 +++ packages/plugins/plugin-audit/CHANGELOG.md | 17 +++++ packages/qa/scenarios/CHANGELOG.md | 28 ++++++++ .../services/service-messaging/CHANGELOG.md | 8 +++ packages/skills/CHANGELOG.md | 4 ++ packages/spec/CHANGELOG.md | 35 +++++++++ ui/apps/console/CHANGELOG.md | 18 +++++ ui/packages/app-shell/CHANGELOG.md | 9 +++ ui/packages/i18n/CHANGELOG.md | 9 +++ ui/packages/plugin-chatbot/CHANGELOG.md | 9 +++ ui/packages/plugin-detail/CHANGELOG.md | 9 +++ 26 files changed, 257 insertions(+), 172 deletions(-) delete mode 100644 .changeset/31908-p4b2-bounded-checkpoints.md delete mode 100644 .changeset/33186-managed-add-people-actions.md delete mode 100644 .changeset/33609-related-list-parent-lookup-page.md delete mode 100644 .changeset/33649-messaging-preferences-emitting-organization.md delete mode 100644 .changeset/33660-ai-model-picker-cost-multiplier.md delete mode 100644 .changeset/33689-ai-action-confirmation-elicited.md delete mode 100644 .changeset/33724-install-relaxes-declared-not-null.md delete mode 100644 .changeset/33739-scenario-runner-effort.md delete mode 100644 .changeset/33753-scenario-dates-follow-run-date.md delete mode 100644 .changeset/33754-scenario-grader-written-date.md delete mode 100644 .changeset/a2-skills-docs-32678-32825.md diff --git a/.changeset/31908-p4b2-bounded-checkpoints.md b/.changeset/31908-p4b2-bounded-checkpoints.md deleted file mode 100644 index a59be52889b..00000000000 --- a/.changeset/31908-p4b2-bounded-checkpoints.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'@objectstack/plugin-audit': patch ---- - -fix(plugin-audit)!: the audit sealer seals a window into checkpoints of at most 10,000 rows each, `os audit verify` fails on a row two checkpoints list, and a pass bounds what it re-reads while a chain stays skipped - -Clause-②: yes (narrowing) — narrowed: `os audit verify` reports a row id that two checkpoints list as the new chain fault `listed_twice` and fails the run, where the 18.4.0 verifier accepted it, and the 18.4.0 sealer could write such a chain when two of its late sealings overlapped. Widened: the checkpoint's signed body gains two optional fields, `part_index` and `final_part`; `sys_audit_checkpoint` gains two nullable columns for them; and the exported `AuditChainFaultKind` union gains `listed_twice`. -Metadata-protocol: none -Skills-docs: follow-up #33773 — skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/lifecycle.md — both still teach that the sealer signs each `created_at` hour into one checkpoint per organization, where this change cuts a window into checkpoints of at most 10,000 rows each (the eval's graded `expected_output`, and `lifecycle.md` § Sealing); the card also carries their older stale claim that no verifier exists, which `os audit verify` already contradicts. `skills/**` is changed only on a `domain:skills` PR, so this one does not edit them; `content/docs/data-modeling/objects.mdx` and `content/docs/deployment/cli.mdx` gain the parts, the new fault and what a removed checkpoint shows in this change. - - - -**BREAKING** for `os audit verify` on a chain that an 18.4.0 sealer wrote while two of its late sealings overlapped (two replicas with no cluster service, whose lock is in-process only, or a lease that lapsed). Such a chain lists one late row in two checkpoints. Verify now reports it as a `listed_twice` fault and fails, where it passed. No tolerance and no repair ships for it. A chain one sealer wrote at a time is not affected. - -**Bounded checkpoints (ADR-0154 D4, as amended 2026-11-14).** A chain's rows of one window now seal into consecutive checkpoints of at most 10,000 rows each, cut in `(created_at, id)` order, instead of one checkpoint however many rows the window holds. Each checkpoint has its own seed. Its signed body carries two new fields, `part_index` (from 0) and `final_part`, and `sys_audit_checkpoint` stores them in two new nullable columns. A pass that stops in the middle of a window resumes it on the next pass as further `window` checkpoints, never as `late` ones. Late rows split into checkpoints of at most 10,000 rows the same way. The work and memory of one checkpoint no longer grow with the window. A checkpoint written before this release has neither field. It still verifies, reads as one final part, and its chain goes on. `part_index` can skip a number, and a window can end with no final part: a part whose rows were all deleted or moved between the sealer's two reads of the window is not written. - -**`os audit verify`.** A row id that two checkpoints list is now a fault of the new kind `listed_twice`, and the run fails. The second listing holds nothing for that row. Verify does not check that a window's parts are continuous or that it ends in a final part. The chain links show a removed interior part, as a `gap` or a `link` fault. They do not show a removed newest part; that part's rows read as late and unsealed instead. - -**Skipped chains.** While a chain stays skipped by a chain-local fault, it holds back the sealed-through watermark, so each pass walked every window from there and re-read all of them. Now, while a chain is skipped, a pass walks at most 168 windows that seal nothing (one late horizon) and then stops. When it stops, the sealer says so at `error`, naming the skipped chains. Once no chain is skipped, the walk is not cut, so sealing catches up whether the chain's fault was fixed or the chain has nothing left to seal. - -**Upgrading is one way once this release writes a checkpoint.** An 18.4.0 reader does not know `part_index` and `final_part`. The 18.4.0 verifier drops them and then fails the signature of every checkpoint that carries them. An 18.4.0 sealer computes the chain head's digest without them, so the checkpoint it writes next is a `link` fault. Roll back to 18.4.0 only before this release seals its first checkpoint. A host's checkpoint sink receives the two fields in each body. diff --git a/.changeset/33186-managed-add-people-actions.md b/.changeset/33186-managed-add-people-actions.md deleted file mode 100644 index 65b0e95b12e..00000000000 --- a/.changeset/33186-managed-add-people-actions.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/platform-objects': patch ---- - -feat(platform-objects): Setup → Users on a cloud-managed environment offers Add User and Import Users again, through the pending-person doors - -Clause-②: yes (widening) — two new `sys_user` actions, `add_sso_user` (target `POST /api/v1/auth/admin/add-sso-user`) and `import_sso_users` (target `POST /api/v1/auth/admin/import-sso-users`), each offered only to a platform administrator on a cloud-managed environment (`current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true`) and declaring `requiredPermissions: ['manage_users']`; their labels, descriptions, params and result dialogs are new translation keys in the `sys_user` bundles. Nothing that was offered before is hidden: off a managed environment both new actions are hidden and every existing action answers as before. -Metadata-protocol: none - -On a cloud-managed environment (`OS_CLOUD_MANAGED=1`) the password and invitation actions stay hidden, as before: `create_user`, `set_user_password` and the four `invite_user` mirrors. In their place a platform administrator now sees **Add User** (email, name, and optionally a position, a permission set and the manager's email address) and **Import Users** (CSV text with the columns `email`, `name`, `positions`, `permission_sets` and `manager_id`, at most 500 rows). Each adds a pending person ahead of their first sign-in, stored with `sys_user.source` = `idp_pending` and no password, who then signs in through the hosting organisation's identity provider. The Add User result names an address that was already pending (the hosting organisation is told again, and the position, permission set or manager sent with it is not applied), a manager that could not be linked, and an invitation the hosting organisation was not told about. The Import Users result shows how many rows were added, already pending or not added, and the answer for each row. - -Neither action is exposed to AI agents (no `ai` block): both are human-only until assessed. diff --git a/.changeset/33609-related-list-parent-lookup-page.md b/.changeset/33609-related-list-parent-lookup-page.md deleted file mode 100644 index eeadea617ae..00000000000 --- a/.changeset/33609-related-list-parent-lookup-page.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@object-ui/console': patch -'@object-ui/plugin-detail': patch ---- - -fix(console): a related list keyed by a parent lookup no longer blanks the record page - -Clause-②: no -Metadata-protocol: none - -A `record:related_list` may name the parent field its `relationshipField` stores (`relationshipValueField`), for example an order's `selected_plan` lookup keying the plan's lines. On a record page such a list made the whole page fail with "Couldn't load this record" (「无法加载此记录」): the Console put it into the one-request record page call, which only answers lists keyed by the record's own id and refuses the whole request otherwise (400 `invalid_relationship`). - -- The record page call now leaves out every related list it cannot answer, by the same rule the related-count prefetch already used: a list keyed by a parent field other than `id`, or bound to a `dataSource` / `parentDataSource` of its own. Those lists read their rows themselves, as before the one-request page. Lists keyed by the record's id still come with the page call. -- A related list keyed by a parent lookup now filters by the lookup's stored id. The page record (and a `parentDataSource` parent) is read with its lookups expanded, so the list used to filter by the related record object, which the filter refused, and drew no rows. diff --git a/.changeset/33649-messaging-preferences-emitting-organization.md b/.changeset/33649-messaging-preferences-emitting-organization.md deleted file mode 100644 index 135ef754a78..00000000000 --- a/.changeset/33649-messaging-preferences-emitting-organization.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/service-messaging': patch ---- - -Clause-②: no -Metadata-protocol: none - -`MessagingService.emit` reads the recipients' notification preferences in the emitting organization, the same one a `role:` audience resolves in: the organization the producer names, else the one stored on the notification's event row. A producer that named no organization used to read the preference rows with no organization term, under the system opt-in, so a row stored under another organization could mute a recipient or override their opt-out. With no organization from either the producer or the event row, the read is unchanged. - -Who moves: an emit whose producer names no organization, on an install where the engine stamps the event row (`single`, one organization) and preference rows are stored under another organization. Every emit that names its organization is unchanged. - -Also: when `role:` and the other selectors resolve in different organizations, an audience entry that is itself a list is skipped, as it already was when they agree; it was expanded before. No typed audience is affected. diff --git a/.changeset/33660-ai-model-picker-cost-multiplier.md b/.changeset/33660-ai-model-picker-cost-multiplier.md deleted file mode 100644 index 926bec41f87..00000000000 --- a/.changeset/33660-ai-model-picker-cost-multiplier.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/spec': patch -'@object-ui/plugin-chatbot': patch -'@object-ui/i18n': patch -'@object-ui/app-shell': patch -'@object-ui/console': patch ---- - -feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick - -Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. -Metadata-protocol: none - -- **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. -- **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. -- **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. -- The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. diff --git a/.changeset/33689-ai-action-confirmation-elicited.md b/.changeset/33689-ai-action-confirmation-elicited.md deleted file mode 100644 index b4c235240a3..00000000000 --- a/.changeset/33689-ai-action-confirmation-elicited.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -'@objectstack/spec': minor ---- - -feat(spec)!: a declared-gated action on an AI door is confirmed by a person, elicited in the MCP client or handed off to the app, never by the caller's own `confirm: true` - -Clause-②: yes (narrowing) — once the doors implement the contract, a caller's `confirm: true` stops counting on an action declaring `ai.requiresConfirmation: true`; `@objectstack/spec/contracts` gains `AI_ACTION_CONFIRMATION_CAPABILITY`, `ACTION_CONFIRMATION_REFUSAL_REASONS`, `ActionConfirmationRefusalReason`, `ActionConfirmationHandOff`, `ActionConfirmationPending`, `IActionConfirmationService`, `ACTION_CONFIRMATION_SERVICE` and the optional `ActionConfirmationRequiredDetails.reason`. -Metadata-protocol: semantic -Skills-docs: follow-up — `skills/objectstack-ai/SKILL.md` (the MCP tool table: `run_action` / `resume_run` "refused with the same 428 unless the call sends `confirm: true`") teaches the member contract, which is still the door's behaviour in this release; it moves with the change that implements the doors, together with the MCP-served skill text (`packages/mcp/src/skill-md.ts`, `ui/apps/console/src/pages/developer/objectstack-skill.ts`) and the `ToolSchema` prescription in `packages/spec/src/ai/tool.zod.ts`. - - - -**BREAKING, when the implementing change ships**, for an MCP client, an agent or a script that runs an action declaring `ai.requiresConfirmation: true` through `run_action` or `resume_run` by sending `confirm: true` itself. Ruled by the account owner: 「3826 照建议(征询版)」, amended 「我开始重新接受你说的主流方案,就是推送到客户的手机端」 and 「比如最简单的我可以先推送到邮件」. - -⚠ In the release that carries this changeset nothing changes at any door: `run_action` and `resume_run` still run a declared-gated action on `confirm: true` and refuse it without, over stdio and Streamable HTTP alike. Keep sending `confirm: true` until a release's changelog says the doors confirm by elicitation. What ships now is the contract the doors move to, in `@objectstack/spec/contracts` (`AI_ACTION_CONFIRMATION_CAPABILITY`, `contracts/ai-service.ts`): - -- After every admission gate (the subject load included) and before anything runs, the person is asked, in three steps: **elicit** when the client advertised `elicitation` at `initialize` and the door can carry it (one `elicitation/create`, form mode); otherwise **hand off** to the host's pending-confirmation service (`IActionConfirmationService`, registered under `ACTION_CONFIRMATION_SERVICE` = `'ai.actionConfirmation'`), answering `status: 'pending_confirmation'` with a pending id and a plain message, the person the call ran as, and only they, then approving or rejecting in the app, where the action runs as them with every gate and permission re-checked; a handed-off `resume_run` carries its run id and values (`ActionConfirmationHandOff.run`), and approving it resumes that parked run, never a new one; **refuse** only when the host registers no such service (`428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`). -- An elicited `accept` runs the call once; `decline`, `cancel` (an error answer or a dropped connection included) and no answer within the door's bound are refused with reason `declined`, `cancelled` or `timed_out`. A call refused at confirmation may have read its subject and writes nothing. -- The approve and reject doors of the pending-confirmation service take a person's signed-in session to the app and nothing else: they refuse an AI identity, and an API key, token or other service credential, whoever it resolves to. When a pending item lapses, and how the caller learns its outcome, are the host's to define. -- The caller's `confirm` never counts on such a call. -- An AI service account acting for itself is refused whatever it sends, unchanged (ADR-0151 D3 rule 3), with reason `service_account` on every door; it is neither elicited nor handed off. -- An elicited `accept` proves the client answered, not that a person did; an approved hand-off proves a signed-in session to the app answered, not that a person did. -- Outside the amendment: the MCP `delete_record` and `delete_records` gates still read `confirm: true`, and REST `/actions` stays outside the gate for a person. - -The semantic entry `action-requires-confirmation-elicited` carries the same notice, with the same timing, into the upgrade guide and `os migrate meta`. - -What changes for a caller, from the release whose doors implement it: - -- FROM confirm with the person yourself, then send `confirm: true` on `run_action` / `resume_run` TO advertise `elicitation` (form mode) at `initialize` and let the server ask the person, or, from a client that cannot, relay the pending answer's message and let the person decide in the app; `confirm` then confers nothing. -- FROM a script or agent that runs a gated action unattended with `confirm: true` TO a pending answer the person decides in the app (or a refusal on a host with no pending-confirmation service); where the action is safe unattended, its author declares `ai.requiresConfirmation: false`. diff --git a/.changeset/33724-install-relaxes-declared-not-null.md b/.changeset/33724-install-relaxes-declared-not-null.md deleted file mode 100644 index 036b9b929c6..00000000000 --- a/.changeset/33724-install-relaxes-declared-not-null.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@objectstack/driver-sql': patch -'@objectstack/cloud-connection': patch -'@objectstack/driver-turso': patch ---- - -fix: a package upgrade that makes a field `storage: { notNull: false }` relaxes the NOT NULL column the earlier version built - -Clause-②: yes (widening) — new root exports of @objectstack/cloud-connection (relaxInstallDeclaredNotNull, declaredNullableColumns, types InstallRelaxDriver/InstallRelaxEngine/InstallRelaxEntry/InstallRelaxReport) and the public method SqlDriver.relaxDeclaredNotNull -Metadata-protocol: none - -A package field that was `storage: { notNull: true }` and is now `storage: { notNull: false }` kept its NOT NULL column on every database an earlier version built, so every write that left the field empty was refused by the database. The install's schema sync is additive, the boot never relaxes a column, and the publish that applies the relax for an environment-authored object is refused for a sealed package object (`NOT_OVERRIDABLE`), so only `os migrate apply` on the environment's own database could fix it. - -- The install door (`POST /api/v1/marketplace/install-local`, `os package install`) now relaxes, after a managed install or upgrade's schema sync, each NOT NULL column whose field the installing package's own body declares `storage: { notNull: false }`: its objects, and the fields its `objectExtensions` contribute. A column another package or a customization declares is never that install's to relax, an undeclared NOT NULL stays as it is, and no other drift kind is applied. A boot or rehydrate still applies nothing. -- `SqlDriver.relaxDeclaredNotNull(obj, columns, opts?)` is the new driver door it asks, and `relaxInstallDeclaredNotNull` / `declaredNullableColumns` are exported from `@objectstack/cloud-connection` so a host's own install door can call the same step after its schema sync. -- The `[schema-drift]` warning and `os migrate plan` now name the remedy per object kind: publishing applies it for an object authored in the environment, a managed install or upgrade of its package applies it for a package object, and `os migrate apply` relaxes it deliberately for either. -- On the Turso REMOTE face the new driver door is inherited: a relax needs the SQLite table rebuild that transport does not run, so it comes back skipped with the face's reason, which the install logs. diff --git a/.changeset/33739-scenario-runner-effort.md b/.changeset/33739-scenario-runner-effort.md deleted file mode 100644 index b6a5e7e894b..00000000000 --- a/.changeset/33739-scenario-runner-effort.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -feat(scenarios): `--effort` (and `--author-effort` / `--ask-effort`) reaches `claude --effort`, and every turn records the effort it asked for - -Clause-②: yes (widening) — new CLI flags `--effort`, `--author-effort` and `--ask-effort` on `objectstack-scenarios run` / `run-scenarios`; new exports `CLAUDE_EFFORT_ENV` and `effortLevelsFromHelp` (`./runner`); new optional fields `ClaudeCodeDriverOptions.effort` / `authorEffort` / `askEffort`, `ExternalDriverOptions.effort` / `authorEffort` / `askEffort`, `DriverInfo.authorEffort` / `askEffort`, `ExternalLimits.effort`, `TurnProcess.requestedEffort`, `TurnSummary.requestedEffort` and `HalfScores.build.author.requestedEffort`, and the field `ModelTally.requestedEfforts` (all `./runner`) -Metadata-protocol: none - -Until now the runner passed no effort, so every turn ran at the CLI's default and neither the run record nor the scorecard could say which effort produced a score. - -`--effort LEVEL` passes `claude --effort LEVEL` on every live turn; `--author-effort` and `--ask-effort` set the authoring turns and the question and operation turns apart, each in place of `--effort`, as the model flags do. The levels are the CLI's own, read off its `--help` when an effort is asked for (Claude Code 2.1.325: `low`, `medium`, `high`, `xhigh`, `max`); a level the CLI does not list is refused before any card runs, because the CLI itself only warns about an unknown level and runs the turn at its default effort. - -`CLAUDE_CODE_EFFORT_LEVEL`, which the CLI lets win over `--effort`, no longer reaches a turn: with no effort flag, the runner passes its level as `--effort` (`auto` and `unset` still mean the default), so the record names the effort that ran. - -Every turn records the effort it asked for (`requestedEffort`); the CLI reports no served effort. The scorecard shows the effort beside the served model on the author rows and the `Run · model` rows, and the record's driver states `authorEffort` and `askEffort`. `--driver external:` passes the level to the command as `limits.effort`; `--driver codex` and `--driver recorded:` refuse the three flags (`codex exec` has no effort flag; a replay re-reads each turn as it was recorded). diff --git a/.changeset/33753-scenario-dates-follow-run-date.md b/.changeset/33753-scenario-dates-follow-run-date.md deleted file mode 100644 index 8b0409b5fd7..00000000000 --- a/.changeset/33753-scenario-dates-follow-run-date.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): a card's dates move onto the day it runs, so its "today" agrees with the app's real clock - -Clause-②: no -Metadata-protocol: none - -A card fixes its "today" (`asOf`) and every prompt states it, but the app the run boots stamps `created_at` and `updated_at` with the real clock. A run weeks after `asOf` showed the agent seeded rows "created" after the day it was told was today. Agents stopped to ask about the mismatch, and correct operations failed. - -Before each card runs, `run-scenarios` now moves the card's dates by one whole-day delta, `run date − asOf`. The delta applies to `asOf`, every ISO date under `run` and `iterate` (seed rows, truth filters, operation values and expected post-states), and the dates an operation's or question's `ask` writes in its text (ISO dates, English `[Weekday] D Month`, Chinese `M 月 D 日(周X)`, with weekday names written again). The truths are computed again over the moved seed, so the prompt's "today", the seeded rows, the record timestamps and the grader's expectations agree. Intervals between the card's dates are kept exactly. A `calendar` window (`this_month`, `previous_month`) is read around the moved today. The card files are not changed, and a card without `asOf` runs as before. diff --git a/.changeset/33754-scenario-grader-written-date.md b/.changeset/33754-scenario-grader-written-date.md deleted file mode 100644 index c62aa272fef..00000000000 --- a/.changeset/33754-scenario-grader-written-date.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -'@objectstack/scenarios': patch ---- - -fix(scenarios): the run grader reads a written calendar date ("31 Dec") as no figure - -Clause-②: no -Metadata-protocol: none - -An unanswerable question passes when the agent declines and every number it writes is carried by a tool output of the turn. The number reader skipped ISO dates only, so a decline that offered to list laptops "whose 36-month depreciation life ends by 31 Dec" read `31` as a figure no output carried, and a correct reply failed with "stated a figure the data cannot support". - -The reader now skips a written calendar date the way it skips an ISO date: a day and a month name in either order (`31 Dec`, `Dec 31, 2026`), a month name with its year (`December 2026`), a slash date with its year (`31/12/2026`), and a Chinese date (`12月31日`, `2026年12月`). A month name is read only capitalised, a slash pair with no year (`3/4`) stays a figure, and a number beside no month is still read, so an invented count or amount ("about 12 laptops", "$4,200 due by 31 Dec") still fails. diff --git a/.changeset/a2-skills-docs-32678-32825.md b/.changeset/a2-skills-docs-32678-32825.md deleted file mode 100644 index 72ce2186ee7..00000000000 --- a/.changeset/a2-skills-docs-32678-32825.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@objectstack/skills': patch ---- - -docs(skills): the automation skill says an email-template hole's `default:` argument is literal text, never a path (#32678); the administrator guide says an in-app message that reached nobody is refused 409/503 instead of confirmed (#32825). - -Clause-②: no -Metadata-protocol: none diff --git a/content/docs/releases/v18/18-5.mdx b/content/docs/releases/v18/18-5.mdx index 5a9d8af27f2..200a981efd0 100644 --- a/content/docs/releases/v18/18-5.mdx +++ b/content/docs/releases/v18/18-5.mdx @@ -86,7 +86,7 @@ re-reads every row. | | Measured | | :--- | :--- | | Source | Version Packages pull request #33097 at head `25559f43`, one commit on `main` at `b76df9a6`, and the one changeset `main` gained after it, at `1e65a389`. 335 first-parent commits after 18.4.0's version commit `181ad7d445` | -| Changesets consumed | 284, every changeset in `.changeset/` at `1e65a389`. The 283 at `b76df9a6` are entries in the 122 CHANGELOG sections the pull request writes: 110 `## 18.5.0` sections, and 12 of private packages at their own versions | +| Changesets consumed | 284, every changeset in `.changeset/` at `1e65a389`. *Erratum: the version commit consumed 283, and eleven changesets it left in `.changeset/` shipped with no CHANGELOG line; see [the erratum](#erratum).* The 283 at `b76df9a6` are entries in the 122 CHANGELOG sections the pull request writes: 110 `## 18.5.0` sections, and 12 of private packages at their own versions | | Levels | 39 entries graded `minor`, 245 `patch`, none `major` | | Declared breaking | 67: 24 `minor`, 43 `patch`. 45 under 需手动处理 and 22 under 自动迁移. Every one of the 62 commits since 18.4.0 whose subject carries a `!` has its changeset among them | | Packages | 110 publish at 18.5.0: 75 `@objectstack/*`, `create-objectstack` and 34 `@object-ui/*`, the same set as 18.4.0. `@object-ui/app-shell` takes `18.4.1` and stays private | @@ -97,6 +97,75 @@ No tag, npm version, Docker image or GitHub Release for 18.5.0 exists yet. The 18.5.0 sweep (#33761) was still running, and none of its results are on this page. +## Erratum — eleven changes 18.5.0 shipped with no CHANGELOG line [#erratum] + +*Erratum, 2026-11-15.* The version commit `b914e724` (#33097) consumed 283 +changesets, not 284. Eleven changesets landed on `main` after the Version +Packages pull request's branch point `b76df9a6` and before it merged. Their +commits are ancestors of `b914e724`, so their code is in the published 18.5.0 +packages, but the version commit left their files in `.changeset/`, and no +18.5.0 CHANGELOG named them. Each entry has since been added to its package's +`## 18.5.0` section (`@object-ui/app-shell`'s `## 18.4.1`), under its own +commit, and the eleven files are deleted, so the next release does not list +them as new. One of them, `1e65a389` (#33725), is already on this page, under +[自动迁移](#migrated-for-you) ("Announced, not yet at any door"); the counts on +this page include it and none of the other ten. + +**Breaking: `os audit verify` fails on a row two checkpoints list** +(`ac0b9a5`, #33637). + +- **From → to.** The 18.4.0 `os audit verify` passed a chain in which two + checkpoints list the same row id. 18.5.0 reports it as a chain fault of the + new kind `listed_twice`, naming the checkpoint and the rows, and exits `1`. + The second listing holds nothing for that row. An 18.4.0 sealer could write + such a chain when two of its late sealings overlapped: two replicas with no + cluster service, whose lock is in-process only, or a lease that lapsed. A + chain one sealer wrote at a time is not affected. +- **What to do.** Run `os audit verify` after the upgrade and read every fault + it names. No tolerance and no repair ships for `listed_twice`, so a chain an + overlapping 18.4.0 sealer wrote keeps failing the run; keep the report + (`--json`, or the proof bundle `--out` writes) as the record of why. The + 18.5.0 sealer writes no new one: a late checkpoint leaves out every row a + checkpoint stored meanwhile already lists (`f4cafd5`). +- **The checkpoints change shape.** A window now seals into checkpoints of at + most 10,000 rows each, whose signed body carries `part_index` and + `final_part`, stored in two new nullable columns of `sys_audit_checkpoint`. + An 18.4.0 verifier fails the signature of every checkpoint that carries + them, and the next checkpoint an 18.4.0 sealer writes is a `link` fault: + roll back to 18.4.0 only before 18.5.0 seals its first checkpoint. + +**The other nine**, one line each from the changeset: + +- Setup → Users on a cloud-managed environment offers a platform + administrator **Add User** and **Import Users** again, each adding a pending + person who signs in through the hosting organisation's identity provider + (`2e1e3b9`, #33755) +- A related list keyed by a parent lookup (`relationshipValueField`) no longer + makes the record page fail with "Couldn't load this record", and it filters + by the lookup's stored id (`fbe349f`, #33780) +- `MessagingService.emit` reads the recipients' notification preferences in + the emitting organization, so for an emit whose producer names no + organization a preference row stored under another organization no longer + mutes a recipient or overrides their opt-out (`2673f59`, #33779) +- The AI model picker shows each model's cost multiplier (`×N`) when + `GET /api/v1/ai/models` sends one, notes the allowance left, and asks once + before a pick at ×20 or above; until the AI service fills the multiplier, + the picker looks as it did (`0feb5ff`, #33746) +- A managed install or upgrade of a package relaxes the NOT NULL column of a + field its own body now declares `storage: { notNull: false }`; + `SqlDriver.relaxDeclaredNotNull` and `@objectstack/cloud-connection`'s + `relaxInstallDeclaredNotNull` are new (`e302d32`, #33769) +- `objectstack-scenarios run` takes `--effort`, `--author-effort` and + `--ask-effort`, passed to `claude --effort`, and every turn records the + effort it asked for (`f8f35db`, #33767) +- `run-scenarios` moves a card's dates onto the day it runs, so its "today" + agrees with the app's clock (`e0775f7`, #33776) +- The run grader reads a written calendar date (`31 Dec`, `12月31日`) as no + figure (`4b5024d`, #33797) +- `@objectstack/skills`: the automation skill says an email-template hole's + `default:` argument is literal text, and the administrator guide says an + in-app message that reached nobody is refused `409`/`503` (`81371e1`, #33355) + --- ## What's new in 18.5.0 diff --git a/packages/cloud-connection/CHANGELOG.md b/packages/cloud-connection/CHANGELOG.md index 8a284cbcbe8..578eaa464a6 100644 --- a/packages/cloud-connection/CHANGELOG.md +++ b/packages/cloud-connection/CHANGELOG.md @@ -21,6 +21,17 @@ - `@objectstack/objectql`: `removeActionsByPackage` hands a key back to the owner that still holds a handler for it. Each owner keeps its handler in its own package slot, but the slot a call that names no package runs held only the last registration. Removing that registration emptied the key, so the engine's bare `executeAction` answered "not found" while another owner still held a handler. The key now takes back the entry another coordinate's slot holds: the last coordinate holding the key in the order the slots were created, which is not always the last registration of this key. That choice matters where the bare-call rule runs one owner while others hold the key: host code or a plugin beside one package on an object-bound key, and two shared owners with no package (host code beside a plugin, or two plugins). When the earlier-created slot registered this key last, the hand-back runs the other holder's handler where a restart runs the last registration. While two or more packages still hold the key, the bare call is refused naming them as before. **Not changed.** `PATCH /api/v1/packages/:id/disable` leaves a disabled package's handlers in place, and the bare-call rule already counts no disabled package as an owner. `DELETE /api/v1/packages/:id` (the protocol's `deletePackage`) does not call this unbind, so it is unchanged. +- e302d32: fix: a package upgrade that makes a field `storage: { notNull: false }` relaxes the NOT NULL column the earlier version built + + Clause-②: yes (widening) — new root exports of @objectstack/cloud-connection (relaxInstallDeclaredNotNull, declaredNullableColumns, types InstallRelaxDriver/InstallRelaxEngine/InstallRelaxEntry/InstallRelaxReport) and the public method SqlDriver.relaxDeclaredNotNull + Metadata-protocol: none + + A package field that was `storage: { notNull: true }` and is now `storage: { notNull: false }` kept its NOT NULL column on every database an earlier version built, so every write that left the field empty was refused by the database. The install's schema sync is additive, the boot never relaxes a column, and the publish that applies the relax for an environment-authored object is refused for a sealed package object (`NOT_OVERRIDABLE`), so only `os migrate apply` on the environment's own database could fix it. + + - The install door (`POST /api/v1/marketplace/install-local`, `os package install`) now relaxes, after a managed install or upgrade's schema sync, each NOT NULL column whose field the installing package's own body declares `storage: { notNull: false }`: its objects, and the fields its `objectExtensions` contribute. A column another package or a customization declares is never that install's to relax, an undeclared NOT NULL stays as it is, and no other drift kind is applied. A boot or rehydrate still applies nothing. + - `SqlDriver.relaxDeclaredNotNull(obj, columns, opts?)` is the new driver door it asks, and `relaxInstallDeclaredNotNull` / `declaredNullableColumns` are exported from `@objectstack/cloud-connection` so a host's own install door can call the same step after its schema sync. + - The `[schema-drift]` warning and `os migrate plan` now name the remedy per object kind: publishing applies it for an object authored in the environment, a managed install or upgrade of its package applies it for a package object, and `os migrate apply` relaxes it deliberately for either. + - On the Turso REMOTE face the new driver door is inherited: a relax needs the SQLite table rebuild that transport does not run, so it comes back skipped with the face's reason, which the install logs. - Updated dependencies [f229dfd] - Updated dependencies [0b89b33] - Updated dependencies [322ded7] diff --git a/packages/drivers/driver-sql/CHANGELOG.md b/packages/drivers/driver-sql/CHANGELOG.md index 2aacf5ec3fb..ad2d4304b92 100644 --- a/packages/drivers/driver-sql/CHANGELOG.md +++ b/packages/drivers/driver-sql/CHANGELOG.md @@ -56,6 +56,17 @@ - FROM kept TO retired, on an upgraded MySQL 8 database, once the guard stands: `sys_user_permission_set`'s `(user_id, permission_set, organization_id)`, `sys_connector_connection`'s `(organization_id, connector_name)` and `sys_metadata_activation`'s `(metadata_type, name)` are each one `replace_unique_index`, categorized `safe`, created before it is dropped, applied by the next sync that runs safe drift or by `os migrate apply` with no `--allow-destructive`. Who sees it: a user can hold two packages' permission sets of one name in one organization, and an organization can connect two packages' connector instances of one name, where the old key refused the second. A second row naming no package is still refused, by the guard. Measured on MySQL 8.0.46 for all three tables. - The guard is recognised strictly: the whole expression must be that `CASE WHEN IS NULL THEN … END` over exactly the driver's own digest (`UNHEX(SHA2(CONCAT( joined by 0x1f), 256))`, plain columns) of the narrower key's columns in key order, scoped by the one nullable column the wider key gained. Any other functional index (another function, hash, separator or scope, a NULL-safe part, an `ELSE`) is not a guard, and the narrower key stays kept beside it. - Unchanged: MariaDB (its guard is a row-scoped generated column, already read as a guard), SQLite and PostgreSQL; a narrower key carried by a #11627 hash shadow is still kept whatever the guard; MySQL before 8.0.13 builds no guard and keeps the old key. +- e302d32: fix: a package upgrade that makes a field `storage: { notNull: false }` relaxes the NOT NULL column the earlier version built + + Clause-②: yes (widening) — new root exports of @objectstack/cloud-connection (relaxInstallDeclaredNotNull, declaredNullableColumns, types InstallRelaxDriver/InstallRelaxEngine/InstallRelaxEntry/InstallRelaxReport) and the public method SqlDriver.relaxDeclaredNotNull + Metadata-protocol: none + + A package field that was `storage: { notNull: true }` and is now `storage: { notNull: false }` kept its NOT NULL column on every database an earlier version built, so every write that left the field empty was refused by the database. The install's schema sync is additive, the boot never relaxes a column, and the publish that applies the relax for an environment-authored object is refused for a sealed package object (`NOT_OVERRIDABLE`), so only `os migrate apply` on the environment's own database could fix it. + + - The install door (`POST /api/v1/marketplace/install-local`, `os package install`) now relaxes, after a managed install or upgrade's schema sync, each NOT NULL column whose field the installing package's own body declares `storage: { notNull: false }`: its objects, and the fields its `objectExtensions` contribute. A column another package or a customization declares is never that install's to relax, an undeclared NOT NULL stays as it is, and no other drift kind is applied. A boot or rehydrate still applies nothing. + - `SqlDriver.relaxDeclaredNotNull(obj, columns, opts?)` is the new driver door it asks, and `relaxInstallDeclaredNotNull` / `declaredNullableColumns` are exported from `@objectstack/cloud-connection` so a host's own install door can call the same step after its schema sync. + - The `[schema-drift]` warning and `os migrate plan` now name the remedy per object kind: publishing applies it for an object authored in the environment, a managed install or upgrade of its package applies it for a package object, and `os migrate apply` relaxes it deliberately for either. + - On the Turso REMOTE face the new driver door is inherited: a relax needs the SQLite table rebuild that transport does not run, so it comes back skipped with the face's reason, which the install logs. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/drivers/driver-turso/CHANGELOG.md b/packages/drivers/driver-turso/CHANGELOG.md index 6f2f513de9b..024be4868db 100644 --- a/packages/drivers/driver-turso/CHANGELOG.md +++ b/packages/drivers/driver-turso/CHANGELOG.md @@ -4,6 +4,17 @@ ### Patch Changes +- e302d32: fix: a package upgrade that makes a field `storage: { notNull: false }` relaxes the NOT NULL column the earlier version built + + Clause-②: yes (widening) — new root exports of @objectstack/cloud-connection (relaxInstallDeclaredNotNull, declaredNullableColumns, types InstallRelaxDriver/InstallRelaxEngine/InstallRelaxEntry/InstallRelaxReport) and the public method SqlDriver.relaxDeclaredNotNull + Metadata-protocol: none + + A package field that was `storage: { notNull: true }` and is now `storage: { notNull: false }` kept its NOT NULL column on every database an earlier version built, so every write that left the field empty was refused by the database. The install's schema sync is additive, the boot never relaxes a column, and the publish that applies the relax for an environment-authored object is refused for a sealed package object (`NOT_OVERRIDABLE`), so only `os migrate apply` on the environment's own database could fix it. + + - The install door (`POST /api/v1/marketplace/install-local`, `os package install`) now relaxes, after a managed install or upgrade's schema sync, each NOT NULL column whose field the installing package's own body declares `storage: { notNull: false }`: its objects, and the fields its `objectExtensions` contribute. A column another package or a customization declares is never that install's to relax, an undeclared NOT NULL stays as it is, and no other drift kind is applied. A boot or rehydrate still applies nothing. + - `SqlDriver.relaxDeclaredNotNull(obj, columns, opts?)` is the new driver door it asks, and `relaxInstallDeclaredNotNull` / `declaredNullableColumns` are exported from `@objectstack/cloud-connection` so a host's own install door can call the same step after its schema sync. + - The `[schema-drift]` warning and `os migrate plan` now name the remedy per object kind: publishing applies it for an object authored in the environment, a managed install or upgrade of its package applies it for a package object, and `os migrate apply` relaxes it deliberately for either. + - On the Turso REMOTE face the new driver door is inherited: a relax needs the SQLite table rebuild that transport does not run, so it comes back skipped with the face's reason, which the install logs. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/platform-objects/CHANGELOG.md b/packages/platform-objects/CHANGELOG.md index de5146087f4..1a421825892 100644 --- a/packages/platform-objects/CHANGELOG.md +++ b/packages/platform-objects/CHANGELOG.md @@ -126,6 +126,14 @@ - fr: `sys_user.manager_id` now reads "Responsable hiérarchique" (the direct manager), so it no longer shares "Responsable" with `accountable_user_id`. Only translated leaf values change; English labels and the bundle structure are unchanged. +- 2e1e3b9: feat(platform-objects): Setup → Users on a cloud-managed environment offers Add User and Import Users again, through the pending-person doors + + Clause-②: yes (widening) — two new `sys_user` actions, `add_sso_user` (target `POST /api/v1/auth/admin/add-sso-user`) and `import_sso_users` (target `POST /api/v1/auth/admin/import-sso-users`), each offered only to a platform administrator on a cloud-managed environment (`current_user.isPlatformAdmin == true && has(features.cloudManaged) && features.cloudManaged == true`) and declaring `requiredPermissions: ['manage_users']`; their labels, descriptions, params and result dialogs are new translation keys in the `sys_user` bundles. Nothing that was offered before is hidden: off a managed environment both new actions are hidden and every existing action answers as before. + Metadata-protocol: none + + On a cloud-managed environment (`OS_CLOUD_MANAGED=1`) the password and invitation actions stay hidden, as before: `create_user`, `set_user_password` and the four `invite_user` mirrors. In their place a platform administrator now sees **Add User** (email, name, and optionally a position, a permission set and the manager's email address) and **Import Users** (CSV text with the columns `email`, `name`, `positions`, `permission_sets` and `manager_id`, at most 500 rows). Each adds a pending person ahead of their first sign-in, stored with `sys_user.source` = `idp_pending` and no password, who then signs in through the hosting organisation's identity provider. The Add User result names an address that was already pending (the hosting organisation is told again, and the position, permission set or manager sent with it is not applied), a manager that could not be linked, and an invitation the hosting organisation was not told about. The Import Users result shows how many rows were added, already pending or not added, and the answer for each row. + + Neither action is exposed to AI agents (no `ai` block): both are human-only until assessed. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/plugins/plugin-audit/CHANGELOG.md b/packages/plugins/plugin-audit/CHANGELOG.md index 992a559444b..ade2e68adec 100644 --- a/packages/plugins/plugin-audit/CHANGELOG.md +++ b/packages/plugins/plugin-audit/CHANGELOG.md @@ -71,6 +71,23 @@ `@objectstack/plugin-audit`: the activity and audit copies of an approval request are hardened: a ledger copy holds no value that its owner narrows per reader. New copies no longer carry the request's subject snapshot, and `migrateSideCopies` / `migrateArchivedSideCopies` rewrite the copies at rest. Both ledgers' read redactions drop it from an older copy whether or not the rewrite has run. **Who can query those copies narrows.** A non-system query on `sys_activity` or `sys_audit_log` that names `sys_approval_request` by equality on `object_name` and names a column holding the copy (`metadata`; `old_value`, `new_value`), as a free-text search does, is now judged against every registered object, as a query naming no object already is. A reader withheld any field of any object, an organization administrator included, is refused it (`403`) where they were answered before. The same query pinned to another object, or naming only other columns, is judged as before. This does not depend on the rewrite having run. +- ac0b9a5: fix(plugin-audit)!: the audit sealer seals a window into checkpoints of at most 10,000 rows each, `os audit verify` fails on a row two checkpoints list, and a pass bounds what it re-reads while a chain stays skipped + + Clause-②: yes (narrowing) — narrowed: `os audit verify` reports a row id that two checkpoints list as the new chain fault `listed_twice` and fails the run, where the 18.4.0 verifier accepted it, and the 18.4.0 sealer could write such a chain when two of its late sealings overlapped. Widened: the checkpoint's signed body gains two optional fields, `part_index` and `final_part`; `sys_audit_checkpoint` gains two nullable columns for them; and the exported `AuditChainFaultKind` union gains `listed_twice`. + Metadata-protocol: none + Skills-docs: follow-up #33773 — skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-data/rules/lifecycle.md — both still teach that the sealer signs each `created_at` hour into one checkpoint per organization, where this change cuts a window into checkpoints of at most 10,000 rows each (the eval's graded `expected_output`, and `lifecycle.md` § Sealing); the card also carries their older stale claim that no verifier exists, which `os audit verify` already contradicts. `skills/**` is changed only on a `domain:skills` PR, so this one does not edit them; `content/docs/data-modeling/objects.mdx` and `content/docs/deployment/cli.mdx` gain the parts, the new fault and what a removed checkpoint shows in this change. + + + + **BREAKING** for `os audit verify` on a chain that an 18.4.0 sealer wrote while two of its late sealings overlapped (two replicas with no cluster service, whose lock is in-process only, or a lease that lapsed). Such a chain lists one late row in two checkpoints. Verify now reports it as a `listed_twice` fault and fails, where it passed. No tolerance and no repair ships for it. A chain one sealer wrote at a time is not affected. + + **Bounded checkpoints (ADR-0154 D4, as amended 2026-11-14).** A chain's rows of one window now seal into consecutive checkpoints of at most 10,000 rows each, cut in `(created_at, id)` order, instead of one checkpoint however many rows the window holds. Each checkpoint has its own seed. Its signed body carries two new fields, `part_index` (from 0) and `final_part`, and `sys_audit_checkpoint` stores them in two new nullable columns. A pass that stops in the middle of a window resumes it on the next pass as further `window` checkpoints, never as `late` ones. Late rows split into checkpoints of at most 10,000 rows the same way. The work and memory of one checkpoint no longer grow with the window. A checkpoint written before this release has neither field. It still verifies, reads as one final part, and its chain goes on. `part_index` can skip a number, and a window can end with no final part: a part whose rows were all deleted or moved between the sealer's two reads of the window is not written. + + **`os audit verify`.** A row id that two checkpoints list is now a fault of the new kind `listed_twice`, and the run fails. The second listing holds nothing for that row. Verify does not check that a window's parts are continuous or that it ends in a final part. The chain links show a removed interior part, as a `gap` or a `link` fault. They do not show a removed newest part; that part's rows read as late and unsealed instead. + + **Skipped chains.** While a chain stays skipped by a chain-local fault, it holds back the sealed-through watermark, so each pass walked every window from there and re-read all of them. Now, while a chain is skipped, a pass walks at most 168 windows that seal nothing (one late horizon) and then stops. When it stops, the sealer says so at `error`, naming the skipped chains. Once no chain is skipped, the walk is not cut, so sealing catches up whether the chain's fault was fixed or the chain has nothing left to seal. + + **Upgrading is one way once this release writes a checkpoint.** An 18.4.0 reader does not know `part_index` and `final_part`. The 18.4.0 verifier drops them and then fails the signature of every checkpoint that carries them. An 18.4.0 sealer computes the chain head's digest without them, so the checkpoint it writes next is a `link` fault. Roll back to 18.4.0 only before this release seals its first checkpoint. A host's checkpoint sink receives the two fields in each body. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/qa/scenarios/CHANGELOG.md b/packages/qa/scenarios/CHANGELOG.md index dee518cac74..2d4a963951d 100644 --- a/packages/qa/scenarios/CHANGELOG.md +++ b/packages/qa/scenarios/CHANGELOG.md @@ -108,6 +108,34 @@ `--driver recorded:FILE` handed back the recorded turn and sent nothing, so the freshly booted app never received the agent's writes: every `applied` operation read back no row and failed on replay ("0 row(s) read back"), and the operations half of a re-scored run was false fails. The replay now re-sends a turn's recorded writes (`create_record`, `update_record`, `delete_record`, `run_action`) to the booted app, in recorded order, as the turn's persona, through the runner's own MCP door, before the runner reads the operation back. Reads are never re-sent. A recorded refused write is re-sent too and must meet the same refusal again. A row the recorded run created gets a new id in the replayed app, and a later recorded write naming the old id is sent with the new one. When the app answers a re-sent write otherwise than it answered the recorded run, or a recorded write has no recorded answer (the turn was cut short, so whether it wrote is unknown, and nothing of that turn is re-sent), the turn's question or operation is not measured, with the call named in the reason, never a fail. Live drivers are unchanged. +- f8f35db: feat(scenarios): `--effort` (and `--author-effort` / `--ask-effort`) reaches `claude --effort`, and every turn records the effort it asked for + + Clause-②: yes (widening) — new CLI flags `--effort`, `--author-effort` and `--ask-effort` on `objectstack-scenarios run` / `run-scenarios`; new exports `CLAUDE_EFFORT_ENV` and `effortLevelsFromHelp` (`./runner`); new optional fields `ClaudeCodeDriverOptions.effort` / `authorEffort` / `askEffort`, `ExternalDriverOptions.effort` / `authorEffort` / `askEffort`, `DriverInfo.authorEffort` / `askEffort`, `ExternalLimits.effort`, `TurnProcess.requestedEffort`, `TurnSummary.requestedEffort` and `HalfScores.build.author.requestedEffort`, and the field `ModelTally.requestedEfforts` (all `./runner`) + Metadata-protocol: none + + Until now the runner passed no effort, so every turn ran at the CLI's default and neither the run record nor the scorecard could say which effort produced a score. + + `--effort LEVEL` passes `claude --effort LEVEL` on every live turn; `--author-effort` and `--ask-effort` set the authoring turns and the question and operation turns apart, each in place of `--effort`, as the model flags do. The levels are the CLI's own, read off its `--help` when an effort is asked for (Claude Code 2.1.325: `low`, `medium`, `high`, `xhigh`, `max`); a level the CLI does not list is refused before any card runs, because the CLI itself only warns about an unknown level and runs the turn at its default effort. + + `CLAUDE_CODE_EFFORT_LEVEL`, which the CLI lets win over `--effort`, no longer reaches a turn: with no effort flag, the runner passes its level as `--effort` (`auto` and `unset` still mean the default), so the record names the effort that ran. + + Every turn records the effort it asked for (`requestedEffort`); the CLI reports no served effort. The scorecard shows the effort beside the served model on the author rows and the `Run · model` rows, and the record's driver states `authorEffort` and `askEffort`. `--driver external:` passes the level to the command as `limits.effort`; `--driver codex` and `--driver recorded:` refuse the three flags (`codex exec` has no effort flag; a replay re-reads each turn as it was recorded). +- e0775f7: fix(scenarios): a card's dates move onto the day it runs, so its "today" agrees with the app's real clock + + Clause-②: no + Metadata-protocol: none + + A card fixes its "today" (`asOf`) and every prompt states it, but the app the run boots stamps `created_at` and `updated_at` with the real clock. A run weeks after `asOf` showed the agent seeded rows "created" after the day it was told was today. Agents stopped to ask about the mismatch, and correct operations failed. + + Before each card runs, `run-scenarios` now moves the card's dates by one whole-day delta, `run date − asOf`. The delta applies to `asOf`, every ISO date under `run` and `iterate` (seed rows, truth filters, operation values and expected post-states), and the dates an operation's or question's `ask` writes in its text (ISO dates, English `[Weekday] D Month`, Chinese `M 月 D 日(周X)`, with weekday names written again). The truths are computed again over the moved seed, so the prompt's "today", the seeded rows, the record timestamps and the grader's expectations agree. Intervals between the card's dates are kept exactly. A `calendar` window (`this_month`, `previous_month`) is read around the moved today. The card files are not changed, and a card without `asOf` runs as before. +- 4b5024d: fix(scenarios): the run grader reads a written calendar date ("31 Dec") as no figure + + Clause-②: no + Metadata-protocol: none + + An unanswerable question passes when the agent declines and every number it writes is carried by a tool output of the turn. The number reader skipped ISO dates only, so a decline that offered to list laptops "whose 36-month depreciation life ends by 31 Dec" read `31` as a figure no output carried, and a correct reply failed with "stated a figure the data cannot support". + + The reader now skips a written calendar date the way it skips an ISO date: a day and a month name in either order (`31 Dec`, `Dec 31, 2026`), a month name with its year (`December 2026`), a slash date with its year (`31/12/2026`), and a Chinese date (`12月31日`, `2026年12月`). A month name is read only capitalised, a slash pair with no year (`3/4`) stays a figure, and a number beside no month is still read, so an invented count or amount ("about 12 laptops", "$4,200 due by 31 Dec") still fails. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/services/service-messaging/CHANGELOG.md b/packages/services/service-messaging/CHANGELOG.md index eae25bf1b37..740ee1c3fa3 100644 --- a/packages/services/service-messaging/CHANGELOG.md +++ b/packages/services/service-messaging/CHANGELOG.md @@ -32,6 +32,14 @@ A `role:NAME` audience now resolves in the emitting organization: the organization the producer passed to `emit()`, else the one stored on the notification's own event row, which is the organization its delivery, inbox and receipt rows already carry. It reaches the holders of that role in that organization and in no other. When neither the producer nor the stored event row names an organization, `role:` reaches nobody: 0 recipients and a warning naming the remedy (pass `organizationId` to `emit()`), the same answer `org:members` gives without an organization. Every other selector is unchanged: `org:members` still resolves with the organization the producer passed, and nobody when it passed none. Emits that name their organization resolve as before. Who moves: a producer whose `role:` audience has no organization anywhere — none passed to `emit()` and none stored on the event row — now reaches no one, with a warning. Pass the organization to `emit()`, or run the flow that carries the `notify` node in the organization whose members it addresses. +- 2673f59: Clause-②: no + Metadata-protocol: none + + `MessagingService.emit` reads the recipients' notification preferences in the emitting organization, the same one a `role:` audience resolves in: the organization the producer names, else the one stored on the notification's event row. A producer that named no organization used to read the preference rows with no organization term, under the system opt-in, so a row stored under another organization could mute a recipient or override their opt-out. With no organization from either the producer or the event row, the read is unchanged. + + Who moves: an emit whose producer names no organization, on an install where the engine stamps the event row (`single`, one organization) and preference rows are stored under another organization. Every emit that names its organization is unchanged. + + Also: when `role:` and the other selectors resolve in different organizations, an audience entry that is itself a list is skipped, as it already was when they agree; it was expanded before. No typed audience is affected. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/packages/skills/CHANGELOG.md b/packages/skills/CHANGELOG.md index 1c3375c0018..4412b7df3aa 100644 --- a/packages/skills/CHANGELOG.md +++ b/packages/skills/CHANGELOG.md @@ -180,6 +180,10 @@ Clause-②: no Metadata-protocol: none +- 81371e1: docs(skills): the automation skill says an email-template hole's `default:` argument is literal text, never a path (#32678); the administrator guide says an in-app message that reached nobody is refused 409/503 instead of confirmed (#32825). + + Clause-②: no + Metadata-protocol: none ## 18.4.0 diff --git a/packages/spec/CHANGELOG.md b/packages/spec/CHANGELOG.md index b4db89965d3..a4abe12a052 100644 --- a/packages/spec/CHANGELOG.md +++ b/packages/spec/CHANGELOG.md @@ -437,6 +437,32 @@ The object door (`refuseUnadmittedSummaryCurrency`) lets a `dynamic` summary through only when it names a child object and field and carries no `defaultCurrency`; its refusal messages now name this third admitted case beside `fixed` and `record`. `defineStack`'s cross-reference pass (`collectRecordCurrencyPathErrors`, new case (d)) admits it only when the child field is a stored home amount, and refuses any other `dynamic` roll-up with the declaration the child field does support: the record-mode amount's own home field, the child's home amounts, or its `fixed` code. A child the stack does not declare is not judged, as for a `record` roll-up. **Console.** `summaryDeclaresCurrency` (`@object-ui/fields`) answers true for a `dynamic` summary, so the record page (`SummaryField`) and the list cell (`FormulaCellRenderer`) draw the total through `resolveFieldCurrency` in the tenant default currency: `$250.00` under a USD home currency, `CN¥1,800.00` under CNY, the same text a metric tile over the home field shows. With no home currency set it is a plain amount. A summary declaring no `currencyConfig` is unchanged. +- 1e65a38: feat(spec)!: a declared-gated action on an AI door is confirmed by a person, elicited in the MCP client or handed off to the app, never by the caller's own `confirm: true` + + Clause-②: yes (narrowing) — once the doors implement the contract, a caller's `confirm: true` stops counting on an action declaring `ai.requiresConfirmation: true`; `@objectstack/spec/contracts` gains `AI_ACTION_CONFIRMATION_CAPABILITY`, `ACTION_CONFIRMATION_REFUSAL_REASONS`, `ActionConfirmationRefusalReason`, `ActionConfirmationHandOff`, `ActionConfirmationPending`, `IActionConfirmationService`, `ACTION_CONFIRMATION_SERVICE` and the optional `ActionConfirmationRequiredDetails.reason`. + Metadata-protocol: semantic + Skills-docs: follow-up — `skills/objectstack-ai/SKILL.md` (the MCP tool table: `run_action` / `resume_run` "refused with the same 428 unless the call sends `confirm: true`") teaches the member contract, which is still the door's behaviour in this release; it moves with the change that implements the doors, together with the MCP-served skill text (`packages/mcp/src/skill-md.ts`, `ui/apps/console/src/pages/developer/objectstack-skill.ts`) and the `ToolSchema` prescription in `packages/spec/src/ai/tool.zod.ts`. + + + + **BREAKING, when the implementing change ships**, for an MCP client, an agent or a script that runs an action declaring `ai.requiresConfirmation: true` through `run_action` or `resume_run` by sending `confirm: true` itself. Ruled by the account owner: 「3826 照建议(征询版)」, amended 「我开始重新接受你说的主流方案,就是推送到客户的手机端」 and 「比如最简单的我可以先推送到邮件」. + + ⚠ In the release that carries this changeset nothing changes at any door: `run_action` and `resume_run` still run a declared-gated action on `confirm: true` and refuse it without, over stdio and Streamable HTTP alike. Keep sending `confirm: true` until a release's changelog says the doors confirm by elicitation. What ships now is the contract the doors move to, in `@objectstack/spec/contracts` (`AI_ACTION_CONFIRMATION_CAPABILITY`, `contracts/ai-service.ts`): + + - After every admission gate (the subject load included) and before anything runs, the person is asked, in three steps: **elicit** when the client advertised `elicitation` at `initialize` and the door can carry it (one `elicitation/create`, form mode); otherwise **hand off** to the host's pending-confirmation service (`IActionConfirmationService`, registered under `ACTION_CONFIRMATION_SERVICE` = `'ai.actionConfirmation'`), answering `status: 'pending_confirmation'` with a pending id and a plain message, the person the call ran as, and only they, then approving or rejecting in the app, where the action runs as them with every gate and permission re-checked; a handed-off `resume_run` carries its run id and values (`ActionConfirmationHandOff.run`), and approving it resumes that parked run, never a new one; **refuse** only when the host registers no such service (`428 ACTION_CONFIRMATION_REQUIRED`, `details.reason: 'no_confirmation_service'`). + - An elicited `accept` runs the call once; `decline`, `cancel` (an error answer or a dropped connection included) and no answer within the door's bound are refused with reason `declined`, `cancelled` or `timed_out`. A call refused at confirmation may have read its subject and writes nothing. + - The approve and reject doors of the pending-confirmation service take a person's signed-in session to the app and nothing else: they refuse an AI identity, and an API key, token or other service credential, whoever it resolves to. When a pending item lapses, and how the caller learns its outcome, are the host's to define. + - The caller's `confirm` never counts on such a call. + - An AI service account acting for itself is refused whatever it sends, unchanged (ADR-0151 D3 rule 3), with reason `service_account` on every door; it is neither elicited nor handed off. + - An elicited `accept` proves the client answered, not that a person did; an approved hand-off proves a signed-in session to the app answered, not that a person did. + - Outside the amendment: the MCP `delete_record` and `delete_records` gates still read `confirm: true`, and REST `/actions` stays outside the gate for a person. + + The semantic entry `action-requires-confirmation-elicited` carries the same notice, with the same timing, into the upgrade guide and `os migrate meta`. + + What changes for a caller, from the release whose doors implement it: + + - FROM confirm with the person yourself, then send `confirm: true` on `run_action` / `resume_run` TO advertise `elicitation` (form mode) at `initialize` and let the server ask the person, or, from a client that cannot, relay the pending answer's message and let the person decide in the app; `confirm` then confers nothing. + - FROM a script or agent that runs a gated action unattended with `confirm: true` TO a pending answer the person decides in the app (or a refusal on a host with no pending-confirmation service); where the action is safe unattended, its author declares `ai.requiresConfirmation: false`. ### Patch Changes @@ -708,6 +734,15 @@ Upload doors keep their own limit. The storage byte doors (the presigned raw PUT, the chunk PUT and the upload-link PUT) read the raw bytes through `IHttpRequest.rawBody()`, which still serves the whole body, so a file is bounded by the storage `max_upload_mb` setting exactly as before, even when that is larger than the request-body limit. The upload link's several-file form is bounded by that door's own form limit (each file within `max_upload_mb`, times the files the link takes, plus the form's framing), not by the request-body limit. A route that is refused `req.body` for size and then reads `rawBody()` takes the read over under its own bound, and its own answer stands. +- 0feb5ff: feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick + + Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. + Metadata-protocol: none + + - **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. + - **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. + - **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. + - The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. ## 18.4.0 diff --git a/ui/apps/console/CHANGELOG.md b/ui/apps/console/CHANGELOG.md index 8a378fced94..e53fc04d475 100644 --- a/ui/apps/console/CHANGELOG.md +++ b/ui/apps/console/CHANGELOG.md @@ -287,6 +287,24 @@ - **No more endless thinking dots.** In the AI chat (the full-page chat, the console's chat dock and the Studio copilot), a message sent while the conversation was still loading waited for it. When loading then failed (a server error or no network), the message stayed on screen with the thinking dots forever: nothing was sent, nothing was shown and the message box was empty. Now the message is taken back into the box with the "Couldn't send your message" notice, two messages sent during the wait included (first part first), and nothing is sent. Sending again loads the conversation again and sends the message once into it. - **Unchanged:** a load that answers sends the waiting message once into the conversation, and a conversation that no longer exists (404) still starts a new one for it. - @objectstack/sdui-parser@18.5.0 +- fbe349f: fix(console): a related list keyed by a parent lookup no longer blanks the record page + + Clause-②: no + Metadata-protocol: none + + A `record:related_list` may name the parent field its `relationshipField` stores (`relationshipValueField`), for example an order's `selected_plan` lookup keying the plan's lines. On a record page such a list made the whole page fail with "Couldn't load this record" (「无法加载此记录」): the Console put it into the one-request record page call, which only answers lists keyed by the record's own id and refuses the whole request otherwise (400 `invalid_relationship`). + + - The record page call now leaves out every related list it cannot answer, by the same rule the related-count prefetch already used: a list keyed by a parent field other than `id`, or bound to a `dataSource` / `parentDataSource` of its own. Those lists read their rows themselves, as before the one-request page. Lists keyed by the record's id still come with the page call. + - A related list keyed by a parent lookup now filters by the lookup's stored id. The page record (and a `parentDataSource` parent) is read with its lookups expanded, so the list used to filter by the related record object, which the filter refused, and drew no rows. +- 0feb5ff: feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick + + Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. + Metadata-protocol: none + + - **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. + - **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. + - **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. + - The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. ## 18.4.0 diff --git a/ui/packages/app-shell/CHANGELOG.md b/ui/packages/app-shell/CHANGELOG.md index 383921002e2..41f24c5d5d0 100644 --- a/ui/packages/app-shell/CHANGELOG.md +++ b/ui/packages/app-shell/CHANGELOG.md @@ -256,6 +256,15 @@ - **No more endless thinking dots.** In the AI chat (the full-page chat, the console's chat dock and the Studio copilot), a message sent while the conversation was still loading waited for it. When loading then failed (a server error or no network), the message stayed on screen with the thinking dots forever: nothing was sent, nothing was shown and the message box was empty. Now the message is taken back into the box with the "Couldn't send your message" notice, two messages sent during the wait included (first part first), and nothing is sent. Sending again loads the conversation again and sends the message once into it. - **Unchanged:** a load that answers sends the waiting message once into the conversation, and a conversation that no longer exists (404) still starts a new one for it. +- 0feb5ff: feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick + + Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. + Metadata-protocol: none + + - **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. + - **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. + - **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. + - The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. - Updated dependencies [854d383] - Updated dependencies [f229dfd] - Updated dependencies [322ded7] diff --git a/ui/packages/i18n/CHANGELOG.md b/ui/packages/i18n/CHANGELOG.md index 41dae8e1fe6..62d9eb3a8b1 100644 --- a/ui/packages/i18n/CHANGELOG.md +++ b/ui/packages/i18n/CHANGELOG.md @@ -112,6 +112,15 @@ `organization.errors.invitationNotFound`), and errors thrown by `@object-ui/auth` gain a numeric `status` property beside the existing `message` and `code`. +- 0feb5ff: feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick + + Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. + Metadata-protocol: none + + - **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. + - **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. + - **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. + - The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/ui/packages/plugin-chatbot/CHANGELOG.md b/ui/packages/plugin-chatbot/CHANGELOG.md index 135371452e3..df190be812d 100644 --- a/ui/packages/plugin-chatbot/CHANGELOG.md +++ b/ui/packages/plugin-chatbot/CHANGELOG.md @@ -27,6 +27,15 @@ - **Two messages, then a failed create.** On a new AI chat conversation the first message waits for `POST /conversations`, and a second message sent during that wait joins it. When the create then failed, the message box got back only the second message, and the first was lost. The box now gets both, first part first, with the "Couldn't send your message" notice as before, and sending again sends the joined text once. This holds on the full-page AI chat, in the console's chat dock and in the Studio copilot. - **`ChatbotEnhanced`.** The not-sent restore puts the host's `unsentText` back in an empty box when the host passes one, and the text the composer last submitted when it does not (unchanged). +- 0feb5ff: feat(spec, plugin-chatbot, console): the AI model picker shows each model's cost multiplier, notes the allowance left, and asks before a ×20 pick + + Clause-②: yes (widening) — `@objectstack/spec` `AiModelsResponseSchema`'s model entry gains an optional `costMultiplier` (a positive number; the environment's default model is 1). `@object-ui/plugin-chatbot` `ChatbotModelOption` gains an optional `costMultiplier`, and `ChatbotEnhanced` an optional prop `allowanceUsedFraction`. Nothing is removed or narrowed; the bare-string model entry stays. + Metadata-protocol: none + + - **The multiplier, at the moment of choice.** `GET /api/v1/ai/models` may now say, per model, how much one message draws on the AI allowance compared with the default model. The composer's model picker draws it as `×N` beside the model's label, in the list and on the picker itself. A model whose entry carries no multiplier shows none. + - **The allowance left.** When the environment serves `GET /api/v1/ai/usage`, the open list notes the share of the allowance left and that a `×N` model uses it N times as fast. It is a share, never a token count. Without usage the multipliers show alone. + - **A pick at ×20 or above asks once.** The confirmation names the model and its multiplier (and the share left, when known); Cancel keeps the current model, and a pick below ×20 applies at once as before. The question lives in the shared picker, so the full-page AI chat, the console chat dock and the Studio copilot all ask it. + - The multiplier is filled by the AI service that answers `/ai/models` (cloud `service-ai`); until it does, the picker looks as it did. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5] diff --git a/ui/packages/plugin-detail/CHANGELOG.md b/ui/packages/plugin-detail/CHANGELOG.md index 5177d6a0892..e8be56b9721 100644 --- a/ui/packages/plugin-detail/CHANGELOG.md +++ b/ui/packages/plugin-detail/CHANGELOG.md @@ -13,6 +13,15 @@ - **Inline edit conflict.** When a save that changed several fields meets a newer version (409 `CONCURRENT_UPDATE`), the dialog lists each field with its label, your edit and the current value, instead of printing both as raw JSON. A one-field conflict looks as before. - **Share-link page.** The landing page lists the record's fields the way the record page does: the framework's system columns and the audit columns (`created_at`, `created_by`, `updated_at`, `updated_by`) are not listed, and only fields the object declares are shown when the server sends the field labels. - **Studio editor error box.** A refusal that is one unbroken token (a field-type enum list such as `"text"|"textarea"|…`) now wraps inside the box instead of running past the right edge of the window, so the whole message stays readable. +- fbe349f: fix(console): a related list keyed by a parent lookup no longer blanks the record page + + Clause-②: no + Metadata-protocol: none + + A `record:related_list` may name the parent field its `relationshipField` stores (`relationshipValueField`), for example an order's `selected_plan` lookup keying the plan's lines. On a record page such a list made the whole page fail with "Couldn't load this record" (「无法加载此记录」): the Console put it into the one-request record page call, which only answers lists keyed by the record's own id and refuses the whole request otherwise (400 `invalid_relationship`). + + - The record page call now leaves out every related list it cannot answer, by the same rule the related-count prefetch already used: a list keyed by a parent field other than `id`, or bound to a `dataSource` / `parentDataSource` of its own. Those lists read their rows themselves, as before the one-request page. Lists keyed by the record's id still come with the page call. + - A related list keyed by a parent lookup now filters by the lookup's stored id. The page record (and a `parentDataSource` parent) is read with its lookups expanded, so the list used to filter by the related record object, which the filter refused, and drew no rows. - Updated dependencies [f229dfd] - Updated dependencies [322ded7] - Updated dependencies [f4cafd5]