Skip to content

review follow-ups of PR #37731 #37793

Backlog
Backlog

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review record 7209186281 on PR #37731, nits N1–N5, adopted at ACCEPT)

What happens

PR #37731 (Fixes #37635) makes a milestone activity summary fall back to its stored sentence whenever a translated template would leave a hole. The writer now stores the template's token names (names) in sys_activity.metadata.summary_message. Its review left these nits:

  • The names property has no pin through the writer (N3). The design rests on names holding every token of the authored template, including tokens that were not interpolated. A writer that stored only the interpolated names would pass every test. Expected: a writer-level pin where a template token has no value, asserting it is still listed in names.
  • The cache pin is blind to one map (N4). The cache test counts packaged-base reads only, so it stays green with the milestoneTemplates map removed. Expected: the pin also counts template lookups per read.
  • A translation-only token is silent (N2). A translation that names a token its authored template lacks is never served for any row, and nothing reports it. @objectstack/lint has no token-parity rule for _milestones, and the row in content/docs/ui/translations.mdx does not mention the fallback. Expected: a lint rule, or at least a docs sentence.
  • Callers outside the spec ask more through a cast (N1). The two jsdoc sentences in packages/spec/src/system/i18n-resolver.ts are exact for the declared five-key union. displayKeyOverridesPackagedBase (packages/objectql/src/registry-top-level.ts) and sourceOf (packages/metadata-protocol/src/protocol-translated-echo.ts) pass other keys through a cast. Expected: widen the union, or drop the casts.
  • Stale module header (N5). The [#37524] paragraph in the header of packages/plugins/plugin-audit/src/activity-summary-message.ts still names two outcomes and omits the stored-sentence fallback.

Category ①: pin and wording gaps around a shipped fallback.
Priority: p3. Nothing is composed with a hole today, and these only weaken the guards.
Business reason: if a later change breaks the token list, a non-English reader sees a blank in a timeline line and no test catches it.
Reader: the ux i18n area, or the next thread that touches plugin-audit's activity summaries.
Dedupe: searched open issues for "PR #37731": 0 hits.
Related: #37635, PR #37731, #37582.

Grade

area:ux · Bug · minor · reach: read · evidence: read → p3

Activity

  1. added
    bug
    pm:queue
    domain:spec
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:spec · Task · priority:p3 · pm:queue · size XS; rationale: review follow-ups of PR #37731. Nothing is composed with a hole today: p3 as filed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:specpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions