You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
notification topics: the approvals package registers the topics it sends #39642
Once the messaging service holds a topic registry (the server card this one is Blocked-by), a topic shows its name, description and variables to an administrator only if the feature that sends it registers it. Until then, approval topics (approved, rejected, abandoned, and the rest it sends) stay bare ids on the template form.
Ruling-ref: 7409753977 on #39412 (items 3+4, question (1) = D, Tesla tapped 2026-12-04 「发通知的功能自己登记」), analysis 7408971705 "Post-ruling execution · If D". Term ② (one card per sending package).
What to build
In the approvals package: register approval topics (approved, rejected, abandoned, and the rest it sends) with the messaging service, with label and description in the package's own 11-language catalog and the declared variables.
A test renders each declared variable against the payload the package really sends.
Triage: lands in area:ux · domain:server · Task · p2 · pm:blocked · size S, touched 2026-12-04T11:26Z. Rationale: term ② of ruling 7409753977 on #39412 (D): this package registers the topics it sends with the messaging topic registry, so they show a name, description and variables on the template form. Same area and grade as #39412. One package's registration plus its pin, size S. pm:blocked until Blocked-by: #39641 (the registry) closes. Issue type set to Task.
Grade: p2 · reach: administrators templating this package's notifications · evidence: analysis 7408971705 · unblocks when #39641 closes.
Unlock 2026-12-04T17:12Z: pm:blocked → pm:queue. Blocked-by: #39641 (the messaging topic registry, ruling 7409753977 D) closed as completed at 2026-12-04T17:08Z. Area, type and grade stand.
Claim: PM loop round 1 · zone ost-N · 2026-12-06T16:05Z
Session: session_01ADHkmSMxfgfe1pFqKZjtXk
Account: os-steve
Branch: claude/issue-39642-approvals-topics
Worktree: objectstack-issue-39642
Domain: domain:server
Seat: repo:objectstack@os-steve
File surface: packages/plugins/plugin-approvals/src/ (reason: the topic descriptors, the boot registration in approvals-plugin.ts, the package's 11 translation catalogs, the variables test)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no (registers entries in the existing topic registry #39641; no new key, door member or export reaches a published surface — the dev confirms if a new export lands)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7418619311
Premise: holds
Serial constraints cleared: none (#39641 closed; check-handover --inflight: no claim meets packages/plugins/plugin-approvals/)
Fold-or-serial (topic-registration family #39642#39644#39646#39647#39649#39650): not folded. Gate ② fails: each member lands in a different package (approvals, audit, security, auth, Slack link, core Change Owner), and ruling 7409753977 term ② chose one card per sending package. The surfaces are disjoint, so the members run in parallel as their own claims; #39647#39649#39650 follow when a slot frees.
Order: zone ost-N of seat repo:objectstack@os-steve (post #34584 lease row), the maintainer 2026-12-06T15:55Z 「开专区接手 area:ux p1 p2」.
{
"issue": 39642,
"status": "done",
"branch": "claude/issue-39642-approvals-topics",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39960",
"session": "session_01ADHkmSMxfgfe1pFqKZjtXk",
"premise_still_valid": true,
"summary": "Premise partly already met on main: the registration of all 15 approval topics (registerApprovalNotificationTopics beside registerBuiltinTemplates) landed with the registry; its header said catalog keys and variables were not filled. This PR adds them: each label/description/variable description is { key: messages.approvalTopic..., fallback } from a new hand-written 11-locale module translations/topic-messages.ts merged into the bundle's messages face; variables title, body, actionUrl on every topic plus approvalUrl on the four EMAILED_APPROVAL_TOPICS, derived from that set and measured against notify(), the package's one emit. Topic list from the existing source-literal scan pin: abandoned, approved, comment, escalated, flow_not_continued, ooo_skipped, ooo_substituted, reassigned, rejected, reminder, request_info, requested, returned, sla_breached, status_mirror_refused.",
"tests": "head 5bfbdcaa: plugin-approvals vitest 150 files / 2466 tests passed; topics file 23 passed. Ablation (declared variables without approvalUrl) turned 4 tests red (approved, rejected, reminder, requested), restored green.",
"gates": "plugin-approvals typecheck exit 0; dispatch-gates --commands 67 derived: 64 exit 0 (engine-double-contract re-run green after removing an unused findOne from the test double; check:i18n re-run green after building its prerequisite closure), 3 NOT MEASURED: check:dual-build-cjs-loads (needs whole-workspace build), check:query-options-erasure (300 s local timeout), check-plugin-teardown-shape --self-test (shallow clone); --ran reconciliation 67/67 accounted. CI check-runs not yet read.",
"mcp_calls": "0",
"api_writes": "3 — git push (branch), relay pr_create POST /repos/objectstack-ai/objectstack/pulls (+ assignees leg), post-stamped issue comment on #39642",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · reach: GET /api/v1/messaging/preference-options with Accept-Language zh-CN and the approvals bundle loaded answers label 'Request approved' (English) — measured in the composed MessagingServicePlugin + ApprovalsServicePlugin harness · evidence: preference-options-routes.ts header promises labels in the caller's language from ExecutionContext.locale, but resolveMessagingCaller passes localization 'withhold' and requestLocale undefined, so readPreferenceOptions always gets locale undefined and the registry serves fallbacks · Seam: spec:none → runtime:service-messaging resolveMessagingCaller / handlePreferenceOptions → registry.render(i18n, locale) · dedupe words: preference-options locale, Accept-Language, topic label language, resolveMessagingCaller withhold"
]
}
REWORK round (wording only) for PR #39960, new head badd546800. Changeset .changeset/39642-approvals-topics.md reworded: catalog keys in 11 languages plus declared variables stay; the texts show in the reader's language only once the preference-options door passes the caller's locale (#39969), the English fallback until then. No code or test change. Gates: check-empty-changeset, check-changeset-no-major, check-issue-citations all exit 0.
Correction to the report just above: the head sha it names was posted before the push landed and the commit was then amended (trailer fix). The pushed head of PR #39960 is 3448345321; the wording rework is unchanged.
Landing-window main merge on PR 39960: merged origin/main (clean, no conflicts), pushed new head 0104e8f to claude/issue-39642-approvals-topics. Re-run after merge: pnpm install --frozen-lockfile exit 0; turbo build of the check:i18n closure exit 0; pnpm check:i18n exit 0; approval-notification-topics.test.ts 23 passed. Pushed 1 write, no force.
Activity
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · domain:server · Task · p2 · pm:blocked · size S, touched 2026-12-04T11:26Z. Rationale: term ② of ruling 7409753977 on #39412 (D): this package registers the topics it sends with the messaging topic registry, so they show a name, description and variables on the template form. Same area and grade as #39412. One package's registration plus its pin, size S.
pm:blockeduntilBlocked-by: #39641(the registry) closes. Issue type set to Task.Grade: p2 · reach: administrators templating this package's notifications · evidence: analysis 7408971705 · unblocks when #39641 closes.
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock 2026-12-04T17:12Z:
pm:blocked→pm:queue.Blocked-by: #39641(the messaging topic registry, ruling 7409753977 D) closed as completed at 2026-12-04T17:08Z. Area, type and grade stand.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
Claim: PM loop round 1 · zone ost-N · 2026-12-06T16:05Z
Session:
session_01ADHkmSMxfgfe1pFqKZjtXkAccount:
os-steveBranch:
claude/issue-39642-approvals-topicsWorktree:
objectstack-issue-39642Domain:
domain:serverSeat:
repo:objectstack@os-steveFile surface:
packages/plugins/plugin-approvals/src/(reason: the topic descriptors, the boot registration inapprovals-plugin.ts, the package's 11 translation catalogs, the variables test)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no (registers entries in the existing topic registry #39641; no new key, door member or export reaches a published surface — the dev confirms if a new export lands)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7418619311
Premise: holds
Serial constraints cleared: none (#39641 closed; check-handover --inflight: no claim meets
packages/plugins/plugin-approvals/)Fold-or-serial (topic-registration family #39642 #39644 #39646 #39647 #39649 #39650): not folded. Gate ② fails: each member lands in a different package (approvals, audit, security, auth, Slack link, core Change Owner), and ruling 7409753977 term ② chose one card per sending package. The surfaces are disjoint, so the members run in parallel as their own claims; #39647 #39649 #39650 follow when a slot frees.
Order: zone ost-N of seat
repo:objectstack@os-steve(post #34584 lease row), the maintainer 2026-12-06T15:55Z 「开专区接手 area:ux p1 p2」.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
os-dev-report
{ "issue": 39642, "status": "done", "branch": "claude/issue-39642-approvals-topics", "pr": "https://github.com/objectstack-ai/objectstack/pull/39960", "session": "session_01ADHkmSMxfgfe1pFqKZjtXk", "premise_still_valid": true, "summary": "Premise partly already met on main: the registration of all 15 approval topics (registerApprovalNotificationTopics beside registerBuiltinTemplates) landed with the registry; its header said catalog keys and variables were not filled. This PR adds them: each label/description/variable description is { key: messages.approvalTopic..., fallback } from a new hand-written 11-locale module translations/topic-messages.ts merged into the bundle's messages face; variables title, body, actionUrl on every topic plus approvalUrl on the four EMAILED_APPROVAL_TOPICS, derived from that set and measured against notify(), the package's one emit. Topic list from the existing source-literal scan pin: abandoned, approved, comment, escalated, flow_not_continued, ooo_skipped, ooo_substituted, reassigned, rejected, reminder, request_info, requested, returned, sla_breached, status_mirror_refused.", "tests": "head 5bfbdcaa: plugin-approvals vitest 150 files / 2466 tests passed; topics file 23 passed. Ablation (declared variables without approvalUrl) turned 4 tests red (approved, rejected, reminder, requested), restored green.", "gates": "plugin-approvals typecheck exit 0; dispatch-gates --commands 67 derived: 64 exit 0 (engine-double-contract re-run green after removing an unused findOne from the test double; check:i18n re-run green after building its prerequisite closure), 3 NOT MEASURED: check:dual-build-cjs-loads (needs whole-workspace build), check:query-options-erasure (300 s local timeout), check-plugin-teardown-shape --self-test (shallow clone); --ran reconciliation 67/67 accounted. CI check-runs not yet read.", "mcp_calls": "0", "api_writes": "3 — git push (branch), relay pr_create POST /repos/objectstack-ai/objectstack/pulls (+ assignees leg), post-stamped issue comment on #39642", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: GET /api/v1/messaging/preference-options with Accept-Language zh-CN and the approvals bundle loaded answers label 'Request approved' (English) — measured in the composed MessagingServicePlugin + ApprovalsServicePlugin harness · evidence: preference-options-routes.ts header promises labels in the caller's language from ExecutionContext.locale, but resolveMessagingCaller passes localization 'withhold' and requestLocale undefined, so readPreferenceOptions always gets locale undefined and the registry serves fallbacks · Seam: spec:none → runtime:service-messaging resolveMessagingCaller / handlePreferenceOptions → registry.render(i18n, locale) · dedupe words: preference-options locale, Accept-Language, topic label language, resolveMessagingCaller withhold" ] }objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmRM92nyNXbcm2LJn1N
L1 at 2026-12-06T17:58Z: REWORK → PR #39960 comment 7462051999 (head
5bfbdcaa; changeset wording only, code holds).objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
os-dev-report
REWORK round (wording only) for PR #39960, new head
badd546800. Changeset.changeset/39642-approvals-topics.mdreworded: catalog keys in 11 languages plus declared variables stay; the texts show in the reader's language only once the preference-options door passes the caller's locale (#39969), the English fallback until then. No code or test change. Gates: check-empty-changeset, check-changeset-no-major, check-issue-citations all exit 0.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
os-dev-report
Correction to the report just above: the head sha it names was posted before the push landed and the commit was then amended (trailer fix). The pushed head of PR #39960 is
3448345321; the wording rework is unchanged.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmQSafnPd7PALMEwPEP
L1 delta at 2026-12-06T19:50Z: ACCEPT → PR #39960 comment 7463744436 (head
34483453); the wording defect of REWORK-7462051999 is fixed.objectstack-fleet commentedon Dec 6, 2026
repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
os-dev-report
Landing-window main merge on PR 39960: merged origin/main (clean, no conflicts), pushed new head 0104e8f to claude/issue-39642-approvals-topics. Re-run after merge: pnpm install --frozen-lockfile exit 0; turbo build of the check:i18n closure exit 0; pnpm check:i18n exit 0; approval-notification-topics.test.ts 23 passed. Pushed 1 write, no force.