Skip to content

notification topics: the core Change Owner package registers the topics it sends #39650

In progress

Description

@objectstack-fleet

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

Business rationale

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, the Change Owner topic 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 core Change Owner package: register the Change Owner topic 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.

Blocked-by: #39641

Request: triage (first-touch audit).

Activity

  1. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:server · Task · p2 · pm:blocked · size S, touched 2026-12-04T11:34Z. 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.

  2. added
    domain:server
    pm:blocked
    priority:p2
    on Dec 4, 2026
  3. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

    triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Unlock 2026-12-04T17:15Z: 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.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Dec 4, 2026
  5. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk

    Claim: PM loop round 2 · zone ost-N · 2026-12-06T17:55Z
    Session: session_01ADHkmSMxfgfe1pFqKZjtXk
    Account: os-steve
    Branch: claude/issue-39650-change-owner-topic
    Worktree: objectstack-issue-39650
    Domain: domain:server
    Seat: repo:objectstack@os-steve
    File surface: packages/core/src/security/change-record-owner.ts and a new sibling descriptors module + test in packages/core/src/security/, the package's translation catalog (reason: CHANGE_OWNER_NOTIFICATION_TOPIC lives there)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7418694279
    Premise: holds
    Serial constraints cleared: none (no claim meets packages/core/src/security/)
    Fold-or-serial: see the chain-head claim 7460426339 on #39642 (not folded, one card per sending package; siblings #39642 #39644 #39646 are in PRs #39960 #39959 #39964).
    Order: zone ost-N of seat repo:objectstack@os-steve (post #34584 lease row), the maintainer 2026-12-06T15:55Z 「开专区接手 area:ux p1 p2」.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 6, 2026
  7. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
    os-dev-report

    {
     "issue": 39650,
     "status": "done",
     "branch": "claude/issue-39650-change-owner-topic",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/39978",
     "session": "session_01ADHkmSMxfgfe1pFqKZjtXk",
     "premise_still_valid": true,
     "summary": "Premise measured at ef68c6e6: record.owner_changed was already registered (MessagingServicePlugin registers core's CHANGE_OWNER_NOTIFICATION_TOPIC_DESCRIPTOR, since core cannot depend on service-messaging) with English fallbacks only and no variables. Core loads no i18n bundle of its own; its Change Owner catalog entries already live in service-messaging's translations/messages.ts (en spreads core's CHANGE_OWNER_NOTIFICATION_TEXT), so that is the catalog used, with no new catalog invented. The descriptor now keys label, description and three variable descriptions (title, object, recordIds: exactly the payload notifyNewOwner sends) to messages.recordOwnerChangedTopic* ids, fallback = the English entry; the 10 non-English locales are hand-written. No new export symbol (entries added to the existing CHANGE_OWNER_NOTIFICATION_TEXT), no new descriptors module (file is 825 lines), registration site unchanged. Card assignee not touched. Head 3eb5d3fa.",
     "tests": "At 3eb5d3fa (the last commit adds only the changeset after the test runs): core build+typecheck exit 0; core vitest src/security 76 files / 1509 passed; service-messaging typecheck exit 0, pnpm test 89 files / 1176 passed (includes new change-owner-notification-topic.test.ts 2 passed, keyed-notification-text all-locales holes pin, slack-channel-composition registration pin). Ablation: on disk, removed the recordIds variable from the descriptor and set the zh-CN label to the English text, rebuilt core, both new tests went red ('expected [object, recordIds, title] to deeply equal [object, title]'; 'zh-CN: expected Record handed to a new owner not to be ...'); restored via git restore --source=HEAD, porcelain clean.",
     "gates": "Local: dispatch-gates --ran at 3eb5d3fa: 73 derived, 69 run exit 0 (check:i18n exit 0 after building its closure: 'check-i18n-bundles: OK (10 package(s) — all bundles in sync'), 4 NOT MEASURED: check-plugin-teardown-shape --self-test (exit 3, shallow clone cannot reach positive-control commit 621a4876), check:dual-build-cjs-loads (exit 3 PREREQUISITE NOT MET, no full build), check:query-options-erasure and check:type-check-debt (timeout 124 at 300s per-gate budget on shared box); reconciliation verdict '73 derived famil(ies) accounted for'. Includes check:engine-double-contract, check:undeclared-dep-imports, check:test-source-alias, check:nul-bytes all exit 0. test:repo not run locally (CI Test Core). CI check-runs on PR 39978: NOT MEASURED, report delivered at PR open.",
     "mcp_calls": "0",
     "api_writes": "2 relay strokes — pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/39978/assignees), os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39650/comments via post-stamped); plus git push (not REST)",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "line_budget": "5 files, about +190 / -23; well under 3,000",
     "deviations": [
      "Claim file surface named a new sibling descriptors module and core's translation catalog; actual: no new module (file under 1,000 lines, existing constant rewritten), catalog is service-messaging translations/messages.ts (core's established Change Owner catalog home), plus a new test file in service-messaging (interpolate and the bundle live there; core cannot import service-messaging).",
      "Gate loop ran under a 600s tool limit and was moved to background by the harness; I waited for it in-turn and read its results before reporting."
     ],
     "files_changed": [
      ".changeset/39650-change-owner-topic.md",
      "packages/core/src/security/change-record-owner.ts",
      "packages/core/src/security/change-record-owner.test.ts",
      "packages/services/service-messaging/src/change-owner-notification-topic.test.ts",
      "packages/services/service-messaging/src/translations/messages.ts"
     ]
    }
  8. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
    os-dev-report

    REWORK round (wording only) for PR #39978, new head 720332f597. Changeset .changeset/39650-change-owner-topic.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.

  9. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    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 #39978 is a168e40368; the wording rework is unchanged.

  10. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk

    Claim amendment · 2026-12-06T19:43Z · claim 7462037631
    File surface (amended, from PR #39978's diff): packages/core/src/security/change-record-owner.ts and its test; packages/services/service-messaging/src/translations/messages.ts (core loads no bundle of its own; the Change Owner catalog entries already live there) and a new packages/services/service-messaging/src/change-owner-notification-topic.test.ts. No new descriptors module. No other claim holds those files (#39412 holds preference-options.ts and objects/notification-template.object.ts only).

  11. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmQSafnPd7PALMEwPEP

    L1 at 2026-12-06T20:06Z: ACCEPT → PR #39978 comment 7463989382 (head a168e403).

  12. objectstack-fleet commented on Dec 6, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-steve · os-steve · session_01ADHkmSMxfgfe1pFqKZjtXk
    os-dev-report

    Landing-window main merge on PR 39978: merged origin/main (clean, no conflicts), pushed new head c46381d to claude/issue-39650-change-owner-topic. Re-run after merge: pnpm install --frozen-lockfile exit 0; turbo build of the check:i18n closure plus core exit 0; pnpm check:i18n exit 0; change-owner-notification-topic.test.ts 2 passed; core change-record-owner.test.ts 62 passed. 1 push, no force.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions