Skip to content

feat(console): action dialogs draw declared notices; the invite dialogs warn when this server delivers no mail - #39248

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-lk8ab5
Dec 3, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-lk8ab5

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack@os-bill · os-bill · session_01Utp6Cb9JFbMTwmocV9qxio

Fixes #39045

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:服务器没配邮件时,「邀请用户」和「重新发送邀请」对话框在提交前就显示一条警告:不会发出邮件,谁还能接受邀请,其余人需由平台管理员建号。配了邮件就不显示。
  • 为什么做:落实裁决 A(评论 7359751238)的消费端:动作声明的 notices 由控制台在确认框和参数框里画出来,邀请动作采用它,并同步更新 emailDelivery 的功能登记。
  • 出错会怎样:提示只是展示,不拦任何操作;条件算不出来时不画(fail-closed)并在浏览器控制台报一次;可直接撤回本次改动。
  • 要你做什么:无。

What changes

Ruling A on #39045 (comment 7359751238) gave actions a general dialog notice key, ActionSchema.notices, which landed spec-side in #39201. This PR is the consumer half: the console draws the key, the invite actions adopt it, and the emailDelivery registry entry books the reads (ruling term 6).

The console draws notices (ui/packages/**):

  • ActionRunner (core) hands an action's notices, in declared order and named, to the dialog the action opens before it runs, beside the record the dispatch runs against (the row for a row dispatch, else the page record). A param-less action with confirmText gets them in the confirm handler's options (notices). An action with params gets them in the param-collection handler's new 6th argument, and then never in the confirm too. The runner judges no condition.
  • ActionDialogNoticeList (app-shell, new views/ActionDialogNotices.tsx) draws each notice between the dialog's title and its description, in both ActionConfirmDialog and ActionParamDialog. severity picks the tone and icon from the notification surfaces' one severity table (notificationSeverityStyle, now exported from @object-ui/components); info when omitted.
  • Conditions: no declared visible draws the notice, a boolean is its own verdict, anything else is evaluated by evalRowPredicate against the dispatch's record plus the host predicate scope (features, the signed-in user). Fail-closed and loud: a condition that cannot be evaluated draws nothing and warns once, naming the notice and the action (approved by the seat on the claim).
  • Localisation is bundle-first at objects.<object>._actions.<action>.notices.<notice>.title|body (useObjectLabel().actionNoticeText), then the authored text. The confirm path resolves it in useActionTextLocalizer (localizeActionNotices); the console's two param-collection handlers (useConsoleActionRuntime, RecordDetailView) share localizeDialogNotices, so they cannot drift.
  • The four action renderers (action-button, action-icon, action-group, action-menu) forward the key; @object-ui/types ActionSchema carries it; the forward-order pins list it.

Invite User and Resend Invitation warn first (packages/platform-objects):

  • MAIL_NOT_DELIVERED_NOTICES (beside the invite outcome messages) declares mail_not_delivered, severity: 'warning', visible: has(features.emailDelivery) && features.emailDelivery != true. The has() conjunct keeps it off a host that has not received the flag, rather than leaning on fail-closed for the common case.
  • Adopted by the four invite_user actions (sys_user, sys_member, sys_invitation, sys_organization) and sys_invitation.resend_invitation. The invitation is still created, and the post-submit toast still reports the link_only outcome.
  • Translated in all ten shipped locales (generated bundles regenerated; source-hash entries clear).

The feature registry books notice reads (packages/spec/src/kernel/public-auth-features.ts):

  • PublicAuthFeatureEntry gains optional noticePaths (<object>.actions.<action>.notices.<name>). A notice gates nothing, so it is booked apart from gatedInputs; emailDelivery stays an exempt, opt-in, login-surface flag, with its exempt reason rewritten to say it now also draws the invite notices (display only).
  • feature-gate-guard.test.ts checks both directions: every booked path is a declared notice whose condition reads the flag, and every features.* read in any notice condition is booked; a walker floor keeps both loops non-vacuous.

Liveness and docs: the notices row in packages/spec/liveness/action.json (and its children) moves from planned to live, with the console read points as evidence; gen:liveness-counts regenerated. content/docs/protocol/objectui/actions.mdx: only its notices section (Planned callout removed, the both-dialogs and fail-closed rules, the platform adoption).

Changeset: patch for @objectstack/spec, @objectstack/platform-objects and six @object-ui/* packages. Clause-②: yes (widening): new exported names and members, none removed (PublicAuthFeatureEntry.noticePaths; notificationSeverityStyle from @object-ui/components; ActionNoticeDef, ActionDialogNotice, ActionDialogNotices and the param handler's notices argument in @object-ui/core; localizeActionNotices in @object-ui/react; useObjectLabel().actionNoticeText; notices on @object-ui/types ActionSchema). No metadata author can write anything new, so Metadata-protocol: none and patch.

Tests

  • ui/packages/core/src/actions/__tests__/ActionRunner.dialogNotices-39045.test.ts (6): confirm options shape and order, row record over page record, no record, no-notices control, param action gets them in argument 6 and not the confirm, param control.
  • ui/packages/app-shell/src/views/ActionDialogNotices.notices-39045.test.tsx: drawn while mail is off; not while on; not while the flag is absent (has()); boolean and absent conditions; the record read; fail-closed warning naming notice and action; declared order; bundle-first localisation and inline locale maps; both dialogs render the notice above the description, with controls.
  • packages/platform-objects/src/feature-gate-guard.test.ts: the new two-way noticePaths describe. packages/spec/src/kernel/public-auth-features.test.ts: noticePaths grammar.
  • Pin updates: useObjectLabel member count 33 → 34; renderer forward-order pins.

Acceptance notes

  • Features refresh after mail is configured (follow-up for the seat to file). AppContent reads features once per mount (getAuthConfig effect). An admin who configures mail and returns to the invite dialog in the same session still sees the notice until a reload. The notice errs toward the old state for one session; no wrong action follows because it gates nothing.
  • The gate run used base 724b3695; main was merged afterwards (no overlapping files) and the generated-artefact gates re-ran on the merged tree.

Verification

  • Derived gate families for this file surface (scripts/pm/dispatch-gates.mjs), 122 commands, base 724b3695: 118 passed first time. List: /mnt/project-files/card-39045/gates-ran-015998c0.txt (card-thread file).
    • pnpm --dir ui exec vitest run scripts/ was OOM-killed in this container at the default worker count; re-run with --maxWorkers=2: 172 files, 5159 tests passed.
    • check:skill-examples refused (exit 3, client-react unbuilt); after building it: 344 prose examples type-check.
    • check:dual-build-cjs-loads refused (exit 3, unbuilt packages outside this diff) and check-plugin-teardown-shape --self-test refused (exit 3, fixture commit unreachable from a shallow clone). Nothing was measured by either; CI answers both.
  • After merging main (5a0bb8dd, no file overlap): check:liveness, check:generated and check-i18n-bundles re-ran green.
  • Targeted: UI suites 242 files / 2812 tests; platform-objects 132 files / 2352 tests; spec registry tests; typechecks of core, types, i18n, react, components, app-shell; check:action-forward-parity, check:handler-key-reads, eslint.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 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.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6Cb9JFbMTwmocV9qxio

@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/platform-objects, @objectstack/spec, touching 8 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/spec/liveness/action.json, packages/spec/liveness/state-counts/action.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

21 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 8d1a829c98180f78350395382c9fa7cc743a3f8c.

⛔ 11 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/spec/liveness/action.json, packages/spec/liveness/state-counts/action.md) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (symbol, 60 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 256 client-bound route-ledger rows — the other 185 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 185: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 125 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 183 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 8d1a829c98180f78350395382c9fa7cc743a3f8c → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 61d907986999e7c7fe06feefcb10fd5a13b9ed07 — the merge of head a732be9436d0c7b095d098176b1f81fc8a286252 into base 8d1a829c98180f78350395382c9fa7cc743a3f8c, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 61d907986999e7c7fe06feefcb10fd5a13b9ed07 && git checkout 61d907986999e7c7fe06feefcb10fd5a13b9ed07
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 8d1a829c98180f78350395382c9fa7cc743a3f8c a732be9436d0c7b095d098176b1f81fc8a286252 && git checkout -B drift-repro 8d1a829c98180f78350395382c9fa7cc743a3f8c && git merge --no-ff a732be9436d0c7b095d098176b1f81fc8a286252

node scripts/docs-audit/affected-docs.mjs --json 8d1a829c98180f78350395382c9fa7cc743a3f8c

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 8d1a829c98180f78350395382c9fa7cc743a3f8c → pass the list as
args.docs, on the commit named under Which tree this was computed on.

… pin the mail notice's condition

Claude-Session: https://claude.ai/code/session_01Utp6Cb9JFbMTwmocV9qxio
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6Cb9JFbMTwmocV9qxio

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 015998c057c6ea5fa29afaed961f52c419a44150
Local-runs: none
Scope: packages/spec/src/kernel/public-auth-features.ts + packages/platform-objects/src/feature-gate-guard.test.ts, packages/platform-objects/src/identity/invite-outcome-messages.ts, packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/identity/sys-member.object.ts, packages/platform-objects/src/identity/sys-invitation.object.ts, packages/platform-objects/src/identity/sys-organization.object.ts, ui/packages/app-shell/src/views/ActionDialogNotices.tsx

PR #39248 against main at 5a0bb8dd, card #39045 (ruling A, comment 7359751238). Inputs read: the card body and its 12 comments, the PR body and its 42-file list, the net diff of the scoped files, and the 74 check-runs on this head. The rest of the diff (tests other than the guard, translations, liveness rows, the renderers, the runner, docs, the changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set of authored metadata: unchanged, right. The diff adds no key, value or refusal to any Zod schema; ActionSchema.notices was already on main (packages/spec/src/ui/action.zod.ts:1991, PR feat(spec): notices on an action, warnings its dialog draws before submit (#39182) #39201). Metadata-protocol: none is right.
  • Public surface of @objectstack/spec: WIDENED. The exported type PublicAuthFeatureEntry gains the optional member noticePaths (packages/spec/src/kernel/public-auth-features.ts:105-115), and the exported constant PUBLIC_AUTH_FEATURES.emailDelivery gains noticePaths and notes (:362-372). Additive, nothing removed.
  • Public surface of the @object-ui/* packages (read to judge the declaration line, not reviewed): WIDENED. New exported names notificationSeverityStyle and NotificationSeverityStyle (ui/packages/components/src/notifications/index.ts:28-30, reached through ui/packages/components/src/index.ts:206); new exported types ActionNoticeDef, ActionDialogNotice, ActionDialogNotices and a new notices argument on the param-collection handler (ui/packages/core/src/actions/ActionRunner.ts, re-exported at ui/packages/core/src/actions/index.ts:9); new export localizeActionNotices (ui/packages/react/src/hooks/useActionTextLocalizer.ts, re-exported at ui/packages/react/src/hooks/index.ts:41); useObjectLabel() returns a new member actionNoticeText (ui/packages/i18n/src/useObjectLabel.ts:800); UIActionSchema gains notices (ui/packages/types/src/ui-action.ts:1105).
  • @objectstack/platform-objects: five actions gain a notices declaration and the shipped translation bundles gain the notices.mail_not_delivered.title|body keys in every locale (published keys by the dispatch rule on language packs). Additive.
  • Gate verdicts on this head, all success: Test Core (and shards 1/12 to 12/12), Test UI (1/16 to 16/16), TypeScript Type Check, Type Check UI, Lint & Repo Gates, Spec property liveness, Check Changeset, Governed Surface Queue Guard, Build Docs, Build & E2E UI, Live E2E UI, Dogfood Regression Gate. No failed run; the skipped runs are opt-in or matrix placeholders.

② Semver level

  • Level: patch on @objectstack/spec, @objectstack/platform-objects and six @object-ui/* packages (.changeset/39045-invite-mail-notice.md:2-9). Right: Metadata-protocol: none takes patch, and a non-protocol widening ships patch (AGENTS.md, Post-Task Checklist step 3). Check Changeset is green.
  • Clause-②: line: WRONG. The PR body and the changeset (.changeset/39045-invite-mail-notice.md:14) declare Clause-②: no. The question the line answers is whether the change widens what a published package accepts or exposes (CONTRIBUTING.md:174-176), and ① lists new exported names and new members on exported types in five published packages. The repo's own precedents declare exactly this shape as a widening: .changeset/36820-staged-row-menu-order.md ("yes (widening) — new exports only") and .changeset/37195-record-page-lock-source.md (an optional member gained on a published type). See M1.

③ Boundary flags

  • Dev flag, PR body "Features refresh after mail is configured": AppContent reads features once per mount, so the notice can linger for the session after mail is configured. Answered: accepted for this PR. The ruling named this as unmeasured and left to the console dev (7359751238, premise clause); the notice gates nothing, and the server's outcome stays the authority. The follow-up card is the seat's to file, as the PR body says.
  • Dev flag, PR body "gate run used base 724b3695": answered by the check-runs on this head, which ran on the merged tree and are green (①).
  • open_questions: the one entry on the card (os-dev report 7351341758) was answered by ruling A (7359751238). The card carries no report with open questions for this PR.
  • Ruling terms read against the tree. (3) plain label: title and body are plain strings (invite-outcome-messages.ts:63-67). (5) display only and ruling E wording: the copy promises no email and offers no Copy Invite Link (:64-67). (6) registry updated in the PR that first reads the flag from metadata: yes (public-auth-features.ts:362-368). (7) the five adoptions: sys-user.object.ts:171, sys-member.object.ts:124, sys-invitation.object.ts:112 and :192, sys-organization.object.ts:216. (4) both dialogs, above the description: ActionConfirmDialog.tsx and ActionParamDialog.tsx each mount ActionDialogNoticeList (lane seat's files, read only).
  • File surface: packages/spec/src/kernel/public-auth-features.test.ts and the UI test and pin files are in the diff and not named in the claim or its two amendments (7364548143, 7364574214, 7364650139). They are tests beside claimed files; noted for the seat's ACCEPT, no finding.
  • SQL push-down: no finding. The scoped diff adds no data read, no id materialisation and no in-app join; it is a constant registry, a test walker and a client-side predicate.

④ Design judgment

packages/spec/src/kernel/public-auth-features.ts (hits), against ruling A term 6 and its first consumer, the platform-objects guard:

  • The design holds. A notice gates nothing, so booking its reads in a member apart from gatedInputs keeps the forward rule "every booked input carries the flag's gate as a conjunct" (feature-gate-guard.test.ts:200-214) true: a notice reads the flag negatively and could never satisfy it. The gatedInputs XOR exempt invariant still holds for emailDelivery (public-auth-features.test.ts, "declares gatedInputs XOR an exemption reason"), and the member's jsdoc says it is independent of both (:113). The five booked paths match the five declarations one for one (③, term 7).
  • The flag is the right one. features.emailDelivery is served from isEmailDeliveryLive() (packages/plugins/plugin-auth/src/auth-manager.ts:6216), the same accessor that makes an invite answer link_only (:3185-3188), so the notice is drawn on exactly the deployments where the toast would report no mail.
  • M1 (must-fix) — the Clause-②: no declaration is false (②). Write Clause-②: yes (widening) with the widened names, in the PR body and in .changeset/39045-invite-mail-notice.md, and amend the claim line on the card. The level stays patch.
  • S1 (should-fix) — the entry contradicts the definition of its own surface. emailDelivery stays surface: 'login' (:347), and login is defined as "reads the flag straight off /auth/config (no spec metadata in between)" (:54-55). The same entry now says authored metadata reads it (notes, :369-372), and the decision analysis named this as the change the registry owed ("from a login-surface flag to one that authored metadata reads", 7351744236, Protocol and premise 6). Either the surface definitions say that a noticePaths read is a metadata read a flag of any surface may carry, or the entry is reclassified; as written the type's contract and the entry disagree.
  • N1 (nit) — the module header's consumer list (:38-42) still describes the guard by gatedInputs alone; the noticePaths walk is described only on the member (:105-114).
  • N2 (nit) — the exempt reason reads "Tells the forgot-password page ...; and draws the invite dialogs' notice" (:351-354); the flag is read by the notice's condition, it draws nothing.

packages/platform-objects/src/feature-gate-guard.test.ts (implementing; the gate the jsdoc cites):

  • Agrees with the contract sentence by sentence: each booked path resolves to a declared notice whose condition reads the flag (:254-258), every features.* read in a notice condition is a registry flag and is booked (:260-264), and a floor keeps both loops non-vacuous (:249-252). A boolean or absent visible on a booked path fails loudly ("has a visible condition"), which is right.
  • N3 (nit) — the guard accepts any read of the flag, so a notice that inverted the condition, or dropped has(), stays green here, and the declared source is pinned nowhere in platform-objects: the UI suite retypes it (ui/packages/app-shell/src/views/ActionDialogNotices.notices-39045.test.tsx:25). The other negative gate in this file has its verdicts pinned (:18-27). A follow-up card, not this head.
  • N4 (nit) — the file header (:3-41) still names two walked sites plus field groups; the notice walk is explained only at :218-222. The reverse walk also pushes one row per textual match, so the mail notice yields two identical rows (:242-244); harmless.

invite-outcome-messages.ts and the four object files (implementing): the declaration matches the booked paths and the spec's notice shape (packages/spec/src/ui/action-notices.ts: severity from the closed set, plain title and body, visible a CEL string). The jsdoc's claim that has() keeps the notice off a host without the flag (:55-58) holds against the evaluator. No finding.

ui/packages/app-shell/src/views/ActionDialogNotices.tsx (implementing; "judged in the action dialogs' predicate scope", public-auth-features.ts:372): the condition is judged against usePredicateScope() plus the dispatch record, with fallback: false and a warning (:78-86, :100-102), so a host without features draws nothing. Agrees with the registry note. No finding.

Implemented-by: claude/project-thread-lk8ab5
Reviewed-by: session_01Utp6Cb9JFbMTwmocV9qxio

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6Cb9JFbMTwmocV9qxio

The brief the isolated reviewer of record 7366908307 worked from, filled from record-recognisers.mjs --brief-template --paths. One deviation: the reviewer wrote the record to a file and this card thread posted it, rather than posting it itself.

Contract review brief — PR #39248 @ 015998c057c6ea5fa29afaed961f52c419a44150 (card #39045)

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 packages/spec/src/kernel/public-auth-features.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39045: its body and EVERY comment (rulings and earlier records included)
· PR #39248: its body, its file list, and the net diff against main at 5a0bb8dd65283cbb34151e6569334b3c135b9473
· the check-runs on 015998c057c6ea5fa29afaed961f52c419a44150: 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: packages/spec/src/kernel/public-auth-features.ts;
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.

⛔ 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/b7c9422e-6bd7-5f99-a5cc-8dc2e7ea939a/scratchpad/pr-39248/ 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@os-bill · os-bill · session_01Utp6Cb9JFbMTwmocV9qxio

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a732be9436d0c7b095d098176b1f81fc8a286252
Local-runs: none
Scope: packages/spec/src/kernel/public-auth-features.ts + packages/platform-objects/src/feature-gate-guard.test.ts, packages/platform-objects/src/identity/invite-outcome-messages.ts, packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/identity/sys-member.object.ts, packages/platform-objects/src/identity/sys-invitation.object.ts, packages/platform-objects/src/identity/sys-organization.object.ts, ui/packages/app-shell/src/views/ActionDialogNotices.tsx

Delta round on PR #39248 against main at 5a0bb8dd, card #39045 (ruling A, comment 7359751238). The prior record is comment 7366908307 on head 015998c0, which failed that head on M1 and also carried S1 and nits N1 to N4. Inputs read: the card body and its 12 comments, the PR body, its 42-file list and its 3 comments, the net diff of the scoped files against main, the fix commit 015998c0..a732be94 (3 files: the changeset, the guard, the registry; +34/-7), and the 78 check-runs on this head. The rest of the diff (tests other than the guard, translations, liveness rows, the renderers, the runner, docs, the changeset prose) is the lane seat's ACCEPT at TIER_DEFAULT.

① Derived judgments

  • Accept set of authored metadata: unchanged, right. No Zod schema gains a key, a value or a refusal; ActionSchema.notices is on main already (PR feat(spec): notices on an action, warnings its dialog draws before submit (#39182) #39201). Metadata-protocol: none is right. The fix commit changes no schema either.
  • Public surface of @objectstack/spec: WIDENED, and now declared so. PublicAuthFeatureEntry gains the optional member noticePaths (packages/spec/src/kernel/public-auth-features.ts:113-123); PUBLIC_AUTH_FEATURES.emailDelivery gains noticePaths and notes (:368-380). Additive, nothing removed. The fix commit adds prose only to this file (:42-45, :65-68, :359-363): no member, no value.
  • Public surface of the @object-ui/* packages (read to judge the declaration line, not reviewed): WIDENED, as the prior record listed (notificationSeverityStyle; ActionNoticeDef, ActionDialogNotice, ActionDialogNotices and the param handler's notices argument; localizeActionNotices; useObjectLabel().actionNoticeText; notices on the renderer action type). Untouched by the fix commit.
  • @objectstack/platform-objects: five actions gain a notices declaration and the shipped bundles gain the notices.mail_not_delivered title and body keys. Additive. Untouched by the fix commit; its guard test gains one pin and a dedupe.
  • Gate verdicts on this head: 78 check-runs, none failed. success: Test Core (and shards 1/12 to 12/12), Test UI (and 1/16 to 16/16), TypeScript Type Check, Type Check UI, Type Check · workspace, Lint & Repo Gates, Lint UI, Spec property liveness, Check Changeset, PR-body guards (claim · duplicate · Part-of · single-writer path), Governed Surface Queue Guard, Build Docs, Build & E2E UI, Live E2E UI, Dogfood Regression Gate. The skipped runs are opt-in, schedule or matrix placeholders.

② Semver level

  • Level: patch on @objectstack/spec, @objectstack/platform-objects and six @object-ui/* packages (.changeset/39045-invite-mail-notice.md:2-9). Right: Metadata-protocol: none takes patch, and a non-protocol widening ships patch (AGENTS.md, Post-Task Checklist step 3). Check Changeset is green on this head.
  • Clause-②: line: RIGHT. The PR body and the changeset (.changeset/39045-invite-mail-notice.md:14) both read Clause-②: yes (widening), line-initial, and the PR body names the widened members. It matches ①: new exports and new optional members, none removed, so the (widening) arm is the correct one and no BREAKING banner is owed.

③ Boundary flags

  • Escalated to the seat, not part of this head: the claim on the card (comment 7364548143) still reads Clause-②: no, and none of the card's 12 comments amends it. The prior record asked for that amendment beside the two declaration fixes. The two declarations AGENTS.md step 3 names (PR body, changeset) are corrected, and the path limb already owes this review, so no gate reads differently; but landing-operations.md counts a wrong no on a claim as an auditable false declaration, so the seat posts a claim amendment (Clause-②: yes (widening)) on the card before it lands this PR. A card write moves no head.
  • Dev flag, PR body "Features refresh after mail is configured": unchanged since the prior record. Accepted for this PR: the ruling left it unmeasured and to the console dev, the notice gates nothing, and the follow-up card is the seat's to file.
  • Dev flag, PR body "gate run used base 724b3695": answered by the check-runs on this head (①).
  • open_questions: the one entry on the card (report 7351341758) was answered by ruling A (7359751238). None open.
  • Ruling terms, re-read on this head: (3) plain title and body (invite-outcome-messages.ts:63-67); (5) display only, no promise of an email, no Copy Invite Link (:64-67); (6) the registry is updated in the PR that first reads the flag from metadata (public-auth-features.ts:368-376); (7) five adoptions (sys-user.object.ts:171, sys-member.object.ts:124, sys-invitation.object.ts:112 and :192, sys-organization.object.ts:216). The fix commit touches none of them.
  • File surface: the fix commit stays inside files already in the diff. As before, public-auth-features.test.ts and the UI test and pin files are not named in the claim or its two amendments; tests beside claimed files, noted for the seat's ACCEPT.
  • SQL push-down: no finding. The scoped diff, fix commit included, adds no data read, no id materialisation and no in-app join.

④ Design judgment

  • M1: closed
  • S1: closed

No must-fix, no should-fix.

packages/spec/src/kernel/public-auth-features.ts (hits), against ruling A term 6 and its first consumer, the platform-objects guard:

  • The design holds as the prior record found: a notice gates nothing, so its reads are booked apart from gatedInputs, the gatedInputs XOR exempt invariant still holds for emailDelivery, and the five booked paths match the five declarations.
  • The surface definition and the entry now agree. The surface list still defines login as a reader "straight off /auth/config (no spec metadata in between)" (:57-58), and the paragraph added under the list (:65-68) says what the surface names (where the flag is consumed as a capability) and that a flag of any surface may also be read by an authored notice condition, booked in noticePaths, without moving to crud. emailDelivery (surface: 'login', :355; noticePaths, :370-376; notes, :377-380) is now an instance of the written rule and not an exception to it. I tried the other surfaces against the new sentence: status ("not a capability gate") and shell carry it without contradiction, and the spec test "status-surface flags never gate inputs" is about gatedInputs only.
  • Prior nits on this file: N1 is fixed (the consumer list names both noticePaths directions, :42-45); N2 is fixed (the exempt reason says the notice "reads it in its condition", :361-363).
  • N5 (nit) — the new notes (:377-380) and the exempt reason (:359-361) name the forgot-password page as the login-surface reader. The sign-in refusal copy reads the flag off /auth/config too (ui/packages/app-shell/src/console/auth/signInRefusalMessages.ts:42, fed at ui/packages/app-shell/src/console/auth/LoginPage.tsx:170; on main, outside this diff). The reason's omission predates this PR; the notes line is new here and is incomplete, not false. A prose fix in a later PR.

packages/platform-objects/src/feature-gate-guard.test.ts (implementing; the gate the jsdoc cites):

  • Agrees with the contract sentence by sentence. Booked path resolves to a declared notice whose condition reads the flag (:263-267); every features.* read in a notice condition is a registry flag and is booked (:279-283); the floor keeps both loops non-vacuous (:258-261).
  • Prior nits: N3 is fixed. Each emailDelivery.noticePaths row is now held to the exact source has(features.emailDelivery) && features.emailDelivery != true (:272-277), so an inverted condition or a dropped has() turns the guard red in platform-objects, where the declaration lives (invite-outcome-messages.ts:68). The comment's claim that an absent flag is "not drawn, and not a fail-closed fault either" (:269-271) holds: the console always binds features to an object (ui/packages/app-shell/src/console/AppContent.tsx:355, :373, :1608), and the UI suite's features: {} case draws nothing (ActionDialogNotices.notices-39045.test.tsx:54-56). N4 is fixed: the header names the fourth walked site (:33-38) and the reverse walk yields one row per notice and flag (:249-253).
  • N6 (nit) — the pin is keyed by the flag, not by the notice name: every path ever booked under emailDelivery.noticePaths is held to the one "mail is not delivered" source (:272). A later notice that reads the flag the other way must edit this row first. The row's title says what it asserts, so the failure is legible. Left as is.

invite-outcome-messages.ts and the four object files (implementing): unchanged by the fix commit. The declaration matches the booked paths and the spec's notice shape; no finding.

ui/packages/app-shell/src/views/ActionDialogNotices.tsx (implementing; "judged in the action dialogs' predicate scope", public-auth-features.ts:379-380): unchanged by the fix commit. The condition is judged against usePredicateScope() plus the dispatch record with fallback: false and a warning (:78-86, :100-102). Agrees with the registry note; no finding.

Implemented-by: claude/project-thread-lk8ab5
Reviewed-by: session_01Utp6Cb9JFbMTwmocV9qxio

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6Cb9JFbMTwmocV9qxio

The brief the isolated reviewer of delta record 7367419597 worked from (the round-1 brief, 7366919136, moved to head a732be94 plus the delta paragraph at its end). The reviewer wrote the record to a file and this card thread posted it.

Contract review brief — PR #39248 @ a732be9436d0c7b095d098176b1f81fc8a286252 (card #39045)

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 packages/spec/src/kernel/public-auth-features.ts — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39045: its body and EVERY comment (rulings and earlier records included)
· PR #39248: its body, its file list, and the net diff against main at 5a0bb8dd65283cbb34151e6569334b3c135b9473
· the check-runs on a732be9436d0c7b095d098176b1f81fc8a286252: 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: packages/spec/src/kernel/public-auth-features.ts;
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.

⛔ 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/b7c9422e-6bd7-5f99-a5cc-8dc2e7ea939a/scratchpad/pr-39248-delta/ 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.

Delta round — the prior record on this PR is comment 7366908307 at 015998c057c6ea5fa29afaed961f52c419a44150, VERDICT FAIL, with M1 (must-fix), S1 (should-fix) and nits N1 to N4. Read it. The fix commit is a732be9436d0c7b095d098176b1f81fc8a286252 (net diff from the prior head: git diff 015998c057c6ea5fa29afaed961f52c419a44150 a732be9436d0c7b095d098176b1f81fc8a286252), and the PR body was edited to Clause-②: yes (widening). Render a full record on the new head; name each prior must-fix or should-fix it closes by id alone (M1: closed), and grade anything new, including anything the fix itself introduced.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

维护者速读

席位核对

ACCEPT · head a732be9436d0c7b095d098176b1f81fc8a286252 · repo:objectstack@os-bill

  1. Shape: 42 files, +1191/−52. Changed areas:

    • Platform objects: the five invite actions declare a notices entry, the copy sits beside the link_only copy, and translations cover the 10 locales.
    • Spec: the public-auth-features registry books the notice paths, and the liveness row for notices goes planned → live.
    • UI: the runner and four renderers forward notices; the confirm and param dialogs draw a shared ActionDialogNotices with the one severity tone table, resolve _actions.ACTION.notices.NAME from the bundle, and evaluate the predicate scope fail-closed.

    All within claim 7364548143 and amendments 7364574214, 7364650139 and 7367463732.

  2. Premises measured: the card thread re-ran premises 1 to 6 of 7351744236 on 724b3695. The PR body records the verification that the five dialogs show the notice while emailDelivery is off and hide it while on.

  3. Gates: check-runs at this head: 65 success, 13 skipped, 0 failed; mergeable is clean. 122 derived gates ran (/mnt/project-files/card-39045/gates-ran-015998c0.txt). Two of them, dual-build-cjs-loads and the plugin-teardown self-test, could not run locally for lack of prerequisites and are covered by CI. Contract review at CONTRACT_REVIEW_TIER: FAIL 7366908307 at 015998c (M1 Clause-②, S1). Delta PASS 7367419597 at this head, with both closed.

  4. Accepted deviations: Clause-②: yes (widening) per M1, with the claim amended. N5 and N6 are prose only and left as they are.

  5. Out of scope: features is read once per mount, filed as Console: the invite dialog's mail notice lingers after mail is configured until a reload (AppContent reads features once per mount) #39255 (p3, sub-issue). Skills-docs: follow-up skills: teach the action notices key (dialog notice before submit) in objectstack-ui and objectstack-i18n #39203 (PR docs(skills): objectstack-ui and objectstack-i18n teach the action notices key #39234, reviewed, waiting on this merge).

  6. Landing: not governed (check-governed-merges --pr: no governed file; 1243 lines, ≤ 3000). The seat lands it: ready + auto-merge. On merge, Invite user: the dialog does not warn that mail is not configured; the invite is created and only then reported as undeliverable #39045 closes and PR docs(skills): objectstack-ui and objectstack-i18n teach the action notices key #39234 is unblocked.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bill · os-bill · session_01Utp6CaQsbKBMQtm6Tpsamd

Landing · 2026-12-03T04:19Z · seat ACCEPT 7367494796 and contract review delta PASS 7367419597 at head a732be9436d0c7b095d098176b1f81fc8a286252: 65 success, 13 expected skips, 0 failed. Not governed; 1243 lines. Marking it ready and enabling auto-merge.

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 size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invite user: the dialog does not warn that mail is not configured; the invite is created and only then reported as undeliverable

2 participants