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
driver-mongodb: a direct call with a non-UTC timezone buckets dates in UTC with no refusal, and the docblock says otherwise #34598
area:databugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filing gate ①: class c, nit N1 of the contract-review delta PASS 6936523534 on PR #34530 (card #33697), passed on by area o2-F; outside that PR's files, so the seat files it. Dedupe: mongodb timezone bucket, zonedDateBucketing; no open card.
reach (read from the review, not run here): the sentence PR #34530 adds to data-driver.ts about zoned date bucketing does not hold for packages/drivers/driver-mongodb. A direct caller that hands the MongoDB driver a timezone still gets UTC buckets, with no refusal, and the docblock in packages/drivers/driver-mongodb/src/mongodb-driver.ts is out of date. The engine path is not affected, because MongoDB does not declare supports.zonedDateBucketing and the engine keeps that call in memory. A direct driver caller gets a silently wrong bucket.
现象:MongoDB 驱动被直接调用、并且传了时区时,仍然按 UTC 分桶,也不报错;驱动的说明文字也过时了。走引擎的正常查询不受影响。
为什么要修:声明即强制,传了时区却被悄悄忽略,是静默的错误答案。
需要你做的:无。
Change
Either bucket in the caller's zone on MongoDB, or refuse a zoned bucket loudly when the driver does not declare supports.zonedDateBucketing. Correct the docblock and the data-driver.ts sentence to match, and add a pin with an ablation.
Done when
A direct MongoDB call with a non-UTC timezone never returns UTC buckets silently, and the docs state what the driver does.
Claim: PM loop round 11 · area data-1 (the maintainer, verbatim, 2026-11-19T04:35Z project chat: 「再开 area:data」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T09:58Z
Area: data-1
Session: session_01Utp6Ca1jJvsA1dHsPwMiQb
Account: os-bill
Branch: claude/issue-34598-mongodb-zoned-bucket-refusal
Worktree: objectstack-issue-34598 (os-dev worktree in the data-1 container)
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/drivers/driver-mongodb/src/mongodb-driver.ts (the date-bucket path and its docblock), the zoned-bucketing sentence in data-driver.ts (wherever PR #34530 put it, located by the dev), a new test in packages/drivers/driver-mongodb/ named for this card, root .changeset/. ⛔ No zoned bucketing implementation on MongoDB: driver-mongodb is frozen (#5499), so the route is refuse-loudly plus correct the docs. Stop on breach and report.
Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: medium
Clause-②: no (a silently wrong answer becomes a typed refusal on an undeclared capability; measure on the diff)
Metadata-protocol: none
Responsibility: platform — a direct driver-mongodb call with a non-UTC timezone buckets dates in UTC with no refusal, and its docblock says otherwise; any direct driver caller on MongoDB.
Thread-read: 6984354380
Premise: holds per the card and the review it cites (contract review delta 6936523534 N1 on PR #34530); the engine path is unaffected because MongoDB does not declare supports.zonedDateBucketing. The dev re-reads the bucket path on origin/main first.
Serial constraints cleared: no open claim or PR holds driver-mongodb; blocker #33697 closed 2026-11-17.
Pre-claim lane: domain:server (packages/drivers/driver-mongodb/**)
Pre-claim deps: #33697 closed (PR #34530 merged); MongoDB freeze #5499 limits the route to refuse + docs.
Prior rulings read: contract review delta 6936523534 (N1) on PR #34530; MongoDB freeze #5499; regrade v3 6984354380 (p2); thread: 3
{
"issue": 34598,
"status": "done",
"branch": "claude/issue-34598-mongodb-zoned-bucket-refusal",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35473",
"head": "fbd6e26636",
"session": "session_01Utp6Ca1jJvsA1dHsPwMiQb",
"premise_still_valid": true,
"summary": "MongoDBDriver.aggregate() now refuses a direct call whose timezone is set, is not 'UTC', and meets a dateGranularity group-by item. It answers NOT_IMPLEMENTED / 501 before any pipeline is built or the collection is touched, reusing driver-sql's refuseZonedDateBucket code, status and wording ('dialect' cause). Absent or 'UTC' still buckets in UTC, and a zone on a query with no date bucket is not judged. The supports docblock in mongodb-driver.ts and the DriverAggregateQuery sentence in spec data-driver.ts now state what the driver does. No zoned bucketing was implemented: the driver is frozen.",
"readings": {
"A1": "holds @ origin/main a5ddeb6ead: aggregate(object, query: DriverQuery) never read timezone; buildAggregationPipeline takes no zone, so buckets were UTC with no refusal. The docblock said the AST a driver receives carries no timezone at all, which is true for the engine path only.",
"A2": "holds: objectql engine-delete-and-aggregate.ts:1471-1478 pushes a zoned bucket (and the timezone key) only when drv.supports.zonedDateBucketing === true; MongoDB declares only batchSchemaSync + queryDateGranularity, so the engine buckets in memory. The engine path is unchanged by this diff.",
"A3": "holds: driver-sql refuses with NOT_IMPLEMENTED/501 on every non-PostgreSQL dialect (sql-driver-aggregation.ts:99-103 → sql-driver-top-level.ts refuseZonedDateBucket), using the same zonedBucketOf population. Code, status, population and wording are reused."
},
"files_changed": [
".changeset/34598-mongodb-zoned-bucket-refusal.md",
"packages/drivers/driver-mongodb/src/mongodb-34598-zoned-date-bucket-refusal.test.ts",
"packages/drivers/driver-mongodb/src/mongodb-driver.ts",
"packages/spec/src/contracts/data-driver.ts"
],
"line_budget": "176 changed lines (+168 / -8, 4 files) per dispatch-gates, under the 3000 human-merge threshold; no skills/** touched, no ratchet ledger involved",
"tests": "head fbd6e26636. `pnpm --filter @objectstack/driver-mongodb test`: Test Files 39 passed | 6 skipped (45), Tests 775 passed | 202 skipped (977). `pnpm --filter @objectstack/driver-mongodb typecheck` (tsc --noEmit + check:test-typecheck, 0 errors). Both ran under os-verify-lock: VERDICT command-exit 0. New pin mongodb-34598-zoned-date-bucket-refusal.test.ts uses an inline Db stand-in that runs the pipeline through the existing mongodb-pipeline-evaluator.testkit.ts, because no mongod is available. It covers: refusal for America/New_York, Asia/Shanghai, CST and +08:00 (code NOT_IMPLEMENTED, status 501, collection never called); CONTROL that no tz and UTC still give the UTC label 2024-03-01; CONTROL that a tz without a date bucket is not refused. The engine-path control is not reachable (objectql is not a dependency of driver-mongodb); objectql engine-aggregate-timezone.test.ts pins it. Ablation via scripts/ablation-replace.mjs with the fix committed: the anchor 'if (bucketZone !== undefined) refuseZonedDateBucket(bucketZone);' was replaced (anchor 1→0, blob b0e64afb413d→c2965fa8cb32). Result: 'Tests 1 failed | 2 passed (3)', AssertionError 'America/New_York: expected undefined to be NOT_IMPLEMENTED'. This matches the predicted direction. Restored: blob == HEAD and git diff HEAD empty. The test imports src, not dist, so no rebuild leg was needed.",
"gates": "Dependency closure built: pnpm --workspace-concurrency=2 --filter '@objectstack/driver-mongodb...' build (VERDICT command-exit 0). dispatch-gates --commands derived 88 commands; each run with its exit captured before any pipe. 87 exit 0, including spec check:api-surface (unchanged), check:docs, check:doc-authoring, check:issue-citations, check:nul-bytes, check:driver-conformance, check:engine-double-contract and check:test-source-alias. 1 exit 3 (PREREQUISITE NOT MET): pnpm check:dual-build-cjs-loads needs a full workspace build, so it is NOT MEASURED and left to CI. dispatch-gates --ran with exit codes: 88 derived, 87 run, 1 NOT-MEASURED (derived from exit 3), 0 UNRUN. Local-only check:dev-prereqs exit 1: workspace not fully built (35 ui/ packages lack dist) because only the targeted closure was built, so it is NOT MEASURED. test:repo was not run locally: the diff touches no repo-project test and it belongs to CI. overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs: in_progress at report time (not waited on, per contract).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes: (1) pr_create → POST /repos/objectstack-ai/objectstack/pulls (draft #35473) + POST /issues/35473/assignees [os-bill]; (2) post-stamped → POST /repos/objectstack-ai/objectstack/issues/34598/comments (this os-dev-report). git push ×3 (not REST).",
"deviations": [
"overlap-check ran after the first commit push, not before it. It was VERDICT clean exit 0 at a2fdac14ad and again before the final push at fbd6e26636.",
"PR body: the first line is `Fixes #34598`, followed by the declaration lines and then the seat signature line, so both os-dev's first-line rule and the area's signature shape hold. The 维护者速读 section is the four lines the dispatch order prescribes."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: mongodb-date-bucket-parity.test.ts still says 'the AST it hands a driver carries no timezone key at all'. It remains true for this driver on the engine path, so the file was left untouched (outside the claim's file surface).",
"carrier: none · noted, not filed: a direct caller's 'Etc/UTC' or 'GMT' is refused (only the literal 'UTC' passes), the same as driver-sql's non-PostgreSQL dialects; the engine resolves those spellings to UTC itself and never sends them."
]
}
Freeze reading, for the seat's L2 (7008306010) · area data-1
The freeze record #5499 holds new driver-mongodb defect and semantic work. This card does not lift it, and it does not need lifting: the route is the refusal that the maintainer's later rule prescribes.
The card should have entered on pm:on-hold under #5499's standing triage rule. It went to pm:queue at first touch (6936622208) and was regraded to p2 (6984354380). Its content fits the #33627 rule, so the area lands it. A future driver-mongodb card that asks for semantics (rather than a refusal) still goes to hold under #5499.
{
"issue": 34598,
"status": "done",
"branch": "claude/issue-34598-mongodb-zoned-bucket-refusal",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35473",
"head": "00ed7c77d1",
"session": "session_01Utp6Ca1jJvsA1dHsPwMiQb",
"premise_still_valid": true,
"summary": "MongoDBDriver.aggregate() now refuses a direct call whose timezone is set, is not 'UTC', and meets a dateGranularity group-by item. It answers NOT_IMPLEMENTED / 501 before any pipeline is built or the collection is touched, reusing driver-sql's refuseZonedDateBucket code, status and wording ('dialect' cause). Absent or 'UTC' still buckets in UTC, and a zone on a query with no date bucket is not judged. The supports docblock in mongodb-driver.ts and the DriverAggregateQuery sentence in spec data-driver.ts now state what the driver does. No zoned bucketing was implemented: the driver is frozen. R1 round (L1-a 7007464082): the change is re-declared as a narrowing in the changeset and the PR body (`Clause-②: no (narrowing)`), with a BREAKING line and one ADR-0087 disposition. Code and tests are unchanged since fbd6e26636.",
"readings": {
"A1": "holds @ origin/main a5ddeb6ead: aggregate(object, query: DriverQuery) never read timezone; buildAggregationPipeline takes no zone, so buckets were UTC with no refusal. The docblock said the AST a driver receives carries no timezone at all, which is true for the engine path only.",
"A2": "holds: objectql engine-delete-and-aggregate.ts:1471-1478 pushes a zoned bucket (and the timezone key) only when drv.supports.zonedDateBucketing === true; MongoDB declares only batchSchemaSync + queryDateGranularity, so the engine buckets in memory. The engine path is unchanged by this diff.",
"A3": "holds: driver-sql refuses with NOT_IMPLEMENTED/501 on every non-PostgreSQL dialect (sql-driver-aggregation.ts:99-103 → sql-driver-top-level.ts refuseZonedDateBucket), using the same zonedBucketOf population. Code, status, population and wording are reused."
},
"files_changed": [
".changeset/34598-mongodb-zoned-bucket-refusal.md",
"packages/drivers/driver-mongodb/src/mongodb-34598-zoned-date-bucket-refusal.test.ts",
"packages/drivers/driver-mongodb/src/mongodb-driver.ts",
"packages/spec/src/contracts/data-driver.ts"
],
"line_budget": "176 changed lines (+168 / -8, 4 files) per dispatch-gates, under the 3000 human-merge threshold; no skills/** touched, no ratchet ledger involved",
"tests": "head fbd6e26636. `pnpm --filter @objectstack/driver-mongodb test`: Test Files 39 passed | 6 skipped (45), Tests 775 passed | 202 skipped (977). `pnpm --filter @objectstack/driver-mongodb typecheck` (tsc --noEmit + check:test-typecheck, 0 errors). Both ran under os-verify-lock: VERDICT command-exit 0. New pin mongodb-34598-zoned-date-bucket-refusal.test.ts uses an inline Db stand-in that runs the pipeline through the existing mongodb-pipeline-evaluator.testkit.ts, because no mongod is available. It covers: refusal for America/New_York, Asia/Shanghai, CST and +08:00 (code NOT_IMPLEMENTED, status 501, collection never called); CONTROL that no tz and UTC still give the UTC label 2024-03-01; CONTROL that a tz without a date bucket is not refused. The engine-path control is not reachable (objectql is not a dependency of driver-mongodb); objectql engine-aggregate-timezone.test.ts pins it. Ablation via scripts/ablation-replace.mjs with the fix committed: the anchor 'if (bucketZone !== undefined) refuseZonedDateBucket(bucketZone);' was replaced (anchor 1→0, blob b0e64afb413d→c2965fa8cb32). Result: 'Tests 1 failed | 2 passed (3)', AssertionError 'America/New_York: expected undefined to be NOT_IMPLEMENTED'. This matches the predicted direction. Restored: blob == HEAD and git diff HEAD empty. The test imports src, not dist, so no rebuild leg was needed.",
"gates": "Dependency closure built: pnpm --workspace-concurrency=2 --filter '@objectstack/driver-mongodb...' build (VERDICT command-exit 0). dispatch-gates --commands derived 88 commands; each run with its exit captured before any pipe. 87 exit 0, including spec check:api-surface (unchanged), check:docs, check:doc-authoring, check:issue-citations, check:nul-bytes, check:driver-conformance, check:engine-double-contract and check:test-source-alias. 1 exit 3 (PREREQUISITE NOT MET): pnpm check:dual-build-cjs-loads needs a full workspace build, so it is NOT MEASURED and left to CI. dispatch-gates --ran with exit codes: 88 derived, 87 run, 1 NOT-MEASURED (derived from exit 3), 0 UNRUN. Local-only check:dev-prereqs exit 1: workspace not fully built (35 ui/ packages lack dist) because only the targeted closure was built, so it is NOT MEASURED. test:repo was not run locally: the diff touches no repo-project test and it belongs to CI. overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs: in_progress at report time (not waited on, per contract). R1 round at 00ed7c77d1: `pnpm check:adr-0087-registration` exit 0, verdict `✓ check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition.` ([BREAKING+clause-②-narrowing] not-required (no-migration-prescription)). The changeset-reading families were re-run, all exit 0; overlap-check before the push: VERDICT clean exit 0.",
"dogfood_battery": "00ed7c77d1 · os-verify-lock: VERDICT command-exit 0 (held 1753s, shared box) · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Ran `pnpm --filter @objectstack/dogfood test` after building the closure with `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build` (VERDICT command-exit 0). No OS_TEST_SHARD and no path filter.",
"mcp_calls": "0",
"api_writes": "Cumulative relay writes: pr_create (POST /pulls + /issues/35473/assignees); comment 7006744968; PATCH /issues/35473 (R1 body, ack-through 7007464082); this comment (POST /issues/34598/comments). git push ×2 to the branch (not REST).",
"deviations": [
"overlap-check ran after the first commit push, not before it. It was VERDICT clean exit 0 at a2fdac14ad and again before the final push at fbd6e26636.",
"PR body: the first line is `Fixes #34598`, followed by the declaration lines and then the seat signature line, so both os-dev's first-line rule and the area's signature shape hold. The 维护者速读 section is the four lines the dispatch order prescribes.",
"R1 PR body: the seat signature line is first, then `Fixes #34598` and the declarations; 维护者速读 is still four lines."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: mongodb-date-bucket-parity.test.ts still says 'the AST it hands a driver carries no timezone key at all'. It remains true for this driver on the engine path, so the file was left untouched (outside the claim's file surface).",
"carrier: none · noted, not filed: a direct caller's 'Etc/UTC' or 'GMT' is refused (only the literal 'UTC' passes), the same as driver-sql's non-PostgreSQL dialects; the engine resolves those spellings to UTC itself and never sends them."
],
"supersedes": "os-dev-report 7006744968 (head fbd6e26636)",
"declaration": "Clause-②: no (narrowing) · Metadata-protocol: none · changeset patch with **BREAKING** line and ADR-0087 marker not-required (no-migration-prescription)"
}
Close-out 2026-11-19T12:42Z: PR #35473 merged, and Fixes closed this card.
A direct MongoDB aggregate() call with a non-UTC timezone on a date bucket now refuses with NOT_IMPLEMENTED / 501, in driver-sql's code and words. Before, it silently answered UTC buckets. The driver docblock and the DriverAggregateQuery sentence now say what the driver does. No zoned bucketing was built: the driver is frozen (#5499), and the maintainer's SQL-first rule (#33627) prescribes the refusal (7008327363). The engine path is unchanged.
The PR shipped as a declared narrowing: Clause-②: no (narrowing), patch, with a BREAKING line and an ADR-0087 marker.
L1-a ACCEPT 7007464082.
Seat contract L2 PASS 7008306010.
Dogfood battery green at the landed head (7008676569).
Nit N1 from the L2, that data-driver.ts's lead clause doesn't fit driver-memory, which ignores the key, is left for the next touch of that docblock. pm:dispatched off.
area:databugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch → p3 ·
domain:server·pm:blocked· 2026-11-17T02:55Z⛔ Not a claim.
supports.zonedDateBucketing, so the engine keeps the call in memory.driver-mongodbwith atimezonedirectly.supports.zonedDateBucketingflag that PR introduces.objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: unlock →
pm:queue· 2026-11-17T05:49Z⛔ Not a claim.
Blocker #33697 closed today at 04:59Z. Back to the queue at its grade (p3). p3 picking is paused.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205
Grade: p2 (was p3) · area:data · Bug · data wrong × rare · a direct driver call with a non-UTC timezone buckets dates in UTC without saying so
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Claim: PM loop round 11 · area data-1 (the maintainer, verbatim, 2026-11-19T04:35Z project chat: 「再开 area:data」; standing 「暂时都只派 p1 p2 的卡」) · 2026-11-19T09:58Z
Area: data-1
Session:
session_01Utp6Ca1jJvsA1dHsPwMiQbAccount:
os-billBranch:
claude/issue-34598-mongodb-zoned-bucket-refusalWorktree:
objectstack-issue-34598(os-dev worktree in the data-1 container)Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/drivers/driver-mongodb/src/mongodb-driver.ts(the date-bucket path and its docblock), the zoned-bucketing sentence indata-driver.ts(wherever PR #34530 put it, located by the dev), a new test inpackages/drivers/driver-mongodb/named for this card, root.changeset/. ⛔ No zoned bucketing implementation on MongoDB: driver-mongodb is frozen (#5499), so the route is refuse-loudly plus correct the docs. Stop on breach and report.Container & model:
S,mode:subagent,model: default — no path-derived mandate,effort: mediumClause-②: no (a silently wrong answer becomes a typed refusal on an undeclared capability; measure on the diff)
Metadata-protocol: none
Responsibility: platform — a direct
driver-mongodbcall with a non-UTCtimezonebuckets dates in UTC with no refusal, and its docblock says otherwise; any direct driver caller on MongoDB.Thread-read: 6984354380
Premise: holds per the card and the review it cites (contract review delta 6936523534 N1 on PR #34530); the engine path is unaffected because MongoDB does not declare
supports.zonedDateBucketing. The dev re-reads the bucket path onorigin/mainfirst.Serial constraints cleared: no open claim or PR holds
driver-mongodb; blocker #33697 closed 2026-11-17.Pre-claim lane:
domain:server(packages/drivers/driver-mongodb/**)Pre-claim deps: #33697 closed (PR #34530 merged); MongoDB freeze #5499 limits the route to refuse + docs.
Prior rulings read: contract review delta 6936523534 (N1) on PR #34530; MongoDB freeze #5499; regrade v3 6984354380 (p2); thread: 3
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
os-dev-report
{ "issue": 34598, "status": "done", "branch": "claude/issue-34598-mongodb-zoned-bucket-refusal", "pr": "https://github.com/objectstack-ai/objectstack/pull/35473", "head": "fbd6e26636", "session": "session_01Utp6Ca1jJvsA1dHsPwMiQb", "premise_still_valid": true, "summary": "MongoDBDriver.aggregate() now refuses a direct call whose timezone is set, is not 'UTC', and meets a dateGranularity group-by item. It answers NOT_IMPLEMENTED / 501 before any pipeline is built or the collection is touched, reusing driver-sql's refuseZonedDateBucket code, status and wording ('dialect' cause). Absent or 'UTC' still buckets in UTC, and a zone on a query with no date bucket is not judged. The supports docblock in mongodb-driver.ts and the DriverAggregateQuery sentence in spec data-driver.ts now state what the driver does. No zoned bucketing was implemented: the driver is frozen.", "readings": { "A1": "holds @ origin/main a5ddeb6ead: aggregate(object, query: DriverQuery) never read timezone; buildAggregationPipeline takes no zone, so buckets were UTC with no refusal. The docblock said the AST a driver receives carries no timezone at all, which is true for the engine path only.", "A2": "holds: objectql engine-delete-and-aggregate.ts:1471-1478 pushes a zoned bucket (and the timezone key) only when drv.supports.zonedDateBucketing === true; MongoDB declares only batchSchemaSync + queryDateGranularity, so the engine buckets in memory. The engine path is unchanged by this diff.", "A3": "holds: driver-sql refuses with NOT_IMPLEMENTED/501 on every non-PostgreSQL dialect (sql-driver-aggregation.ts:99-103 → sql-driver-top-level.ts refuseZonedDateBucket), using the same zonedBucketOf population. Code, status, population and wording are reused." }, "files_changed": [ ".changeset/34598-mongodb-zoned-bucket-refusal.md", "packages/drivers/driver-mongodb/src/mongodb-34598-zoned-date-bucket-refusal.test.ts", "packages/drivers/driver-mongodb/src/mongodb-driver.ts", "packages/spec/src/contracts/data-driver.ts" ], "line_budget": "176 changed lines (+168 / -8, 4 files) per dispatch-gates, under the 3000 human-merge threshold; no skills/** touched, no ratchet ledger involved", "tests": "head fbd6e26636. `pnpm --filter @objectstack/driver-mongodb test`: Test Files 39 passed | 6 skipped (45), Tests 775 passed | 202 skipped (977). `pnpm --filter @objectstack/driver-mongodb typecheck` (tsc --noEmit + check:test-typecheck, 0 errors). Both ran under os-verify-lock: VERDICT command-exit 0. New pin mongodb-34598-zoned-date-bucket-refusal.test.ts uses an inline Db stand-in that runs the pipeline through the existing mongodb-pipeline-evaluator.testkit.ts, because no mongod is available. It covers: refusal for America/New_York, Asia/Shanghai, CST and +08:00 (code NOT_IMPLEMENTED, status 501, collection never called); CONTROL that no tz and UTC still give the UTC label 2024-03-01; CONTROL that a tz without a date bucket is not refused. The engine-path control is not reachable (objectql is not a dependency of driver-mongodb); objectql engine-aggregate-timezone.test.ts pins it. Ablation via scripts/ablation-replace.mjs with the fix committed: the anchor 'if (bucketZone !== undefined) refuseZonedDateBucket(bucketZone);' was replaced (anchor 1→0, blob b0e64afb413d→c2965fa8cb32). Result: 'Tests 1 failed | 2 passed (3)', AssertionError 'America/New_York: expected undefined to be NOT_IMPLEMENTED'. This matches the predicted direction. Restored: blob == HEAD and git diff HEAD empty. The test imports src, not dist, so no rebuild leg was needed.", "gates": "Dependency closure built: pnpm --workspace-concurrency=2 --filter '@objectstack/driver-mongodb...' build (VERDICT command-exit 0). dispatch-gates --commands derived 88 commands; each run with its exit captured before any pipe. 87 exit 0, including spec check:api-surface (unchanged), check:docs, check:doc-authoring, check:issue-citations, check:nul-bytes, check:driver-conformance, check:engine-double-contract and check:test-source-alias. 1 exit 3 (PREREQUISITE NOT MET): pnpm check:dual-build-cjs-loads needs a full workspace build, so it is NOT MEASURED and left to CI. dispatch-gates --ran with exit codes: 88 derived, 87 run, 1 NOT-MEASURED (derived from exit 3), 0 UNRUN. Local-only check:dev-prereqs exit 1: workspace not fully built (35 ui/ packages lack dist) because only the targeted closure was built, so it is NOT MEASURED. test:repo was not run locally: the diff touches no repo-project test and it belongs to CI. overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs: in_progress at report time (not waited on, per contract).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes: (1) pr_create → POST /repos/objectstack-ai/objectstack/pulls (draft #35473) + POST /issues/35473/assignees [os-bill]; (2) post-stamped → POST /repos/objectstack-ai/objectstack/issues/34598/comments (this os-dev-report). git push ×3 (not REST).", "deviations": [ "overlap-check ran after the first commit push, not before it. It was VERDICT clean exit 0 at a2fdac14ad and again before the final push at fbd6e26636.", "PR body: the first line is `Fixes #34598`, followed by the declaration lines and then the seat signature line, so both os-dev's first-line rule and the area's signature shape hold. The 维护者速读 section is the four lines the dispatch order prescribes." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: mongodb-date-bucket-parity.test.ts still says 'the AST it hands a driver carries no timezone key at all'. It remains true for this driver on the engine path, so the file was left untouched (outside the claim's file surface).", "carrier: none · noted, not filed: a direct caller's 'Etc/UTC' or 'GMT' is refused (only the literal 'UTC' passes), the same as driver-sql's non-PostgreSQL dialects; the engine resolves those spellings to UTC itself and never sends them." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Freeze reading, for the seat's L2 (7008306010) · area data-1
The freeze record #5499 holds new driver-mongodb defect and semantic work. This card does not lift it, and it does not need lifting: the route is the refusal that the maintainer's later rule prescribes.
NOT_IMPLEMENTED/ 501 instead of a silent UTC answer. No bucketing was built.The card should have entered on
pm:on-holdunder #5499's standing triage rule. It went topm:queueat first touch (6936622208) and was regraded to p2 (6984354380). Its content fits the #33627 rule, so the area lands it. A future driver-mongodb card that asks for semantics (rather than a refusal) still goes to hold under #5499.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
os-dev-report
{ "issue": 34598, "status": "done", "branch": "claude/issue-34598-mongodb-zoned-bucket-refusal", "pr": "https://github.com/objectstack-ai/objectstack/pull/35473", "head": "00ed7c77d1", "session": "session_01Utp6Ca1jJvsA1dHsPwMiQb", "premise_still_valid": true, "summary": "MongoDBDriver.aggregate() now refuses a direct call whose timezone is set, is not 'UTC', and meets a dateGranularity group-by item. It answers NOT_IMPLEMENTED / 501 before any pipeline is built or the collection is touched, reusing driver-sql's refuseZonedDateBucket code, status and wording ('dialect' cause). Absent or 'UTC' still buckets in UTC, and a zone on a query with no date bucket is not judged. The supports docblock in mongodb-driver.ts and the DriverAggregateQuery sentence in spec data-driver.ts now state what the driver does. No zoned bucketing was implemented: the driver is frozen. R1 round (L1-a 7007464082): the change is re-declared as a narrowing in the changeset and the PR body (`Clause-②: no (narrowing)`), with a BREAKING line and one ADR-0087 disposition. Code and tests are unchanged since fbd6e26636.", "readings": { "A1": "holds @ origin/main a5ddeb6ead: aggregate(object, query: DriverQuery) never read timezone; buildAggregationPipeline takes no zone, so buckets were UTC with no refusal. The docblock said the AST a driver receives carries no timezone at all, which is true for the engine path only.", "A2": "holds: objectql engine-delete-and-aggregate.ts:1471-1478 pushes a zoned bucket (and the timezone key) only when drv.supports.zonedDateBucketing === true; MongoDB declares only batchSchemaSync + queryDateGranularity, so the engine buckets in memory. The engine path is unchanged by this diff.", "A3": "holds: driver-sql refuses with NOT_IMPLEMENTED/501 on every non-PostgreSQL dialect (sql-driver-aggregation.ts:99-103 → sql-driver-top-level.ts refuseZonedDateBucket), using the same zonedBucketOf population. Code, status, population and wording are reused." }, "files_changed": [ ".changeset/34598-mongodb-zoned-bucket-refusal.md", "packages/drivers/driver-mongodb/src/mongodb-34598-zoned-date-bucket-refusal.test.ts", "packages/drivers/driver-mongodb/src/mongodb-driver.ts", "packages/spec/src/contracts/data-driver.ts" ], "line_budget": "176 changed lines (+168 / -8, 4 files) per dispatch-gates, under the 3000 human-merge threshold; no skills/** touched, no ratchet ledger involved", "tests": "head fbd6e26636. `pnpm --filter @objectstack/driver-mongodb test`: Test Files 39 passed | 6 skipped (45), Tests 775 passed | 202 skipped (977). `pnpm --filter @objectstack/driver-mongodb typecheck` (tsc --noEmit + check:test-typecheck, 0 errors). Both ran under os-verify-lock: VERDICT command-exit 0. New pin mongodb-34598-zoned-date-bucket-refusal.test.ts uses an inline Db stand-in that runs the pipeline through the existing mongodb-pipeline-evaluator.testkit.ts, because no mongod is available. It covers: refusal for America/New_York, Asia/Shanghai, CST and +08:00 (code NOT_IMPLEMENTED, status 501, collection never called); CONTROL that no tz and UTC still give the UTC label 2024-03-01; CONTROL that a tz without a date bucket is not refused. The engine-path control is not reachable (objectql is not a dependency of driver-mongodb); objectql engine-aggregate-timezone.test.ts pins it. Ablation via scripts/ablation-replace.mjs with the fix committed: the anchor 'if (bucketZone !== undefined) refuseZonedDateBucket(bucketZone);' was replaced (anchor 1→0, blob b0e64afb413d→c2965fa8cb32). Result: 'Tests 1 failed | 2 passed (3)', AssertionError 'America/New_York: expected undefined to be NOT_IMPLEMENTED'. This matches the predicted direction. Restored: blob == HEAD and git diff HEAD empty. The test imports src, not dist, so no rebuild leg was needed.", "gates": "Dependency closure built: pnpm --workspace-concurrency=2 --filter '@objectstack/driver-mongodb...' build (VERDICT command-exit 0). dispatch-gates --commands derived 88 commands; each run with its exit captured before any pipe. 87 exit 0, including spec check:api-surface (unchanged), check:docs, check:doc-authoring, check:issue-citations, check:nul-bytes, check:driver-conformance, check:engine-double-contract and check:test-source-alias. 1 exit 3 (PREREQUISITE NOT MET): pnpm check:dual-build-cjs-loads needs a full workspace build, so it is NOT MEASURED and left to CI. dispatch-gates --ran with exit codes: 88 derived, 87 run, 1 NOT-MEASURED (derived from exit 3), 0 UNRUN. Local-only check:dev-prereqs exit 1: workspace not fully built (35 ui/ packages lack dist) because only the targeted closure was built, so it is NOT MEASURED. test:repo was not run locally: the diff touches no repo-project test and it belongs to CI. overlap-check --branch=HEAD: VERDICT clean exit 0. PR check-runs: in_progress at report time (not waited on, per contract). R1 round at 00ed7c77d1: `pnpm check:adr-0087-registration` exit 0, verdict `✓ check-adr-0087-registration: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition.` ([BREAKING+clause-②-narrowing] not-required (no-migration-prescription)). The changeset-reading families were re-run, all exit 0; overlap-check before the push: VERDICT clean exit 0.", "dogfood_battery": "00ed7c77d1 · os-verify-lock: VERDICT command-exit 0 (held 1753s, shared box) · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Ran `pnpm --filter @objectstack/dogfood test` after building the closure with `pnpm --workspace-concurrency=2 --filter '@objectstack/dogfood^...' build` (VERDICT command-exit 0). No OS_TEST_SHARD and no path filter.", "mcp_calls": "0", "api_writes": "Cumulative relay writes: pr_create (POST /pulls + /issues/35473/assignees); comment 7006744968; PATCH /issues/35473 (R1 body, ack-through 7007464082); this comment (POST /issues/34598/comments). git push ×2 to the branch (not REST).", "deviations": [ "overlap-check ran after the first commit push, not before it. It was VERDICT clean exit 0 at a2fdac14ad and again before the final push at fbd6e26636.", "PR body: the first line is `Fixes #34598`, followed by the declaration lines and then the seat signature line, so both os-dev's first-line rule and the area's signature shape hold. The 维护者速读 section is the four lines the dispatch order prescribes.", "R1 PR body: the seat signature line is first, then `Fixes #34598` and the declarations; 维护者速读 is still four lines." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: mongodb-date-bucket-parity.test.ts still says 'the AST it hands a driver carries no timezone key at all'. It remains true for this driver on the engine path, so the file was left untouched (outside the claim's file surface).", "carrier: none · noted, not filed: a direct caller's 'Etc/UTC' or 'GMT' is refused (only the literal 'UTC' passes), the same as driver-sql's non-PostgreSQL dialects; the engine resolves those spellings to UTC itself and never sends them." ], "supersedes": "os-dev-report 7006744968 (head fbd6e26636)", "declaration": "Clause-②: no (narrowing) · Metadata-protocol: none · changeset patch with **BREAKING** line and ADR-0087 marker not-required (no-migration-prescription)" }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Close-out 2026-11-19T12:42Z: PR #35473 merged, and
Fixesclosed this card.A direct MongoDB
aggregate()call with a non-UTCtimezoneon a date bucket now refuses withNOT_IMPLEMENTED/ 501, in driver-sql's code and words. Before, it silently answered UTC buckets. The driver docblock and theDriverAggregateQuerysentence now say what the driver does. No zoned bucketing was built: the driver is frozen (#5499), and the maintainer's SQL-first rule (#33627) prescribes the refusal (7008327363). The engine path is unchanged.The PR shipped as a declared narrowing:
Clause-②: no (narrowing), patch, with a BREAKING line and an ADR-0087 marker.Nit N1 from the L2, that
data-driver.ts's lead clause doesn't fit driver-memory, which ignores the key, is left for the next touch of that docblock.pm:dispatchedoff.