You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 85857b2
Browse filesBrowse the repository at this point in the historyBrowse files
docs(adr): dated notes bring five ADR passages in step with main
Append-only notes dated 2026-11-20, each beside the passage it corrects;
no decision text is rewritten.
- ADR-0090 D10 rule 4 and the 2026-09-20 note; ADR-0151 "Leaves
unchanged": ExecutionContext.performedBy has a second, server-constructed
producer, the in-product AI path (agentId, conversationId,
confirmationId), since PR #34018.
- ADR-0113 "Author-time fence": the formula visibleWhen warning fires only
for a formula the form cannot compute, since PR #35475.
- ADR-0149 "Leaves unchanged": every dataset face answers declared members
only, ruling 6902027136, PR #34198.
- ADR-0126 sections 1.1, 2, 3 and 9: capability is runtime-creatable and
overlay-closed, rulings 6999763503 and 7000639892, PR #35261.
- ADR-0090 D9: the platform baseline contribution channel is for always-on
platform services only, condition 2 of ruling 6837170004, PR #32932.
Claude-Session: https://claude.ai/code/session_01L6bhgUU7y15SHQsH8q8y74
Co-authored-by: Claude <noreply@anthropic.com>
> `allowEnvironmentOverlay: false` and `supportsOverlay: false`, the tier-B posture. A brand-new
96
+
> capability can be saved in the environment, and a packaged declaration cannot be re-declared or
97
+
> re-scoped there. The save door refuses a platform capability name and a name another holder
98
+
> already declares before anything is stored, and judges the body by `CapabilityDeclarationSchema`
99
+
> (`packages/metadata-protocol/src/protocol-save-door-refusals.ts`). An unmanaged copy (ADR-0131
100
+
> D6) copies an app's capabilities and renames them with the copy when it takes a new namespace
101
+
> (`packages/metadata-protocol/src/package-namespace-rename.ts`). Ruled by the maintainer on
102
+
> #35157: option A, record 6999763503 (「同意」), and the bound of record 7000639892
103
+
> (「接受现有边界」). The code-only set is now field, job, api, agent. The table is left as
104
+
> written.
105
+
90
106
Three real mechanisms operate across those tiers, each invented separately:
91
107
92
108
-**Org overlay** (ADR-0005): tier A only. Per-org rows for any other type are **phantom writes**
@@ -160,6 +176,12 @@ the artifact are live at once, or when a customization is wrong?**
160
176
disable switch** — the same posture as `job`. The registry flags are untouched: authoring a
161
177
brand-new sibling hook stays open, exactly as today.
162
178
179
+
> **Note (2026-11-20, #35731).**`capability` has left this list: since PR #35261 (`6ffa816e`)
180
+
> it is runtime-creatable and overlay-closed, on the maintainer's ruling 6999763503 on #35157
181
+
> (option A, with the bound of record 7000639892). Customizing a packaged capability is still
182
+
> not possible; a new one can be authored in the environment. See the note under §1.1. The
183
+
> bullet is left as written.
184
+
163
185
A **new metadata type** (or newly admitted dynamic kind) must declare its regime at admission,
164
186
in its registry-entry comment, using this rule. A customization mechanism that fits none of the
165
187
three regimes is not a gap in this ADR — it is a signal the mechanism is wrong (Prime Directive
@@ -179,6 +201,12 @@ From the survey's per-type table; classes are the survey's measurements, not asp
179
201
|**outside**| field, job, api, capability, agent (code-only) · **hook** (amendment ruling 1 — package code maintaining the package's own invariants; no ledger row, no disable switch; sibling authoring open as today) · seed, external_catalog (one-shot / derived — nothing durable to customize) · datasource (origin-gated: code-defined read-only, runtime-created free) | Recorded so their absence from the regimes reads as decided, not overlooked. |
180
202
|**unassigned, deliberately**| page, dataset, doc, book, mapping | Presentational/content tier-B types with no measured customization pull beyond re-authoring a sibling. Today's posture (locked base + free sibling authoring) stands. First real pull picks a regime **by the D1 rule** — likely O via the ADR-0005 admission pair (page/dataset/book) — and does so in an ADR-0005 revision, not ad hoc. |
181
203
204
+
> **Note (2026-11-20, #35731).** The **outside** row above lists `capability` as code-only.
205
+
> Since PR #35261 (`6ffa816e`) it is runtime-creatable and overlay-closed (ruling 6999763503 on
206
+
> #35157, option A, with the bound of record 7000639892): a packaged declaration stays locked, and
207
+
> a new capability can be authored in the environment. The ruling assigned it no regime, and
208
+
> this note assigns none. See the note under §1.1. The row is left as written.
209
+
182
210
Two clarifications the survey forces:
183
211
184
212
-**Managed extension fields** (`plugin-auth/src/managed-extension-fields.ts`) are **not** a
@@ -495,6 +523,10 @@ callers first, or don't), and preserves "packaged code calls what it names".
495
523
clone's references stay pointed at what the original pointed at, and the surface tells the
496
524
admin so).
497
525
- Reopening any code-only type (field, job, api, capability, agent).
526
+
> **Note (2026-11-20, #35731).** For `capability` this item was reopened: the maintainer's
527
+
> ruling 6999763503 on #35157 (option A, 「同意」) made it runtime-creatable, overlay stays
528
+
> closed, and PR #35261 (`6ffa816e`) implements it. The other four code-only types stay as this
529
+
> item says. See the note under §1.1. The item is left as written.
498
530
- Any edit to `packages/spec` for the ledger itself (it is a platform object; §4).
Copy file name to clipboardExpand all lines: docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
- **Builds on**: [ADR-0021](./0021-analytics-dataset-semantic-layer.md) (the `dataset` semantic layer this record gives the AI; its D-A compiles a dataset to the Cube runtime, its D-C puts RLS inside the runtime, and its Correction of 2026-05-31, re-measured here: of its three unexecuted keys two are since retired and one executes), [ADR-0071](./0071-dataset-semantic-layer-depth.md) (multi-hop `include`, the only cross-object reach a dataset has), [ADR-0049](./0049-no-unenforced-security-properties.md) (enforce-or-remove — every key below names its reader; the `apiEnabled` exposure door every dataset face asks), [ADR-0011](./0011-actions-as-ai-tools.md) (the AI acts through declared tools, not through raw access), [ADR-0090](./0090-permission-model-v2-concept-convergence.md) D10 (an agent acts on intersected authority; a narrowed read arrives with the narrowing stated), [ADR-0100](./0100-credential-field-channels.md) (`internal` fields are refused on every analytics face), [ADR-0037](./0037-live-canvas-draft-preview.md) (the preview face of `queryDataset`), [ADR-0139](./0139-engine-internal-semi-join-leaf-readable-parent-ids.md) D1 and D3 (the engine-internal ReadableIds leaf, and the driver's compile-it-or-refuse rule the native face follows by declining), [ADR-0112](./0112-error-code-vocabulary-and-ledger.md) (the refusal envelope the tools answer in), [ADR-0078](./0078-no-silently-inert-metadata.md) (why a key with no reader is refused rather than parsed clean).
8
8
-**Amends**: nothing in `docs/adr/`. It retires two spec prescriptions — the `description` guidance entries on `DatasetDimensionSchema` / `DatasetMeasureSchema` and `DATASET_MEMBER_NO_DESCRIPTION` in the translation schema — under [M1](#m1--where-the-ai-facing-text-of-a-measure-or-dimension-lives), ruled A; child card 1 carries the retirement. Those prescriptions were written when a member description had no reader (ADR-0078); the reader this record adds is what changes the answer, not the rule.
9
9
-**Leaves unchanged**: the dataset author surface except the four keys in D1 (`object`, `include`, `filter`, `field`, `aggregate`, `derived`, `duration`, `polarity`, `format`, `protection`, `overrides` all as they are); every existing analytics face and its gate chain (`/analytics/query`, `/analytics/sql`, `/analytics/dataset/query`, the dashboard and report renderers); the Cube layer (`CubeSchema`, `getMeta`); the existing MCP object tools (`list_objects`, `describe_object`, `query_records`, `get_record`, `aggregate_records`) and their OAuth scope mapping; what the ADR-0021 Correction's three keys have since become on `QuerySchema` (`joins` and `windowFunctions` retired, `having` executed engine-side) — nothing here reads, revives or widens any of them.
10
+
> **Note (2026-11-20, #35731) — every dataset face answers declared members only.** The bullet above lists `/analytics/dataset/query` and its gate chain as unchanged. By the maintainer's ruling 6902027136 on #34005 (「REST 也拒绝(收紧)」), PR #34198 (`898655a9`) changed it: a dataset selection names only the measures and dimensions its dataset declares. The one rule is `undeclaredSelectionMembers` (`packages/services/service-analytics/src/dataset-declared-members.ts`), asked inside `IAnalyticsService.queryDataset` (`packages/services/service-analytics/src/analytics-service.ts#answerDataset`) after the dataset compiles and before anything is read, so it reaches every face that calls it: the REST door, single and batch (`packages/rest/src/analytics-routes.ts`), `query_dataset` (which also asks it itself, `dataset-tools.ts`), the MCP bridges on both transports, the dashboard and report renderers that read through the REST door, and the publish build probes (`packages/metadata-protocol/src/build-probes.ts`). A member the dataset does not declare, in `measures`, `dimensions` or a `timeDimensions` entry, is refused with 400 `INVALID_FIELD`; a spelling qualified by the dataset's name is not a declared name. An inline dataset (a Studio draft) is judged against its own declaration. The other entries hold as written: `/analytics/query` (the cube door, which keeps its ad-hoc members), `/analytics/sql`, the Cube layer and the MCP object tools are unchanged. The bullet is left as written; read its `/analytics/dataset/query` entry with this note.
10
11
-**Consumers**: `@objectstack/spec` (the four keys, their aliases, guidance and validation; the two tools' input/output schemas; the translation-group keys; the liveness ledger rows), `@objectstack/service-analytics` (the compiler writes member descriptions onto the Cube; one module builds the dataset catalogue, matches terms, and runs `query_dataset` through `IAnalyticsService.queryDataset`), `@objectstack/mcp` + `@objectstack/runtime` (the bridge seams and the registration of the two tools under `data:read`, on both transports), `objectstack-ai/cloud` (service-ai's tool registry registers the same two definitions; 问数's planner applies the selection rule; `ask-accuracy` gains the business-term set — cloud#3825 item 3), `examples/app-crm` and `objectstack-ai/hotcrm` (their shipped datasets gain synonyms and descriptions, as the first authored vocabulary).
0 commit comments