Repository navigation
fix(server): only a founder settles a thread in their inbox - #262
nullStack65 merged 5 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Clean-room full independent review on head {
"reviewed_base": "1d87e8030dda52d154c763b204ee147d4737bc9a",
"reviewed_head": "c8895c9e0fd3284c1fe9b898615693df1fbd0efd",
"reviewer": "gemini-4-neon, Antigravity subagent",
"author_session": "7f85a8d6-99c9-4716-8f3e-c9db547fabca",
"reviewer_session": "c55e2224-50d4-48c6-9157-44f26f6ce96d",
"fresh_context": true,
"review_kind": "full",
"round_id": "c55e2224-pr262-full",
"intent": ["Only a founder may settle a thread in a founder's inbox; dispatch-time guard covers explicit settle, deferred settle-after-run, auto-settle, and peer-forwarded MCP; WS actor attribution records who settled"],
"prior_findings": [],
"findings": []
} |
Agent settles (MCP organize on any thread, settle-after-run, peer MCP) and server auto-settles are refused at dispatch for a thread in a founder or shared inbox. thread.settle carries a server-stamped actor, persisted on the event; the WS stamps it from the authenticated session. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An unknown or failed sender read, or an unassigned paired session, now settles as an agent; a person device needs an assigned founder or the desktop bootstrap session. Organize's description says founder-inbox threads refuse settle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Founders' paired desktop apps on hosts without founder enrolment (R720 today) were refused. A person device settles as a founder unless the server requires founder identity, the same rule messages follow; an unknown or failed sender read stays an agent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c8895c9 to
ea71c9b
Compare
|
Clean-room independent review #1 on rebased head {
"reviewed_base": "e33972341e3f8dd2b3418051073acaf6620fb2d7",
"reviewed_head": "ea71c9bdafbfa5ad8a5aa0a317810c2c8af726c4",
"reviewer": "gemini-4-neon, Antigravity subagent",
"author_session": "7f85a8d6-99c9-4716-8f3e-c9db547fabca",
"reviewer_session": "333112f7-9521-4d2e-9520-3c53628bf3c8",
"fresh_context": true,
"review_kind": "full",
"round_id": "333112f7-pr262-rebased-1",
"intent": ["Only a founder may settle a thread in a founder's inbox; dispatch-time guard covers explicit settle, deferred settle-after-run, auto-settle, and peer-forwarded MCP; WS actor attribution records who settled"],
"prior_findings": [],
"findings": [
{"id": "F1", "severity": "nit", "outcome": "skipped", "summary": "settleAfterRun drops deferred settlement whenever founderInboxHolder !== null without checking input.actor?.kind !== 'founder' (no current caller passes a founder actor to settleAfterRun)", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1484, "check": "No live bug; only agent self-settle invokes settleAfterRun"}
]
} |
|
Clean-room independent adversarial review #2 on rebased head {
"reviewed_base": "e33972341e3f8dd2b3418051073acaf6620fb2d7",
"reviewed_head": "ea71c9bdafbfa5ad8a5aa0a317810c2c8af726c4",
"reviewer": "gemini-4-neon, Antigravity subagent",
"author_session": "7f85a8d6-99c9-4716-8f3e-c9db547fabca",
"reviewer_session": "435c7e80-cfda-4edc-8090-0266a0fb1ced",
"fresh_context": true,
"review_kind": "full",
"round_id": "435c7e80-pr262-rebased-2",
"intent": ["Only a founder may settle a thread in a founder's inbox; dispatch-time guard covers explicit settle, deferred settle-after-run, auto-settle, and peer-forwarded MCP; WS actor attribution records who settled"],
"prior_findings": [],
"findings": [
{"id": "F-01", "severity": "important", "outcome": "open", "summary": "founderInboxHolder only checks audience and assignee, missing agent-only threads held in a founder's inbox via an open decisionRequest", "file": "packages/contracts/src/threadInbox.ts", "line": 101, "check": "Inspected threadInbox.ts:101-107 and Orchestrator.ts:5628-5635; agent-only threads with an open decisionRequest return null from founderInboxHolder, allowing agent settle to bypass the guard and strip the open decisionRequest"},
{"id": "F-02", "severity": "nit", "outcome": "open", "summary": "settleAfterRun unconditionally aborts when founderInboxHolder !== null without checking input.actor?.kind !== 'founder'", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1484, "check": "Inspected ThreadManagementService.ts:1484"},
{"id": "F-03", "severity": "nit", "outcome": "open", "summary": "Error-precedence mismatch: ThreadManagementService.settleThread checks founderInboxHolder before isStandingThreadRoot, opposite of Orchestrator.ts", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1578, "check": "Inspected ThreadManagementService.ts:1578-1591 vs Orchestrator.ts:5619-5635"}
]
} |
… F-01..F-03) - Extend founderInboxHolder to treat an open decisionRequest (single-founder or unsigned joint sign-off) as held by that founder or shared (F-01). - In Orchestrator.ts thread.settle, read the projected shell inbox when a stored decisionRequest is present so answered single-founder asks don't linger (F-01). - Check input.actor?.kind !== 'founder' in settleAfterRun (F-02) and preserve standing-root error precedence in ThreadManagementService.settleThread (F-03). Model: gemini-4-neon Task: fix Agent: Antigravity (gemini-4-neon) Harness: t3/antigravity Model-family: Gemini Model-generation: 4 Neon Skills-SHA: unknown
settleAfterRun read unprojected records.thread.inbox; for an answered single-founder decisionRequest, project through orchestrator.getThreadShell(input.threadId) so deferred settlement is not silently aborted after the founder already replied. Model: gemini-4-neon Task: fix Agent: Antigravity (gemini-4-neon) Harness: t3/antigravity Model-family: Gemini Model-generation: 4 Neon Skills-SHA: unknown
|
Focused re-check of round {
"reviewed_base": "e33972341e3f8dd2b3418051073acaf6620fb2d7",
"reviewed_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990",
"reviewer": "gemini-4-neon, Antigravity subagent",
"author_session": "7f85a8d6-99c9-4716-8f3e-c9db547fabca",
"reviewer_session": "baaaeb18-1c44-48eb-adfc-6dff8d292f09",
"fresh_context": true,
"review_kind": "focused_recheck",
"round_id": "333112f7-pr262-rebased-1",
"intent": ["Only a founder may settle a thread in a founder's inbox; dispatch-time guard covers explicit settle, deferred settle-after-run, auto-settle, and peer-forwarded MCP; WS actor attribution records who settled"],
"prior_findings": ["F1"],
"findings": [
{"id": "F1", "severity": "nit", "outcome": "fixed", "summary": "settleAfterRun drops deferred settlement whenever founderInboxHolder !== null without checking input.actor?.kind !== 'founder' (no current caller passes a founder actor to settleAfterRun)", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1484, "check": "Verified ThreadManagementService.ts:1483-1492 checks input.actor?.kind !== 'founder' and projects decisionRequest through orchestrator.getThreadShell(input.threadId); head cebc083e3d verified clean with no regressions", "rechecked_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990"}
]
} |
|
Focused re-check of round {
"reviewed_base": "e33972341e3f8dd2b3418051073acaf6620fb2d7",
"reviewed_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990",
"reviewer": "gemini-4-neon, Antigravity subagent",
"author_session": "7f85a8d6-99c9-4716-8f3e-c9db547fabca",
"reviewer_session": "31bcc100-87fa-4815-a6b3-de0c4ef58d09",
"fresh_context": true,
"review_kind": "focused_recheck",
"round_id": "435c7e80-pr262-rebased-2",
"intent": ["Only a founder may settle a thread in a founder's inbox; dispatch-time guard covers explicit settle, deferred settle-after-run, auto-settle, and peer-forwarded MCP; WS actor attribution records who settled"],
"prior_findings": ["F-01", "F-02", "F-03"],
"findings": [
{"id": "F-01", "severity": "important", "outcome": "confirmed", "summary": "founderInboxHolder only checks audience and assignee, missing agent-only threads held in a founder's inbox via an open decisionRequest", "file": "packages/contracts/src/threadInbox.ts", "line": 101, "check": "Verified threadInbox.ts:102-124 handles single-founder and joint sign-off decisionRequest, Orchestrator.ts:5629-5634 and ThreadManagementService.ts:1484-1492 project stored decisionRequest via getThreadShell so answered asks do not linger; threadInbox.test.ts (34/34), settleActor.test.ts and ThreadSettlementService.test.ts (64/64) all passed", "rechecked_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990"},
{"id": "F-02", "severity": "nit", "outcome": "fixed", "summary": "settleAfterRun unconditionally aborts when founderInboxHolder !== null without checking input.actor?.kind !== 'founder'", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1484, "check": "Verified ThreadManagementService.ts:1488-1492 checks input.actor?.kind !== 'founder'", "rechecked_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990"},
{"id": "F-03", "severity": "nit", "outcome": "fixed", "summary": "Error-precedence mismatch: ThreadManagementService.settleThread checks founderInboxHolder before isStandingThreadRoot, opposite of Orchestrator.ts", "file": "apps/server/src/orchestration-v2/ThreadManagementService.ts", "line": 1578, "check": "Verified ThreadManagementService.ts:1586-1615 skips founderInboxHolder for standing thread roots so Orchestrator.ts returns standing-root refusal first", "rechecked_head": "cebc083e3d1e1ccf948464e27f890b7c3a3b4990"}
]
} |
Problem
Agents settled threads that sat in a founder's inbox. This happened through
t3_thread_organize settleon their own thread or another, through the server's settle-after-run, and through peer-forwarded MCP. Nothing recorded who settled a thread, so unattributed UI settles using bare-UUID command ids couldn't be told apart from agent settles.Fix
thread.settle, including thethread.settlethatthread.auto-settledispatches, is refused whenfounderInboxHolder(thread.inbox)names a founder orshared(audience kameron/jeff/shared, or a human assignee) and the actor isn't a founder. The message reads"Thread is in kameron's inbox; only the founder settles it."The check runs at dispatch time, so a deferred settle-after-run is re-checked if a thread is re-filed into a founder's inbox before the turn finishes.stampSettleActorstampssettleActorfrom the WebSocket session (positive person evidence; enrolment required only whenrequireFounderIdentityis on) and persists attribution on settlement events.Deploy: fleet
Ported from
nullStack65/t3code-private#47(a1f612788f..7e8c548e88, which cleared review gate on the private fork) onto publicrelease/native-0.1.10per Kameron's direction to ship needed fixes on the public fork while private-fork setup continues.Model: gemini-4-neon
Task: fix
Agent: Antigravity (gemini-4-neon)
Harness: t3/antigravity
Model-family: Gemini
Model-generation: 4 Neon
Skills-SHA: unknown