Repository navigation
fix(setup): Setup Knowledge names where the provider and sources live; Delivery Log lists each send with recipient, channel and status - #39671
Conversation
…rovider and sources live (red) Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i
…der is set and where sources are created Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i
…ient, channel, status) Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i
…e's delivery object Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i
📓 Docs Drift CheckThis PR changes 3 package(s): 35 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 10 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 15 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 1ebbfa5498723a7721581304719f2c1595969e56 && git checkout 1ebbfa5498723a7721581304719f2c1595969e56
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 09a1d7b94d8cd2234098a5eca13e04a48a783b84 535662979c63854118e9b3175cffe95eb8934fd0 && git checkout -B drift-repro 09a1d7b94d8cd2234098a5eca13e04a48a783b84 && git merge --no-ff 535662979c63854118e9b3175cffe95eb8934fd0
node scripts/docs-audit/affected-docs.mjs --json 09a1d7b94d8cd2234098a5eca13e04a48a783b84
|
…setup.write Delivery Log now opens the delivery list, so the notification event list, whose toolbar carries Send In-App Message, gets its own entry in Notifications after Delivery Log (nav_notification_events, sys_notification view recent, requiresObject). It is gated on setup.write, the capability the action and its door demand, so organization administrators reach it. The "Notification Events" search alias moves off Delivery Log. Label in the 11 platform-objects app bundles with source hashes; the Notifications row pins and a new audience describe in the Setup audience pin follow. Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude <noreply@anthropic.com>
…nts to send an in-app message Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzbZZbDRcKrdCMMS2i Final head for review · 2026-12-04T14:25Z · zone ot-ai ·
|
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF Contract reviewServed-tier: Face. The review is owed by the ① Derived judgments
② Semver level
③ Boundary flags
Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibxZ1DSpavkJARmHCQF 席位核对L1-c · PR #39671 · Verdict: ACCEPT. The zone lands it once L2. 7414381481 is L1 read.
|
…tup-admin-polish-2
|
repo:objectstack@os-tesla · os-tesla · session_01L9qibzbZZbDRcKrdCMMS2i Landing · 2026-12-04T14:57Z · zone ot-ai · head
|
Requested by Tesla · project thread
Part of #39439 — PR 2, items 1 and 5. Branched from
main, not stacked on PR 1 (#39645). Every other item of the card stays where the claim routed it.Clause-②: yes (widening)
Metadata-protocol: none
维护者速读
What changes
Item 1 — Setup → Knowledge says where the rest of a knowledge setup lives. The page holds the indexing defaults only (
chunk_target), yet its description called it the vector-store backend for knowledge sources. The description now says what the page holds and names, in plain text, the two other places: the embedding provider under AI Model Service → Embedder (a saved provider takes effect after a server restart), and the sources themselves, created in App Studio → AI → Knowledge Sources. Written in all 11 shipped locales, each naming the pages the way that locale names them. The manifest literal (knowledge.manifest.ts) now equals the English pack, so a deployment without the bundle reads the same sentence.Plain text, not a link, by measurement: a settings page has no working link mechanism. The spec declares an
action_buttonhandler kindnavigate, but the console's settings page posts every action to the server (runSettingsAction,SettingsView.tsx), and no shipped manifest usesnavigate.Item 5 — Setup → Notifications → Delivery Log opens the delivery list. The entry (
nav_notifications) openedsys_notification'srecentlist, one row per notification event, which carries no recipient, channel or outcome. It now openssys_notification_delivery, the per-recipient, per-channel outbox, through a newrecentgrid view: Recipient User, Recipient, Channel, Status, Topic, Attempts, Error, Created At, newest first, 50 per page, with its own empty state, translated in every locale bundle. The entry keeps its label, group, order and gate (manage_platform_settings);requiresObjectnow names the delivery object. Its "Notification Events" search alias moves to the entry below; "Notifications" stays.Item 5, round 2 — Setup → Notifications → Notification Events (new entry,
nav_notification_events). The event list keeps its own entry, after Delivery Log:sys_notification, viewrecent,requiresObject: 'sys_notification', iconbell-ring. Its toolbar carries Send In-App Message, the Setup action ruled for organization administrators (ruling 6810324463 on #32445). The entry is gated onrequiredPermissions: ['setup.write'], the capability that action and its door demand, said in the entry's comment.manage_platform_settingswould withhold it from the organization administrator, who holdssetup.writeand is deliberately denied platform settings. Who reads the rows stays the object grant's call, and who may send stays the door's: neither changes. The label is in the 11platform-objectsapp bundles, each translated locale with its source hash recorded (Notification Events / 通知事件 / 通知事件 / 通知イベント / 알림 이벤트 / Eventos de notificación / Événements de notification / Eventos de notificação / События уведомлений / Benachrichtigungsereignisse / أحداث الإشعارات).Administrator guide.
content/docs/permissions/administrator-guide.mdxnamed Setup → Notifications → Delivery Log as the place to choose Send In-App Message, in four places. It now names Setup → Notifications → Notification Events, and says Delivery Log is where each event's deliveries are, shown to holders ofmanage_platform_settings. The boot warning inupgrade-report-delivery.tsandenvironment-variables.mdxthat name "Notification Events" are true again with this label and are not edited.Clause-② widening. A Setup entry is served to callers who hold
setup.writeand were served no entry for this list before. The changeset says so.Tests
service-settings/src/manifests/knowledge-description-where-39439.test.ts(12 tests): every locale's description names that locale's AI page, Embedder group, App Studio and its AI group; the manifest literal equals the English pack. Red before: 12 failed.service-messaging/src/objects/notification-delivery-log-39439.test.ts(16 tests): the delivery list'srecentview and the Delivery Log entry. Red before: 14 failed, 2 passed.platform-objects/src/apps/setup-platform-items-39057.test.ts: the Notifications row now ends Delivery Log, Notification Events (通知事件); a new case pins the entry's target, view,requiresObjectandsetup.writegate, its label in all 11 bundles, and that no entry keeps "Notification Events" as a search alias; Delivery Log's source aliases are['Notifications'].service-messaging/src/setup-nav-groups-39058.test.ts: the merged Notifications group endsnav_notifications,nav_notification_events.cli/test/setup-diagnostics-audience.pin.test.ts, new top-level describe on the existing harness (GET /api/v1/meta/apps/setupthrough the real registry fold and the REST filter): a caller holding only the system permissions of the shippedorganization_adminset (read offsecurityDefaultPermissionSets, never retyped) is served Notification Events in Notifications and not Delivery Log; asetup.access-only caller is not served it anywhere; the platform administrator is served Delivery Log then Notification Events.platform-objects.test.ts:FOREIGN_NAV_OBJECTSgainssys_notificationback besidesys_notification_delivery.platform-objectsrebuilt, the deletion proven absent fromdist/): 390573 failed | 24 passed (27), 390581 failed | 1 passed (2), audience pin2 failed | 4 passed (6). Ablation on the gate (setup.write→manage_platform_settings, rebuilt, proven present indist/): 390571 failed | 26 passed (27), audience pin1 failed | 5 passed (6)(the organization-administrator case). Restored: blob equal toHEAD,git diff HEADempty, rebuilt, mutation absent andsetup.writepresent indist/; all green.Live measurement (round 2), before the PR was updated
pnpm --filter @objectstack/example-showcase dev --fresh -p 38617atc688fe7c(tenancysingle), torn down after. A user created by the platform administrator and made an organizationadminmember was grantedorganization_admin_no_bypass(the set the wall-less posture grants; same system permissions asorganization_admin); a second user stayed a plain member.GET /api/v1/meta/apps/setupas the organization administrator: 200; Notifications servednav_notification_templates,nav_notification_preferences,nav_notification_events(Notification Events,sys_notification,recent,setup.write); Delivery Log not served anywhere. zh-CN label served: 通知事件. Platform administrator: all six, Notification Events last. Plain member: 403 on the Setup app.GET /api/v1/data/sys_notificationas the organization administrator: 200, the organization's rows (organization_id= its organization), including the event its own send created.POST /api/v1/messaging/in-app-messagesas the organization administrator (everyone: true): 200,recipients: 5.GET /api/v1/meta/objects/sys_notificationas the organization administrator: 200, actionssend_in_app_message(locations: ['list'],setup.write). Plain member: 404.Readings
pnpm --filter @objectstack/platform-objects test:137 passed (137)files,2459 passed (2459)tests.pnpm --filter @objectstack/service-messaging exec vitest run --maxWorkers=2:84 passed (84)files,1129 passed (1129)tests.pnpm --filter @objectstack/cli exec vitest run --maxWorkers=2 test/setup-diagnostics-audience.pin.test.ts:6 passed (6).typecheckexit 0: platform-objects, service-messaging, cli (with its test typecheck, held at its ledger).node scripts/check-i18n-bundles.mjs:OK (10 package(s) — all bundles in sync, no undeclared authoring keys).dispatch-gates --commandsatc688fe7c: 103 families;--ran: 102 run with exit 0, 1 NOT-MEASURED (check:dual-build-cjs-loads, exit 3, needs every package built; CI-owned).Acceptance notes
manage_platform_settings, so an organization administrator is not served it, while Webhooks and HTTP Deliveries are ungated. No ruling names an audience for it; not changed here.sys-notification.object.tsstill says the action sits on "Setup → Diagnostics → Notification Events" in a code comment; the Diagnostics group is retired. Comment only, outside this PR's file surface.approval.requested): the platform has no display names for notification topics.navigatehandler kind is declared in the spec with no consumer in the console and no producer in any shipped manifest. Noted, not filed.Verification
Read first, by risk:
packages/platform-objects/src/apps/setup-nav.contributions.ts— the newnav_notification_eventsline and its gate, and Delivery Log's target.packages/cli/test/setup-diagnostics-audience.pin.test.ts— the audience describe at the end.content/docs/permissions/administrator-guide.mdx— "Send a message to your organization" and the two tables.Two-minute check:
OS_PORT=3000 pnpm dev, sign in as an organization administrator who is not the platform administrator, open Setup → Notifications: Notification Events is listed, and its list toolbar shows Send In-App Message.🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibzbZZbDRcKrdCMMS2i