Repository navigation
fix: prevent settlement of standing role roots - #250
nullStack65 wants to merge 1 commit into
Conversation
Keep inherited-persona children settleable and require clearing standing before retiring a role root. Apply the same eligibility to automatic settlement and client actions; leave freshContext unchanged. Model: codex/gpt-6.1-sol Task: implementation Agent: standing-root-settle
|
Note 🤖 codex/gpt-6.1-sol responding on behalf of nullStack65 Changes required: the server refusal passes the targeted regression suite, but two client paths do not meet the standing-role behavior. This is the single fresh-context, read-only review of head 3120e05, comparing its one commit with its parent. CLO-1350 and all of its comments were read independently. The PR remains draft.
{
"disposition": "changes-required",
"reviewed_base": "39b0a57d62a66f39efe777d45e4623ba9c6d1e5c",
"reviewed_head": "3120e051f008e31a14737b433b522798c11dc32b",
"reviewer": "codex/gpt-6.1-sol, Codex harness in T3 Code",
"author_session": "thread:delegated-task:command:mcp:54fa8cec-c589-4293-857f-10d06a4284cc:delegate-task:dfe15694-88b8-4489-9ceb-803907615626",
"reviewer_session": "01a229ea-fdda-7230-9231-321d1bd1ee15",
"fresh_context": true,
"review_kind": "full",
"round_id": "01a229ea-fdda-7230-9231-321d1bd1ee15",
"intent": [
"CLO-1350: refuse manual, automatic and bulk settlement only for standing personas with null lineage parent; refusal must not settle the thread",
"CLO-1350: inherited-persona children remain settleable; clearing standing permits retirement without deletion",
"CLO-1350: hide or disable Settle on role roots; preserve freshContext session reset on the same thread"
],
"prior_findings": [],
"findings": [
{
"id": "F1",
"severity": "important",
"outcome": "open",
"file": "apps/mobile/src/features/threads/thread-list-v2-items.tsx",
"line": 1380,
"summary": "Disabling the settle swipe for a standing root takes the no-swipe early return, removing the entire long-press menu and permitted rename, pin and snooze actions."
},
{
"id": "F2",
"severity": "important",
"outcome": "open",
"file": "apps/web/src/components/Sidebar.tsx",
"line": 2556,
"summary": "The selection context menu bypasses the new single-thread canSettle flag and offers enabled bulk Settle even when every selected thread is a standing root."
}
],
"evidence": [
"Live GitHub head confirmed before judging and again before publication; exactly the pinned twelve files, one commit; git diff --check passed; working tree stayed clean.",
"Independent current-head run under repository Node 26.13.1: node_modules/.bin/vp test run apps/server/src/orchestration-v2/Orchestrator.control-reads.test.ts apps/server/src/orchestration-v2/ThreadSettlementService.test.ts apps/web/src/components/threadActionMenu.logic.test.ts; 3 files passed, 107 tests passed, 53.42 seconds.",
"Read retained failing-before logs red-correct-runtime-1.log and red-server.log and their issue receipts: both manual and automatic root cases failed because settlement succeeded and emitted thread.settled. Read the passing implementation log and independently reran the committed tests. The before-run was not recreated by this reviewer.",
"Server manual and automatic dispatch share the root guard before settlement side effects. Tests assert unchanged root projection and event sequence, no command domain events, successful inherited-persona child settlement, and successful retirement after clearing standing with deletedAt still null. Existing rejected-command receipts are distinct from settlement events.",
"Adversarial source pass found no server guard bypass, refused settlement event, erroneous child refusal, erroneous root allowance, new deletion path or freshContext change. Own-agent active roots bypass deferred settlement and receive the guarded dispatch error; bulk client commands use the same server dispatch.",
"Shared contract predicate matches standing non-null AND parentThreadId null without a schema migration. Existing permission checks remain intact. Desktop shares web behavior, and ElectronMenu maps disabled to enabled:false; it shares F2. Mobile shares the contract guard but has F1. Provider-specific settlement policy is not supported here: the guard is provider-independent. Local/remote/tunnel clients reach the same server command path."
],
"limitations": [
"No live role refusal, real child settlement, live bulk execution, freshContext/provider-session reset, or installed/deployed behavior was tested. freshContext preservation is a source-diff conclusion.",
"No integrated web, Electron, iOS or Android interaction or screenshots; no dev server started. Findings are tied to exact current source branches.",
"Remote checks were not complete at observation: four skipped, two queued. No CI readiness or merge approval is claimed. The disclosed unrelated hook/browser failures were not treated as findings or rerun.",
"Only the pinned commit against its parent was reviewed. Integration with the advanced target branch, the paired documentation PR and the persona-count discrepancy were outside scope.",
"No source edits, commits, pushes, rebase, ready transition, merge, deployment, deletion or live thread mutation. Draft preserved."
]
}RESULT: review task complete with two open important findings; implementation remains with the caller. The regression proof supports the server fix, while client corrections and the declared live verification remain outstanding. Secret/private-data check of this comment: no credentials, tokens, customer data or private thread contents included; no general secret scan claimed. |
Standing role roots could be settled manually, automatically, or through bulk settlement, hiding the long-lived role conversation. Settlement now refuses a thread only when it has a standing persona and no lineage parent. The refusal returns a dispatch error without settlement events or projection changes. Children that inherit the persona remain settleable; clearing the root's persona with
set_standingpermits retirement without deleting history.Implemented by the standing-root-settle Codex child for the standing-thread settlement issue (CLO-1350). Human review has not been performed or requested. Pinned base:
39b0a57d62a66f39efe777d45e4623ba9c6d1e5conrelease/native-0.1.10.The server guards the shared settlement dispatch path, including automatic and bulk callers, and avoids promising deferred settlement for a running role root. Web/desktop and mobile disable root Settle actions; mobile also removes the settle swipe. Un-settle remains available.
freshContextis unchanged.Rotation guidance is a paired PR: closura-agent-config #1648, head
9083cc6e5ba572ab658d5aa9003d00e3717cfff5. Step 4 clears and verifies the old persona before renaming and settling. Both PRs remain unmerged; no rollout is included.Verification:
vp run check:changed 39b0a57d62a66f39efe777d45e4623ba9c6d1e5c: format, lint, GraphQL, and React compiler passed. Broad tests: 334 passed, 12 failed in the untouchedSidebar.browser.test.tsx; logs show invalid/.well-known/t3/environmentresponses and missing expected elements. The parent independently inspected all twelve failures and attributed them to the existing test environment: the New thread button renders disabled, and this change only alters Settle controls. No separate base test rerun was performed. A subsequent focused check passed 10 tests (2696 skipped).AgentOutputGate.ts,RemoteDelegation.ts, andsecretRedaction.ts. Typecheck reports nine errors inSidebar.logic.test.tsandbotOrgTree.test.ts. All seven diagnostic files are untouched and were independently confirmed byte-identical to the pinned base by the parent.--no-verify. Both hooks were skipped because the checks fail on files this change does not touch, which are byte-identical to base39b0a57d62a6. The parent independently verified the diagnostic files and assessed the browser failures as pre-existing test-environment failures. No hook or configuration was changed, and no unrelated diagnostics were repaired.secret_scan: clean, bounded patch scans).Read-only live count, observed November 30, 2026 at 00:08:10 UTC: 125 non-deleted persona threads: 3 roots and 122 children. Including deleted rows: 131 persona rows, including 6 deleted. Only aggregates were recorded; the issue's 462/5 count was not confirmed.
Remaining verification: live refusal/bulk settlement, integrated web/desktop/mobile interaction and UI captures, real child settlement, and provider-session reset have not been exercised.
freshContextwas preserved by source diff only. Remote CI and independent review remain pending with the parent. Draft for that verification; nothing merged, deleted, or rolled out.Model: codex/gpt-6.1-sol
Task: implementation
Agent: standing-root-settle
Harness: Codex in T3 Code