Repository navigation
Commit 007a607
docs(adr): dated notes bring five ADR passages in step with main (week of 2026-11-20) (#35976)
<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4Uu1Q6zmz4ZDczpw6VhizDZB9)_
Fixes #35731
Clause-②: no
Metadata-protocol: none
repo:objectstack#1 · os-sales · session_01L6bhgVHgvc56HEUTseuotH
Hand-over: built by area b1-S2 (session
`session_01L6bhgUU7y15SHQsH8q8y74`, claim 7032467997) as local commit
`d05f4fc51` on `main` `0e2de2514`, never pushed. This card thread
applied it to `main` `7de1bad5c` (no commit since `0e2de2514` touches
any of the five files, so it applied as is), re-read the whole diff at
`xhigh` against `main` (the build ran at `high`, before the
ADR-amendment `xhigh` standing order in `execution-duties.md` landed)
and added one commit that corrects two sentences of the notes. A second
commit answers the contract review (record 7056648819): its should-fix
S1 and nits N1–N4 (see Acceptance notes).
## 维护者速读
- 用户能看到什么变化:用户无感;五份内部设计记录(权限模型、必填字段规则、软件包定制、AI 问数、AI 服务账号)各在矛盾处旁加一条注明
2026-11-20 的补注,原决定文字一字不改。
- 为什么做:这是本周的设计记录修订合集;AI 席位改代码前会读这些记录,这五处已与上线代码不一致,会把 AI 带偏。
- 出错会怎样:只加文字、不动代码和功能;补注若写错,AI 读到的仍是错误说明,整个 PR 可以直接撤回。
- 要你做什么:审阅后批准一次(设计记录必须由你亲手批)。
## What changes
Append-only notes, each dated 2026-11-20 and placed beside the passage
it corrects (ADR-0126 carries one note per stale passage, four in all).
No decision text is rewritten, struck or reordered, and no Status line
is touched. Each note says what the passage says, what `main` does now,
and names the landing PR and the ruling.
- **ADR-0090 D10 rule 4 and its 2026-09-20 note; ADR-0151 "Leaves
unchanged"**: `ExecutionContext.performedBy` has a second,
server-constructed producer, the in-product AI path (`agentId`,
`conversationId`, `confirmationId`, each resolved before it is stamped).
PR #34018; owner ruling on objectstack-ai/cloud#3826.
- **ADR-0113 "Author-time fence"**: the required-field formula
`visibleWhen` warning fires only for a formula the form cannot compute.
PR #35475 (route A on #35190).
- **ADR-0149 "Leaves unchanged"**: every dataset face answers declared
members only (400 `INVALID_FIELD`). PR #34198; maintainer ruling
6902027136 on #34005.
- **ADR-0126 sections 1.1, 2, 3 and 9**: `capability` is
runtime-creatable and overlay-closed; code-only is now field, job, api,
agent. PR #35261; maintainer rulings 6999763503 and 7000639892 on
#35157.
- **ADR-0090 D9**: the platform baseline contribution channel
(`ISecurityService.contributePlatformBaselineSet`) is for always-on
platform services only; tenant-installed packages do not use it. PR
#32932; condition 2 of maintainer ruling 6837170004 on #32754.
No `scripts/adr-anchors/**` entry moves (every anchor names a code file,
not ADR text). No `skills/**` file quotes the old ADR-0113 sentence, so
nothing there changes.
## Why
AI seats read the ADRs before they change code in governed territory
(AGENTS.md Prime Directive #13). These five passages say something
`main` no longer does, so a seat that trusts them is steered wrong. This
is the week's rolling ADR revisions card: the rows land together as one
governed `docs/adr/**` PR and one approval, on the maintainer's word on
the card (「adr接受你的建议」).
## Tests
Docs-only diff: no package, test or build input is touched, so no
package test or typecheck applies.
## Acceptance notes
- Every row's code was confirmed by content on `main`, not by PR state:
the build read `0e2de2514`, and the hand-over re-read checked each
note's claims again on `7de1bad5c` (the files, symbols, flags and
refusals each note names). Each note names the file that makes it true.
- Two sentences corrected in the hand-over re-read (commit `46b1cf580`):
- ADR-0151 note: it said "D5's reasons stand". D5's refusal stands (an
AI service account still carries no `performedBy`), but D5's reason 2
("`performed_by` holds `sys_oauth_application` ids today") predates the
ruling that puts an in-product agent id in the audit row's
`performed_by` too, which the `performedBy` docblock states. The note
now says that instead.
- ADR-0126 section 1.1 note: it cited `protocol-save-door-refusals.ts`
for the body check by `CapabilityDeclarationSchema`. That file holds the
name refusals; the body is judged through the type's schema entry in
`packages/spec/src/kernel/metadata-type-schemas.ts`. The note now names
each.
- Row 1: PR #34018 lands the contract, the engine copy to hooks and the
audit readers. No code in this repository stamps `agentId` yet; the note
says so. The note names no audit column (card #34057's ask).
- ADR-0151 is `Proposed`. It already carries two dated notes that leave
its Status line as written, so this note follows that form.
- Contract review round (record 7056648819, PASS with one should-fix),
commit `a2cb3f5db`:
- S1, ADR-0126 section 1.1 note: it said "the code-only set is now
field, job, api, agent". The registry on `main` holds eight types with
no runtime write channel (`field`, `picklist`, `job`, `api`,
`sharing_rule`, `queue`, `assignment_rule`, `agent`). The note now says
four of the table's five tier C types stay there and that it does not
re-measure the table.
- N1, ADR-0090 D10 note: "the OAuth agent path is still the one producer
here" (was "the `/mcp` door").
- N2, ADR-0090 D9 note: the set joins the member baseline when the
deployment declares one, and a host can narrow or decline it per object
(`SecurityPluginOptions.platformBaselineOverrides`).
- N3, ADR-0113 note: the engine does compute a `current_user.can()`
formula on a write that picks a permission-gated option.
- N4: an `Amended` pointer line in the headers of ADR-0090, ADR-0113 and
ADR-0151, where those records index their dated notes. No `**Status**:`
line changes, so `docs/adr/README.md` stays current (`adr-index --check`
exit 0).
- The record's escalation (a runtime-creatable `capability` sits in no
ADR-0126 regime) is the maintainer's to rule; this PR does not rule it.
- Landing tier: Tier H (`docs/adr/**`). The diff is add-only (+104 /
-0).
## Follow-ups
Two more passages out of step with `main` since PR #34018, recorded on
the card (comment 7033059191) and not changed here; candidates for next
week's ADR revisions card:
- ADR-0090, Status line, the 2026-11-08 bullet: "rule 4 records it as
`user_id` and leaves `performedBy` to the OAuth client".
- ADR-0151 D5: "It names a performer who is not the subject: the OAuth
client that acted for a person", and reason 2, "`performed_by` holds
`sys_oauth_application` ids today".
Rows appended to #35731 as comments after this PR was built, not carried
here. This PR closes the card, so they roll to next week's ADR revisions
card; each comment holds its full text:
- ADR-0158 Open item 11, the 2026-11-20 note (comment 7049903815; PR
#35903 and PR #35930 merged).
- ADR-0093 D9 (comment 7050220213; PR #35913 merged).
- ADR-0154, the 2026-11-16 note's chain-column bullet (comment
7052347174; PR #35916 merged).
## Verification
Read first, by risk: the ADR-0090 D10 note (attribution semantics), the
ADR-0126 section 1.1 note (the security-catalog bound), the ADR-0149
note (the dataset door).
Two-minute check: `pnpm check:adr-symbol-anchors` prints a green line
saying every anchor across the records resolves, and `git diff
origin/main...HEAD --stat` shows 5 files, 104 insertions, 0 deletions.
<details><summary>Gate readings on a2cb3f5</summary>
`node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack
--commands` derived the same 21 families on `46b1cf580` and on
`a2cb3f5db`; the readings below are the second run, on `a2cb3f5db`. All
21 ran serially, each exit captured before any pipe, and each exited 0
(`@objectstack/lint check:doc-formula-expressions` first answered 3,
prerequisite not met, until `formula` and `lint` were built under
`os-verify-lock`, VERDICT command-exit 0, 5/5 tasks). `--ran`
reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (a DERIVED zero).
`check-governed-merges --branch`: GOVERNED, Tier H, 5 of 5 paths
`docs/adr/**` (`--pr 35976` agrees: the low-risk arm does not apply,
ADR-0090 is a permission record). `overlap-check`: `origin/main` merges
cleanly, VERDICT clean exit 0. Control-byte scan of the five files: 0
hits.
</details>
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind. (No name
added.)
- [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran. `pnpm
lint` was not run locally on this Markdown-only diff; CI's `Lint & Repo
Gates` judges it.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Publishes
nothing: `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [ ] The *Before Submitting* list in CONTRIBUTING.md is done. (Not
walked item by item; the derived gates above are what ran.)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01L6bhgVHgvc56HEUTseuotH
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgVHgvc56HEUTseuotH -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 540022f commit 007a607
5 files changed
Lines changed: 104 additions & 0 deletions
File tree
- docs/adr
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
394 | 414 | | |
395 | 415 | | |
396 | 416 | | |
| |||
502 | 522 | | |
503 | 523 | | |
504 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
505 | 551 | | |
506 | 552 | | |
507 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
384 | 385 | | |
385 | 386 | | |
386 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
387 | 407 | | |
388 | 408 | | |
389 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
90 | 109 | | |
91 | 110 | | |
92 | 111 | | |
| |||
160 | 179 | | |
161 | 180 | | |
162 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
163 | 188 | | |
164 | 189 | | |
165 | 190 | | |
| |||
179 | 204 | | |
180 | 205 | | |
181 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
182 | 213 | | |
183 | 214 | | |
184 | 215 | | |
| |||
495 | 526 | | |
496 | 527 | | |
497 | 528 | | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
498 | 533 | | |
499 | 534 | | |
500 | 535 | | |
| |||
0 commit comments