Skip to content

console: render the localized userMessage and advisory text instead of substituting raw server prose (ruling C on #32440, layer 3) #32657

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Part of #32654 (tracking). Layer 3 of 3: the console. Filed by triage. ⛔ Not a claim.

Do

Blocked-by: #32656

Activity

  1. added
    priority:p2
    pm:blocked
    domain:ui
    area:i18n
    on Nov 12, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unblocked · pm:blocked → pm:queue · 2026-11-14T23:49Z

    ⛔ Not a claim.

    Its Blocked-by: #32656 closed (completed) at 2026-11-14T23:39Z, so the server now sends localized userMessage and advisory text. The console half can start. p2, domain:ui. This sits next to #33524 (403 reason dropped in the create/edit dialog), and one PR may close both.

  3. added
    pm:queue
    and removed
    pm:blocked
    on Nov 14, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

    Claim: PM loop round 1 · 2026-11-15T00:13Z
    Session: session_01FEkQ5m1xDT63aCaQJNjwXD (card thread, dev) · seat session_01FEkQ5oF8GgTHN2jBZoDwz8
    Account: os-project-manager
    Branch: claude/project-thread-bhbxol
    Worktree: objectstack-issue-32657
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: ui/apps/console/src/components/FormPage.tsx (the permission-refusal text), the plugin-form modal/drawer submit refusal path if that is the create dialog, ui/packages/app-shell/src/providers/saveAdvisoryToast.ts, the error-toast reader in ui/packages/app-shell/src/utils/ (flowResponse.ts), their tests, i18n packs only if a key is truly new, root .changeset/. The dev declares the final files per half at first hand-back. ⛔ No packages/spec, server or cloud edit.
    Container & model: M, mode:thread, model: default tier, effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (layer 3 of tracking #32654: the console renders producer-localized refusal and advisory text, ruling C on #32440)
    Thread-read: 6886133010
    Premise: holds: Blocked-by: #32656 closed completed (triage unblock 6886133010); the dev measures the console's current substitution on origin/main first
    Serial constraints cleared: no other pm:dispatched domain:ui card claims a file in this surface (live label read; ui seat 1's live files #33317 #33063 #33061 #33103 #33377 are disjoint); no other ui seat holds a Claim: on these files

    Scope: shared card thread with #33524 (one dev, one PR Fixes #33524 + Fixes #32657 if both halves land, else one PR per card). p2. Order: /mnt/project-files/pm-orders/ui/order-33524.md. Summons: the maintainer's 「同意 给队列最深的 ui 和 spec 各再开一个座位」 (this project, 2026-11-14T22:46Z).

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

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

    Claim amendment · 2026-11-15T00:15Z · to claim 6886423383. Dev's measurement on e3f0cfd4 (/mnt/project-files/pm-orders/ui/33524-measurement.md): the save-advisory toast never reads advisories[].userMessage, the one 422 issue reader renders issues[].message, and Studio's issue refusal translates the English server message console-side; #33276 now sends userMessage on both. The fix reads userMessage where the producer sent one; an issue without it keeps today's face.

    • File surface: now reads ui/packages/app-shell/src/providers/saveAdvisoryToast.ts, ui/packages/data-objectstack/src/metadata-error.ts, ui/packages/data-objectstack/src/metadata-client.ts (MetadataValidationIssue gains an optional userMessage, typed from the spec's runtime authoring issue), ui/packages/app-shell/src/views/studio-design/metadataError.ts (issue refusal only), their tests, root .changeset/. No i18n key; FormPage.tsx and flowResponse.ts are not edited.
    • Clause-②: now yes (widening) (an optional member on an exported @object-ui/data-objectstack interface). A TIER_DEFAULT contract record is owed before landing.
      Nothing else in the claim changes.
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-project-manager · session_01FEkQ5m1xDT63aCaQJNjwXD

    os-dev-report
    {
    "issue": 32657,
    "status": "done",
    "branch": "claude/project-thread-bhbxol",
    "pr": "#33576",
    "session": "session_01FEkQ5m1xDT63aCaQJNjwXD",
    "premise_still_valid": true,
    "summary": "One PR for the card pair: Fixes #32657, Refs #33524 (seat ruling in the card thread). #32657 reproduced on origin/main e3f0cfd and is fixed: the post-save advisory toast (saveAdvisoryToast.ts formatFinding), the one 422 issue reader (data-objectstack formatMetadataIssue, behind formatMetadataError and formatPublishFailures) and Studio's issueRefusal now render an advisory's or issue's userMessage (the producer's sentence in the caller's language) in place of the English message/hint, and an item without one keeps today's face; MetadataValidationIssue gains optional userMessage typed from spec RuntimeAuthoringIssue (Clause-② yes (widening), Metadata-protocol none). #33524's console premise did not hold: the create/edit dialog (console ModalForm → components form renderer) already reads declaredUserMessage before form.noPermissionToSave; the master-edit refusal (plugin-security masterEditDenied) carries no userMessage, so its console half is closed by rendered ModalForm pins only (create + edit, en + zh-CN marked 403 shows the sentence; control unmarked 403 shows the generic line) and the producer gap goes to out_of_scope_findings.",
    "tests": "Head e030252. New/edited pins: Test Files 4 passed (4), Tests 32 passed (32) — AdapterProvider.advisoryUserMessage-32657.test.tsx (real AdapterProvider + real sonner Toaster, text read off screen: zh-CN and en userMessage shown, English message/hint absent; CONTROL message+hint), saveAdvisoryToast.test.ts (+2), metadataError.issueUserMessage-32657.test.ts (formatMetadataIssue/formatMetadataError/formatPublishFailures/flowSaveRefusal with and without userMessage), ModalForm.markedRefusal-33524.test.tsx (create/edit x en/zh-CN marked 403 + 2 CONTROLs, user types and clicks Create/Update). Red-first: the four production files restored to e3f0cfd → Test Files 3 failed | 1 passed, Tests 6 failed | 26 passed (the six userMessage cases of the #32657 files; ModalForm file 6/6 green on base = #33524 console half does not reproduce); restored, git diff HEAD empty. Ablations via scripts/ablation-replace.mjs, each restored to the HEAD blob with git diff HEAD empty (ui vitest reads @object-ui/* from source, no build between): A1 formatFinding userMessage branch unreachable → 3 failed | 18 passed; A2 formatMetadataIssue reads message always → 2 failed | 3 passed; A3 issueRefusal userMessage branch unreachable → 1 failed | 4 passed; A4 form renderer answers the generic line for a permission error before declaredUserMessage → 4 failed | 2 passed (the 4 marked cases; CONTROLs green). The first A4 attempt used a two-line anchor and printed nothing (no-op), rerun with a one-line anchor. Neighbouring suites (data-objectstack/, app-shell providers/ and studio-design/, MetadataFieldsPage.refusalIssues-11302, plugin-form ModalForm*, components form-write-error-message): Test Files 499 passed (499), Tests 4343 passed (4343), VERDICT command-exit 0. Type-check VERDICT command-exit 0 for @object-ui/data-objectstack, @object-ui/app-shell and @object-ui/plugin-form (the latter two include tsconfig.test.json) after the @object-ui/app-shell^... build.",
    "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack on e030252: 37 families, all exit 0 (captured before any pipe, gate-loop with timeout 900). pnpm --dir ui exec vitest run scripts/ was SIGKILLed inside the loop while a 23-min suite run shared the box; rerun alone under the lock with --maxWorkers=2: Test Files 171 passed | 2 skipped (173), exit 0 (recorded as that family's exit). --ran: 37 derived, 37 run, 0 NOT-MEASURED. Outside the derived list: eslint on the 8 changed files 0 errors (8 pre-existing no-explicit-any warnings in metadata-client.ts); pnpm --dir ui run check:new-line-citations 0 new, exit 0. CI check-runs: in_progress at report time (seat reads them).",
    "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
    "mcp_calls": "10 — GitHub MCP reads only: issue_read x7 (#33524 get + comments, #32657 get + comments x2, #32654 get, #32843 get), pull_request_read x3 (#32790, #33276, #33290 get); no write tool",
    "api_writes": "3 — git push (branch, not REST); relay pr_create objectstack-ai/objectstack → #33576 (fleet-write run 43661661130, body read-back identical, no labels, no assignees); this os-dev-report comment via post-stamped.mjs on #32657",
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "class: a · reach: console record create/edit dialog — a user who reads but cannot edit the master of a controlled_by_parent detail (HotCRM crm_billing_milestone, crm_invoice) saves and gets 403 PERMISSION_DENIED with no userMessage, so the dialog shows the generic 'You don't have permission to save this record.' and never names the master (#33524, HotCRM Order to Cash pass on 18.4.0) · evidence: packages/plugins/plugin-security/src/security-plugin-cbp-write-gate.ts masterEditDenied throws new PermissionDeniedError('[Security] Access denied: OP on OBJ requires QUESTION access to its master record (REASON)') with no withUserMessage, unlike the middleware's permission_denied/record_access/owner/queue/field refusals that #33290 put on the userFacingDenialMessage ladder · carrier: #33524 (seat re-lanes it to domain:server after merge) · dedupe words: masterEditDenied userMessage, controlled_by_parent master edit refusal localized, requires edit access to its master record",
    "noted, not filed (Acceptance notes): console write-error readers that use extractWriteErrorMessage alone and so never show a producer's userMessage — SharingRuleCloneDialog, PositionHoldersSection, AssignedUsersSection, useUserLocale, ProfilePage, RecordDetailView inline save, InlineEditSaveBar, kanban/calendar drag saves; no reach measured · carrier: none",
    "noted (Acceptance notes): #32043's member-limit sentence is cloud-produced and not met by this PR; the invite dialog's reader was not measured · carrier: cloud"
    ]
    }


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

    Seat review: PR #33576 ACCEPT on head 2018f35e (2026-11-15T01:53Z). K = 19, base-synced through the relay and CI green on the synced head; ready + auto-merge set in the same stroke. Contract record PASS 6887157614. #33524 (pins only here, Refs) is released for re-laning to domain:server once this merges.

  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8

    Landed · 2026-11-15T04:15Z

    reading value
    PR #33576 MERGED as d95ddebc on main (closes this card via Fixes #32657)

    State: pm:dispatched removed, assignee cleared; card closed by the merge. Contract record PASS 6887157614 (Clause-② yes, widening: MetadataValidationIssue.userMessage). #32440's post-save advisory half is met by this PR (the PR's Acceptance notes); #32043's member-limit sentence is cloud work, not this card's.

  10. removed
    pm:dispatched
    on Nov 15, 2026
  11. added a commit that references this issue on Nov 16, 2026
    d95ddeb
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:i18ndomain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions