Skip to content

docs(adr): dated notes bring five ADR passages in step with main (week of 2026-11-20) - #35976

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-hfnba2
Nov 21, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-hfnba2

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

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.

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 feat(spec, objectql, runtime): the in-product AI path can name itself on ExecutionContext.performedBy, and hooks see it on HookContext.provenance #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 docs/adr: ADR-0090 D10 rule 4, ADR-0151 "Leaves unchanged" and the 2026-09-20 one-key note still describe ExecutionContext.performedBy as the OAuth client only; #33786 adds the in-product AI performer #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:

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.

Gate readings on a2cb3f5

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.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No schema touched.)
  • 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.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (Publishes nothing: skip-changeset.)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (Not touched.)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 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.ai/code/session_01L6bhgVHgvc56HEUTseuotH

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>
- ADR-0151 "Leaves unchanged" note: D5's refusal stands, but its reason 2
  predates the ruling that puts an in-product agent id in the audit row's
  performed_by beside OAuth client ids; the note no longer says all of
  D5's reasons stand.
- ADR-0126 section 1.1 note: the capability body is judged by the type's
  schema entry (metadata-type-schemas.ts); the save-door refusals file
  holds the name refusals only.

Claude-Session: https://claude.ai/code/session_01L6bhgVHgvc56HEUTseuotH
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 21, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — ACCEPT (L1-a)

维护者速读

  • 这是你同意的「每周一张 ADR 修订合集卡」的第一个 PR:五份 ADR 里写的和现在代码不一致的地方,各加一段注明日期的补注。原文一个字没改,只在原处后面写「现在实际是什么、哪个 PR 改的、依据哪条裁决」。
  • 五处分别是:
    • ADR-0090/0151:审计的「代谁操作」现在除了外部客户端,还多了产品内 AI 这一种来源。
    • ADR-0113:必填字段的显示条件引用公式时,只在表单算不出该公式时才提醒。
    • ADR-0149:数据集的每个入口都只接受数据集声明过的指标和维度。
    • ADR-0126:「能力」现在可以在环境里新建(打包的仍锁定),四处表述都补了注。
    • ADR-0090:平台基线权限的贡献通道只给常驻平台服务用,租户安装的包不用。
  • 我逐条核对了补注里引用的代码文件、函数和设置,在当前主干上都对得上。
  • 要你做什么:docs/adr/** 需要你亲手批准一次(Tier H)。

Head reviewed: 46b1cf5802a10d02ed588117b90f5bf47be992cf on main 7de1bad5.

  • Two commits, 5 files under docs/adr/, +96/−0. There are no - lines in the diff: every change is an append-only dated note, and no original decision text is rewritten.
  • git merge-tree onto current main is clean.

Rows of card #35731 → notes

Card row Note(s) at this head
ADR-0090 D10 rule 4 + 2026-09-20 note; ADR-0151 "Leaves unchanged" (performedBy second producer) ADR-0090 note under D10; ADR-0151 note under the bullet
ADR-0113 "Author-time fence" (formula warning narrowed) ADR-0113 note
ADR-0149 "Leaves unchanged" (/analytics/dataset/query) ADR-0149 note
ADR-0126, four code-only places (capability) four notes: §1.1 table, the list bullet, the outside row, the reopened item
ADR-0090 D9 (platform baseline channel = always-on platform services only) ADR-0090 note in D9's neighbourhood

All five rows are covered. The rows added to the card later are carried to next week's card, as the PR body's Follow-ups say (the seat's call). The card's ADR-0113 rider ("fix any skills/** quote of the old sentence") finds nothing to fix: git grep over skills/** at this head turns up no quote of the old warn-on-every-formula sentence.

Each cited fact, checked in the tree at this head

Gates

  • node scripts/check-adr-anchors.mjs at this head: OK. 126 anchored files, every governing ADR still referenced, 76280 citations resolve. The card's "re-anchor any scripts/adr-anchors/** entry the edit moves" needs nothing.
  • check-governed-merges --pr 35976, run from a worktree at this head: GOVERNED, Tier H (docs/adr/** ×5). The low-risk arm does not apply: ADR-0090 is a permissions record, as the PR body says.
  • The dev reports dispatch-gates --commands 21/21 exit 0 and a clean overlap check. Not re-run here.

Disclosure

The ADR-0090 D9 note describes the seam's admission bounds (boot window, read and create bits, own objects, one set per contributor). That restates the public contract docblocks on main, and carries no exploit or weakness detail.

Findings

None.

Landing terms

  • Tier H: an APPROVED review from os-zhuang on this head, a green head, then the seat lands it. No L2 is named for a dated-note ADR PR on this card.
  • A new push needs a delta L1 unless it is a clean main merge.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T03:24Z. The brief handed to the isolated contract reviewer for PR #35976 (owed because reviewFace reads docs/adr/** as a contract face). The record follows as its own comment.

Contract review brief — PR #35976 @ 46b1cf5802a10d02ed588117b90f5bf47be992cf (card #35731)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths docs/adr/0090-permission-model-v2-concept-convergence.md docs/adr/0113-required-write-contract-vs-column-constraint.md docs/adr/0126-packaged-metadata-customization-model.md docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35731: its body and EVERY comment (rulings and earlier records included)
· PR #35976: its body, its file list, and the net diff against main at 46b1cf5802a10d02ed588117b90f5bf47be992cf
· the check-runs on 46b1cf5802a10d02ed588117b90f5bf47be992cf: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: docs/adr/0090-permission-model-v2-concept-convergence.md, docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0126-packaged-metadata-customization-model.md, docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35976/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T03:29Z.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 46b1cf5802a10d02ed588117b90f5bf47be992cf
Local-runs: none
Scope: docs/adr/0090-permission-model-v2-concept-convergence.md, docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0126-packaged-metadata-customization-model.md, docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md + none
Security-touching: yes

Read: card #35731 (body and all seven comments), PR #35976 (body, file list, net diff against main, merge base 7de1bad5c), the check-runs on the head, the four ruling comments the notes cite (6837170004, 6902027136, 6999763503, 7000639892), and the cited code on origin/main 9a8bb83d4. Nothing was built or run. No file in the diff implements the notes; the diff is the five ADR files alone, so + none.

Security-touching: yes is meant: the ADR-0090 notes teach the member-baseline grant channel and write attribution, the ADR-0151 note teaches what performed_by holds, and the ADR-0126 notes teach who may declare a capability. The low-risk arm does not apply; the adopting seat adds the security label.

① Derived judgments

② Semver level

skip-changeset with Clause-②: no and Metadata-protocol: none is right: the diff is Markdown under docs/adr/** and publishes nothing. Check Changeset concluded success on the head.

③ Boundary flags

  • SQL push-down: not applicable; the diff holds no code, no query and no id materialisation.
  • Dev flag, "no code in this repository stamps agentId yet": answered, holds. On main the only construction of performedBy outside tests is { clientId } (packages/core/src/security/assemble-execution-context.ts#entryFields, and packages/plugins/plugin-auth/src/auth-actor-attribution.ts for a forwarded agent's identity write); the audit writers and the engine plumbing only read agentId.
  • Dev flag, the two hand-over corrections (ADR-0151 "D5's reason 2 predates it"; ADR-0126 section 1.1 naming metadata-type-schemas.ts for the body check): answered, both hold against the tree.
  • Dev flag, the two stale passages left untouched (ADR-0090 Status line's 2026-11-08 bullet; ADR-0151 D5 body text): answered. They are outside the card's rows and recorded on the card (comment 7033059191). The ADR-0151 note already tells a reader that D5's reason 2 predates the ruling, so the D5 half is covered in substance on this head.
  • Escalated to the maintainer, not a finding on this head: the ADR-0126 section 3 note says the ruling assigned capability no regime and assigns none. That is accurate, and it leaves capability as a runtime-creatable type that is neither in a regime nor, any longer, in the "outside" row as code-only, while section 2 requires a type to name its regime at admission. Its posture today equals the "unassigned, deliberately" row (locked base, free sibling authoring). Whether to record it there is the maintainer's call; a note may not rule it.

④ Design judgment

Each note was read against the code it cites on main, sentence by sentence.

docs/adr/0090 (D9 note, platform baseline channel). Holds. ISecurityService.contributePlatformBaselineSet(contributor, set) is in packages/spec/src/contracts/security-service.ts; platform-baseline-sets.ts admits during boot only (the window closes at kernel:bootstrapped), only objects the contributor owns in the registry, only allowRead and allowCreate, one set per contributor, and refuses '*', every other bit and rowLevelSecurity; the calling seam logs the admission at info and the refusal at warn. The one non-test contributor is packages/services/service-storage/src/attachment-member-grant.ts. The bolded sentence is condition 2 of ruling 6837170004 verbatim, and that ruling names this ADR sentence as "a separate Tier H PR", which this is.

docs/adr/0090 (D10 note) and docs/adr/0151. Hold. execution-context.zod.ts#performedBy carries clientId, agentId, conversationId, confirmationId, refuses a present object naming neither performer (requiredOneOf), and its docblock states the resolve-before-stamp duty and that the run-id room stays reserved. engine-execution-plumbing.ts copies the three keys to HookContext.provenance. plugin-audit/src/audit-writers.ts#auditPerformerMetadata records clientId ?? agentId as performed_by, which is what the ADR-0151 note says of D5's reason 2. ADR-0011's 2026-11-15 amendment note does record the cloud#3826 ruling. The envelope-level "no onBehalfOf" is right (the audit row still writes on_behalf_of from user_id, which the notes do not contradict).

docs/adr/0113. Holds. packages/lint/src/required-visible-when-formula-issue.ts returns nothing when every formula the predicate reads is one the form computes, warns on the write-path arm (a hop through a reference, label(), current_user.can(), or such a formula at any depth) and on the form-only arm (os), and draws nothing for a formula that reads the acting user or is served without its expression; requiredVisibleWhenReference.ts states the same verdict; planObjectFormulas is in ui/packages/core/src/evaluator/formulaRecord.ts.

docs/adr/0149. Holds. undeclaredSelectionMembers is asked in answerDataset through assertSelectionMembersDeclared, after compile and before the draft-preview branch and any read, so every caller of IAnalyticsService.queryDataset meets it; dataset-tools.ts asks it again; the refusal is 400 INVALID_FIELD; a dataset-qualified spelling is refused; an inline dataset is judged against its own declaration. Ruling 6902027136 says exactly 「REST 也拒绝(收紧)」.

docs/adr/0126 (four notes). The capability registry row reads supportsOverlay: false, allowEnvironmentOverlay: false, allowRuntimeCreate: true; capability: CapabilityDeclarationSchema is the type's schema entry; protocol-save-door-refusals.ts refuses a PLATFORM_CAPABILITY_NAMES name and a name another holder declares before anything is written; package-namespace-rename.ts renames a copied capability and its grants and requirements. Rulings 6999763503 (option A, 「同意」) and 7000639892 (「接受现有边界」) say what the notes say. One sentence does not hold:

S1 (should-fix) — docs/adr/0126, the section 1.1 note, "The code-only set is now field, job, api, agent." This is a claim about the live registry, and the registry the same note cites disagrees. On main, DEFAULT_METADATA_TYPE_REGISTRY holds eight types with supportsOverlay: false, allowEnvironmentOverlay: false and allowRuntimeCreate: false, the table's own definition of tier C ("no runtime write channel exists"): field, picklist, job, api, sharing_rule, queue, assignment_rule, agent. Four of them were admitted after the survey the table records. A note whose job is to bring the passage in step with main writes a new sentence that is out of step the day it lands, and a seat that reads "the code-only set is now" as complete is told picklist or sharing_rule is not in it. Fix on the prose face: say the claim the note can support, for example "Of the five types this table lists as code-only, four remain so: field, job, api, agent. The registry has since gained other types with no runtime write channel, which this table predates." The section 9 note's "the other four code-only types stay as this item says" is relative to the item's own list and holds as written.

Nits (no effect on correctness or the contract):

  • N1 — docs/adr/0090 D10 note and docs/adr/0151 note: "the /mcp door is still the one producer here". A forwarded agent's clientId is also stamped at the door that redeems a rule 5 forward credential, and by auth-actor-attribution.ts#authSystemWriteContext for a forwarded identity write. Both carry the provenance the /mcp door verified, rule 4's own text names the forward door, and main's clientId docblock says "Set by the /mcp OAuth door only", so the note matches the shipped contract wording. "The OAuth agent path" would be the exact phrase.
  • N2 — docs/adr/0090 D9 note: "joins the member baseline every signed-in member holds" omits two bounds the seam's docblock states: a deployment that declares no member baseline (fallbackPermissionSet: null) hands the set to no one, and a host can narrow or decline a contributed object through SecurityPluginOptions.platformBaselineOverrides. Neither widens anything.
  • N3 — docs/adr/0113 note: for the write-path arm it says the field "stays required on every write"; for a current_user.can() formula the engine does compute it on a write that picks a permission-gated option, which the lint message itself says.
  • N4 — header index: ADR-0090, ADR-0113 and ADR-0151 each list their amendments on a **Amended** (date, ref) line under the Status line (ADR-0151's two earlier notes each added one). These notes add none, so the header no longer indexes every dated note. An add-only pointer line per ADR would restore that; the notes are findable in place either way.

No must-fix. S1 is open on this head and earns a delta review of its fix.

Implemented-by: claude/project-thread-hfnba2
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

…-N4)

- ADR-0126 section 1.1 note (S1): it said the code-only set is now
  field, job, api, agent. The registry on main holds more types with no
  runtime write channel; the note now says four of the table's five
  tier C types stay there, and that it does not re-measure the table.
- ADR-0090 D10 note (N1): the OAuth agent path, not only the /mcp door,
  is the one performedBy producer here.
- ADR-0090 D9 note (N2): the set joins the member baseline only when the
  deployment declares one, and a host can narrow or decline it per object
  (SecurityPluginOptions.platformBaselineOverrides).
- ADR-0113 note (N3): the engine does compute a current_user.can()
  formula on a write that picks a permission-gated option.
- ADR-0090, ADR-0113, ADR-0151 (N4): an Amended pointer line in each
  header, where those records index their dated notes. Status lines are
  untouched.

Claude-Session: https://claude.ai/code/session_01L6bhgVHgvc56HEUTseuotH
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m and removed size/s labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T04:00Z. The DELTA brief handed to the same isolated contract reviewer for PR #35976 (delta of its record 7056648819 on 46b1cf58: the fix for S1 and nits N1–N4, one commit). The record follows as its own comment.

Contract review brief — PR #35976 @ a2cb3f5db760739284a6902fbeb47c5479f6793d (card #35731)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths docs/adr/0090-permission-model-v2-concept-convergence.md docs/adr/0113-required-write-contract-vs-column-constraint.md docs/adr/0126-packaged-metadata-customization-model.md docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35731: its body and EVERY comment (rulings and earlier records included)
· PR #35976: its body, its file list, and the net diff against main at a2cb3f5db760739284a6902fbeb47c5479f6793d
· the check-runs on a2cb3f5db760739284a6902fbeb47c5479f6793d: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: docs/adr/0090-permission-model-v2-concept-convergence.md, docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0126-packaged-metadata-customization-model.md, docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35976/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T03:59Z. The DELTA brief handed to the same isolated contract reviewer for PR #35976 (delta of its record 7056648819 on 46b1cf58: the fix for S1 and nits N1–N4, one commit). The record follows as its own comment.

Contract review brief — PR #35976 @ a2cb3f5db760739284a6902fbeb47c5479f6793d (card #35731)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths docs/adr/0090-permission-model-v2-concept-convergence.md docs/adr/0113-required-write-contract-vs-column-constraint.md docs/adr/0126-packaged-metadata-customization-model.md docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35731: its body and EVERY comment (rulings and earlier records included)
· PR #35976: its body, its file list, and the net diff against main at a2cb3f5db760739284a6902fbeb47c5479f6793d
· the check-runs on a2cb3f5db760739284a6902fbeb47c5479f6793d: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: docs/adr/0090-permission-model-v2-concept-convergence.md, docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0126-packaged-metadata-customization-model.md, docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-35976/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T04:02Z.

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a2cb3f5db760739284a6902fbeb47c5479f6793d
Local-runs: none
Scope: docs/adr/0090-permission-model-v2-concept-convergence.md, docs/adr/0113-required-write-contract-vs-column-constraint.md, docs/adr/0126-packaged-metadata-customization-model.md, docs/adr/0149-ai-answers-business-questions-through-the-dataset-semantic-layer.md, docs/adr/0151-ai-service-account-a-headless-agent-is-a-registered-principal-of-its-own.md + none
Security-touching: yes

Delta record. It follows the record on 46b1cf5802a10d02ed588117b90f5bf47be992cf (comment 7056648819, posted 2026-11-21T03:29Z) and covers the one commit since, a2cb3f5db. Read: that commit's diff (4 files, +15 / -7 inside this PR's own notes and headers), the net diff against main (still the five ADR files, +104 / -0, no removed line of main), and the check-runs on the new head. The cited code was read on origin/main. Nothing was built or run. Everything the first record judged and this commit does not touch stands as judged there.

Security-touching: yes stands: the notes teach the member-baseline grant channel, write attribution and who may declare a capability. The PR does not carry the security label yet; the adopting seat adds it.

① Derived judgments

  • Add-only against main: right. The seven lines the commit removes are lines this PR added; against main the diff has no removed line and no Status line is changed.
  • New surface, the header pointer lines: right. ADR-0090, ADR-0113 and ADR-0151 each gain one Amended line below the existing ones, in the form each file already uses, and each says the passage is left as written. ADR-0126 and ADR-0149 keep no such index and gain none.
  • File list unchanged: the five ADR files, nothing else.
  • Gate verdicts. Every check-run on the new head concluded success (26) or skipped (22); none failed.

② Semver level

Unchanged and right: skip-changeset, Clause-②: no; the diff is Markdown under docs/adr/** and publishes nothing.

③ Boundary flags

  • SQL push-down: not applicable; no code in the diff.
  • Nothing new is flagged by this commit. The escalation of the first record stands for the maintainer: capability is runtime-creatable and sits in no ADR-0126 regime; the note records that and rules nothing.

④ Design judgment

S1: closed. The ADR-0126 section 1.1 note now reads "Of the five types the table lists in tier C, four stay there: field, job, api, agent. The registry on main holds more types with no runtime write channel, admitted after the survey this table records; this note does not re-measure the table". That is true against DEFAULT_METADATA_TYPE_REGISTRY on main (field, job, api, agent all three flags false; picklist, sharing_rule, queue, assignment_rule likewise and absent from the table), and it no longer claims a complete live set.

The nits of the first record, as this head answers them:

  • N1: fixed. ADR-0090's D10 note says "the OAuth agent path is still the one producer here", which covers the /mcp door and the rule 5 forward it issues.
  • N2: fixed. The D9 note now says the set joins the baseline "when the deployment declares one" and that a host can "narrow or decline per object (SecurityPluginOptions.platformBaselineOverrides)". Both match platform-baseline-sets.ts ('read' keeps read and withholds create, 'decline' withholds the object; no baseline with fallbackPermissionSet: null).
  • N3: fixed. The ADR-0113 note now says the engine computes a current_user.can() formula on a write that picks a permission-gated option, so the verdict can differ between writes, as the lint message says.
  • N4: fixed. The three header pointer lines exist and describe their notes correctly.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-hfnba2
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — delta ACCEPT (L1-a)

维护者速读

这一轮只改了 PR 自己新加的说明文字,没有动任何代码,也没有删掉 ADR 原文的任何一行。主要修正一句说错的话:ADR-0126 的补注原来说“现在只能写在代码里的类型只剩 field、job、api、agent”,但主干上后来又加了几种同样不能在运行时创建的类型(picklist、sharing_rule、queue、assignment_rule),所以那句话不对。现在改成“表里列的五种里有四种还在,注册表后来又加了别的,这条补注不重新测这张表”,这样说是对的。我上一轮 ACCEPT 时只核了这四种确实是封闭的,没有核“只剩”这一点,那是我漏看了。其余四处小修(权限 ADR 的两处措辞、必填 ADR 的一个例外、三份 ADR 头部加一行修订指引)我都对照了主干代码,说法都对。这个 PR 仍是 Tier H,需要 os-zhuang 批准合并。

Head reviewed: a2cb3f5db (delta from 46b1cf580, one commit, 4 files, +15/−7 inside lines the PR itself added). Against main: five ADRs, +104/−0, still no removed line. Descends from 46b1cf580; git merge-tree onto current main is clean.

Correction to my record 7056471227

That record called the ADR-0126 sentence "the code-only set is now field, job, api, agent" verified. I had checked only that those four entries read allowRuntimeCreate: false, not that they are the only ones. The L2's S1 (7056648819) is right. On main, DEFAULT_METADATA_TYPE_REGISTRY (packages/spec/src/kernel/metadata-plugin.zod.ts) has eight entries with allowRuntimeCreate: false: field, picklist, job, api, sharing_rule, queue, assignment_rule, agent.

Delta, item by item

  • S1, ADR-0126 §1.1 note. The note now reads "Of the five types the table lists in tier C, four stay there: field, job, api, agent. The registry on main holds more types with no runtime write channel, admitted after the survey…; this note does not re-measure the table". Measured on main: capability is allowRuntimeCreate: true (the note's own subject), the other four tier-C types are closed, and four more closed types exist outside the table. The new sentence is accurate and claims nothing further. Closed.
  • N1, ADR-0090 D10 note. "the /mcp door is still the one producer here" → "the OAuth agent path is still the one producer here". This is consistent with the note's own statement that the /mcp OAuth door sets clientId, and that no code in this repository stamps agentId (git grep on main: only the spec schemas and the audit writer's read of provenance.performedByAgentId).
  • N2, ADR-0090 D9 note. Two bounds are added:
  • N3, ADR-0113 note. The added exception says the engine does compute a current_user.can() formula on a write that resolved a permission map. This matches engine-top-level.ts#unservableReason: the arm is !permissions && readsPermissionPredicate(...), so a write carrying the map computes the formula, and the verdict can differ between writes. Accurate.
  • N4, header pointers. One Amended line has been added in each of the 0090, 0113 and 0151 headers. Each names ADR revisions, week of 2026-11-20: rolling checklist of ADR text out of step with main (one governed PR) #35731 and the section of its note. The Status lines are byte-identical to 46b1cf580.

Gates (worktree at a2cb3f5db)

  • node scripts/check-adr-anchors.mjs: exit 0.
  • check-governed-merges.mjs --pr 35976 (PR-head register): Tier H. The reasons are a security/permission catalog path (ADR-0090), and lines that are not add-only notes (header block, and lines inside a decision section). The size is +104/−0, under the human-merge threshold.
  • CI on this head: as the thread reported (26 success, 22 skipped, 0 failures). Not re-run here.

Findings

None.

Non-blocking: the reflowed D9 line in ADR-0090 (…for always-on platform services; tenant-installed packages do not use it**. A tenant-installed package still suggests a default set for an) runs past the file's wrap width. This is cosmetic only.

The L2 delta PASS 7057001785 covers this head. L1 does not replace the L2. Tier H, so this needs an os-zhuang APPROVED review to land. I have not approved, merged, marked ready, enqueued, or requested review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Tier H approval request · 2026-11-21T04:07Z · @os-zhuang, this PR is ready for your Tier H review on head a2cb3f5db760739284a6902fbeb47c5479f6793d.

What it does: this week's ADR revisions (card #35731). It adds dated notes to five ADRs (0090, 0113, 0126, 0149, 0151) that say what changed in the code since each decision, with the merged PR and commit for each. Add-only: +104/−0, no existing line removed or reworded. Three ADRs also get an Amended pointer line in their header; no Status line changes. The Tier H trigger is docs/adr/**, and ADR-0090 is a permission-model ADR, so the low-risk arm does not apply.

  • Contract review at CONTRACT_REVIEW_TIER, by the same isolated reviewer in both rounds: PASS 7056648819 on 46b1cf58 with one should-fix (S1, the ADR-0126 §1.1 code-only list was wrong against the type registry) and four nits, then delta PASS 7057001785 on this head, with S1 closed and the nits fixed. Security-touching: yes (permission-model notes). Briefs 7056589648 and 7056982242.
  • L1-a: ACCEPT 7056471227 on 46b1cf58, then delta ACCEPT 7057038175 on this head.
  • check-governed-merges --pr 35976 reads Tier H (docs/adr/** ×5).
  • CI on this head finished with no red: 26 success, 22 skipped.
  • Out of this PR, for you: the review notes that the capability metadata type is runtime-creatable but sits in no ADR-0126 regime, while §2 asks every type to name its regime at admission. The seat brings that to you separately; this PR does not rule on it.
  • Three rows added to the card after the build (ADR-0158, ADR-0093, ADR-0154) are listed under Follow-ups and carry to next week's card when this PR closes ADR revisions, week of 2026-11-20: rolling checklist of ADR text out of step with main (one governed PR) #35731.

The seat lands after your approval (ruling C, 2026-09-13).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 21, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 21, 2026 05:17
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 007a607 Nov 21, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-hfnba2 branch November 21, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR revisions, week of 2026-11-20: rolling checklist of ADR text out of step with main (one governed PR)

3 participants