From 808e249fb5a4ee35eece9a99ad798a249ed6c09a Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 00:19:05 +0000 Subject: [PATCH 1/2] docs(adr): three records gain dated notes for the last four rows of the weekly revisions (week of 2026-11-29) Append-only notes dated 2026-12-01; no decision text is rewritten and no decision changes. - ADR-0161, K7 components table: the split algorithm version is kept per strategy and read for the strategy the source resolves to; the single exported constant is retired. - ADR-0161, Consequences: the service keeps a sync state for each source; whether an index is due for a build is still read from the stored fingerprint and recipe hash. Both notes are indexed in the record's Amended lines, as its earlier notes are. - ADR-0085, the notes of 2026-11-27 and 2026-11-30: fieldTabs is in the spec and is drawn on every tier of the standard record page, so both keys are built. - ADR-0084, the "what the amendment replaces" table: the organization's own flows have retired, and the entries of a package's menu that open no type's list are named as they stand. Claude-Session: https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS Co-authored-by: Claude --- ...cation-builder-information-architecture.md | 2 ++ ...semantic-roles-over-surface-hint-blocks.md | 24 +++++++++++++++++++ ...urn-knowledge-source-is-a-governed-type.md | 17 +++++++++++++ 3 files changed, 43 insertions(+) diff --git a/docs/adr/0084-application-builder-information-architecture.md b/docs/adr/0084-application-builder-information-architecture.md index e7979f5f464..89d95fad88e 100644 --- a/docs/adr/0084-application-builder-information-architecture.md +++ b/docs/adr/0084-application-builder-information-architecture.md @@ -513,6 +513,8 @@ ADR-0070 is not edited by this amendment. Where the ruling restates its D1 and D | [ADR-0070](./0070-package-first-authoring.md) D1–D6 | Not edited. D2 as amended stands by the ruling on question 1: a package is disabled, enabled and deleted in Setup. D1 and D5 are restated by the ruling under [Organization-level content](#amendment-2026-11-26-org), and the phase-4 cards mark them. | | [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D10: "ADR-0084 needs no change" for `form` | Written before the type → group table took one pinned row per type. `form` now needs a row, and this amendment says where it goes. ADR-0159 is not edited. | +*(Amended 2026-12-01, card [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), which decides nothing: the table's row "Entries that are not a type" says "The organization's own flows retire when the door that moves loose items ships." The door has shipped and they have retired, the entry and the package-less scope (`~org`) it opened alike, as the note of 2026-11-29 under [Organization-level content](#amendment-2026-11-26-org) records. Three changes carried it: the cross-package list's selection that moves loose items into a package ([#38389](https://github.com/objectstack-ai/objectstack/pull/38389)), the retirement of the bulk adopt ([#38545](https://github.com/objectstack-ai/objectstack/pull/38545)), and the retirement of the package-less scope with its entry ([#38598](https://github.com/objectstack-ai/objectstack/pull/38598)). Two sentences still count four entries with no note beside them: "The menu also holds four entries that open no type's list", which opens [Entries that are not a type](#entries-not-a-type), and "The four entries that are not a type are 高级 on a package" in the amendment of 2026-11-25. Each counts the rows of that section's table as it was first written. Of those rows, a package's menu draws the default sharing overview and Diagnostics today, both 高级, as the note of 2026-11-29 under [item 3](#amendment-2026-11-25-silent) says; the organization's own flows are retired, and the cross-package directory is the entry the 2026-11-26 amendment moved to Setup. With the entries the amendments of 2026-11-25 and 2026-11-26 added, the entries of a package's menu that open no type's list are 概览 Overview, the default sharing overview, Diagnostics and 全部类型 All types (`ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts#StudioMenuEntryKind` names the three inside the fold, and 概览 is the menu's first row). The row and both sentences are left as written; read them with this note.)* + ### Written here where the rulings were silent (for the approver's merge) {#amendment-2026-11-26-silent} Merging accepts them; an objection names the number. diff --git a/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md b/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md index b39473fd7cc..1c3fc8716a0 100644 --- a/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md +++ b/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md @@ -189,6 +189,30 @@ Keys that merely hide/re-arrange correct information (`hideRelatedTab`, `showRef > [#37802](https://github.com/objectstack-ai/objectstack/issues/37802) lands it. The 2026-11-27 note > is left as written; read that sentence with this note. +> **Note (2026-12-01, [#37802](https://github.com/objectstack-ai/objectstack/issues/37802), carried +> by [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)).** The second half of +> that sentence of the 2026-11-27 note is answered too, so both keys are built, and no decision +> changes. The 2026-11-30 note above says "The second half stands: `fieldTabs` is not in the spec"; +> that no longer describes `main`. `fieldTabs` is in the spec: `ObjectSchema.fieldTabs` is an +> optional list of `{ key, groups }` entries +> (`packages/spec/src/data/object.zod.ts#ObjectFieldTabSchema`). `key` names the tab, and `groups` +> lists keys of the object's own `fieldGroups`: those groups are drawn in that order in a tab of +> their own and leave the overview. The tabs come right after the overview, in declared order, ahead +> of every other tab, as the 2026-11-27 note says. A tab takes its title and icon from its first +> group, and the reader's arrangement neither moves nor hides it. The parse refuses a group the +> object does not declare, a group two tabs name, a group that places a related list, and a repeated +> `key`. The field tabs are drawn on every tier of the standard record page: the full page, the side +> preview and a phone. The limit to the wide full page in the 2026-11-27 note is `pinOverview`'s +> alone. Only the standard record page reads the key: the entry form, print pages and authored +> `full`, `html` and `react` pages lay out every group as before. Like `pinOverview`, it is not an +> object-extension key: `ObjectExtensionSchema` refuses it with guidance that names +> `ObjectSchema.fieldTabs`. The placement is +> `ui/packages/plugin-detail/src/synth/buildDefaultPageSchema.ts#fieldTabPlacement`. Built by +> [#38742](https://github.com/objectstack-ai/objectstack/pull/38742); `pinOverview` was built by +> [#38679](https://github.com/objectstack-ai/objectstack/pull/38679), as the note above records. The +> two notes above are left as written; read "Neither key is in the spec yet" and "The second half +> stands" with this note. + ### 3. Deletions (all evidenced zero-author) - **`detail` block removed from `ObjectSchema`** — all three typed keys. `renderViaSchema` retires *together with* the legacy monolith renderer path in objectui (separate execution PR; the key is only that path's steering wheel, deleting it alone saves nothing). `hideReferenceRail`/`hideRelatedTab` are removed outright (the former is a proven no-op for spec authors; the latter's raison d'être — overriding rail/tab dedup — died with the rail). diff --git a/docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md b/docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md index 9dd5e0fe74e..fe40e56046d 100644 --- a/docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md +++ b/docs/adr/0161-knowledge-platform-boundary-platform-owns-assembly-sync-split-record-return-knowledge-source-is-a-governed-type.md @@ -22,6 +22,8 @@ - **Amended** (2026-11-29, [#38502](https://github.com/objectstack-ai/objectstack/issues/38502)): a fourth dated note, under "What follows from the two lists" in [K1](#k1--the-boundary), amends that list's sentence "The service does not choose a model, compute a vector, score a candidate, rerank or parse a file": the service may re-order the hits it is about to answer by an ordering their source declares against a fact about the caller, by position and never by score, and a source may declare what a hit brings with it (`source.affinity`, `source.expand`). It is written on the maintainer's ruling of that day, his choice of the decision card's option 「A 精简:排序加带出」 (record [`7251603512`](https://github.com/objectstack-ai/objectstack/issues/38412#issuecomment-7251603512) on #38412). It adds no contract member. A cross-reference stands under [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type). The status line above is left as it is. - **Amended** (2026-11-30, [#38692](https://github.com/objectstack-ai/objectstack/issues/38692)): a fifth dated note, under "Rules for every member" in [K8](#k8--the-contract-additions-decided-item-by-item), amends rule 4 of that list and the reading of the "Hybrid retrieval" row of [K1](#k1--the-boundary), and with it of "hybrid retrieval" in the title, in the D1 key-words line above and in TL;DR item 1: a knowledge source declares which retrieval legs run and the vector leg's share (`source.retrieval`), the adapter reports the modes it supports and still decides how candidates are found and how the legs are fused, and a parameter of one search request is not configuration. Decided by the maintainer on 2026-11-30: ruling record [`7270218011`](https://github.com/objectstack-ai/objectstack/issues/38692#issuecomment-7270218011) on #38692, given on his words 「同意,更新决策卡」 (2026-11-30T06:00Z) and revised after an independent review on his words 「全部采纳,修正裁决」 (2026-11-30T06:16Z); the note records the revised text. It registers two contract members, `AdapterCapabilities.retrieval` and `AdapterSearchOptions.retrieval`; that the second is optional, like the first, is his choice of the decision card's option 「可选(推荐)」 at 2026-11-30T07:57Z (record [`7272337479`](https://github.com/objectstack-ai/objectstack/issues/38692#issuecomment-7272337479) on #38692). It is in force from the maintainer's merge of the PR that carries it, which the record keeps for him: 「单独 PR,Tier H,由维护者亲手合并」. Cross-references stand under [K1](#k1--the-boundary) and [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type). The status line above is left as it is. - **Amended** (2026-11-30, [#38760](https://github.com/objectstack-ai/objectstack/issues/38760)): a sixth dated note, under "What follows from the two lists" in [K1](#k1--the-boundary), amends the reading of the "Rerank" row of that section, and with it of "rerank" in the title, in the D1 key-words line above and in TL;DR item 1. It amends again the sentence of that list which the fourth note amended, and rule 4 of [K8](#k8--the-contract-additions-decided-item-by-item) as the fifth note left it: a knowledge source may declare that its searches are reranked (`source.retrieval.rerank`), the reranker is the deployment's configuration and no source names a model, and the knowledge service reranks, after the permission re-check and before the cut to `topK`. The adapter contract does not change. Decided by the maintainer on 2026-11-30, after the rulings the fifth note records: on his words 「有就用」 (10:13Z) and 「所以还是应该按照主流系统的做法,开了开关,一律重排」 (10:37Z), as the body of [#38750](https://github.com/objectstack-ai/objectstack/issues/38750), the epic for knowledge retrieval rerank, records them, and on his 「全部同意」 (10:47Z) to the six decisions of that card (ruling record [`7276086125`](https://github.com/objectstack-ai/objectstack/issues/38750#issuecomment-7276086125) on #38750). The first of the six, which is not ruling D1 of the key-words line above, says of this note: "Accepting row 1's ADR-0161 note records it; no separate decision card." It adds no contract member, no tool argument and no settings key. Cross-references stand under [K2](#k2--the-texts-this-record-revises), [K4](#k4--knowledge_source-is-admitted-as-a-metadata-type) and [K8](#k8--the-contract-additions-decided-item-by-item). The status line above is left as it is. +- **Amended** (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)): a seventh dated note, under the components table of [K7](#k7--one-index-fingerprint-a-changed-fingerprint-is-a-new-generation), records that the split algorithm version of that table is kept per strategy and read for the strategy the source resolves to, where the row says "a constant the splitter exports". Built by [#38375](https://github.com/objectstack-ai/objectstack/pull/38375); the single constant was retired by [#38452](https://github.com/objectstack-ai/objectstack/pull/38452). It decides nothing and adds no contract member. The status line above is left as it is. +- **Amended** (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)): an eighth dated note, under the list of [Consequences](#consequences), records that the service keeps a sync state for each source, where the bullet "A stored fingerprint and recipe hash are the only index state the service relies on" says "The service keeps none of its own". Built by [#38307](https://github.com/objectstack-ai/objectstack/pull/38307). Whether an index is due for a build is still read from the stored fingerprint and recipe hash. It decides nothing and adds no contract member. The status line above is left as it is. --- @@ -333,6 +335,14 @@ The index of a source has **one fingerprint**. The service computes it, in one f - **Whose embedder.** K1 gives the embedding calls to the adapter, and an adapter may call the platform's embedder service, an embedder it was built with, or an engine that embeds inside itself. So the first two components are always what the adapter reports, for every adapter. The service never reads them from the deployment's settings around the adapter. - **The split that was applied, not the split that was written.** #37098 resolves `maxChars` as the smaller of the configured value and a share of the embedder's limit, with a settings key beneath the source's own. A changed setting or a changed limit changes the passages, so the resolved values are what is hashed. +> **Note (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), built by [#38375](https://github.com/objectstack-ai/objectstack/pull/38375) and [#38452](https://github.com/objectstack-ai/objectstack/pull/38452)) — the "Split algorithm version" row of the table above: the version is kept per strategy, and the fingerprint reads the entry for the strategy the source resolves to.** The row says "a constant the splitter exports; it changes when the splitter gives different passages for the same text and settings". The splitter no longer exports one constant, and no decision changes. Since #38375 the version is a table with one entry for each split strategy (`packages/services/service-knowledge/src/split/splitter.ts#SPLIT_ALGORITHM_VERSION_BY_STRATEGY`), and the fingerprint reads the entry for the strategy the source resolves to (`packages/services/service-knowledge/src/knowledge-index-fingerprint.ts#computeIndexFingerprint`). The strategy is one of the settings the row names, so the row's rule holds entry by entry: an entry changes when its strategy gives different passages for the same text and the same resolved split. A change to one strategy's passages then starts a new generation only for the sources that resolve to that strategy. The sources of the other strategies keep their fingerprint and are not rebuilt. A change that several strategies share moves every entry whose passages it changes. +> +> - **No fingerprint moved when the table came in.** Every entry started at the one version the fingerprint read before, so #38375 rebuilt nothing. An entry that has been raised since was raised for a change to its own strategy's passages. +> - **The single constant is retired.** #38452 removed the exported `SPLIT_ALGORITHM_VERSION` at once, with no alias. The per-strategy table is the only split version the fingerprint reads, and the package publishes no other. +> - **A new strategy cannot reach the fingerprint without a version.** The table is typed over every strategy. +> +> The table is left as written; read its "Split algorithm version" row with this note. + **A changed fingerprint means a new generation.** A generation is one complete index of one source under one fingerprint. 1. **Generations never mix.** Every stored passage belongs to one generation. Vectors of two models, or passages of two splits, are never ranked against each other. @@ -571,6 +581,13 @@ The children are the epic's, in its layout as it stands after the phase-2 cards - **The docs stay as they are until the children land** (K2). For that time the opening sentence of the protocol page states a position this record has replaced. - **The cloud record owes a pointer to this number** ([Provenance](#provenance)). +> **Note (2026-12-01, [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), built by [#38307](https://github.com/objectstack-ai/objectstack/pull/38307)) — the bullet "A stored fingerprint and recipe hash are the only index state the service relies on" above: the service keeps a sync state for each source, and a build is still decided by what the adapter holds.** The bullet goes on: "The service keeps none of its own". That sentence no longer describes `main`, and no decision changes. Since #38307 the service keeps a sync state for each source: its last build, and the record syncs that failed and are not yet repaired. Where the knowledge plugin can keep it, with the object registered and a data engine bound, it is one durable record per source (`packages/services/service-knowledge/src/knowledge-sync-state.ts#KNOWLEDGE_SYNC_STATE_OBJECT`). The service alone writes it and every node of a deployment reads it, so what a source reports of its last build is the same on every node, and a restart forgets nothing. Otherwise the last build is kept in the process and failed syncs are not counted. The note of 2026-11-28 under the table of [K8](#k8--the-contract-additions-decided-item-by-item) already names this state, in its bullet "A known gap". +> +> - **What decides a build is unchanged.** Whether a source's index is due for a build is read from what the adapter holds for it, the stored fingerprint and recipe hash (`packages/services/service-knowledge/src/knowledge-service-indexing.ts#readIndexStateOf`), at boot and on reload alike. The sync state is not read there. So the bullet's first sentence stands for the decision it was written about, and so does its last clause: an adapter that stores neither can only tell an empty index from a built one. +> - **What the sync state is for.** It reports the last build of a source and how it ended, and how many record syncs failed. A reconcile of the source that completes clears the failures that came before its walk. It does not say which record changes were never attempted, which is the gap the note of 2026-11-28 records. +> +> The bullet is left as written; read "The service keeps none of its own" with this note. + ## Alternatives considered - **Keep #4606's posture**: the contract in the core, engines by integration, nothing added. Not taken: ruling D1. From 128528c50c515b4ba59928481b78c16656b8dad0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Dec 2026 01:13:47 +0000 Subject: [PATCH 2/2] docs(adr): the ADR-0084 note of 2026-12-01 names all three sentences that count four entries, and the change that built the door The note said two sentences still count four entries with no note beside them. The record has three: the third is in the note of 2026-11-26 under "The two tiers". The note now names all three and reads each against the table under "Entries that are not a type" as it was first written. It also names four changes where it named three: the door itself, then the list's selection, the retirement of the bulk adopt and the retirement of the package-less scope. Only the note of 2026-12-01 is edited. Against main the file is still two added lines and none removed. Claude-Session: https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS Co-authored-by: Claude --- docs/adr/0084-application-builder-information-architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adr/0084-application-builder-information-architecture.md b/docs/adr/0084-application-builder-information-architecture.md index 89d95fad88e..c6d5e918968 100644 --- a/docs/adr/0084-application-builder-information-architecture.md +++ b/docs/adr/0084-application-builder-information-architecture.md @@ -513,7 +513,7 @@ ADR-0070 is not edited by this amendment. Where the ruling restates its D1 and D | [ADR-0070](./0070-package-first-authoring.md) D1–D6 | Not edited. D2 as amended stands by the ruling on question 1: a package is disabled, enabled and deleted in Setup. D1 and D5 are restated by the ruling under [Organization-level content](#amendment-2026-11-26-org), and the phase-4 cards mark them. | | [ADR-0159](./0159-forms-are-their-own-metadata-type-public-forms-are-form-items-view-is-lists-only.md) D10: "ADR-0084 needs no change" for `form` | Written before the type → group table took one pinned row per type. `form` now needs a row, and this amendment says where it goes. ADR-0159 is not edited. | -*(Amended 2026-12-01, card [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), which decides nothing: the table's row "Entries that are not a type" says "The organization's own flows retire when the door that moves loose items ships." The door has shipped and they have retired, the entry and the package-less scope (`~org`) it opened alike, as the note of 2026-11-29 under [Organization-level content](#amendment-2026-11-26-org) records. Three changes carried it: the cross-package list's selection that moves loose items into a package ([#38389](https://github.com/objectstack-ai/objectstack/pull/38389)), the retirement of the bulk adopt ([#38545](https://github.com/objectstack-ai/objectstack/pull/38545)), and the retirement of the package-less scope with its entry ([#38598](https://github.com/objectstack-ai/objectstack/pull/38598)). Two sentences still count four entries with no note beside them: "The menu also holds four entries that open no type's list", which opens [Entries that are not a type](#entries-not-a-type), and "The four entries that are not a type are 高级 on a package" in the amendment of 2026-11-25. Each counts the rows of that section's table as it was first written. Of those rows, a package's menu draws the default sharing overview and Diagnostics today, both 高级, as the note of 2026-11-29 under [item 3](#amendment-2026-11-25-silent) says; the organization's own flows are retired, and the cross-package directory is the entry the 2026-11-26 amendment moved to Setup. With the entries the amendments of 2026-11-25 and 2026-11-26 added, the entries of a package's menu that open no type's list are 概览 Overview, the default sharing overview, Diagnostics and 全部类型 All types (`ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts#StudioMenuEntryKind` names the three inside the fold, and 概览 is the menu's first row). The row and both sentences are left as written; read them with this note.)* +*(Amended 2026-12-01, card [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), which decides nothing: the table's row "Entries that are not a type" says "The organization's own flows retire when the door that moves loose items ships." The door has shipped and they have retired, the entry and the package-less scope (`~org`) it opened alike, as the note of 2026-11-29 under [Organization-level content](#amendment-2026-11-26-org) records. Four changes carried it: the door itself, `POST /api/v1/packages/:id/move-in`, which moves a selection of loose items into a package ([#38185](https://github.com/objectstack-ai/objectstack/pull/38185)), the cross-package list's selection that calls it ([#38389](https://github.com/objectstack-ai/objectstack/pull/38389)), the retirement of the bulk adopt ([#38545](https://github.com/objectstack-ai/objectstack/pull/38545)), and the retirement of the package-less scope with its entry ([#38598](https://github.com/objectstack-ai/objectstack/pull/38598)). Three sentences still count four entries with no note beside them: "The menu also holds four entries that open no type's list", which opens [Entries that are not a type](#entries-not-a-type); "The four entries that are not a type are 高级 on a package", under "The two tiers" in the amendment of 2026-11-25; and "Of the four entries that are not a type, the cross-package directory is to leave the menu", in the note of 2026-11-26 under the same heading. Each counts the rows of the table under [Entries that are not a type](#entries-not-a-type) as it was first written. Of those rows, a package's menu draws the default sharing overview and Diagnostics today, both 高级, as the note of 2026-11-29 under [item 3](#amendment-2026-11-25-silent) says; the organization's own flows are retired, and the cross-package directory is the entry the 2026-11-26 amendment moved to Setup. With the entries the amendments of 2026-11-25 and 2026-11-26 added, the entries of a package's menu that open no type's list are 概览 Overview, the default sharing overview, Diagnostics and 全部类型 All types (`ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts#StudioMenuEntryKind` names the three inside the fold, and 概览 is the menu's first row). The row and the three sentences are left as written; read them with this note.)* ### Written here where the rulings were silent (for the approver's merge) {#amendment-2026-11-26-silent}