Skip to content

i18n coverage: demand flows.FLOW.label for every embedded flow, not only the ones the walk reaches today #36400

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #35979 (PR #36383, step names of a flow translate). The PR's acceptance note 1 says the seat files this; the L2 review found no card. Filed by the seat. Parent: #35979.

What happens

The translation-coverage walk demands flows.FLOW_ID.label only for the flows its predicate reaches today. A flow embedded elsewhere (an object's or app's bundled flows) can ship a drawn flow label with no translation asked for, so a zh-CN user sees the English flow name next to translated step names.

To do

  1. Census the flow-label readers and the places a flow can be declared (top level, object-embedded, app-bundled).
  2. Widen the walk's flow-label predicate to every declared flow that a reader draws, in the same change as any reader it relies on (the walk's own rule: a string nobody reads is not demanded).
  3. Re-baseline the coverage counts and say the rise in the changeset.

Acceptance

  • An embedded flow with a drawn label and no zh-CN entry is reported by the coverage check; a flow nobody draws is not.

Blocked-by: #36383

Grade

p2 · area:i18n · domain:spec. Translation gap, not broken; every non-English user sees it on embedded flows.


Generated by Claude Code

Activity

  1. added
    enhancement
    priority:p2
    domain:spec
    pm:blocked
    area:i18n
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: pm:blocked and p2 stand as filed; rationale: area:ux (i18n goes to ux by the North Star boundary; was the legacy area:i18n) · Task · the i18n coverage check should demand flows.FLOW.label for every embedded flow, not only the flows its walk reaches today · size S.

  3. added and removed
    area:i18n
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

    Unblock · 2026-11-23T12:25Z: this card's only Blocked-by:, #36383, closed at 2026-11-22T19:58Z (merged or completed). The pm:blocked label was stale, so the card goes back to pm:queue. The grade is unchanged. Whoever picks it up re-reads the premise on a base that contains #36383.

  5. added
    pm:queue
    and removed
    pm:blocked
    on Nov 23, 2026
  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Claim: PM loop round 1 (area ux-D)
    Session: session_01WGufziH9MVhWYLVCiw5eXB
    Account: os-support-ai
    Branch: claude/issue-36400-embedded-flow-label-coverage
    Worktree: objectstack-issue-36400
    Domain: domain:spec
    Seat: repo:objectstack#3
    Area: ux-D
    File surface: packages/lint/src/i18n-walk.ts (the flows.<flow>.label demand and the flow universe it walks), packages/cli/src/utils/i18n-coverage.ts if the bucket or walk needs it, their tests, scripts/i18n-coverage-baseline.json re-baseline, example-app translation rows only if the widened walk reds a shipped example, a changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7101063583
    Premise: holds — measured on origin/main d2fc055: walkScreenFlows in packages/lint/src/i18n-walk.ts reads config.flows only and demands flows.<flow>.label only for a flow with a screen or approval node (its comment: "The predicate mirrors the two readers of the key, and nothing wider"); whether object-embedded or app-bundled flows exist as declaration sites, and whether the docs flow embed (#36383) is a third reader of the flow label, is the dev's census (card to-do 1)
    Pre-claim lane: packages/lint and packages/cli are repo:objectstack lane paths (lint anchors to domain:spec); no non-test packages/spec/src/** path expected
    Pre-claim deps: Blocked-by: #36383 merged 2026-11-22T19:58Z; no other dependency
    Prior rulings read: i18n,coverage,demand,flows,flow,label,embedded,ones,walk,reaches,today → 177 hits; ADR-0018 Decision §5, ADR-0029 D8, ADR-0039 D7, ADR-0041 Decision §4, ADR-0041 Decision §5, ADR-0044 D2, ADR-0045 Decision §6, ADR-0054 Decision §3, ADR-0061 D4 (term-generic pointers); thread: none; surface ruling grep 14 ruling · 4 maintainer · 14 ⛔ lines over the two files, read by the dev near every line it edits; the walk's own rule governs: "a string nobody reads is not demanded"; repo: objectstack-ai/objectstack
    Serial constraints cleared: none — no open PR touches i18n-walk.ts, i18n-coverage.ts or the coverage baseline (open-PR file census 00:52Z)

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 24, 2026
  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Slot wait · 2026-11-24T01:27Z: the claim 7119105215 stands (same session, same branch), but the dev start is held until one of the area's two os-dev slots frees (#36595 and #36447 are building). No branch or worktree was created; the dev resumes on this claim, from origin/main, when a slot frees.

  9. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    os-dev-report

    {
     "issue": 36400,
     "status": "done",
     "branch": "claude/issue-36400-embedded-flow-label-coverage",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36826",
     "session": "session_01WGufziH9MVhWYLVCiw5eXB",
     "premise_still_valid": true,
     "summary": "packages/lint/src/i18n-walk.ts walkScreenFlows now demands flows.FLOW.label for every named flow, not only one with a screen or approval node: the docs viewer's type: flow embed titles its card by that key for any flow a page names (metadata-viewer.tsx:572), and the walk already asks every declared flow's drawn steps for nodes.NODE.label on that same reader (ruling 7076440876), so no new product reading was needed and no fork was reported. The card's object-embedded / app-bundled sites do not exist: object.zod.ts:1887-1895 and app.zod.ts:1895-1897 refuse them; 'embedded flow' in PR #36383's note means a flow the docs embed draws. The one flow nobody can draw by a bundle key, a nameless flow, is pinned as not asked. Coverage ratchet re-baselined (app-showcase 425 to 449, app-todo 130 to 136, exactly the 24 + 3x2 new flow-label findings), changeset for @objectstack/lint patch states the rise. Landing point as expected; cli i18n-coverage.ts changed one comment phrase only.",
     "tests": "head 385ed2b42. Pre-pin-edit: cli unit, 60 i18n/translation/lint files: Test Files 2 failed | 58 passed (60), Tests 5 failed | 652 passed (657), the 5 = exactly the narrow-predicate pins. After rewrite: 4 flow family files Tests 55 passed (55). @objectstack/lint whole suite Test Files 229 passed (229), Tests 9513 passed (9513). lint + cli typecheck exit 0. Ablation (lint resolves via dist in cli suite): old predicate restored behind build-surviving marker, ablation-replace 'ok mutation landed', rebuild, ablation-dist-preflight 'marker present in 2 built files', 2 pin files Tests 5 failed | 34 passed (39); restore blob == HEAD, git diff HEAD empty, rebuild, preflight --absent ok, Tests 39 passed (39). First ablation attempt used a comment marker the build strips; its preflight failed and that reading was discarded. check-i18n-coverage before --update: app-showcase 425 -> 449, app-todo 130 -> 136; after: OK (14 config(s), 585 baselined untranslated string(s), none new). check:i18n: 10 packages in sync.",
     "gates": "local: dispatch-gates --commands at 385ed2b42 = 75 commands; 73 exit 0, 2 exit 3 NOT MEASURED (node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 3, shallow clone cannot reach its pinned fixture; pnpm check:dual-build-cjs-loads :: exit 3, needs full pnpm build); --ran with exit codes: '75 derived famil(ies) accounted for — 73 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)'. overlap-check: VERDICT clean exit 0. CI at report time on 385ed2b42: Governed Surface Queue Guard=success; Check Changeset, Lint (repo & tooling, ESLint, scoped, PM dispatch-gates, docs & code guards), Type Check (source gates, workspace, debt ledger, consumer gates), Check PR Size, PR-body guards = in_progress; Test Core / Build Core not yet listed.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/36826/assignees), post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36400/comments); plus git push (not REST)",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none · noted, not filed: the 24 app-showcase and 3 app-todo flow labels are ratcheted, not translated (same treatment #36383 gave its population)",
      "carrier: none · noted, not filed: the card's 'object-embedded / app-bundled flow' premise is refuted by the spec (object.zod.ts:1887-1895, app.zod.ts:1895-1897); recorded in PR acceptance notes"
     ],
     "files_changed": [
      ".changeset/36400-flow-label-every-flow.md",
      "packages/cli/src/utils/i18n-coverage.ts",
      "packages/cli/test/i18n-flow-approval-coverage.test.ts",
      "packages/cli/test/i18n-flow-screen-coverage.test.ts",
      "packages/lint/src/i18n-walk.ts",
      "scripts/i18n-coverage-baseline.json"
     ],
     "line_budget": "6 files, +83 / -55",
     "deviations": [
      "cli package suite narrowed locally to the 60 unit files matching i18n|translation|lint plus typecheck; whole cli unit tier, integration tier and test:repo declared to CI",
      "PR body carries the seat signature line after the Fixes / Clause-② / Metadata-protocol lines, because the dispatch order fixed the body's opening lines"
     ],
     "Dev-effort": "high",
     "Rounds": 1
    }
  10. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    os-dev-report

    {
     "issue": 36400,
     "status": "done",
     "branch": "claude/issue-36400-embedded-flow-label-coverage",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36826",
     "head": "b77896a25",
     "session": "session_01WGufziH9MVhWYLVCiw5eXB",
     "premise_still_valid": true,
     "summary": "Round 2, L1-b REWORK 7121005088 S1: .changeset/36400-flow-label-every-flow.md now names '@objectstack/cli': patch beside '@objectstack/lint': patch. That is the only change; one commit, b77896a25, on top of 385ed2b42.",
     "tests": "No code or test changed in this round. Changeset checks at b77896a25: node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 ('This diff introduces no major bump'); node scripts/check-empty-changeset.mjs --base origin/main :: exit 0 ('1 declaring changeset(s) added', 'No changeset from the merge base modified or deleted'); pnpm changeset status --since=origin/main :: exit 0, with @objectstack/cli and @objectstack/lint both listed under patch.",
     "gates": "overlap-check at b77896a25: 'origin/main: merges cleanly', VERDICT clean exit 0. The round-1 gate sweep at 385ed2b42 (75 derived, 73 exit 0, 2 NOT MEASURED on exit 3 prerequisite refusals) stands: this round changed one changeset frontmatter line, which none of those gates read except the changeset gates rerun above. CI on b77896a25: not read; it starts with this push.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "1 — post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36400/comments); also git push, which is not a REST write",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [],
     "files_changed": [
      ".changeset/36400-flow-label-every-flow.md"
     ],
     "line_budget": "round 2: 1 file, +1 / -0; PR total 6 files, +84 / -55",
     "deviations": [
      "The PR body was not edited in this round. Its round-1 Runs section cites head 385ed2b42, and its text does not mention the changeset's package list, so no PR-body statement became false."
     ],
     "Dev-effort": "high",
     "Rounds": 2
    }
  11. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Close-out · 2026-11-24T04:53Z: delivered by PR #36826, merged as 5c2e34cd (Fixes #36400; L1 REWORK 7121005088 then delta ACCEPT 7121085713, landing 7121872888). The i18n walk now demands flows.<flow>.label for every named flow, on the strength of the docs type: flow embed that titles any flow a page names; the card's "object-embedded / app-bundled flow" premise is refuted in the PR (no such declaration site). Coverage baseline 425→449 (app-showcase) and 130→136 (app-todo), stated in the changeset. pm:dispatched removed; area and domain stay.

  12. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specenhancementpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions