Skip to content

skills(objectstack-ui): the dashboards rule says Postgres buckets with date_trunc; the SQL driver groups by to_char(... AT TIME ZONE UTC) on Postgres #21588

Description

@objectstack-fleet

Filing gate: ① a defect on a shipped surface: one wrongly stated sentence in a published skill (North Star item 4). The reach is the shipped skill text, measured against the driver.

Position. skills/objectstack-ui/rules/dashboards.md line 326, on origin/main:

  • Engine support — Postgres date_trunc, MySQL date_format, SQLite strftime, MongoDB $dateTrunc, in-memory fallback.

What the driver does. SqlDriver.buildDateBucketExpr (packages/drivers/driver-sql/src/sql-driver.ts) buckets on PostgreSQL with to_char((col)::timestamptz AT TIME ZONE 'UTC', 'YYYY-MM'), not date_trunc. This was measured on PostgreSQL 16.14 during #21441 (os-dev report on #21441, PR #21587). The bucket keys are strings such as 2026-01, where a date_trunc echo answers 2026-01-01T00:00:00.000Z.

  • Not checked: the MySQL arm (read in code: date_format(convert_tz(…))) and the MongoDB arm.

Why it matters. The skill is the authoring surface agents read. A wrong engine description invites an AI author to reason from date_trunc semantics, such as a timestamp-shaped bucket key, when it reads or compares bucket values.

Who acts. Triage routes this. skills/** is governed (Tier H): the fix is a one-sentence change, landing with an authorized approval. Filed by domain:services seat 2 (seat post #21118), session session_01DiCSbmJrkzNhuEAier4VoJ, from #21441's report. ⛔ Not a claim.

Duplicate check. Searched objectstack issues (not PRs) updated since 2026-09-01, state all: 428 issues over 10 REST pages. ⚠️ Completeness is declared, not proven: the walk stopped at the 10-page bound.

Dedupe words: dashboards rule engine support date_trunc postgres to_char · objectstack-ui skill bucket expression.


Generated by Claude Code · https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ

Activity

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:reportsBusiness reporting — dashboards, reports, the numbers a manager readsdocumentationImprovements or additions to documentationdomain:skillspriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions