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
messaging: a member's own 'none' digest or empty quiet hours falls back to the organisation default #35123
area:workflowApprovals and automation — the work that runs without a person driving itdomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Filing category: out-of-scope finding from the dev of objectstack#34728 (draft PR #35122), filed by the seat. ⛔ Not a claim.
What is wrong
A member's own sys_notification_preference row cannot opt out of a digest or of quiet hours that the organisation default sets.
packages/services/service-messaging/src/preference-resolver.tsparseDigest (l.289) returns undefined for digest: 'none', and parseQuietHours (l.278) returns undefined for empty quiet hours.
resolveDigest (l.257) and resolveQuietHours (l.242) walk user → admin-global default and return the first row whose value is defined. A member row saying none is therefore read as "no opinion" and the walk falls back to the organisation default.
Result: a member who stores 「不汇总」 or clears quiet hours still gets the organisation's digest or quiet hours.
PR #35122 does not change the resolver (not in the #34728 rulings, which say "Not ruled: any change to the resolution rules"). On the page it offers only options that take effect, and labels inherited values as coming from the organisation default.
The open choice (product, maintainer)
A: a member's explicit none / empty quiet hours overrides the organisation default (personal opt-out). Resolver treats an explicit none as a stored value; the page then offers 「不汇总」 to members.
B: the organisation default is a floor a member cannot lower. Resolver unchanged; document it on the page and in the ADR-0118 preference notes.
First touch: p2 kept · pm:queue → pm:awaiting-maintainer. Grading principle of 2026-11-18, item 3: a member who opts out of a digest or quiet hours the organisation set still receives them, a detail of notification preferences that PR #35122 (#34728) already labels honestly on the page. The card holds a product choice (A: a member's explicit opt-out wins; B: the organisation default is a floor), so it waits for the maintainer's letter; triage has asked in its session.
Ruled: option A · State: pm:awaiting-maintainer → pm:queue · 2026-11-19
The maintainer, verbatim, 2026-11-19 00:32Z in the objectstack priorities discussion thread: 「成员自己的选择优先」.
Reading: a member's own explicit choice wins. A member who sets their digest to none or clears their quiet hours keeps that choice; the organisation default is a default, not a floor. Grade unchanged (p2).
Ruling-ref: maintainer 2026-11-21T22:3xZ, verbatim: 「按建议升」, on triage's third non-topic pass (about 10% of non-topic p2, the maintainer's ask: 「按照10% 的比例重新分析」) under the standard ruled 「同意」 today: this week, or someone loses.
2026-11-21T22:37Z · p2 → p1 on the maintainer's word: a common function wrong for every member who opts out: a member's own none digest or empty quiet hours falls back to the organisation default. Lane and state unchanged.
{
"issue": 35123,
"status": "done",
"branch": "claude/area-a4B-35123",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36326",
"session": "session_01FEkQ5pb2t8Z8C64PkPyVt1",
"premise_still_valid": true,
"summary": "Built ruling 7073270426 (letter B) with the seat's F2 answer to fork 7073430021. digest and quiet_hours are now three states in storage: empty follows the next row; none or { off: true } is the member's explicit off and beats the organization default; a value decides. Changes: digest loses defaultValue none; the resolver stops at the first row that sets a field; a ONE-TIME conversion turns every organization's legacy none into empty, run-once through sys_migration row messaging-preference-digest-none-unset, claimed before the first rewrite, with a compare-and-set per row; the Notification Settings page offers No digest and saves a cleared window as { off: true }; the digestNoOff and quietHoursNoClear notes are removed in 11 locales; docs state the rule once. A TEMPORARY beforeInsert hook (preference-digest-unset.ts, carried by #36245) writes digest null on unset inserts, so a legacy physical column DEFAULT none never fires; the PR body states that hook-skipping writes (raw SQL, bulk load) still store none on such a database. Head 1c5040c142, draft PR #36326, title without a bang, packages/spec untouched.",
"quiet_hours_off_spelling": "{ \"off\": true } (off wins over any start/end beside it); reasons in the PR body section Why { off: true }",
"run_once_route": "sys_migration ledger row id messaging-preference-digest-none-unset (DATA_MIGRATION_FLAG_OBJECT from @objectstack/spec/system; precedent plugin-auth membership-backfill-ledger.ts); claimed before rewrites; statuses converted / already-run / ledger-unavailable / ledger-unreadable / read-failed / claim-failed / no-engine; wired at kernel:ready in messaging-service-plugin.ts; deliberately not the every-boot shape",
"head_sha": "1c5040c142",
"files": "36 files, +898 -130: service-messaging src (preference-resolver.ts, objects/notification-preference.object.ts, NEW preference-digest-unset.ts, NEW preference-digest-conversion.ts, messaging-service-plugin.ts, preference-resolver.test.ts, NEW preference-digest-three-states.integration.test.ts, 11 translations/*.objects.generated.ts); app-shell notification-settings (myPreferences.ts, NotificationSettingsPage.tsx and their tests); ui/packages/i18n 11 locales; content/docs/data-modeling/field-types.mdx; .changeset/35123-member-digest-quiet-hours-opt-out.md; docs/audits/2026-08-tenant-audit-write-call-sites.counts/services/service-messaging.md",
"tests": "At 1c5040c142, under the verify lock: (1) pnpm --filter @objectstack/service-messaging exec vitest run --maxWorkers=2 gave VERDICT command-exit 0, Test Files 80 passed (80), Tests 1075 passed (1075). (2) service-messaging typecheck exit 0. (3) app-shell notification-settings vitest gave Test Files 3 passed (3), Tests 46 passed (46). (4) pnpm --dir ui exec vitest run scripts/ gave 172 passed, 2 skipped (174), exit 0. NOT MEASURED: app-shell type-check, because the ui closure was not built; the only notification-settings diagnostic is the existing apiFetch line, unchanged from origin/main; CI Type Check UI carries it. Each ablation went through scripts/ablation-replace.mjs in WRAP mode and was restored to the HEAD blob with an empty git diff HEAD. Subjects are imported from src by relative path, so no dist was involved. A1 parseDigest none removed: 5 red. A2 parseQuietHours off removed: 3 red. A3 unset read as none: 4 red (controls). A4 hook null deleted: 1 red (upgraded DB). A5 early already-run check removed: GREEN, explained (the duplicate ledger-id claim also stops a rerun). A5b claim under another id: 2 red (records itself; none survives second boot). A6 read scoped to org_a: 1 red (every org). A7 quietHoursStored(null): 2 red. A8 digestChoices drops none: 3 red. A8's first attempt hit lock queue-timeout 99 (NOT MEASURED) and was re-run.",
"gates": "dispatch-gates --commands derived 109 families. At 1c5040c142, 105 ran in one pass with exit codes captured before any pipe: all exit 0. Run separately: ui vitest scripts/ exit 0; spec check:skill-examples exit 0 after the client-react build; check:type-check-debt exit 0. --ran reconciliation (record with exit codes): 109 derived, 108 run, 0 NOT-MEASURED, 1 UNRUN. The UNRUN is check:dual-build-cjs-loads, a declared narrowing: its prerequisite is a full pnpm build, and CI Lint and Repo Gates carries it. The reconciler itself exited 1 on that UNRUN. Earlier reds were fixed in the branch: tenant-audit-census (regenerated), engine-double-contract and objectql-double-limit (doubles replaced by a real engine). check-platform-checklist --changed-from origin/main exit 0. check:i18n in sync. overlap-check before the first push: clean. merge-tree against current origin/main (17 commits ahead): exit 0. PR check-runs at 1c5040c142 when this was reported: 25 total, 20 queued (Lint, Type Check, Check Changeset, PR-body guards, Governed Surface Queue Guard and others), 5 skipped opt-in or schedule jobs. Their state is in_progress; CI convergence belongs to PM.",
"dogfood_battery": "n/a: no bang in the PR title, and Clause-② has no (narrowing) arm",
"declarations": "Clause-②: no; Metadata-protocol: none; changeset patch for @objectstack/service-messaging, @object-ui/app-shell and @object-ui/i18n; governed change: Leehom merges after the seat's Fable contract review",
"surface_breach": "Beyond claim revisions 7073295574 and 7073458517 the diff touches: docs/audits/2026-08-tenant-audit-write-call-sites.counts/services/service-messaging.md (regenerated by the census gate's own --write for the three new write call sites), and the 11 service-messaging translations/*.objects.generated.ts (en regenerated by check-i18n-bundles --write; 10 translated helps extended by hand). Both are declared in the PR body Deviations. packages/spec untouched.",
"mcp_calls": "0",
"api_writes": "2 relay writes, plus git pushes earlier in the run. (1) pr_create: POST /repos/objectstack-ai/objectstack/dispatches, relay run 44991877240, which ran POST /repos/objectstack-ai/objectstack/pulls and opened #36326 as a draft with no assignees and no labels. The dispatcher exited 6 UNCONFIRMED (the run stayed queued past 300 s); it was not re-dispatched, and the run was read to completed/success. (2) os-dev-report: post-stamped --comment=35123, POST /repos/objectstack-ai/objectstack/dispatches relaying to POST /repos/objectstack-ai/objectstack/issues/35123/comments.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #36245 · the SQL driver keeps a physical column DEFAULT none that the metadata no longer declares; hook-skipping writes (raw SQL, bulk load) still store none on such a database until it lands; the interim hook comes out with it",
"carrier: none · noted, not filed: the page has no follow-the-organization-again action for digest or quiet hours (the ruling did not ask for one; the Setup grid can clear the field); it is in the PR Acceptance notes",
"carrier: none · noted, not filed: if the ledger claim insert fails after the read, the next boot retries, and a none written in between would be converted; this is logged at error with the fix and is in the PR Acceptance notes"
]
}
Claim revision · 2026-11-22T06:16Z · same session, same branch claude/area-a4B-35123, PR #36326 (dev report 7075210312).
File surface: as revisions 7073295574 and 7073458517, plus two generated or gate-written families the build needs: docs/audits/2026-08-tenant-audit-write-call-sites.counts/services/service-messaging.md (regenerated by the tenant-audit census gate's own --write for the three new write call sites) and the 11 packages/services/service-messaging/src/translations/*.objects.generated.ts (the en bundle regenerated by check-i18n-bundles --write; the 10 translated field helps extended to match). content/docs/data-modeling/field-types.mdx is the docs page that states the resolution rule. packages/spec/** untouched.
Handover stop point (area a4-B) · 2026-11-22T06:34Z (maintainer handover rule 2026-11-22 06:31Z: push the current head and stop; no new review requested).
Owed next: read CI at the head; final-head declaration; L1-a; the seat's Fable contract review (stored shape, field default, run-once row conversion); maintainer merges (governed).
{
"issue": 35123,
"status": "done",
"branch": "claude/area-a4B-35123",
"pr": "https://github.com/objectstack-ai/objectstack/pull/36326",
"session": "session_01FEkQ5pb2t8Z8C64PkPyVt1",
"premise_still_valid": true,
"summary": "Rework for L1 R1 (record 7075548155), seat fix (b). The digest no longer takes its time zone from the resolved quiet-hours row. A new private PreferenceResolver.resolveDigestZoneWindow walks the same channel-wildcard rows (member topic, member *, default topic, default *) and stops only at a row that holds a window, past both unset and the explicit off. Quiet hours themselves still resolve as before (the member's { off: true } decides: off), and with no window on any row the digest stays on UTC. Reading of 'a real start/end window with a tz': the walk stops at the first row holding a start/end window and uses its tz, falling back to UTC when that window carries no tz; it does not skip a tz-less window, so every case without an explicit off is byte-for-byte today's behaviour. New head 621aa11e59, one commit on top of 1c5040c142, pushed without force.",
"head_sha": "621aa11e59e26ee578e05d2a999f54a1b8a486a6",
"diff": "3 files, +46 -2: preference-resolver.ts (call site + resolveDigestZoneWindow, +21 -1); preference-resolver.test.ts (+25: nested describe with the Berlin pin and a UTC control); .changeset/35123-member-digest-quiet-hours-opt-out.md (one sentence appended to the Three states bullet).",
"tests": "At 621aa11e59, one locked run (VERDICT command-exit 0, held 272s): closure build pnpm --workspace-concurrency=2 --filter '@objectstack/service-messaging^...' build exit 0; vitest src/preference-resolver.test.ts Test Files 1 passed (1), Tests 39 passed (39); full package vitest run --maxWorkers=2 Test Files 80 passed (80), Tests 1077 passed (1077) (was 1075; +2 new); service-messaging typecheck exit 0. Pin: org default row { digest daily, quiet_hours 22:00-07:00 Europe/Berlin }, member row { quiet_hours { off: true } }, now 2026-01-01T23:30Z (00:30 Berlin, inside the window): quiet hours alone defer to 06:00Z without the member row and not at all with it; the digest window is 2026-01-02 and notBefore 2026-01-02T23:00Z (Berlin midnight), not 00:00Z. Control: no window on any row, same member off, digest notBefore 2026-01-02T00:00Z, window 2026-01-01. Ablation (WRAP mode, scripts/ablation-replace.mjs, under the lock, trap restore): anchor this.resolveDigestZoneWindow(index, recipient, ctx.topic)?.tz replaced by qh?.tz, anchor x1 to x0, blob 128a515964 to fac8b2af97; the Berlin pin went red (expected window 2026-01-02, received 2026-01-01), Tests 1 failed | 38 passed (39), the UTC control stayed green as designed. Restored: blob 128a515964 == HEAD blob, git diff HEAD empty, git status clean. Subject imported from src by relative path, so no dist leg.",
"gates": "dispatch-gates --commands narrowed to the three paths this round changed (resolver, its test, the changeset) as the dispatch asked: 67 families. 62 exit 0 on the first pass; 4 exit 3 PREREQUISITE NOT MET before the closure build, of which dts-closure, lean-entry-closure and sourcemap-no-sources-content were re-run after it, all exit 0. --ran reconciliation: 67 derived, 65 run, 0 NOT-MEASURED, 2 UNRUN (reconciler exit 1): check:dual-build-cjs-loads (needs a full pnpm build) and check:i18n (needs the CLI plus 10-package build; this round changes no object metadata or translation). Both declared narrowings, carried by CI Lint and Repo Gates, which is success at 621aa11e59. The derivation warned STALE TREE: one family file, scripts/pm/check-skill-line-ratchet.mjs, changed on origin/main since the branch point, not a family this diff triggers. PR check-runs at 621aa11e59: 61 success, 9 skipped, 0 failed, 0 pending; Lint and Repo Gates, TypeScript Type Check, Test Core (10/10), Build Core, Check Changeset, Governed Surface Queue Guard, Dogfood Regression Gate all success. Control-byte self-scan over the three files: no hits.",
"dogfood_battery": "n/a: no bang in the PR title, and Clause-2 has no (narrowing) arm",
"pr_body_sentence": "In What changes, as the last bullet: After a member's explicit no quiet hours ({ off: true }), the digest takes its time zone from the next preference row in the walk that holds a quiet-hours window (normally the organization default), so it still flushes at midnight in that zone, for example Europe/Berlin; with no window on any row it stays on UTC (L1 R1, fix b).",
"adr_0030_reading": "Lines 93-94 (digest windows currently use quiet_hours.tz then UTC) and line 134-135 (same parenthesis) still read accurately: the digest zone is still a quiet_hours.tz, else UTC. The only change is WHICH row's quiet_hours.tz (the nearest row holding a window rather than the resolved quiet-hours row), a detail the ADR never stated. No carrier card owed for this change.",
"carrier_body": null,
"mcp_calls": "0",
"api_writes": "1 relay write: post-stamped --comment=35123 (POST /repos/objectstack-ai/objectstack/dispatches relaying to POST /repos/objectstack-ai/objectstack/issues/35123/comments). Plus one git push (not a REST write). PR body not touched.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
MERGED at head 621aa11e59, by the maintainer; L1-a ACCEPT 7076146202 (after REWORK 7075548155, digest time zone, fix b), contract PASS 7076382062 (TIER_DEFAULT, seat repo:objectstack#7)
Delivered
Ruling B 7073270426: a member's own "no digest" or "no quiet hours" now beats the organisation default; fields a member left unset still follow it. Legacy none rows were converted once to unset. After "no quiet hours" the digest still lands at midnight in the organisation window's time zone.
State change: pm:dispatched removed in the same write; the other labels stay. Carried: S1 and two optional items on #36369 (pm:queue); the interim insert hook comes out with #36245.
area:workflowApprovals and automation — the work that runs without a person driving itdomain:serverDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: p2 kept ·
pm:queue→pm:awaiting-maintainer. Grading principle of 2026-11-18, item 3: a member who opts out of a digest or quiet hours the organisation set still receives them, a detail of notification preferences that PR #35122 (#34728) already labels honestly on the page. The card holds a product choice (A: a member's explicit opt-out wins; B: the organisation default is a floor), so it waits for the maintainer's letter; triage has asked in its session.objectstack-fleet commentedon Nov 19, 2026
sweep#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq
Ruled: option A · State:
pm:awaiting-maintainer→pm:queue· 2026-11-19The maintainer, verbatim, 2026-11-19 00:32Z in the objectstack priorities discussion thread: 「成员自己的选择优先」.
Reading: a member's own explicit choice wins. A member who sets their digest to none or clears their quiet hours keeps that choice; the organisation default is a default, not a floor. Grade unchanged (p2).
Generated by Claude Code
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: maintainer 2026-11-21T22:3xZ, verbatim: 「按建议升」, on triage's third non-topic pass (about 10% of non-topic p2, the maintainer's ask: 「按照10% 的比例重新分析」) under the standard ruled 「同意」 today: this week, or someone loses.
2026-11-21T22:37Z · p2 → p1 on the maintainer's word: a common function wrong for every member who opts out: a member's own
nonedigest or empty quiet hours falls back to the organisation default. Lane and state unchanged.11 remaining items
test(messaging): pins for the three digest and quiet-hours states, th…
i18n(messaging): the digest and quiet-hours helps say the three state…
docs(messaging): the three digest and quiet-hours states, and the cha…
fix(messaging): the ledger-unavailable warning names the plugin that …
test(messaging): the door and ledger-unavailable pins run on the real…
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5pb2t8Z8C64PkPyVt1
os-dev-report
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5pb2t8Z8C64PkPyVt1
Claim revision · 2026-11-22T06:16Z · same session, same branch
claude/area-a4B-35123, PR #36326 (dev report 7075210312).File surface: as revisions 7073295574 and 7073458517, plus two generated or gate-written families the build needs:
docs/audits/2026-08-tenant-audit-write-call-sites.counts/services/service-messaging.md(regenerated by the tenant-audit census gate's own--writefor the three new write call sites) and the 11packages/services/service-messaging/src/translations/*.objects.generated.ts(theenbundle regenerated bycheck-i18n-bundles --write; the 10 translated field helps extended to match).content/docs/data-modeling/field-types.mdxis the docs page that states the resolution rule.packages/spec/**untouched.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5pb2t8Z8C64PkPyVt1
Handover stop point (area a4-B) · 2026-11-22T06:34Z (maintainer handover rule 2026-11-22 06:31Z: push the current head and stop; no new review requested).
1c5040c142(draft), built to ruling B 7073270426. CI was still running at the stop (42 success, 17 pending, 0 failed). No final-head declaration, no L1, no contract record.{ off: true }.fix(messaging): a member's explicit no-quiet-hours keeps the digest o…
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5pb2t8Z8C64PkPyVt1
os-dev-report
objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5pb2t8Z8C64PkPyVt1
Landed · 2026-11-22T08:53Z: PR #36326 merged and its
Fixes #35123closed this card as completed.621aa11e59, by the maintainer; L1-a ACCEPT 7076146202 (after REWORK 7075548155, digest time zone, fix b), contract PASS 7076382062 (TIER_DEFAULT, seat repo:objectstack#7)nonerows were converted once to unset. After "no quiet hours" the digest still lands at midnight in the organisation window's time zone.State change:
pm:dispatchedremoved in the same write; the other labels stay. Carried: S1 and two optional items on #36369 (pm:queue); the interim insert hook comes out with #36245.fix(messaging): a member's own "no digest" or "no quiet hours" beats …
fix(driver-sql): a column's literal DEFAULT follows the field's decla…