You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
List sort panel: a number field's direction reads 「A → Z / Z → A」 instead of 「小 → 大 / 大 → 小」 #37027
Claim: PM loop round 1
Session: session_01QSeKYnagJvGbCtNg2PhvgW
Account: os-justin
Branch: claude/issue-37027-sort-size-wording
Worktree: objectstack-issue-37027
Domain: domain:ui
Seat: repo:objectstack#4
Area: a4-C
Epic: #35547 (list page redo) — found by its milestone acceptance #37020; not a sub-issue (triage's link to make), assigned to a4-C by the seat session.
File surface: ui/packages/components/src/custom/sort-builder.tsx, ui/packages/plugin-list/src/conditions/**, their tests, .changeset/* (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: platform UI code in objectstack (the live sort builder's direction options do not reach sortDirectionLabel's size wording for number fields) | sortDirectionLabel in plugin-list already has the size path; the live builder does not use it | zh-CN (and every locale) users sorting a list by a number field; reached today
Thread-read: 7137870065
Premise: holds
Serial constraints cleared: none — no open PR touches sort-builder.tsx or plugin-list conditions (file lists read now)
Pre-claim lane: domain:ui — every path is under ui/**.
Pre-claim deps: no Blocked-by: line; no "after #N".
Prior rulings read: check-prior-rulings.mjs --card 37027 on the surface at bfd1049 — zero hits, no ruling. No ADR on the surface.
{
"issue": 37027,
"status": "done",
"branch": "claude/issue-37027-sort-size-wording",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37049",
"session": "session_01QSeKYnagJvGbCtNg2PhvgW",
"premise_still_valid": true,
"summary": "Mechanism measured: SortBuilder (ui/packages/components/src/custom/sort-builder.tsx) kept its own direction table keyed on a date-only set (date, datetime) over sortBuilder.* rows, so every other type read 'A → Z'; the field type WAS passed through (dates worked). plugin-list's sortWording/sortDirectionLabel (the size path) had no non-test caller, as the card said. Fix: sortWording + sortDirectionLabel now live module-local in sort-builder.tsx (no new package export, components still does not import plugin-list), classifying by @object-ui/types FILTER_DATE_LIKE_TYPES (time) and FILTER_NUMBER_LIKE_TYPES + boolean (size) over the existing listConditions.sort.{time,size,alphabet}_{asc,desc} rows (no key added). The dead plugin-list copy, its six defaults rows and its unit test (duplicated by the new SortBuilder describe) are removed, so one table remains. Behaviour widenings to note: a 'time' field now reads as time and a boolean as size in the builder, matching what the chip helper already did.",
"tests": "head f4454bad0. `cd ui && pnpm exec vitest run --maxWorkers=2 packages/components/src/__tests__/sort-builder packages/plugin-list/src/conditions` under lock: VERDICT command-exit 0, Test Files 5 passed (5), Tests 96 passed (96). Fail-before proof (fix committed first; sort-builder.tsx replaced by origin/main bytes, landing proven by grep: sortDirectionLabel count=0, DATE_SORT_TYPES count=2): VERDICT command-exit 1, '× number, progress, percent and currency rows read \"Low → High\" / \"High → Low\"', Tests 1 failed | 9 passed (10); CONTROL (date keeps time, text keeps alphabet) passed on both legs. Restored with `git checkout HEAD --`, hash-object equals HEAD blob, `git diff HEAD` empty. No dist rebuild needed: the test imports ../custom/sort-builder by relative path. Typecheck: `pnpm --filter @object-ui/components --filter @object-ui/plugin-list run type-check` (tsc --noEmit && tsc -p tsconfig.test.json, both packages echoed 'Done') VERDICT command-exit 0. Browser check (showcase, zh-CN, estimate_hours/progress): NOT MEASURED, reason: the showcase closure build could not acquire the verify lock (two 540s queue-timeouts; holder pid 30946 `pnpm --filter @object-ui/i18n test; ...vitest run packages/app-shell/` held 48+ min, alive). Declared narrowing; CI 'Build & E2E UI' and 'Live E2E UI' are green on f4454bad0 but do not assert this wording.",
"gates": "Derived by `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at f4454bad0: 38 families. Local, exit captured before any pipe: exit 0 for check-adr-0087-registration (base + self-test), check-changeset-no-major, check-closing-keyword-parity (+self-test), check-comment-mask-corpus, check-empty-changeset (+self-test), check-sdui-manifest (+self-test), snapshot-next --self-test, check-governed-queue-guard --self-test, release-rehearsal-clone --self-test, release-pending-publish --self-test, spec check:duration-unit-keys, check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:cross-package-test-inputs, check:dispatcher-error-vocabulary, check:driver-memory-census, check:engine-double-contract, check:gitlink-declared, check:nul-bytes, check:published-files, check:refd-timer-probe, check:registry-log-declared, check:rest-log-spy-declared, check:skill-identifier-liveness, check:test-source-alias, check:tier-file-adoption, check:type-check-coverage, check:undeclared-dep-imports, check:watch-hint-literal, check:where-matcher. NOT MEASURED locally: check:query-options-erasure and check:type-check-debt (exit 124, my 300s timeout, not a verdict), `pnpm --dir ui exec vitest run scripts/` (lock queue-timeout exit 99 x3). --ran reconciliation: 38 derived, 35 run, 3 UNRUN (exactly those three). CI on f4454bad0 covers them: 'Lint · scoped · query-options erasure' success, 'Type Check · debt ledger' success, 'Test UI' + all 16 shards success. Every other PR check-run is success or skipped (Lint · ESLint, Lint & Repo Gates, Lint UI, Type Check UI, Test Core, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate, Build & E2E UI, Live E2E UI: success). overlap-check: VERDICT clean exit 0 (origin/main bfd1049f merges cleanly, 0 PR heads).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST pulls draft + POST issues/37049/assignees os-justin, run 45449497346), relay post-stamped os-dev-report comment on #37027; plus git push x3 (not REST)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a (same family as this card) · reach: code reading only, not measured in a browser · evidence: ui/packages/plugin-list/src/phone/PhoneListPanels.tsx:360-362 words the phone sort levels from sortBuilder.oldestFirst/ascending with a date-only DATE_SORT_TYPES set, so a numeric level on a phone-width list still reads 'A → Z' · outside this card's file surface, not touched · fold into this card's family (seat to file as follow-up under epic #35547 or reopen surface) · dedupe words: phone sort level direction, PhoneListPanels sortBuilder.ascending, numeric sort A → Z mobile",
"carrier: repo:objectstack#4 seat · after this PR the sortBuilder.ascending/descending/oldestFirst/newestFirst locale rows are read only by PhoneListPanels; retiring them belongs with that fix · noted, not filed"
],
"deviations": "(1) overlap-check first ran after the third push, not before the first (clean exit 0 at f4454bad0, which carries every pushed commit). (2) Browser acceptance NOT MEASURED (lock contention, see tests). (3) Clause-②: no copied as dispatched; it holds because the helpers stayed module-local (no new export on @object-ui/components). (4) Commit trailers carry Claude-Session only, no model line, per os-dev.md over the harness attribution reminder.",
"files_changed": [
"ui/packages/components/src/custom/sort-builder.tsx",
"ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx",
"ui/packages/plugin-list/src/conditions/ListConditionControls.tsx",
"ui/packages/plugin-list/src/conditions/conditionModel.ts",
"ui/packages/plugin-list/src/conditions/conditionTranslations.ts",
"ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx",
".changeset/sort-builder-size-wording.md"
]
}
Claim revision (2026-11-24T18:36Z) — file surface widened, same claim (7138474910), same branch claude/issue-37027-sort-size-wording, PR #37049.
File surface: adds ui/packages/plugin-list/src/phone/PhoneListPanels.tsx and its tests.
Why: the dev's report (comment 7140839929) found the same defect on the phone: PhoneListPanels.tsx:360-362 words a sort level from sortBuilder.* keys with a date-only set, so a numeric level on a phone-width list still reads 「A → Z」. Same defect class, same wording table, no other claim on that file, same gate family. Folding it here keeps #37027's Fixes honest; a separate card would only re-describe this one (filing-gate dedupe: same mechanism, card held by this seat).
Constraint: no new published export from @object-ui/components, @object-ui/plugin-list or @object-ui/types; if one is unavoidable the dev reports it and the Clause-②: line is re-read.
{
"issue": 37027,
"status": "done",
"branch": "claude/issue-37027-sort-size-wording",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37049",
"head": "5615c99db",
"session": "session_01QSeKYnagJvGbCtNg2PhvgW",
"premise_still_valid": true,
"summary": "Fix round, item 1: the phone sort sheet's levels (PhoneListPanels.tsx) now get their wording from sortDirectionLabel in plugin-list's conditions/conditionModel.ts. That module is internal, not a package export. It uses the same three-way rule as SortBuilder: FILTER_DATE_LIKE_TYPES read as time, FILTER_NUMBER_LIKE_TYPES plus boolean read as size, anything else as the alphabet, all over the listConditions.sort.* keys. The six default-translation rows for those keys are back in conditionTranslations.ts, and the four sortBuilder.* direction defaults are gone. Item 2: a single shared table is not possible without a new published export, so the rule exists twice: module-local in components/sort-builder.tsx and in plugin-list's conditionModel. Both use the same type lists and the same keys, and no export was added. Item 3: the sortBuilder.ascending/descending/oldestFirst/newestFirst locale rows now have no reader in the repo (check:i18n-dead-keys lists them), but I did NOT remove them; see open_questions. Item 6: the browser check is NOT MEASURED again.",
"tests": "Head 5615c99db. `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx packages/plugin-list/src/conditions packages/components/src/__tests__/sort-builder` under the lock: VERDICT command-exit 0, Test Files 6 passed (6), Tests 113 passed (113). Fails-before check for the phone (fix committed first): I put origin/main bytes into PhoneListPanels.tsx AND conditionTranslations.ts and confirmed them on disk with grep (DATE_SORT_TYPES=2, the sortBuilder.ascending default present=1). Result: VERDICT command-exit 1, '× a number / progress / percent / currency level reads \"Low → High\"', Tests 4 failed | 13 passed (17); the CONTROL (date reads as time, text as the alphabet) passed. A first attempt that reverted only PhoneListPanels.tsx also failed the controls, because the old panel's sortBuilder.* default rows were gone from HEAD's translation table. That run proves nothing about the fix, so I redid it with both files. Both files restored from HEAD; hash-object matches both HEAD blobs and `git status` is clean. The SortBuilder fails-before check from round 1 still holds (unchanged file). Typecheck: `pnpm --filter @object-ui/plugin-list --filter @object-ui/components run type-check`, VERDICT command-exit 0, both packages Done. Browser check: NOT MEASURED. Two showcase-build attempts hit queue-timeout (exit 99, 9m each, about 19 minutes in total). The holder was pid 18362, `bash .../scratchpad/issue-37028/pkg-tests.sh`, which had held the lock for 1168s or more and was still alive.",
"gates": "Head 5615c99db. The derived gate list is the same as round 1 (38 families). `dispatch-gates --ran`: exit 0, '38 derived famil(ies) accounted for — 36 run, 2 NOT-MEASURED'. All 36 that ran exited 0. The 2 not measured: check:query-options-erasure (my local 420s timeout fired, exit 124) and `pnpm --dir ui exec vitest run scripts/` (lock queue-timeout); CI covers both ('Lint · scoped · query-options erasure' and 'Test UI'). i18n gates: check:i18n-keys 0, check:i18n-drift 0, check:i18n-dead-keys 0 (it reports the four sortBuilder.* rows as dead); check:i18n and check:i18n-coverage exit 3 (PREREQUISITE NOT MET: CLI not built), NOT MEASURED. overlap-check before the push: VERDICT clean exit 0 (origin/main 896bfc4762, 0 PR heads). CI check-runs on 5615c99db: 45 success, 13 skipped, 0 failing or pending.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "this round: 1 — relay post-stamped os-dev-report comment on #37027. 1 git push (5615c99db, not REST). PR body NOT edited, see deviations.",
"open_questions": [
{
"question": "Should this PR remove the four sortBuilder.ascending/descending/oldestFirst/newestFirst rows, which no code reads any more, from all @object-ui/i18n locales?",
"options": [
"A: leave them (current). Clause-② stays no, and a later cleanup card removes them with a declared narrowing.",
"B: remove them here. These rows ship in the published ./locales/* packs, and the changelog that added two of them recorded the addition as 'Clause-②: yes (widening)'. Removing them is therefore a narrowing: Clause-② becomes yes (narrowing), which makes it BREAKING, requires a full dogfood run and an ADR-0087 disposition, and contradicts the 'keep Clause-②: no' instruction."
],
"recommendation": "A, because removing four dead rows is not worth a breaking declaration on a p2 wording fix."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: repo:objectstack#4 seat · the four dead sortBuilder.* direction rows in @object-ui/i18n (check:i18n-dead-keys reports them) · noted, not filed; see open_questions"
],
"deviations": "(1) Item 5's PR body edit was NOT made. os-dev.md says a subagent writes the PR body only at pr_create and never PATCHes it; the seat writes later edits. That conflicts with this dispatch, and os-dev.md wins. The relay body tool (post-stamped --body) would also insert a signature line above `Fixes #37027`. The complete replacement body (the phone fix moved to What changes, the trade-off stated, Verification filled for 5615c99db, Fixes / Clause-②: no / Metadata-protocol: none kept) is at /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/body2.md for the seat to write. (2) Item 3: I left the locale rows in place; see open_questions. (3) The changeset is updated to mention the phone sheet; Clause-②: no and Metadata-protocol: none are unchanged. (4) My first gate loop lost 3 commands because one of them read the loop's stdin; I re-ran those 3 with </dev/null and all exited 0.",
"files_changed": [
"ui/packages/components/src/custom/sort-builder.tsx",
"ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx",
"ui/packages/plugin-list/src/phone/PhoneListPanels.tsx",
"ui/packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx",
"ui/packages/plugin-list/src/conditions/ListConditionControls.tsx",
"ui/packages/plugin-list/src/conditions/conditionModel.ts",
"ui/packages/plugin-list/src/conditions/conditionTranslations.ts",
"ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx",
".changeset/sort-builder-size-wording.md"
]
}
Claim revision 2 (2026-11-24T20:42Z) — same claim (7138474910), same branch, PR #37049.
File surface: adds ui/packages/i18n/src/locales/ar.ts (the listConditions.sort.alphabet_* pair only) and an '@object-ui/i18n': patch entry in the changeset.
Why: L1 REWORK M1 (PR #37049 comment 7143062992) — this PR is the first to show those rows, and the Arabic alphabet pair reads backwards ('A ← Z' / 'Z ← A'). The fix changes two values; the key set is unchanged, so Clause-②: no holds.
{
"issue": 37027,
"status": "done",
"branch": "claude/issue-37027-sort-size-wording",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37049",
"head": "f1c58042b",
"session": "session_01QSeKYnagJvGbCtNg2PhvgW",
"premise_still_valid": true,
"summary": "Fix round 2 on the L1 REWORK (comment 7143062992). Landing: origin/main merged in as merge commit 597bdd4f9, not a rebase. M1: in ar.ts, listConditions.sort.alphabet_asc / alphabet_desc now read 'A → Z' / 'Z → A'. The key set is unchanged, the changeset gains '@object-ui/i18n': patch, and Clause-②: no still holds. S1: a new describe mounts SortBuilder under the real I18nProvider. In zh, number and progress rows read 「小 → 大」 / 「大 → 小」. In ar, the text pair reads 'A → Z' / 'Z → A'; the ar case first waits until the number row shows Arabic text, so it cannot pass on the built-in English default. S2: the changeset now says the four sortBuilder.* direction rows are no longer read and that a host override moves to listConditions.sort.*, and it names the ja, ko and ru date wording changes and the ru text change. N1: the describe title is updated. N2: boolean reads as size and time reads as time, pinned on both the builder and the phone panel. N4: each copy has a comment pointing at its twin. N3: proposed PR title in title3.txt. Browser check: done, and it passes.",
"tests": "Head f1c58042b, after rebuilding the components and plugin-list dependency closure post-merge (VERDICT command-exit 0). `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx packages/plugin-list/src/conditions packages/components/src/__tests__/sort-builder packages/i18n/src/__tests__/all-locales-key-parity.test.ts`: VERDICT command-exit 0, Test Files 7 passed (7), Tests 167 passed (167). M1 ablation: I put the ar.ts pair back to 'A ← Z' / 'Z ← A' with scripts/ablation-replace.mjs (anchor 1 -> 0, blob eb6be4c4 -> f636ff5c; disk check injected=1 fixed=0). No dist rebuild was needed: ui/vitest.config.mts aliases @object-ui/i18n to packages/i18n/src. Result: '× ar: a text row reads the Latin pair left to right', Test Files 1 failed (1). Restored from HEAD; hash-object equals the HEAD blob and the tree is clean. Typecheck of i18n, components and plugin-list: VERDICT command-exit 0, all three Done. Browser check: showcase backend (showcase closure build under the lock, VERDICT command-exit 0) on a private port 38427, with the Console served from ui/ source by Vite on 5287, logged in as the seeded admin, zh-CN, at /apps/com.example.showcase/showcase_task. Desktop sort builder direction options read: estimate_hours [\"小 → 大\",\"大 → 小\"], progress [\"小 → 大\",\"大 → 小\"], due_date [\"最早 → 最新\",\"最新 → 最早\"]. At phone width (390x844, touch), a new level reads: estimate_hours [\"小 → 大\"], progress [\"小 → 大\"]. Screenshots: desktop-estimate_hours.png, desktop-progress.png, desktop-due_date.png, phone-estimate_hours.png, phone-progress.png in the scratchpad issue-37027/pw directory. Both servers were stopped by their recorded pids and ports; nothing is left listening.",
"gates": "Head f1c58042b. dispatch-gates --commands gives the same 38 families as before. `--ran`: exit 0, '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED'; every recorded exit is 0, including check:query-options-erasure and `pnpm --dir ui exec vitest run scripts/` (172 files passed, 2 skipped; VERDICT command-exit 0). i18n: check:i18n-dead-keys 0, check:i18n-keys 0, check:i18n-drift 0. No generator asked to regenerate zh-Hant. overlap-check before the push: VERDICT clean exit 0 (#37084 and #36791 also touch ar.ts and both merge cleanly). CI check-runs on f1c58042b: 45 success, 13 skipped, 0 failing.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "this round: 1 — relay post-stamped os-dev-report comment on #37027. 1 git push (merge 597bdd4f9 + f1c58042b, not REST). PR body and title not edited.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": "(1) The PR body and title were not edited by me, as instructed. Replacement body: /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/body3.md. Proposed title: /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/title3.txt, which reads 'fix(components, plugin-list, i18n): sort directions read by field type — size for numbers on the builder and the phone sheet'. (2) My first attempt to stop the servers used pkill -P; the process-kill hook blocked it before anything ran. I then stopped them by their recorded pids and ports. (3) The merge commit message is git's default and carries no trailers.",
"files_changed": [
"ui/packages/components/src/custom/sort-builder.tsx",
"ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx",
"ui/packages/plugin-list/src/phone/PhoneListPanels.tsx",
"ui/packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx",
"ui/packages/plugin-list/src/conditions/ListConditionControls.tsx",
"ui/packages/plugin-list/src/conditions/conditionModel.ts",
"ui/packages/plugin-list/src/conditions/conditionTranslations.ts",
"ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx",
"ui/packages/i18n/src/locales/ar.ts",
".changeset/sort-builder-size-wording.md"
]
}
Delivered (2026-11-24T21:57Z): PR #37049 merged; this card closes by its Fixes #37027. A sort level on a number, percent, progress, currency, rating or boolean field now reads 「小 → 大 / 大 → 小」 (size) in the list's sort builder and on the phone sort sheet; dates read as time, text as the alphabet. The Arabic alphabet pair was corrected to read left to right. Nothing left on this card; pm:dispatched removed.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T16:33Z
area:uxkept, typeBug,pm:queueanddomain:uiadded.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Claim: PM loop round 1
Session:
session_01QSeKYnagJvGbCtNg2PhvgWAccount:
os-justinBranch:
claude/issue-37027-sort-size-wordingWorktree:
objectstack-issue-37027Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-C
Epic: #35547 (list page redo) — found by its milestone acceptance #37020; not a sub-issue (triage's link to make), assigned to a4-C by the seat session.
File surface:
ui/packages/components/src/custom/sort-builder.tsx,ui/packages/plugin-list/src/conditions/**, their tests,.changeset/*(stop on breach; explain in the report)Container & model:
S,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
platform UI code in objectstack (the live sort builder's direction options do not reach sortDirectionLabel's size wording for number fields) | sortDirectionLabel in plugin-list already has the size path; the live builder does not use it | zh-CN (and every locale) users sorting a list by a number field; reached todayThread-read: 7137870065
Premise: holds
Serial constraints cleared:
none — no open PR touches sort-builder.tsx or plugin-list conditions (file lists read now)Pre-claim lane:
domain:ui— every path is underui/**.Pre-claim deps: no
Blocked-by:line; no "after #N".Prior rulings read:
check-prior-rulings.mjs --card 37027on the surface at bfd1049 — zero hits, no ruling. No ADR on the surface.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
{ "issue": 37027, "status": "done", "branch": "claude/issue-37027-sort-size-wording", "pr": "https://github.com/objectstack-ai/objectstack/pull/37049", "session": "session_01QSeKYnagJvGbCtNg2PhvgW", "premise_still_valid": true, "summary": "Mechanism measured: SortBuilder (ui/packages/components/src/custom/sort-builder.tsx) kept its own direction table keyed on a date-only set (date, datetime) over sortBuilder.* rows, so every other type read 'A → Z'; the field type WAS passed through (dates worked). plugin-list's sortWording/sortDirectionLabel (the size path) had no non-test caller, as the card said. Fix: sortWording + sortDirectionLabel now live module-local in sort-builder.tsx (no new package export, components still does not import plugin-list), classifying by @object-ui/types FILTER_DATE_LIKE_TYPES (time) and FILTER_NUMBER_LIKE_TYPES + boolean (size) over the existing listConditions.sort.{time,size,alphabet}_{asc,desc} rows (no key added). The dead plugin-list copy, its six defaults rows and its unit test (duplicated by the new SortBuilder describe) are removed, so one table remains. Behaviour widenings to note: a 'time' field now reads as time and a boolean as size in the builder, matching what the chip helper already did.", "tests": "head f4454bad0. `cd ui && pnpm exec vitest run --maxWorkers=2 packages/components/src/__tests__/sort-builder packages/plugin-list/src/conditions` under lock: VERDICT command-exit 0, Test Files 5 passed (5), Tests 96 passed (96). Fail-before proof (fix committed first; sort-builder.tsx replaced by origin/main bytes, landing proven by grep: sortDirectionLabel count=0, DATE_SORT_TYPES count=2): VERDICT command-exit 1, '× number, progress, percent and currency rows read \"Low → High\" / \"High → Low\"', Tests 1 failed | 9 passed (10); CONTROL (date keeps time, text keeps alphabet) passed on both legs. Restored with `git checkout HEAD --`, hash-object equals HEAD blob, `git diff HEAD` empty. No dist rebuild needed: the test imports ../custom/sort-builder by relative path. Typecheck: `pnpm --filter @object-ui/components --filter @object-ui/plugin-list run type-check` (tsc --noEmit && tsc -p tsconfig.test.json, both packages echoed 'Done') VERDICT command-exit 0. Browser check (showcase, zh-CN, estimate_hours/progress): NOT MEASURED, reason: the showcase closure build could not acquire the verify lock (two 540s queue-timeouts; holder pid 30946 `pnpm --filter @object-ui/i18n test; ...vitest run packages/app-shell/` held 48+ min, alive). Declared narrowing; CI 'Build & E2E UI' and 'Live E2E UI' are green on f4454bad0 but do not assert this wording.", "gates": "Derived by `dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at f4454bad0: 38 families. Local, exit captured before any pipe: exit 0 for check-adr-0087-registration (base + self-test), check-changeset-no-major, check-closing-keyword-parity (+self-test), check-comment-mask-corpus, check-empty-changeset (+self-test), check-sdui-manifest (+self-test), snapshot-next --self-test, check-governed-queue-guard --self-test, release-rehearsal-clone --self-test, release-pending-publish --self-test, spec check:duration-unit-keys, check:adr-anchors, check:changeset-gate-self-tests, check:closed-ceremony-text, check:cross-package-test-inputs, check:dispatcher-error-vocabulary, check:driver-memory-census, check:engine-double-contract, check:gitlink-declared, check:nul-bytes, check:published-files, check:refd-timer-probe, check:registry-log-declared, check:rest-log-spy-declared, check:skill-identifier-liveness, check:test-source-alias, check:tier-file-adoption, check:type-check-coverage, check:undeclared-dep-imports, check:watch-hint-literal, check:where-matcher. NOT MEASURED locally: check:query-options-erasure and check:type-check-debt (exit 124, my 300s timeout, not a verdict), `pnpm --dir ui exec vitest run scripts/` (lock queue-timeout exit 99 x3). --ran reconciliation: 38 derived, 35 run, 3 UNRUN (exactly those three). CI on f4454bad0 covers them: 'Lint · scoped · query-options erasure' success, 'Type Check · debt ledger' success, 'Test UI' + all 16 shards success. Every other PR check-run is success or skipped (Lint · ESLint, Lint & Repo Gates, Lint UI, Type Check UI, Test Core, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate, Build & E2E UI, Live E2E UI: success). overlap-check: VERDICT clean exit 0 (origin/main bfd1049f merges cleanly, 0 PR heads).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST pulls draft + POST issues/37049/assignees os-justin, run 45449497346), relay post-stamped os-dev-report comment on #37027; plus git push x3 (not REST)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a (same family as this card) · reach: code reading only, not measured in a browser · evidence: ui/packages/plugin-list/src/phone/PhoneListPanels.tsx:360-362 words the phone sort levels from sortBuilder.oldestFirst/ascending with a date-only DATE_SORT_TYPES set, so a numeric level on a phone-width list still reads 'A → Z' · outside this card's file surface, not touched · fold into this card's family (seat to file as follow-up under epic #35547 or reopen surface) · dedupe words: phone sort level direction, PhoneListPanels sortBuilder.ascending, numeric sort A → Z mobile", "carrier: repo:objectstack#4 seat · after this PR the sortBuilder.ascending/descending/oldestFirst/newestFirst locale rows are read only by PhoneListPanels; retiring them belongs with that fix · noted, not filed" ], "deviations": "(1) overlap-check first ran after the third push, not before the first (clean exit 0 at f4454bad0, which carries every pushed commit). (2) Browser acceptance NOT MEASURED (lock contention, see tests). (3) Clause-②: no copied as dispatched; it holds because the helpers stayed module-local (no new export on @object-ui/components). (4) Commit trailers carry Claude-Session only, no model line, per os-dev.md over the harness attribution reminder.", "files_changed": [ "ui/packages/components/src/custom/sort-builder.tsx", "ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx", "ui/packages/plugin-list/src/conditions/ListConditionControls.tsx", "ui/packages/plugin-list/src/conditions/conditionModel.ts", "ui/packages/plugin-list/src/conditions/conditionTranslations.ts", "ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx", ".changeset/sort-builder-size-wording.md" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Claim revision (2026-11-24T18:36Z) — file surface widened, same claim (7138474910), same branch
claude/issue-37027-sort-size-wording, PR #37049.File surface: adds
ui/packages/plugin-list/src/phone/PhoneListPanels.tsxand its tests.Why: the dev's report (comment 7140839929) found the same defect on the phone:
PhoneListPanels.tsx:360-362words a sort level fromsortBuilder.*keys with a date-only set, so a numeric level on a phone-width list still reads 「A → Z」. Same defect class, same wording table, no other claim on that file, same gate family. Folding it here keeps #37027'sFixeshonest; a separate card would only re-describe this one (filing-gate dedupe: same mechanism, card held by this seat).Constraint: no new published export from
@object-ui/components,@object-ui/plugin-listor@object-ui/types; if one is unavoidable the dev reports it and theClause-②:line is re-read.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
{ "issue": 37027, "status": "done", "branch": "claude/issue-37027-sort-size-wording", "pr": "https://github.com/objectstack-ai/objectstack/pull/37049", "head": "5615c99db", "session": "session_01QSeKYnagJvGbCtNg2PhvgW", "premise_still_valid": true, "summary": "Fix round, item 1: the phone sort sheet's levels (PhoneListPanels.tsx) now get their wording from sortDirectionLabel in plugin-list's conditions/conditionModel.ts. That module is internal, not a package export. It uses the same three-way rule as SortBuilder: FILTER_DATE_LIKE_TYPES read as time, FILTER_NUMBER_LIKE_TYPES plus boolean read as size, anything else as the alphabet, all over the listConditions.sort.* keys. The six default-translation rows for those keys are back in conditionTranslations.ts, and the four sortBuilder.* direction defaults are gone. Item 2: a single shared table is not possible without a new published export, so the rule exists twice: module-local in components/sort-builder.tsx and in plugin-list's conditionModel. Both use the same type lists and the same keys, and no export was added. Item 3: the sortBuilder.ascending/descending/oldestFirst/newestFirst locale rows now have no reader in the repo (check:i18n-dead-keys lists them), but I did NOT remove them; see open_questions. Item 6: the browser check is NOT MEASURED again.", "tests": "Head 5615c99db. `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx packages/plugin-list/src/conditions packages/components/src/__tests__/sort-builder` under the lock: VERDICT command-exit 0, Test Files 6 passed (6), Tests 113 passed (113). Fails-before check for the phone (fix committed first): I put origin/main bytes into PhoneListPanels.tsx AND conditionTranslations.ts and confirmed them on disk with grep (DATE_SORT_TYPES=2, the sortBuilder.ascending default present=1). Result: VERDICT command-exit 1, '× a number / progress / percent / currency level reads \"Low → High\"', Tests 4 failed | 13 passed (17); the CONTROL (date reads as time, text as the alphabet) passed. A first attempt that reverted only PhoneListPanels.tsx also failed the controls, because the old panel's sortBuilder.* default rows were gone from HEAD's translation table. That run proves nothing about the fix, so I redid it with both files. Both files restored from HEAD; hash-object matches both HEAD blobs and `git status` is clean. The SortBuilder fails-before check from round 1 still holds (unchanged file). Typecheck: `pnpm --filter @object-ui/plugin-list --filter @object-ui/components run type-check`, VERDICT command-exit 0, both packages Done. Browser check: NOT MEASURED. Two showcase-build attempts hit queue-timeout (exit 99, 9m each, about 19 minutes in total). The holder was pid 18362, `bash .../scratchpad/issue-37028/pkg-tests.sh`, which had held the lock for 1168s or more and was still alive.", "gates": "Head 5615c99db. The derived gate list is the same as round 1 (38 families). `dispatch-gates --ran`: exit 0, '38 derived famil(ies) accounted for — 36 run, 2 NOT-MEASURED'. All 36 that ran exited 0. The 2 not measured: check:query-options-erasure (my local 420s timeout fired, exit 124) and `pnpm --dir ui exec vitest run scripts/` (lock queue-timeout); CI covers both ('Lint · scoped · query-options erasure' and 'Test UI'). i18n gates: check:i18n-keys 0, check:i18n-drift 0, check:i18n-dead-keys 0 (it reports the four sortBuilder.* rows as dead); check:i18n and check:i18n-coverage exit 3 (PREREQUISITE NOT MET: CLI not built), NOT MEASURED. overlap-check before the push: VERDICT clean exit 0 (origin/main 896bfc4762, 0 PR heads). CI check-runs on 5615c99db: 45 success, 13 skipped, 0 failing or pending.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "this round: 1 — relay post-stamped os-dev-report comment on #37027. 1 git push (5615c99db, not REST). PR body NOT edited, see deviations.", "open_questions": [ { "question": "Should this PR remove the four sortBuilder.ascending/descending/oldestFirst/newestFirst rows, which no code reads any more, from all @object-ui/i18n locales?", "options": [ "A: leave them (current). Clause-② stays no, and a later cleanup card removes them with a declared narrowing.", "B: remove them here. These rows ship in the published ./locales/* packs, and the changelog that added two of them recorded the addition as 'Clause-②: yes (widening)'. Removing them is therefore a narrowing: Clause-② becomes yes (narrowing), which makes it BREAKING, requires a full dogfood run and an ADR-0087 disposition, and contradicts the 'keep Clause-②: no' instruction." ], "recommendation": "A, because removing four dead rows is not worth a breaking declaration on a p2 wording fix." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:objectstack#4 seat · the four dead sortBuilder.* direction rows in @object-ui/i18n (check:i18n-dead-keys reports them) · noted, not filed; see open_questions" ], "deviations": "(1) Item 5's PR body edit was NOT made. os-dev.md says a subagent writes the PR body only at pr_create and never PATCHes it; the seat writes later edits. That conflicts with this dispatch, and os-dev.md wins. The relay body tool (post-stamped --body) would also insert a signature line above `Fixes #37027`. The complete replacement body (the phone fix moved to What changes, the trade-off stated, Verification filled for 5615c99db, Fixes / Clause-②: no / Metadata-protocol: none kept) is at /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/body2.md for the seat to write. (2) Item 3: I left the locale rows in place; see open_questions. (3) The changeset is updated to mention the phone sheet; Clause-②: no and Metadata-protocol: none are unchanged. (4) My first gate loop lost 3 commands because one of them read the loop's stdin; I re-ran those 3 with </dev/null and all exited 0.", "files_changed": [ "ui/packages/components/src/custom/sort-builder.tsx", "ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx", "ui/packages/plugin-list/src/phone/PhoneListPanels.tsx", "ui/packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx", "ui/packages/plugin-list/src/conditions/ListConditionControls.tsx", "ui/packages/plugin-list/src/conditions/conditionModel.ts", "ui/packages/plugin-list/src/conditions/conditionTranslations.ts", "ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx", ".changeset/sort-builder-size-wording.md" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Claim revision 2 (2026-11-24T20:42Z) — same claim (7138474910), same branch, PR #37049.
File surface: adds
ui/packages/i18n/src/locales/ar.ts(thelistConditions.sort.alphabet_*pair only) and an'@object-ui/i18n': patchentry in the changeset.Why: L1 REWORK M1 (PR #37049 comment 7143062992) — this PR is the first to show those rows, and the Arabic alphabet pair reads backwards (
'A ← Z'/'Z ← A'). The fix changes two values; the key set is unchanged, soClause-②: noholds.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
os-dev-report
{ "issue": 37027, "status": "done", "branch": "claude/issue-37027-sort-size-wording", "pr": "https://github.com/objectstack-ai/objectstack/pull/37049", "head": "f1c58042b", "session": "session_01QSeKYnagJvGbCtNg2PhvgW", "premise_still_valid": true, "summary": "Fix round 2 on the L1 REWORK (comment 7143062992). Landing: origin/main merged in as merge commit 597bdd4f9, not a rebase. M1: in ar.ts, listConditions.sort.alphabet_asc / alphabet_desc now read 'A → Z' / 'Z → A'. The key set is unchanged, the changeset gains '@object-ui/i18n': patch, and Clause-②: no still holds. S1: a new describe mounts SortBuilder under the real I18nProvider. In zh, number and progress rows read 「小 → 大」 / 「大 → 小」. In ar, the text pair reads 'A → Z' / 'Z → A'; the ar case first waits until the number row shows Arabic text, so it cannot pass on the built-in English default. S2: the changeset now says the four sortBuilder.* direction rows are no longer read and that a host override moves to listConditions.sort.*, and it names the ja, ko and ru date wording changes and the ru text change. N1: the describe title is updated. N2: boolean reads as size and time reads as time, pinned on both the builder and the phone panel. N4: each copy has a comment pointing at its twin. N3: proposed PR title in title3.txt. Browser check: done, and it passes.", "tests": "Head f1c58042b, after rebuilding the components and plugin-list dependency closure post-merge (VERDICT command-exit 0). `cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx packages/plugin-list/src/conditions packages/components/src/__tests__/sort-builder packages/i18n/src/__tests__/all-locales-key-parity.test.ts`: VERDICT command-exit 0, Test Files 7 passed (7), Tests 167 passed (167). M1 ablation: I put the ar.ts pair back to 'A ← Z' / 'Z ← A' with scripts/ablation-replace.mjs (anchor 1 -> 0, blob eb6be4c4 -> f636ff5c; disk check injected=1 fixed=0). No dist rebuild was needed: ui/vitest.config.mts aliases @object-ui/i18n to packages/i18n/src. Result: '× ar: a text row reads the Latin pair left to right', Test Files 1 failed (1). Restored from HEAD; hash-object equals the HEAD blob and the tree is clean. Typecheck of i18n, components and plugin-list: VERDICT command-exit 0, all three Done. Browser check: showcase backend (showcase closure build under the lock, VERDICT command-exit 0) on a private port 38427, with the Console served from ui/ source by Vite on 5287, logged in as the seeded admin, zh-CN, at /apps/com.example.showcase/showcase_task. Desktop sort builder direction options read: estimate_hours [\"小 → 大\",\"大 → 小\"], progress [\"小 → 大\",\"大 → 小\"], due_date [\"最早 → 最新\",\"最新 → 最早\"]. At phone width (390x844, touch), a new level reads: estimate_hours [\"小 → 大\"], progress [\"小 → 大\"]. Screenshots: desktop-estimate_hours.png, desktop-progress.png, desktop-due_date.png, phone-estimate_hours.png, phone-progress.png in the scratchpad issue-37027/pw directory. Both servers were stopped by their recorded pids and ports; nothing is left listening.", "gates": "Head f1c58042b. dispatch-gates --commands gives the same 38 families as before. `--ran`: exit 0, '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED'; every recorded exit is 0, including check:query-options-erasure and `pnpm --dir ui exec vitest run scripts/` (172 files passed, 2 skipped; VERDICT command-exit 0). i18n: check:i18n-dead-keys 0, check:i18n-keys 0, check:i18n-drift 0. No generator asked to regenerate zh-Hant. overlap-check before the push: VERDICT clean exit 0 (#37084 and #36791 also touch ar.ts and both merge cleanly). CI check-runs on f1c58042b: 45 success, 13 skipped, 0 failing.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "this round: 1 — relay post-stamped os-dev-report comment on #37027. 1 git push (merge 597bdd4f9 + f1c58042b, not REST). PR body and title not edited.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": "(1) The PR body and title were not edited by me, as instructed. Replacement body: /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/body3.md. Proposed title: /tmp/claude-0/-home-user-objectstack/c7dd8792-66da-5a7b-a87a-ce4e60a725d4/scratchpad/issue-37027/title3.txt, which reads 'fix(components, plugin-list, i18n): sort directions read by field type — size for numbers on the builder and the phone sheet'. (2) My first attempt to stop the servers used pkill -P; the process-kill hook blocked it before anything ran. I then stopped them by their recorded pids and ports. (3) The merge commit message is git's default and carries no trailers.", "files_changed": [ "ui/packages/components/src/custom/sort-builder.tsx", "ui/packages/components/src/__tests__/sort-builder-date-direction-duplicates-27520.test.tsx", "ui/packages/plugin-list/src/phone/PhoneListPanels.tsx", "ui/packages/plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx", "ui/packages/plugin-list/src/conditions/ListConditionControls.tsx", "ui/packages/plugin-list/src/conditions/conditionModel.ts", "ui/packages/plugin-list/src/conditions/conditionTranslations.ts", "ui/packages/plugin-list/src/conditions/__tests__/listConditions.test.tsx", "ui/packages/i18n/src/locales/ar.ts", ".changeset/sort-builder-size-wording.md" ] }objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#4 · os-justin · session_01QSeKYnagJvGbCtNg2PhvgW
Delivered (2026-11-24T21:57Z): PR #37049 merged; this card closes by its
Fixes #37027. A sort level on a number, percent, progress, currency, rating or boolean field now reads 「小 → 大 / 大 → 小」 (size) in the list's sort builder and on the phone sort sheet; dates read as time, text as the alphabet. The Arabic alphabet pair was corrected to read left to right. Nothing left on this card;pm:dispatchedremoved.