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
console list page: the inbox badge's notification-receipt read waits on the inbox-message read and now sets the page's last request layer #35410
Filing gate: ③ an out-of-scope finding of the #35306 dev (os-dev-report 7003358029, PR #35398), measured live on the showcase list page; named as owed by the L1-a reviewer (ACCEPT 7003826152). It is a follow-up of the #34211 page-load work, nested under #34211.
Reader: domain:ui (console inbox badge). Suggested grade: p2, the same reach as #35306 (an extra request layer on a daily page).
Dedupe: sys_notification_receipt, inbox badge request layer, notification receipt waits inbox message. Only #35306 matches, and it is a different read.
Trace the badge's two reads live and confirm the dependency. Then either fetch the receipts alongside the messages (one request, or both in parallel keyed by the user), or explain in the PR why the receipt read must wait. Done when the page's layer count before and after is measured on showcase, and the badge count stays correct (pin: unread count with some and with no receipts).
Claim: PM loop round 13 · area ux-2 (p2 in order; #35437 waits on sibling #35253's DetailView.tsx) · 2026-11-19T11:05Z
Area: ux-2
Session: session_01Utp6CZrgaiMgTJCnswR6jQ
Account: os-bill
Branch: claude/issue-35410-inbox-receipt-layer
Worktree: objectstack-issue-35410
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/app-shell/src/hooks/sharedUserFeeds.ts (useSharedInboxFeed and its receipt read), its tests, root .changeset/. ⛔ No packages/spec/**, no server or service source, no MetadataProvider.tsx, no new i18n key. Stop on breach and report.
Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui app-shell in objectstack orders the inbox badge's message and receipt reads; no platform path covers it; every signed-in console user on every page load (the bell is in the app header)
Thread-read: none
Premise: holds as filed (measured on showcase at PR #35398 head 047e7f29: the trailing request group is data/sys_notification_receipt, started only after data/sys_inbox_message answers); on origin/main the two reads are sequential by design (objectui#7392 narrowed the receipt read to the listed ids); dev re-measures first
Serial constraints cleared: no open PR touches sharedUserFeeds.ts, useInboxBell.ts, useHomeInbox.ts or AppHeader.tsx (live read of all open PRs' files at claim time)
Pre-claim lane: domain:ui (ui/packages/app-shell/**)
Pre-claim deps: none
Prior rulings read: inbox badge, notification receipt, sequential read → objectui#7392 (receipt read narrowed to the listed ids, $top = id count, exact by the receipt's unique key) and #4225/#4316/#4329 (one shared feed; the badge folds only this feed's message rows) bind: the unread count must not change; check-prior-rulings hits (ADR-0007 §8, ADR-0029 D9.3, ADR-0035 §4, ADR-0055 §2, ADR-0081 §3, ADR-0090 D11, ADR-0099 D3, ADR-0106 D6, ADR-0139 D1) are term matches, none rules on the read order
{
"issue": 35410,
"status": "done",
"branch": "claude/issue-35410-inbox-receipt-layer",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35519",
"head": "f8110476",
"session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
"premise_still_valid": true,
"summary": "useSharedInboxFeed now sends the sys_notification_receipt read in PARALLEL with the sys_inbox_message read: receipts filtered user_id + channel inbox, newest first, top 20 (the message window), since the inbox channel writes each message's delivered receipt right after the message. Only listed notification ids that read did not carry get the id-scoped follow-up (notification_id in missing, top = their count), so the answer is exact under the receipt's unique key and the unread count is unchanged. Receipts unavailable -> all unread, no follow-up; 404/OBJECT_NOT_FOUND still retires; a key whose last window had nothing joinable sends no receipt read on later ticks. Measured live on showcase: the receipt read left the last layer and now shares the message read's layer.",
"A1": "HOLDS on origin/main 6f36818f (showcase /apps/com.example.showcase/showcase_task, fresh objectstack dev backend + Console Vite dev server, 3 loads): sys_notification_receipt alone in the last layer and last to finish in 3/3, started 188/289/473 ms after sys_inbox_message answered; layer = inbox layer + 1 (10->11, 11->12, 12->13); chain depth 11/12/13; 28 API requests (Vite console; the card's 25 was the built console)",
"A2": "Route 2 (parallel, bounded). Route 1 fails without server/spec change, measured live: $expand=notification_id on sys_inbox_message -> 400 INVALID_FIELD (both notification_id columns are Field.text, no relation to expand or semi-join); GET /api/v1/notifications joins server-side but drops actor_id, receipt_id and the inbox row id the feed's rows carry, and reads all of the user's receipts unbounded server-side. Route 3 not needed. Per-tick receipt rows: at most 20 (window) + ids the window read missed; live steady state 3 rows for 3 listed ids (= id count)",
"A3": "Pins (receiptScope-7392 harness, new top-level describe): receipt read issued while message read pending; follow-up asks only the missed id (top 1) and gets its read-state; unread count with some receipts (badge fold equal to expected) and with no receipts (all unread, receipt_id null); read/clicked/dismissed beside delivered wins in either order; receipts unavailable -> all 20 rows unread, status ready, one receipt read; 404/OBJECT_NOT_FOUND -> ready-empty and probes stop at 1+UNAVAILABLE_PROBE_LIMIT. Layers after (same setup, 3 loads): receipt read starts with the message read (0-1 ms apart), same layer 8/11/9, no layer after the inbox pair; chain depth 8/11/9; 28 requests",
"layers": {
"showcase": {
"before": {
"requests": [
28,
28,
28
],
"chain_depth": [
11,
12,
13
],
"receipt_layer_minus_inbox_layer": [
1,
1,
1
],
"receipt_alone_in_last_layer": [
true,
true,
true
]
},
"after": {
"requests": [
28,
28,
28
],
"chain_depth": [
8,
11,
9
],
"receipt_layer_minus_inbox_layer": [
0,
0,
0
],
"receipt_alone_in_last_layer": [
false,
false,
false
]
}
}
},
"tests": "pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/ (lock VERDICT command-exit 0; run started at a82668f0, only later commit f8110476 rewords comments): Test Files 2333 passed | 1 skipped (2334), Tests 21856 passed | 9 skipped (21865). pnpm --filter @object-ui/app-shell run type-check (src + tsconfig.test.json) at f8110476: lock VERDICT command-exit 0, 0 errors (first attempt exit 2 = unbuilt @object-ui/* dist, rebuilt closure with --filter '@object-ui/app-shell^...' build, then 0). Ablation 1 via scripts/ablation-replace.mjs (source-resolved suites, no dist leg): anchor 'inboxJoinableHint?.key === key && !inboxJoinableHint.joinable' -> 'true' (old sequential shape), anchor 1->0, blob 09b38fd42aa4->b24b4ce5fe38: 9 failed | 13 passed incl. the layer pin; restored blob == HEAD, git diff HEAD empty. Ablation 2: 'missing.length === 0 ? []' made unconditional: 2 failed (missed-id + shared-notification pins) | 20 passed; restored blob == HEAD.",
"gates": "dispatch-gates --commands on f8110476: 38 families; 36 lock-free each EXIT=0 (captured before any pipe), pnpm check:type-check-debt lock VERDICT command-exit 0, pnpm --dir ui exec vitest run scripts/ lock VERDICT command-exit 0 (171 files passed, 2 skipped; first call exit 99 queue-timeout, resumed slot). --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. ui pnpm check:new-line-citations exit 0 (0 new). test:repo not run (diff touches no repo-project test), declared to CI. CI at report time on f8110476: success = Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, all Lint ·/Type Check · rows; in_progress = Lint UI, Type Check UI, Build & E2E UI, Test UI shards; Build Core skipped.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"line_budget": "n/a — no skills/** or ledger file touched",
"files_changed": [
"ui/packages/app-shell/src/hooks/sharedUserFeeds.ts",
"ui/packages/app-shell/src/hooks/__tests__/sharedInboxFeed.receiptScope-7392.test.tsx",
"ui/packages/app-shell/src/hooks/__tests__/sharedInboxFeed.cadence-7249.test.tsx",
".changeset/35410-inbox-receipt-layer.md"
],
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST .../issues/35519/assignees os-bill, one stroke), relay post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35410/comments (this report)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted in PR acceptance notes, not filed: the parallel receipt read orders the user's inbox receipts by created_at and sys_notification_receipt has no index on created_at (indexes: unique key, user_id+state); payload stays 20 rows, receipts are transient 90d",
"carrier: none · noted, not filed: an empty inbox costs one receipt read on the page load (unknowable before the message read answers), none per later tick; a user whose listed messages hold no receipt pays the id-scoped follow-up each tick (sequential, exact, as before)"
],
"deviations": [
"Measurement used the Console Vite dev server (:5371) against an isolated fresh showcase backend (:4371), not the built console; request count 28 both sides vs the card's 25",
"The full app-shell suite (2334 files) held the lock 1h29m on a shared box; an attempt to stop it and narrow was refused by the permission classifier, so it ran to completion",
"The cadence-7249 empty-window pin changed from 'zero receipt reads' to 'the attach read only, zero per tick' — the first tick cannot know the window is empty; noted in PR",
"PR body 维护者速读 at four lines per the dispatch order",
"Commit trailers: model-free pair as AGENTS.md requires; the harness-suggested model-named Co-Authored-By trailer was not used",
"Metadata-protocol: none and Clause-②: no measured as stated (no spec, key or value change)"
]
}
MERGED through the merge queue as a354bb0edb (Fixes #35410; this card closed completed)
contract record
none owed (Clause-②: no, Metadata-protocol: none, not governed); L1-a ACCEPT 7011659709
Delivered: the inbox badge's read-state receipts are read beside the inbox messages instead of after them, with an exact id-scoped follow-up for any listed message the window missed; the badge count is unchanged. On showcase the receipt read moved from alone in the last request layer into the message read's layer (chain depth 11/12/13 → 8/11/9 over 3 loads).
Not done here: created_at indexes on the two objects, follow-up #35530 (p3, nested under #34211).
State: pm:dispatched removed; card closed.
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Claim: PM loop round 13 · area ux-2 (p2 in order; #35437 waits on sibling #35253's DetailView.tsx) · 2026-11-19T11:05Z
Area: ux-2
Session:
session_01Utp6CZrgaiMgTJCnswR6jQAccount:
os-billBranch:
claude/issue-35410-inbox-receipt-layerWorktree:
objectstack-issue-35410Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/app-shell/src/hooks/sharedUserFeeds.ts(useSharedInboxFeedand its receipt read), its tests, root.changeset/. ⛔ Nopackages/spec/**, no server or service source, noMetadataProvider.tsx, no new i18n key. Stop on breach and report.Container & model:
M,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no
Metadata-protocol: none
Responsibility: ui
app-shellin objectstack orders the inbox badge's message and receipt reads; no platform path covers it; every signed-in console user on every page load (the bell is in the app header)Thread-read: none
Premise: holds as filed (measured on showcase at PR #35398 head
047e7f29: the trailing request group isdata/sys_notification_receipt, started only afterdata/sys_inbox_messageanswers); onorigin/mainthe two reads are sequential by design (objectui#7392 narrowed the receipt read to the listed ids); dev re-measures firstSerial constraints cleared: no open PR touches
sharedUserFeeds.ts,useInboxBell.ts,useHomeInbox.tsorAppHeader.tsx(live read of all open PRs' files at claim time)Pre-claim lane:
domain:ui(ui/packages/app-shell/**)Pre-claim deps: none
Prior rulings read: inbox badge, notification receipt, sequential read → objectui#7392 (receipt read narrowed to the listed ids,
$top= id count, exact by the receipt's unique key) and #4225/#4316/#4329 (one shared feed; the badge folds only this feed's message rows) bind: the unread count must not change; check-prior-rulings hits (ADR-0007 §8, ADR-0029 D9.3, ADR-0035 §4, ADR-0055 §2, ADR-0081 §3, ADR-0090 D11, ADR-0099 D3, ADR-0106 D6, ADR-0139 D1) are term matches, none rules on the read orderobjectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
os-dev-report
{ "issue": 35410, "status": "done", "branch": "claude/issue-35410-inbox-receipt-layer", "pr": "https://github.com/objectstack-ai/objectstack/pull/35519", "head": "f8110476", "session": "session_01Utp6CZrgaiMgTJCnswR6jQ", "premise_still_valid": true, "summary": "useSharedInboxFeed now sends the sys_notification_receipt read in PARALLEL with the sys_inbox_message read: receipts filtered user_id + channel inbox, newest first, top 20 (the message window), since the inbox channel writes each message's delivered receipt right after the message. Only listed notification ids that read did not carry get the id-scoped follow-up (notification_id in missing, top = their count), so the answer is exact under the receipt's unique key and the unread count is unchanged. Receipts unavailable -> all unread, no follow-up; 404/OBJECT_NOT_FOUND still retires; a key whose last window had nothing joinable sends no receipt read on later ticks. Measured live on showcase: the receipt read left the last layer and now shares the message read's layer.", "A1": "HOLDS on origin/main 6f36818f (showcase /apps/com.example.showcase/showcase_task, fresh objectstack dev backend + Console Vite dev server, 3 loads): sys_notification_receipt alone in the last layer and last to finish in 3/3, started 188/289/473 ms after sys_inbox_message answered; layer = inbox layer + 1 (10->11, 11->12, 12->13); chain depth 11/12/13; 28 API requests (Vite console; the card's 25 was the built console)", "A2": "Route 2 (parallel, bounded). Route 1 fails without server/spec change, measured live: $expand=notification_id on sys_inbox_message -> 400 INVALID_FIELD (both notification_id columns are Field.text, no relation to expand or semi-join); GET /api/v1/notifications joins server-side but drops actor_id, receipt_id and the inbox row id the feed's rows carry, and reads all of the user's receipts unbounded server-side. Route 3 not needed. Per-tick receipt rows: at most 20 (window) + ids the window read missed; live steady state 3 rows for 3 listed ids (= id count)", "A3": "Pins (receiptScope-7392 harness, new top-level describe): receipt read issued while message read pending; follow-up asks only the missed id (top 1) and gets its read-state; unread count with some receipts (badge fold equal to expected) and with no receipts (all unread, receipt_id null); read/clicked/dismissed beside delivered wins in either order; receipts unavailable -> all 20 rows unread, status ready, one receipt read; 404/OBJECT_NOT_FOUND -> ready-empty and probes stop at 1+UNAVAILABLE_PROBE_LIMIT. Layers after (same setup, 3 loads): receipt read starts with the message read (0-1 ms apart), same layer 8/11/9, no layer after the inbox pair; chain depth 8/11/9; 28 requests", "layers": { "showcase": { "before": { "requests": [ 28, 28, 28 ], "chain_depth": [ 11, 12, 13 ], "receipt_layer_minus_inbox_layer": [ 1, 1, 1 ], "receipt_alone_in_last_layer": [ true, true, true ] }, "after": { "requests": [ 28, 28, 28 ], "chain_depth": [ 8, 11, 9 ], "receipt_layer_minus_inbox_layer": [ 0, 0, 0 ], "receipt_alone_in_last_layer": [ false, false, false ] } } }, "tests": "pnpm --dir ui exec vitest run --maxWorkers=2 packages/app-shell/ (lock VERDICT command-exit 0; run started at a82668f0, only later commit f8110476 rewords comments): Test Files 2333 passed | 1 skipped (2334), Tests 21856 passed | 9 skipped (21865). pnpm --filter @object-ui/app-shell run type-check (src + tsconfig.test.json) at f8110476: lock VERDICT command-exit 0, 0 errors (first attempt exit 2 = unbuilt @object-ui/* dist, rebuilt closure with --filter '@object-ui/app-shell^...' build, then 0). Ablation 1 via scripts/ablation-replace.mjs (source-resolved suites, no dist leg): anchor 'inboxJoinableHint?.key === key && !inboxJoinableHint.joinable' -> 'true' (old sequential shape), anchor 1->0, blob 09b38fd42aa4->b24b4ce5fe38: 9 failed | 13 passed incl. the layer pin; restored blob == HEAD, git diff HEAD empty. Ablation 2: 'missing.length === 0 ? []' made unconditional: 2 failed (missed-id + shared-notification pins) | 20 passed; restored blob == HEAD.", "gates": "dispatch-gates --commands on f8110476: 38 families; 36 lock-free each EXIT=0 (captured before any pipe), pnpm check:type-check-debt lock VERDICT command-exit 0, pnpm --dir ui exec vitest run scripts/ lock VERDICT command-exit 0 (171 files passed, 2 skipped; first call exit 99 queue-timeout, resumed slot). --ran: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. ui pnpm check:new-line-citations exit 0 (0 new). test:repo not run (diff touches no repo-project test), declared to CI. CI at report time on f8110476: success = Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Live E2E UI, Dogfood Regression Gate, Check Changeset, PR-body guards, all Lint ·/Type Check · rows; in_progress = Lint UI, Type Check UI, Build & E2E UI, Test UI shards; Build Core skipped.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "line_budget": "n/a — no skills/** or ledger file touched", "files_changed": [ "ui/packages/app-shell/src/hooks/sharedUserFeeds.ts", "ui/packages/app-shell/src/hooks/__tests__/sharedInboxFeed.receiptScope-7392.test.tsx", "ui/packages/app-shell/src/hooks/__tests__/sharedInboxFeed.cadence-7249.test.tsx", ".changeset/35410-inbox-receipt-layer.md" ], "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST .../issues/35519/assignees os-bill, one stroke), relay post-stamped comment POST /repos/objectstack-ai/objectstack/issues/35410/comments (this report)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted in PR acceptance notes, not filed: the parallel receipt read orders the user's inbox receipts by created_at and sys_notification_receipt has no index on created_at (indexes: unique key, user_id+state); payload stays 20 rows, receipts are transient 90d", "carrier: none · noted, not filed: an empty inbox costs one receipt read on the page load (unknowable before the message read answers), none per later tick; a user whose listed messages hold no receipt pays the id-scoped follow-up each tick (sequential, exact, as before)" ], "deviations": [ "Measurement used the Console Vite dev server (:5371) against an isolated fresh showcase backend (:4371), not the built console; request count 28 both sides vs the card's 25", "The full app-shell suite (2334 files) held the lock 1h29m on a shared box; an attempt to stop it and narrow was refused by the permission classifier, so it ran to completion", "The cadence-7249 empty-window pin changed from 'zero receipt reads' to 'the attach read only, zero per tick' — the first tick cannot know the window is empty; noted in PR", "PR body 维护者速读 at four lines per the dispatch order", "Commit trailers: model-free pair as AGENTS.md requires; the harness-suggested model-named Co-Authored-By trailer was not used", "Metadata-protocol: none and Clause-②: no measured as stated (no spec, key or value change)" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
Closed-out · area ux-2 · 2026-11-19T14:39Z
a354bb0edb(Fixes #35410; this card closed completed)Clause-②: no,Metadata-protocol: none, not governed); L1-a ACCEPT 7011659709Delivered: the inbox badge's read-state receipts are read beside the inbox messages instead of after them, with an exact id-scoped follow-up for any listed message the window missed; the badge count is unchanged. On showcase the receipt read moved from alone in the last request layer into the message read's layer (chain depth 11/12/13 → 8/11/9 over 3 loads).
Not done here:
created_atindexes on the two objects, follow-up #35530 (p3, nested under #34211).State:
pm:dispatchedremoved; card closed.