Repository navigation
fix: allow authorized WebUI and channel guidance in the same session - #188029
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
0db650a to
93b0bdf
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR lets authorized WebUI and channel guidance join the same active session while retaining the execution’s original requester and permissions. Example: Alice starts work in the WebUI, then sends a correction through her linked Telegram identity into session agent:main:main.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: the accepted continuation change remains absent from main, all three previous findings are addressed, and no new actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway authentication and channel ingress supply live identity and owner capabilities to the session continuation coordinator, which admits guidance to the captured backend or retains separate-turn custody. flowchart TD
A[WebUI authentication] --> C[Host identity and owner capabilities]
B[Channel admission] --> C
C --> D[Session continuation coordinator]
D --> E[Final authority and compatibility checks]
E --> F[Captured active backend]
D --> G[Requester owned followup queue]
Technical reviewBest possible solution: Use the existing continuation and final-admission owners to admit authorized guidance while preserving incumbent authority and separate question, approval, and followup contracts. Do we have a high-confidence way to reproduce the issue? Current-main source shows transport-principal mismatches and same-conversation restrictions that prevent the requested continuation; no target code was executed during this read-only review. Is this the best way to solve the issue? The change appropriately extends existing admission owners and narrowly broadens the documented continuation contract under accepted maintainer direction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0f359b36dc48. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +369, Tests +870, Docs +25, Generated 0, Other +3. Total +1267 across 39 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 29, 2026, 11:09 PM ET / October 30, 2026, 03:09 UTC (Revision 2). |
|
@clawsweeper re-review Updated head: The verified-profile classifier now requires the existing human-ingress fact on both sides. Both linked-bot negative controls fail on the predecessor and pass with the fix, before backend delivery; the full human/fallback/Gateway boundary suites pass. The audit and iMessage fixtures, affected test types, and private-symbol projection inventory are repaired. Local repair-range ClawSweeper found no correctness/security findings. All branch-related CI failures are green. The sole remaining test failure, restart-resume's initial |
|
🦞👀 Re-review progress:
|
397b09e to
5ed0c71
Compare
|
ClawSweeper status: applying reviewed decision. I am applying the reviewed decision for this pull request: fix: allow authorized WebUI and channel guidance in the same session This is item 1/1 in the current shard. Shard 1/1. This transient lease prevents a newer review from overlapping label, comment, or close mutations. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…penclaw#188029) * fix: recognize linked requesters across steering surfaces * fix: preserve question authority during linked steering * test: preserve question projection receiver * fix: allow owner-authorized WebUI channel continuation * fix: retain incumbent task settings during continuation * test: restore complete steering fixture defaults * fix: retain admitted channel owner and queued callback authority * fix(mattermost): align dispatch with admitted context contract * fix(feishu): retain DM host admission in native chat * test: record cross-surface continuation regression budget * fix(sessions): exclude linked bots from human continuation
…188029) * fix: recognize linked requesters across steering surfaces * fix: preserve question authority during linked steering * test: preserve question projection receiver * fix: allow owner-authorized WebUI channel continuation * fix: retain incumbent task settings during continuation * test: restore complete steering fixture defaults * fix: retain admitted channel owner and queued callback authority * fix(mattermost): align dispatch with admitted context contract * fix(feishu): retain DM host admission in native chat * test: record cross-surface continuation regression budget * fix(sessions): exclude linked bots from human continuation (cherry picked from commit 45893d3) Co-authored-by: RomneyDa <[email protected]>
What Problem This Solves
Fixes corrections being treated as another person's steering when a user moves between the WebUI and a channel during an active turn in the same authorized session.
User Impact
Verified personal profiles with administrator-attested channel links can continue their active work across transports. Shared-token/password WebUI users can also continue work with a channel participant in that exact session: when collaborative steering is disabled, the WebUI side needs current administrative authority and the channel side needs current owner authority. Pairing or permission to chat alone is insufficient.
Guidance uses the incumbent execution's unchanged requester and prepared permissions, including permissions unavailable to the incoming participant. This bounded Shared Owner exception when collaboration is disabled is an explicitly accepted product decision. Actual message authors remain separately recorded; Shared Owner does not identify which human used a shared credential. New executions retain the actual submitter and resolve current applicable policy. No configuration options, defaults, storage, or migration change.
Why This Change Was Made
Extend the existing continuation and final-admission owners rather than equating transport identities. Host-held authentication distinguishes Shared Owner access from a profile label, and existing channel-owner authority supplies the bounded exception. Revocation, session access, cancellation, exact execution/backend ownership, execution settings, and final submission checks remain enforced. Different personal administrators gain no general owner-to-owner exception.
Authorized continuation retains the incumbent task-suggestion tools and delivery setting. Questions, approvals, explicit cancellation, queue ordering, fallback custody, and cross-session
sessions_send(mode="steer")keep their separate contracts. Included-channel repairs preserve admitted asserted-owner authority, Mattermost's host admission context, queued plugin callback lifetime, and Feishu's actual DM conversation ID; known bot inputs cannot use the human exception.Evidence
Candidate:
5ed0c71b220c05747dccc161e1d2be76ae074fb3; merge base:faa38148f2c5ba3fe8f69bd3ae0150c87edf7758. Rebased onto the latest observedorigin/mainat the maintainer's request. The sole conflict was the generated configuration-doc hashes; regenerated them from combined source and passed the generator check. Range-diff confirms every production/test change is patch-identical to the reviewed predecessor; LoC churn is unchanged. Current-head CI has settled; all branch-related checks pass. The sole inherited restart failure and downstream gate remain red as detailed below.test/gateway-restart-resume.e2e.test.ts, withSessionEntryChangedDuringReadErrorbefore initialFINISHED_0_background, before restart or continuation is exercised. This matches the independent base reproduction linked below. The failing test/support and session-storage/read, embedded-execution, and sandbox-status sources are Git-object identical across that executed baseline, currentfaa38148base, and actual tested merged4e30d17; prior baseline proof is reused with that source qualification. The automatic classifier says unknown because no matching main job; it is not cited as a main matching-signature verdict. All PR checks are terminal: 76 success, 50 skipped, 1 neutral; three red contexts are this shard and duplicated downstream gate contexts. Landing uses the explicitly authorized inherited-failure route, preserving red CI rather than claiming all CI green.397b09e4settled: all branch-related repair lanes, production/test types, lint, build, docs, security, and continuation consumers pass. The sole failing test istest/gateway-restart-resume.e2e.test.ts, with aggregate CI-gate failures reflecting it. This is pre-existing: independent candidate and exact-base5f3afbebuilds under the same Node/pinned Bun versions both fail before initial background completion withSessionEntryChangedDuringReadErrorand missingFINISHED_0_background; all nine sibling Gateway lifecycle cases pass on both. Base reproduction, candidate reproduction. The second checkout's base install in the candidate run exhausted disk quota; the separate base receipt supplies actual baseline execution. This independent defect is not repaired or masked here.0db650ae; these counts are not added together. Targeted production/test typechecks, lint, format, and diff checks passed in their recorded scopes.0db650ae, with earlier source-scoped reuse; it is not fresh execution of the rebased candidate. Exact-head PR CI is the current integration gate.0db650aecandidate. Those task-owned Gateways, public ingress routes, fixtures, and AWS leases were removed or released.1157b711..0db650ae(301.831s): complete, no actionable correctness/security findings, no low-value tests identified. Independent implementation/repair reviews are separately source-scoped. The local review asks for an owner decision on the bounded strict-mode Shared Owner exception; that decision is already explicitly accepted. A second full local review of5f3afbe..93b0bdffcompleted in 215.438s with no code findings. It requested final-boundary proof: the existing real Telegram strict non-owner run refused the input, left it unconsumed through final idle, and let the incumbent finish its harmless patch. Owner/admin revocation before submission is covered by existing production-owner boundary tests asserting zero backend delivery; it is not a live channel revocation demonstration. The initial hosted review identified the bot defect and two of the repaired fixtures; a complete local ClawSweeper review of93b0bdff..397b09e4finished in 158.523s with no correctness/security findings or low-value tests. That source-only review did not receive execution receipts; the red/green AWS results above supply them, alongside the previously scoped live human proof and final-boundary revocation tests. Settled hosted ClawSweeper review covers pre-rebase head397b09e4f1126a320188dc15d5ede5ce5b743535: platinum for Overall readiness, Proof confidence, and Patch quality; no actionable findings and no Before merge items. Ready for maintainer review.Limitations: no fresh live owner-revocation-during-preparation run is claimed. This is bounded continuation proof, not a fresh exhaustive backend/restart/approval/cancellation matrix. The Matrix forward run omitted its patch call; earlier matching-source patch proof is reused explicitly. Lark's earlier reverse run is reused. A preexisting Lark
/followupimmediate acknowledgment defect was isolated and left outside this PR. Transcript persistence or a provider send receipt alone is never counted as model consumption or steering acceptance.Measured costs and LoC churn
Whole change against the merge base: 39 files, +1,443/-176 = 1,619 changed lines.
The smallest coherent stage is the continuation rule plus its real channel admission consumers. The included producer/custody repairs were required by the live flow; separating them would leave requested channels broken. Tests extend existing owner suites for distinct authority, lifetime, question, and transport boundaries. Main's current budget policy requires a separate allocation for this change's exact 870 net test lines; the record names those regressions and the shared scalar is unchanged. No new manager, persistent state, or per-tool check was added.
CI repair measurements (Linux AWS, Node 24.22.1): initial five files 47.48/41.36/139.65/60.61/62.88s; bot regression red 50.74s, full join/fallback/Gateway green 46.97/65.56/60.47s. Cold transform dominates wall time; the suites retain real policy/admission and consumer contracts. Initial types 13.82/15.43/14.93s, lint 201.48s; repair production/test types 16.60/15.01/15.58s, lint 165.81s; formatting 0.13s each. End-to-end remote runs 937.337s and 722.323s, including install/transfer. CI reported case-time sums for CLI/admission/operator-authority/Gateway/iMessage/join/fallback files are 0.011/0.059/32.878/3.392/0.878/4.065/1.812s, excluding hooks, transforms and job overhead. The operator suite exercises real configured/linked owner and grant/revocation boundaries; helper-only checks cannot replace it. The main CI run elapsed 562s. Paired restart attribution used candidate build116.85s + replay457.97s and independent base install210.18s + build117.28s + replay460.09s; both tests failed as recorded, and wrapper success on the base means evidence capture succeeded. Dollar costs are unavailable.
Measured final Feishu checks: regression red 65.893s, 62-case green 77.976s, production types 14.244s, test types 6.831s, lint 59.214s, format 0.218s. Earlier checks and builds are additional. The stopped AWS setup ran no tests and its lease is independently confirmed released; its dollar cost was not recorded.
The rendered continuation phase recorded 85 model requests, 79 usage records, at least 583,740 input and 7,925 output tokens (six usages unavailable). The separate Google Chat/Teams phase recorded 27 requests and 27 usage records, 174,610 input (89,600 cached) and 3,142 output tokens, including interrupted attempts; build 644.087s, successful Google forward run 211.383s, Teams pair 305.455s. These are scoped measurements, not a campaign total or a performance benchmark; billing dollars are unavailable.