Skip to content

review follow-ups of PR #37582: milestone summary translation (token grammar spelled twice, per-row packaged-base walks, stale jsdoc, a template token added after rows were written) #37635

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review records 7196337094 and 7197635792 on PR #37582, accepted deviations and nits, adopted at ACCEPT)

What happens

PR #37582 (Fixes #37524) composes a fired milestone's activity summary in the reader's language from objects.<o>._milestones.<field>.<value>.summary. Its two reviews left these items open on main once it lands:

  • A template token added after rows were written leaves a gap. The writer (packages/plugins/plugin-audit/src/audit-writers.ts) stores a token only when it interpolated a value. After an app adds a {token} to a milestone template, rows written before the edit are composed from the new translation with an empty hole, while their stored English sentence is whole. Expected: such a row falls back to its stored sentence (for example, by storing the template's token names, so the reader can tell a token that was never interpolated from an empty one).
  • The {token} grammar is spelled twice (N3): milestoneTokenRe() in the writer, whose jsdoc says "One definition", and a literal /\{(\w+)\}/g in the composer (activity-summary-message.ts). Expected: one exported pattern.
  • Per-row packaged-base walks (N4): milestoneSummary runs getPackagedObjectBase and two milestoneOn walks per row with no cache, while translatedObjectDef beside it caches per object for the read. Expected: a per-(object, field) cache for one read.
  • Stale jsdoc (N6): two sentences in packages/spec/src/system/i18n-resolver.ts ("three scalars", "its two callers") no longer hold after the predicate's key union gained summary. The header comment at packages/plugins/plugin-audit/src/audit-option-label-summary.test.ts:29 still says a milestone sentence "has no bundle key and is deliberately NOT translated (plugin-audit: activityMilestones summary templates still interpolate raw lookup ids — {owner_id} renders oBK25… after #7230 #7290)".

Category ①: the first item is a user-visible sentence with a hole; the others are the review's accepted deviations, carried here per the one-card-per-PR rule.
Priority: p3. The gap needs an app to edit a template after rows exist, and the stored English stays whole; the rest is code hygiene.
Business reason: a non-English reader of an activity timeline sees a milestone line with a blank where the English line has a value, after an app author edits the template.
Reader: the ux i18n area (seat 2, s2-ux-T), or the area that next touches plugin-audit's activity summaries.
Dedupe: searched open issues for "PR #37582": 0 hits.
Related: #37524, PR #37582, #37585 (skills follow-up of the same PR).

Grade

area:ux · Bug · minor · reach: read (writer and composer at 4a22422916) · evidence: read → p3

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:spec · Bug · priority:p2 · pm:queue · size S; rationale: review follow-ups of PR #37582 (milestone summary translation). The user-reachable gap needs an app that edits a template after rows exist; the rest is hygiene. Suggested p3, raised to p2 because UX has no p3.

  3. added
    pm:queue
    priority:p2
    and removed on Nov 26, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-27T00:12Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgUpnvPnJ1hR74pUrVj
    Account: os-sales
    Branch: claude/project-thread-gvxx96-37635
    Domain: domain:spec
    Seat: repo:objectstack#2
    Area: s2-ux-T
    File surface: packages/plugins/plugin-audit/src/audit-writers.ts, packages/plugins/plugin-audit/src/activity-summary-message.ts, packages/plugins/plugin-audit/src/audit-option-label-summary.test.ts (header comment), packages/spec/src/system/i18n-resolver.ts (jsdoc only), their tests, one changeset
    Container & model: S, mode:thread (area thread implements, no os-dev), model: default — no path-derived mandate, effort: medium
    Clause-②: no (a fallback for rows written before a template edit; hygiene otherwise)
    Metadata-protocol: none
    Responsibility: objectstack platform (a fired milestone's translated summary shows a blank for a token added after the row was written; token grammar spelled twice; per-row packaged-base walks; stale jsdoc) | none | non-English readers of an activity timeline after an app edits a milestone template; reachable on main since #37582
    Thread-read: none
    Premise: holds (PR #37582 merged; card filed from its review records 7196337094 and 7197635792; triage 7198755801 p2 size S)
    Serial constraints cleared: #37582 merged (same writer and composer); the area thread re-runs overlap-check before its first push

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-27T04:15Z

    PR #37731 merged at 2026-11-27T04:13Z and closed this card. pm:dispatched is cleared. The review follow-ups are on #37793.

  7. removed
    pm:dispatched
    on Nov 27, 2026
  8. added a commit that references this issue on Dec 1, 2026
    44ccf94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:specpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions