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
Chart compare-to (previous period) leaves {current_iso_week} unshifted, so the comparison series filters the same week #35395
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p3
Filing gate: out-of-scope finding from the os-dev of #34938 (PR #35391), filed by seat 5 (area ux-1) on the seat's word. ⛔ Not a claim. Grade p3: only charts that both use the new placeholder and turn on compare-to are affected.
Blocked-by: #35391 (adds {current_iso_week}; the gap exists only once it merges)
What happens
A chart's compare-to (previous period) shift rewrites date-macro placeholders to the previous window (ui/packages/core/src/utils/compare-to.ts). {current_iso_week} is a period key, not a date macro, so the shift leaves it as written and the comparison series filters the same week as the main series. Read from code; not measured in a UI.
Expected
Either the shift maps {current_iso_week} to the previous ISO week key, or compare-to declines (with a stated reason) on a filter that carries a period key. Choose the smaller honest fix; do not add new public tokens.
Done when
A pin shows the compare series does not silently repeat the current week.
Dedupe words: compare-to previous period, current_iso_week unshifted, period key compare.
Unblocked · 2026-11-19T11:41Z: the blocker #35391 merged as 89364b4, so {current_iso_week} is on main and this gap is real. pm:blocked → pm:queue (p3: rides a same-file p2, never dispatched alone).
Claim: PM loop · area f7-view
Session: session_01QsR2jREBdDtYvSLn38xUCg
Account: zhuangjianguo
Branch: claude/issue-35395-compare-iso-week
Worktree: objectstack-issue-35395
Domain: domain:ui
Seat: repo:objectstack#7
Area: f7-view
File surface: ui/packages/core/src/utils/compare-to.ts, ui/packages/core/src/utils/__tests__/compare-to.test.ts (or a new card-named test beside it), a changeset. ⛔ No new public token (card: 「do not add new public tokens」) (stop on breach; explain in the report)
Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate on ui/**), effort: medium (S mapping or refusal in one helper)
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack ui/packages/corecompare-to.ts (shift rewrites date macros, not the {current_iso_week} period key) | none | dashboard authors with a chart that filters on {current_iso_week} and turns on compare-to: the comparison series repeats the current week
Thread-read: 7008064200
Premise: holds by code reading (card, from #34938's dev); blocker #35391 merged 89364b4; the dev measures on origin/main first.
Pre-claim lane: repo:objectstack seat 7 area f7-view (chart query path; rider routed here by the seat 10:22Z, standalone in a free slot since #36256 does not touch compare-to.ts).
Pre-claim deps: #35391 merged 2026-11-19.
Prior rulings read: compare-to,current_iso_week,compareto → 1 hit; ADR-0021 D3 (compareTo is a presentation directive the engine time-shifts at query compile time) read as a constraint; thread: none; repo: objectstack-ai/objectstack
Fold-or-serial: not folded (#36256 is the drill dialog, other files).
Serial constraints cleared: none (no open PR on compare-to.ts at claim time) — overlap-check before push
{
"issue": 35395,
"status": "done",
"branch": "claude/issue-35395-compare-iso-week",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36416",
"session": "session_01QsR2jREBdDtYvSLn38xUCg",
"premise_still_valid": true,
"summary": "Premise held on origin/main 4e55e4eb: shiftFilterByCompareTo renamed date macros but left {current_iso_week} as written, and ObjectChart sends the shifted filter to a server that resolves the key to the current week. previousPeriod now writes the literal previous ISO week key; week 1 steps back to W53 or W52 of the previous ISO year, computed from that year's Jan-1 weekday and leap rule. previousYear resolves the key against the same shifted day the date macros use. compareToTrendLabelKey reads vsLastWeek for a {current_iso_week} filter. No new public token. PERIOD_KEY_TOKENS has one member, so no other period key shares the gap. Diff: 2 source/test files plus a changeset, +64/-4.",
"tests": "a2b9aa62: from ui/, under the lock, `pnpm exec vitest run packages/core/src/utils/ --maxWorkers=1`: Test Files 124 passed (124), Tests 2214 passed (2214). `pnpm --filter @object-ui/core type-check`: exit 0, lock VERDICT command-exit 0. Ablation (fix committed first): deleted the current_iso_week substitution with ablation-replace.mjs; grep -c anchor = 0 on disk. compare-to.test.ts: Tests 2 failed / 33 passed, received '{current_iso_week}'. Restored with git checkout HEAD --: git diff HEAD empty, blob d276c311 equals HEAD. No dist leg: the test imports the source by relative path.",
"gates": "Closure `pnpm --workspace-concurrency=2 --filter '@object-ui/core^...' build`: VERDICT command-exit 0. dispatch-gates --commands (a2b9aa62, 3 paths): 38 families. 36 ran locally with exit 0. 2 are NOT MEASURED because they could not get the lock: `pnpm --dir ui exec vitest run scripts/` (exit 99, queue-timeout) and `pnpm check:type-check-debt` (exit 3, closure build could not get the lock). Both are left to CI as a declared narrowing. --ran reconciliation: 38 accounted, exit 0. check:nul-bytes exit 0. overlap-check: VERDICT clean exit 0 against origin/main (the deepen fetch failed on another process's shallow.lock in the shared .git). PR check-runs on a2b9aa62 at report time: 45 completed/success, 13 completed/skipped, none failed. Further runs may still be queued.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 — git push (not REST); relay pr_create (POST pulls + POST issues/36416/assignees); post-stamped os-dev-report comment on issue 35395",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: none · noted, not filed: ADR-0021 dataset path (service-analytics dataset-executor shiftRange) shifts only the time dimension's dateRange and holds selection.filter constant across the compare pass, a date macro or a period key alike. That is existing design. Read from code, no reach measured. Recorded in the PR Acceptance notes."],
"line_budget": "68 changed lines (+64/-4), under ~150",
"deviations": "Initial commit carried the model-named Co-Authored-By trailer; the pre-push hook refused it and the unpushed commit was amended to the model-free pair before the first push. Two derived families NOT MEASURED (lock starvation), declared above.",
"files_changed": ["ui/packages/core/src/utils/compare-to.ts", "ui/packages/core/src/utils/__tests__/compare-to.test.ts", ".changeset/35395-compare-iso-week.md"],
"l2_review_owed": "none named beyond the standard seat ACCEPT; ui/packages/core patch, no governed path"
}
area:uxbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p3
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY
Unblocked · 2026-11-19T11:41Z: the blocker #35391 merged as 89364b4, so
{current_iso_week}is on main and this gap is real. pm:blocked → pm:queue (p3: rides a same-file p2, never dispatched alone).objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg
Claim: PM loop · area f7-view
Session:
session_01QsR2jREBdDtYvSLn38xUCgAccount:
zhuangjianguoBranch:
claude/issue-35395-compare-iso-weekWorktree:
objectstack-issue-35395Domain:
domain:uiSeat:
repo:objectstack#7Area: f7-view
File surface:
ui/packages/core/src/utils/compare-to.ts,ui/packages/core/src/utils/__tests__/compare-to.test.ts(or a new card-named test beside it), a changeset. ⛔ No new public token (card: 「do not add new public tokens」) (stop on breach; explain in the report)Container & model:
S,mode:subagent,model: opus(default tier;dispatch-gates --tier: no path-derived mandate onui/**),effort: medium(S mapping or refusal in one helper)Clause-②: no
Metadata-protocol: none
Responsibility: objectstack
ui/packages/corecompare-to.ts(shift rewrites date macros, not the{current_iso_week}period key) | none | dashboard authors with a chart that filters on{current_iso_week}and turns on compare-to: the comparison series repeats the current weekThread-read: 7008064200
Premise: holds by code reading (card, from #34938's dev); blocker #35391 merged 89364b4; the dev measures on origin/main first.
Pre-claim lane: repo:objectstack seat 7 area f7-view (chart query path; rider routed here by the seat 10:22Z, standalone in a free slot since #36256 does not touch
compare-to.ts).Pre-claim deps: #35391 merged 2026-11-19.
Prior rulings read: compare-to,current_iso_week,compareto → 1 hit; ADR-0021 D3 (
compareTois a presentation directive the engine time-shifts at query compile time) read as a constraint; thread: none; repo: objectstack-ai/objectstackFold-or-serial: not folded (#36256 is the drill dialog, other files).
Serial constraints cleared: none (no open PR on
compare-to.tsat claim time) — overlap-check before pushobjectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jREBdDtYvSLn38xUCg
os-dev-report
{ "issue": 35395, "status": "done", "branch": "claude/issue-35395-compare-iso-week", "pr": "https://github.com/objectstack-ai/objectstack/pull/36416", "session": "session_01QsR2jREBdDtYvSLn38xUCg", "premise_still_valid": true, "summary": "Premise held on origin/main 4e55e4eb: shiftFilterByCompareTo renamed date macros but left {current_iso_week} as written, and ObjectChart sends the shifted filter to a server that resolves the key to the current week. previousPeriod now writes the literal previous ISO week key; week 1 steps back to W53 or W52 of the previous ISO year, computed from that year's Jan-1 weekday and leap rule. previousYear resolves the key against the same shifted day the date macros use. compareToTrendLabelKey reads vsLastWeek for a {current_iso_week} filter. No new public token. PERIOD_KEY_TOKENS has one member, so no other period key shares the gap. Diff: 2 source/test files plus a changeset, +64/-4.", "tests": "a2b9aa62: from ui/, under the lock, `pnpm exec vitest run packages/core/src/utils/ --maxWorkers=1`: Test Files 124 passed (124), Tests 2214 passed (2214). `pnpm --filter @object-ui/core type-check`: exit 0, lock VERDICT command-exit 0. Ablation (fix committed first): deleted the current_iso_week substitution with ablation-replace.mjs; grep -c anchor = 0 on disk. compare-to.test.ts: Tests 2 failed / 33 passed, received '{current_iso_week}'. Restored with git checkout HEAD --: git diff HEAD empty, blob d276c311 equals HEAD. No dist leg: the test imports the source by relative path.", "gates": "Closure `pnpm --workspace-concurrency=2 --filter '@object-ui/core^...' build`: VERDICT command-exit 0. dispatch-gates --commands (a2b9aa62, 3 paths): 38 families. 36 ran locally with exit 0. 2 are NOT MEASURED because they could not get the lock: `pnpm --dir ui exec vitest run scripts/` (exit 99, queue-timeout) and `pnpm check:type-check-debt` (exit 3, closure build could not get the lock). Both are left to CI as a declared narrowing. --ran reconciliation: 38 accounted, exit 0. check:nul-bytes exit 0. overlap-check: VERDICT clean exit 0 against origin/main (the deepen fetch failed on another process's shallow.lock in the shared .git). PR check-runs on a2b9aa62 at report time: 45 completed/success, 13 completed/skipped, none failed. Further runs may still be queued.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 — git push (not REST); relay pr_create (POST pulls + POST issues/36416/assignees); post-stamped os-dev-report comment on issue 35395", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: none · noted, not filed: ADR-0021 dataset path (service-analytics dataset-executor shiftRange) shifts only the time dimension's dateRange and holds selection.filter constant across the compare pass, a date macro or a period key alike. That is existing design. Read from code, no reach measured. Recorded in the PR Acceptance notes."], "line_budget": "68 changed lines (+64/-4), under ~150", "deviations": "Initial commit carried the model-named Co-Authored-By trailer; the pre-push hook refused it and the unpushed commit was amended to the model-free pair before the first push. Two derived families NOT MEASURED (lock starvation), declared above.", "files_changed": ["ui/packages/core/src/utils/compare-to.ts", "ui/packages/core/src/utils/__tests__/compare-to.test.ts", ".changeset/35395-compare-iso-week.md"], "l2_review_owed": "none named beyond the standard seat ACCEPT; ui/packages/core patch, no governed path" }Generated by Claude Code
fix(core): chart compare-to shifts {current_iso_week} to the compared…
feat(console): the report builder — one page to build or edit a report (