Skip to content

Commit 8e127e3

Browse files
committed
Merge origin/main into claude/sec-hardening-r12
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibvynRbCtMndW8EHNGc
2 parents 341c43a + af1d59b commit 8e127e3

15 files changed

Lines changed: 194 additions & 107 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): an objectstack-data eval checks that a vendor field is relabelled with `fieldPatches`, never redeclared in `fields`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/evals/objects-fields-relationships.json` gains case 7: an author wants HotCRM's `crm_account.industry` to read "Sector" instead of "Industry". The accept set requires `fieldPatches` on a `defineObjectExtension` authored in `hotcrm.custom` (an option's label keyed by its stored value where the field declares its own options); it refuses `industry` redeclared in `fields`, which takes the field over and cuts it off from HotCRM's upgrades. No skill text changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the objectstack-data skill now leads a hook author to the save notice
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
The `objectstack-data` rule index described `rules/lifecycle.md` as retention-only, and `references/data-hooks.md` listed no `notice` member, so an author writing a save hook from this skill never found `ctx.notice(message)`. The index entry now names the save notice, and the sandbox `ctx.*` table and the `HookContext` listing each carry a `notice` row that points at `rules/lifecycle.md` § Save Notice. Growth is paid by same-file deletions of restated prose; both token-ratchet rows are re-locked down at the landed counts.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): objectstack-api's Metadata API section teaches the `/meta/:type` list door's `?names=a,b,c` filter (one comma-separated value; an unknown name absent, an empty value refused `400`, the `package` list refuses the key) and its closed query set (`package`, `preview`, `object`, `include`, `id`, `names`, `locale`; any other key `400 VALIDATION_ERROR`)
6+
7+
Clause-②: no
8+
Metadata-protocol: none
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the data skill's Field Groups section teaches a group's `visibleWhen` and `requiresFeature`
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
`skills/objectstack-data/references/examples-objects.md` now names the two ways a whole field group (header included) is hidden: `visibleWhen`, a CEL predicate over the record that hides the group when FALSE or when it faults, and `requiresFeature`, a deployment feature flag from the `PUBLIC_AUTH_FEATURES` set, refused when unknown, lowered at parse into the group's `visibleWhen` and stripped, AND-combined after an authored `visibleWhen`; both are presentation only. The real example is `sys_organization`'s Group Structure section, hidden on a single-organization deployment with `requiresFeature: 'multiOrgEnabled'`. The text is paid for by deleting restatements in the same file (the intro sentence, the migrations paragraph, the deprecated-flag aside, the strictness sentence under Metadata Protection, a dangling "see above" and a path comment), so the file's token ceiling moves down, not up.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
The platform skill's operations reference now says what the official image does on `main`: it refuses to start unless `OS_DATABASE_URL`, `OS_AUTH_SECRET` and `OS_SECRET_KEY` are set at runtime (an explicit `file:` URL on a mounted volume passes), and a Common ops pitfalls row tells an upgrade to keep the values an old container generated (`auth-secret`, `dev-crypto-key`, `data/objectstack.db` under `/home/node/.objectstack`) rather than set fresh ones, which would leave every saved credential unreadable.

‎docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md‎

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ declaration to any package in the closure is withdrawn, and a dependent's same-n
2121
[`6549129352`](https://github.com/objectstack-ai/objectstack/issues/28404#issuecomment-6549129352) on #28404, follow-up c);
2222
[D9](#d9)'s `action` paragraph reads the landed ledger switch; the [Consequences](#consequences) carry the base-upgrade
2323
displacement cost. The amendment lands as the rewrite did — by the maintainer's hand-merge of the PR cut from #28390.
24+
· **Amended in place** (2026-11-06, decision D2 on epic [objectstack-ai/cloud#3652](https://github.com/objectstack-ai/cloud/issues/3652), ruling record [`6681380041`](https://github.com/objectstack-ai/cloud/issues/3652#issuecomment-6681380041), maintainer, verbatim: 「修订为允许只提示(推荐)」):
25+
a base's upgrade plan may report, as advice, each `.custom` override that hides a vendor change; `basedOn` still never gates, and nothing is refused, merged or rebased on the finding ([D2](#d2), [D6](#d6), the [Supersede table](#supersede-table)'s §9 row, [Consequences](#consequences), merge question 2).
26+
It lands by the maintainer's hand-merge of the PR cut from #30881.
2427
**Decided by**: the maintainer, 2026-10-30, in the desktop session that re-planned the epic, verbatim and
2528
untranslated as epic #28236 records them — the direction 「方向定为包级覆盖:代码和 Studio 用同一机制,定制都进 .custom。」; the suffix 「同意 后缀改成 .custom」; the eight questions 「等我拍板的 8 个问题,全部同意」; the extension
2629
fields 「扩展字段用 __c 后缀,只有 .custom 包能用。」; the item toolbar 「同意新增 2h「Studio 项工具栏」并放在 2a 之前」;
@@ -207,9 +210,17 @@ replaces the base's item **whole** for every read that serves the base's name ([
207210
item document — not in a manifest list, not in a side table — so it travels with the item through export and git, and
208211
the `.custom` manifest needs no index of what it overrides (Q2, 「全部同意」: declaration in the item body). `package`
209212
names the base; `basedOn` records which version of the base **package** — its `manifest.version`, not a history version
210-
of the item — the author started from (ruling record 6549129352 on #28404, aligned here). **`basedOn` is recorded,
211-
not judged**: no door compares it with the installed base's version, no upgrade diff is produced, and nothing is
212-
refused on it (epic #28236, *Not in this epic*: upgrade diff / `basedOn` checking, recorded only). Whole-document
213+
of the item — the author started from (ruling record 6549129352 on #28404, aligned here). **`basedOn` is recorded and
214+
never gates** (epic #28236, *Not in this epic*: upgrade diff / `basedOn` checking, recorded only). **One reader is
215+
admitted, as advice** (amended 2026-11-06, decision D2 on objectstack-ai/cloud#3652): a base's **upgrade plan** — the
216+
preview of a base upgrade before it runs — may list as advisory findings (a) a `.custom` item whose declared override
217+
names a base item the upgrade changes between the installed and the new version ("this override hides a vendor
218+
change"), and (b) an override whose `basedOn` is not the installed base's `manifest.version`. On either finding no door
219+
refuses, no token is asked, and nothing is merged, rebased or rewritten automatically; the upgrade proceeds as it would
220+
without it, and re-basing stays the customer's act. The plan carries both findings in an **advisory class** that its
221+
refusal never reads and that no finding-set token covers, so neither becomes a gate by sharing a response with a
222+
refusing finding. The finding is not the base-upgrade interception ADR-0141 D3 defers, because it refuses nothing, and [D3](#d3)'s `^<major>`
223+
reasoning (merge question 1) is unchanged. Whole-document
213224
replace is ADR-0005's binding principle 3 and ADR-0131 D6's O rule carried over unchanged: no field-level patch, no
214225
three-way merge — the author who changes one column ships the whole view.
215226
@@ -259,7 +270,8 @@ customer pull for in-place customization appears; deferred again here." The pull
259270
**three of the five** on facts the platform serves: the **badge** (an item of `.custom` is marked "customization"; an
260271
override is marked "overrides `<base>`" from its declaration), the **customization list** (the per-package read of
261272
[D8](#d8), and the landing's counts) and **revert** ("Restore package original" = delete the overriding item from
262-
`.custom`, so the base's document is served again). **Diff-vs-base and the upgrade skip-report stay deferred**, and §9's
273+
`.custom`, so the base's document is served again). **The advisory upgrade finding above is chartered; a field-level
274+
diff-vs-base view and the upgrade skip-report as a merge tool stay deferred** (amended 2026-11-06), and §9's
263275
second bullet — no clone provenance — stands ([D4](#d4)). ADR-0131 D6's sentence that the customer's change is
264276
"environment-level state beside" the managed item is superseded: the change is an item of a package beside it. Its
265277
other sentences stand — no door edits a managed definition, environment scope, no per-organization axis.
@@ -390,7 +402,8 @@ Maintainer, verbatim: 「「Edit {app} in Studio」代码包/已安装包一律
390402
anything DDL or a stored value depends on stay the vendor's ([D10](#d10)); the customer hides through views and
391403
permissions, as ADR-0131 D6's table has it.
392404
- **No code-only type** (`hook`, `job`, `api`, `agent`, `field` on its own, …) gains an override channel.
393-
- **No clone lineage, no upgrade diff, no `basedOn` judgement** ([D2](#d2), [D4](#d4)).
405+
- **No clone lineage, no field-level upgrade diff, no gate on `basedOn`** ([D2](#d2), [D4](#d4)) — the upgrade plan's
406+
advisory finding ([D2](#d2), amended 2026-11-06) refuses, merges and rebases nothing.
394407
- **No fields table in the object designer** (#27356 row 14, letter **C**, maintainer 2026-10-30T10:07Z). The Records
395408
grid's columns and the Form canvas each enumerate every field and open the one field inspector; objectui#5813 and
396409
objectui#12450 stand. Maintainer, verbatim: 「Studio 的对象设计器,第一栏数据不就是每一个字段吗?表单对应的不也是每一个字段吗」.
@@ -560,7 +573,7 @@ recorded sentences stay in their records; their Status lines carry the dated poi
560573
| **ADR-0141 D3** (deferred, by name) — the uninstall row | "**Uninstall protection** — refusing to uninstall a package another installed package depends on" · "The uninstall proceeds; the dependent's lookups dangle. Only ADR-0029's extender refusal stands" · "A first customer uninstall that strands a dependent" | For the **paired case** the item is decided: uninstalling a base is refused while its `<base>.custom` exists, naming it ([D3](#d3)). The general item — a dependent that is not the base's own `.custom` — stays deferred with its trigger. | `packages/objectql/src/registry.ts#uninstallPackage` gains the pair check beside the ADR-0029 extender refusal (`packages/objectql/src/registry.ts#PackageUninstallExtendedError` is the shape). Pin: `packages/objectql/src/registry-assert-package-uninstallable.test.ts`. Card N-14. |
561574
| **ADR-0070 D3** (select-or-create a base first) and **D5** (retire the stopgaps via a migration affordance) — the paired case | D3: "Every authoring surface follows the same contract; none silently defaults into a catch-all:" · D5: "Existing `package_id = null` rows are not broken." · "A small migration (or admin action) can bulk-assign legacy orphans to a default base named for the environment." | For a customer's first customization of an installed base, the base is `<base>.custom`, created by the ensure door without a prompt ([D3](#d3)) — a deterministic, declared, per-base target, not a catch-all; everywhere else D3's prompt stands. A package-less overlay row of a packaged item migrates into that pair as a declared override, not into "a default base named for the environment", and the package-less write then closes ([D11](#d11)); a package-less row no package ships keeps D5's treatment. | `packages/metadata-protocol/src/protocol-write-package-scope.ts#resolveWritePackageScope` (the target package the ensure door hands the write); `packages/metadata-protocol/src/protocol-environment-rows.ts#packagelessAddress` (closes after the migration). Pin: `packages/metadata-protocol/src/protocol.packageless-save-address.test.ts`. Cards N-13, N-16. |
562575
| **ADR-0029 D7** (shell + slots; contributions) — amended, not superseded | the D7 heading, verbatim: *Shared admin surfaces are "shell + slots"; capability plugins contribute navigation* | The contribution model is unchanged. What D7 did not fix is fixed here: an item another package contributes to a base (a navigation contribution, an extension field, a flow on the base's objects) is drawn **greyed, with its source package named**, when the base is open in Studio ([D3](#d3)). | No gate or pin exists today for the drawing; the Studio one-surface card adds the pin. Card N-19. |
563-
| **ADR-0126 §7.4** (surface) and **§9** first bullet — moved and lifted in part, not reversed | §7.4: "**Leaning D2 — a Setup page for packaged automation** (final call rides this ADR's merge)" · §9: "The ServiceNow-style overlay layer (badge / customization list / diff-vs-base / revert / upgrade skip-report) — recorded as the mature direction **if** customer pull for in-place customization appears; deferred again here." | The switch moves to the item in Studio and the Setup page retires after the landing counts ([D4](#d4)); badge, customization list and revert are chartered on served facts, diff-vs-base and the skip-report stay deferred ([D2](#d2)). | `packages/runtime/src/domains/activation-gate.ts#refuseUngrantedActivationWrite` is unchanged (the authority stays the door's); the console binds it from Studio (`ui/packages/app-shell/src/views/setup/packagedFlows.ts#activationReading`). Cards N-04, N-15, N-24, N-28. |
576+
| **ADR-0126 §7.4** (surface) and **§9** first bullet — moved and lifted in part, not reversed | §7.4: "**Leaning D2 — a Setup page for packaged automation** (final call rides this ADR's merge)" · §9: "The ServiceNow-style overlay layer (badge / customization list / diff-vs-base / revert / upgrade skip-report) — recorded as the mature direction **if** customer pull for in-place customization appears; deferred again here." | The switch moves to the item in Studio and the Setup page retires after the landing counts ([D4](#d4)); badge, customization list and revert are chartered on served facts; the upgrade plan's advisory finding is chartered (amended 2026-11-06); a field-level diff-vs-base view and the skip-report as a merge tool stay deferred ([D2](#d2)). | `packages/runtime/src/domains/activation-gate.ts#refuseUngrantedActivationWrite` is unchanged (the authority stays the door's); the console binds it from Studio (`ui/packages/app-shell/src/views/setup/packagedFlows.ts#activationReading`). Cards N-04, N-15, N-24, N-28. |
564577
565578
Two anchors the epic's territory names are **not** superseded clauses and are listed so they are not read as one:
566579
`packages/spec/src/kernel/namespace-prefix.ts#deriveNamespaceFromPackageId` keeps its rule — an explicitly declared
@@ -597,8 +610,9 @@ is fixed above where it bites.
597610
future type answers "where is it edited" and "where does a customization live" by rule.
598611
- **The vendor's upgrade and the customer's changes never meet.** Upgrades rewrite the base; `.custom` is untouched;
599612
`basedOn` tells a human what the override was taken from. The cost is ADR-0005's and ADR-0131's already: an overridden
600-
item shadows the vendor's later change to that one item until the customer re-bases it, and the platform computes no
601-
diff to help ([D6](#d6)).
613+
item shadows the vendor's later change to that one item until the customer re-bases it. The base's upgrade plan names
614+
each override that now hides a change, as advice ([D2](#d2), amended 2026-11-06); re-basing stays the customer's act,
615+
and the platform computes no field-level diff and merges nothing ([D6](#d6)).
602616
- **The clauses of eight records move** — six superseded in part (ADR-0126, 0131, 0005, 0048, 0141, 0070) and two
603617
amended (ADR-0009, 0029) — each with its gate and pin named ([Supersede table](#supersede-table)); every
604618
implementation card cites its row and changes exactly that pin. No pin is deleted.
@@ -676,9 +690,12 @@ of Q1's refusal and `action` — were ruled by the maintainer on 2026-10-31 (dec
676690
the pair after any patch of the base. The major is the reversible middle, and its payoff comes with ADR-0141 D3: when
677691
a base upgrade is intercepted, the pair's `^<major>` is what stops a major upgrade of the base until the
678692
customization is revisited.
679-
2. **`basedOn` is recorded and never judged** — not silent, and nothing to accept here: the epic's *Not in this epic*
693+
2. **`basedOn` is recorded and never gates** — not silent, and nothing to accept here: the epic's *Not in this epic*
680694
line rules it, verbatim "upgrade diff / `basedOn` checking (recorded only)". It is listed only so the declaration's
681-
contract carries the ruling and no card reads `basedOn` as a gate ([D2](#d2)).
695+
contract carries the ruling and no card reads `basedOn` as a gate ([D2](#d2)). One reader is admitted, as advice
696+
(amended 2026-11-06, decision D2 on objectstack-ai/cloud#3652): the upgrade plan's finding of [D2](#d2), which lists
697+
an override whose base item the upgrade changes or whose `basedOn` is not the installed base version, and refuses
698+
nothing.
682699
3. **The uninstall refusal's shape** is the ADR-0029 extender refusal's family, `409`, from the same door ([D3](#d3)):
683700
one resource-state conflict for "another package still stands on this one", two causes, one envelope.
684701
4. **The display-property class is defined by a test, not a list** ([D10](#d10)): a property is admitted when changing
@@ -718,6 +735,12 @@ of Q1's refusal and `action` — were ruled by the maintainer on 2026-10-31 (dec
718735
names the whole-deployment export `GET /packages/export`, landed for
719736
[#28914](https://github.com/objectstack-ai/objectstack/issues/28914) by PR [#29755](https://github.com/objectstack-ai/objectstack/pull/29755),
720737
as composing the per-package exports unchanged, the pair after its base).
738+
- Card [#30881](https://github.com/objectstack-ai/objectstack/issues/30881) (2026-11-06, the amendment in place that
739+
admits the upgrade plan's advisory finding — decision D2 on epic
740+
[objectstack-ai/cloud#3652](https://github.com/objectstack-ai/cloud/issues/3652), ruling record
741+
[`6681380041`](https://github.com/objectstack-ai/cloud/issues/3652#issuecomment-6681380041)); the finding itself is
742+
card [#30886](https://github.com/objectstack-ai/objectstack/issues/30886), on the upgrade plan of
743+
[#30884](https://github.com/objectstack-ai/objectstack/issues/30884).
721744
- [#27356](https://github.com/objectstack-ai/objectstack/issues/27356) rows 12, 13, 14, 19, 20, 21 and their landed
722745
PRs #27376, #27927, #28076.
723746
- ADR-0005, ADR-0009, ADR-0010, ADR-0029, ADR-0048 (and its 2026-10-08 addendum), ADR-0070, ADR-0126, ADR-0131,

0 commit comments

Comments
 (0)