Skip to content

feat(sessions): allow same-channel thread recall without agent-wide visibility - #163267

Open
shannon0430 wants to merge 130 commits into
openclaw:mainfrom
shannon0430:feat/session-channel-visibility
Open

shannon0430 wants to merge 130 commits into
openclaw:mainfrom
shannon0430:feat/session-channel-visibility

Conversation

@shannon0430

@shannon0430 shannon0430 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Closes #163256

What Problem This Solves

Opt-in tools.sessions.visibility: "channel" lets an agent retrieve a sibling thread in the same verified channel. It does not grant permission to send to that thread or change its model or settings. The existing visibility defaults stay in effect.

Which results may be returned?

A sibling result must be readable when the request is admitted. That decision stays fixed through publication and indexed retries, matching OpenClaw's admission rule. This applies to history, list, targeted and indexed session search, and transcript-backed memory and Wiki results. The Gateway still revalidates requester and target incarnation, archive state, projection ownership and abort state before publishing.

  • If both threads belong to the same agent, provider, account, workspace and channel at admission, a normal search may return the matching sibling history.
  • A route or policy change after admission does not revoke the buffered result. The next request observes the new route or policy and excludes the sibling. A reload also cannot expand an already-admitted request.
  • If a requester or target incarnation is replaced, archived or ambiguously rebound before publication, omit its content, snippet and citation. Ordinary memory and Wiki documents remain available.
  • An indexed retry can only narrow the original set of admitted session identities. A new request can independently find newly added, readable threads.

Evidence

Current candidate cd897fcdc2b6d8a8fcae3293fab4d74680eae55d, including upstream main ed76855c83d88a63e46efbfcd9ec67273046e332.

  • 42 focused assertions passed across history, list, targeted search, native memory and direct Wiki disclosure. The regressions cover admission-time route and policy changes, next-request withdrawal, target-incarnation replacement and ambiguous aliases.
  • Core, core-test, extension and extension-test TypeScript checks passed. Focused formatting and type-aware lint, config-doc baselines, line-cap ratchet and diff checks passed.
  • The official 2026.11.12 package created the persisted session state. The earlier candidate Gateway and real memory worker passed the checked-in stable-upgrade proof on that state; the current change affects only post-admission publication semantics and preserves the same retrieval boundary.

Model-chosen retrieval on this revision

A real Qwen3.5-9B (Q4_K_M) used the compiled Gateway with the four session tools directly offered (status, list, history and search), automatic tool choice and runner reasoning off. The requester asked about a previously agreed pickup code. Its question named no tool, session ID or code. Only a synthetic sibling held the right code. A matching thread in another channel held a different code.

The model chose sessions_search directly. The call ID matched the result containing the sibling and code. We read the final answer from the requesting thread with chat.history. It contained the correct code. The other channel's code was absent from every model input and the reply. There were 2 inference requests; Slack delivery was off.

With default tool discovery, the same short question ended after 13 model calls without a verified search result or a correct final answer. With a second natural request asking to look through earlier discussions, the model independently chose sessions_list and sessions_history, found the sibling, and answered with the correct code on the original thread in 5 inferences. The other channel's code never reached the model. This run demonstrates the task outcome through history; the direct-tools run above demonstrates autonomous selection of sessions_search.

Additional upgrade evidence

Both released baselines were tested against candidate 462b973a463e. The results in this paragraph refer to that earlier revision. the v2026.11.10 release, and the npm distribution, 2026.11.11, each passed the checked-in stable-to-candidate Gateway fixture with the real memory worker enabled. The retained model override was distinct from the default, survived Doctor and the attempted sibling mutation, and the preserved history remained searchable. An additional isolated run on the 11.10 state enabled the real memory-wiki plugin and invoked wiki_search through the candidate Gateway (shared backend, memory corpus). It returned the permitted sibling and excluded the other scopes, then excluded the sibling on the next request after reassignment. The search manager was not mocked. The Gateway in these tests is in-process, with public RPC tool calls.

Model-chosen retrieval on the candidate Gateway

Tested 462b973a463e with the compiled Gateway, the native OpenClaw agent runtime and real local inference (llama.cpp b12833). The isolated SQLite state held a requester thread, a sibling that contained a newly generated pickup code, and an otherwise matching thread in a different channel with a different code. The requester’s question was:

What pickup code did we agree on for the Cedarwave rehearsal in the earlier thread in this channel? Reply with the code.

The question named no tool, thread key or code. We sent it through chat.send on the requester session with delivery off. We compared the model's emitted tool-call ID with the tool result in its next inference request, then read the final assistant message from the original thread using chat.history. No model replies or tool calls were supplied by the test.

Model and tool configuration Result
Qwen3-4B-Instruct-2507 (Q4_K_M), tools.toolSearch: false With status, list, history and search all offered and tool choice set to auto, the model chose sessions_search. Its call returned the sibling thread and its code. The model answered with exactly that code on its second inference request. Neither code was in its initial input, and the other channel’s code never reached the model.
Qwen3-4B-Instruct-2507, default tool discovery The model searched the tool catalog five times without dispatching conversation search and did not recover the code.
Qwen3.5-9B (Q4_K_M), default tool discovery, runner reasoning off After using the tool directory and trying status, list and history, the model dispatched sessions_search itself. Only that call returned the pickup code. Its search result contained the sibling code; the original thread received the correct code with extra explanatory text. The different-channel code was absent from all model inputs and the response. An earlier 9B run with the runner’s automatic reasoning and OpenClaw configured for non-thinking output also selected the search and received the correct sibling. It ended with a reasoning-only provider response and no visible answer. The follow-up aligned the runner with the configured mode.

Sanitized per-turn readback (call names are in model-emission order):

{"model":"Qwen3-4B-Instruct-2507, Q4_K_M","toolSurface":"direct","inferenceRequests":2,"calls":["sessions_search"],"siblingAndCodeInLinkedResult":true,"originalThreadAnsweredExactly":true,"differentChannelCodeSeen":false}
{"model":"Qwen3.5-9B, Q4_K_M","toolSurface":"default","inferenceRequests":9,"calls":["tool_search","tool_search","tool_search","tool_search","dispatch_action(session_status)","dispatch_action(sessions_list)","dispatch_action(sessions_history)","dispatch_action(sessions_search)"],"siblingAndCodeInLinkedResult":true,"originalThreadAnsweredExactly":false,"differentChannelCodeSeen":false,"runnerReasoning":"off"}
{"model":"Qwen3-4B-Instruct-2507, Q4_K_M","toolSurface":"default","inferenceRequests":6,"calls":["tool_search","tool_search","tool_search","tool_search","tool_search"],"siblingAndCodeInLinkedResult":false,"originalThreadAnsweredExactly":false,"differentChannelCodeSeen":false}
{"model":"Qwen3.5-9B, Q4_K_M","toolSurface":"default","inferenceRequests":2,"calls":["dispatch_action(sessions_search)"],"siblingAndCodeInLinkedResult":true,"originalThreadAnsweredExactly":false,"differentChannelCodeSeen":false,"runnerReasoning":"auto"}

This exercises local Slack-shaped session routes. Live Slack delivery was disabled.

Decision before merge

The implementation now follows OpenClaw's admission-once rule: route and effective-policy changes apply to the next request, while requester/target incarnation, archive, projection and abort fences remain live through publication. Maintainer adoption of the opt-in channel retrieval product contract remains the only product decision; no authority-lifetime exception is requested.

Exact-head hosted CI and re-review are pending for cd897fcdc2b6d8a8fcae3293fab4d74680eae55d.

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime extensions: memory-core Extension: memory-core agents Agent runtime and tooling size: L labels Oct 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds opt-in same-channel session retrieval across session tools, memory search, and Wiki while denying sibling mutations.

Example: Two Slack threads belong to agent main, account default, workspace t111, and channel c111.

  • Before: Thread 1.001 cannot recall thread 1.002 with self visibility; agent visibility also exposes unrelated channels.
  • After: Channel visibility permits sibling retrieval while excluding channel c222 and denying sibling sends or settings changes.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful behavior has substantial runtime and upgrade evidence, but two concrete defects and an unresolved product decision prevent readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied current-candidate compiled Gateway/model run demonstrates autonomous sibling retrieval and correct original-thread output without exposing the other channel's code; earlier stable-to-candidate runs cover retained SQLite history, model overrides, and real memory retrieval, while focused tests support the latest publication changes.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: An agent serving several Slack channels cannot recall sibling threads without gaining visibility into unrelated channels.
Reason: The bounded retrieval capability has demonstrated value, but introduces a new configuration and permission contract without recorded owner direction.

Merge readiness

⛔ Blocked before merge - 2 items remain

The previous admission-lifetime finding remains unresolved in indexed recall, and the revised SDK behavior conflicts with an existing test assertion. This PR also needs a maintainer decision on adopting the new retrieval scope.

Reviewed head: cd897fcdc2b6d8a8fcae3293fab4d74680eae55d
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should OpenClaw adopt the Gateway-hosted, retrieval-only channel visibility configuration and SDK contract?
  • Recommendation: Sponsor bounded retrieval: Accept the opt-in scope after the listed defects are repaired, preserving defaults, qualified channel identity, sandbox limits, and denied sibling mutations.
  • Why: The requested scope is absent from current main, and the available discussion contains no maintainer acceptance of this permission expansion.

Before merge

  • [P2] Preserve admitted channel access in indexed recall (P2) - The indexed portion of the previous finding remains. After the worker has admitted a sibling in c111, changing its route to c222 or reloading visibility to self makes this publication call run authorize against the new facts and remove the admitted hit. A sharing-revision retry repeats that authorization at line 207 before checking admittedSessionIds, so the identity ceiling does not preserve the original decision. The added route/policy regression explicitly expects this incorrect withdrawal. Carry the original channel decisions through publication and retries, retain identity/archive/abort fences, and align the regression and configuration documentation with the admission-once contract.
  • [P2] Update the SDK assertion for retained admission authority (P2) - For initialVisibility channel, prepare captures an allowed sibling and its unchanged owner bindings. After changing configuration to self, the revised implementation passes channelAccess admitted and therefore returns [true], but this assertion still requires [false]. This leaves the changed SDK suite inconsistent with the repaired production contract. Expect the original admission result here while retaining the next-request assertion that verifies the new policy.

Findings

  • [P2] [P2] Preserve admitted channel access in indexed recall — src/gateway/server-methods/sessions-search-recall.ts:268-273
  • [P2] [P2] Update the SDK assertion for retained admission authority — src/plugin-sdk/memory-core-host-engine-sessions.channel-read.test.ts:93-95
Agent review details

How this fits together

Session tools and memory plugins submit transcript reads to Gateway owners, which apply visibility decisions and return session metadata, history, snippets, and citations.

flowchart LR
  A[Requesting agent] --> B[Session tools]
  A --> C[Memory and Wiki]
  B --> D[Shared visibility policy]
  C --> D
  D --> E[Gateway session owners]
  E --> F[Transcript storage]
  E --> G[Filtered results]
Loading

Technical review

Best possible solution:

Use the existing visibility owners to preserve admitted channel decisions through indexed publication and retries, with consistent tests and an owner-approved additive contract.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes both remaining defects: indexed recall reauthorizes after admission, and the SDK policy-change assertion expects the opposite of the revised implementation; no tests were executed.

Is this the best way to solve the issue?

Extending the shared visibility owner fits the requested boundary, but indexed recall must consume its recorded admission decision and the SDK test must match that lifetime.

Full review comments:

  • [P2] [P2] Preserve admitted channel access in indexed recall — src/gateway/server-methods/sessions-search-recall.ts:268-273
    The indexed portion of the previous finding remains. After the worker has admitted a sibling in c111, changing its route to c222 or reloading visibility to self makes this publication call run authorize against the new facts and remove the admitted hit. A sharing-revision retry repeats that authorization at line 207 before checking admittedSessionIds, so the identity ceiling does not preserve the original decision. The added route/policy regression explicitly expects this incorrect withdrawal. Carry the original channel decisions through publication and retries, retain identity/archive/abort fences, and align the regression and configuration documentation with the admission-once contract.
    Confidence: 0.99
  • [P2] [P2] Update the SDK assertion for retained admission authority — src/plugin-sdk/memory-core-host-engine-sessions.channel-read.test.ts:93-95
    For initialVisibility channel, prepare captures an allowed sibling and its unchanged owner bindings. After changing configuration to self, the revised implementation passes channelAccess admitted and therefore returns [true], but this assertion still requires [false]. This leaves the changed SDK suite inconsistent with the repaired production contract. Expect the original admission result here while retaining the next-request assertion that verifies the new policy.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2486668ca558.

Provenance checked

  • Session and memory visibility keeps the original intent (2c716f5: Filter transcript-backed memory results by session visibility before citations and recall bookkeeping.)
  • Main-session visibility and routing keeps the original intent (7349177: Make main-session same-agent visibility explicit while keeping routing selection, sandbox limits, and incognito denial separate.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +1389, Tests +2249, Docs +34, Generated 0, Other +4. Total +3676 across 52 files. Added test files: 7.

View PR surface stats
Area Files Added Removed Net
Source 30 1651 262 +1389
Tests 17 2255 6 +2249
Docs 2 44 10 +34
Config 0 0 0 0
Generated 1 2 2 0
Other 2 5 1 +4
Total 52 3957 281 +3676

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Configuration expansion 1 new visibility value Adds channel to an existing configuration and protocol enum; existing defaults remain unchanged.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #163256
Summary: The paired issue defines the missing same-channel retrieval capability and this PR supplies its candidate implementation.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp. Replaced prior rating: 🦪 silver shellfish.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • merge-risk: 🚨 compatibility: The PR extends the public session-visibility configuration and SDK contracts, requiring explicit owner acceptance.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp. Replaced prior rating: 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (63 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-26T02:51:09.927Z sha 8796c37 :: needs real behavior proof before merge. :: [P2] [P2] Preserve admitted channel reads after route reassignment
  • reviewed 2026-11-26T03:07:48.562Z sha 8cb971d :: needs real behavior proof before merge. :: [P2] Preserve admitted channel reads after route reassignment
  • reviewed 2026-11-26T14:06:30.444Z sha 82ee386 :: needs real behavior proof before merge. :: [P2] [P2] Preserve admitted channel reads after route reassignment
  • reviewed 2026-11-28T02:41:49.785Z sha daf0df7 :: needs real behavior proof before merge. :: [P2] [P2] Preserve admitted channel recall across revision retries | [P2] [P2] Update the Wiki route test for admitted-read semantics
  • reviewed 2026-11-28T14:20:04.938Z sha 462b973 :: needs real behavior proof before merge. :: [P1] [P1] Preserve channel authority after read admission
  • reviewed 2026-11-28T14:54:34.428Z sha 462b973 :: blocked before merge. :: [P1] [P1] Preserve channel authority after read admission
  • reviewed 2026-11-29T02:34:08.881Z sha 1a2697a :: blocked before merge. :: [P2] [P2] Preserve channel admission across indexed-search retries
  • reviewed 2026-11-29T13:57:27.833Z sha 0272d23 :: blocked before merge. :: [P2] [P2] Preserve admitted channel authority through publication

Reviewed November 29, 2026, 10:06 PM ET / November 30, 2026, 03:06 UTC (Revision 64).

@shannon0430

Copy link
Copy Markdown
Contributor Author

Automated author follow-up checkpoint:

  • Current head: 9192c4b406339941d8e0da1f1ea521eafd729351.
  • Current blocker: merge blocked: CONFLICTING.
  • Labels: docs, gateway, extensions: memory-core, agents, size: L, P2, rating: 🦪 silver shellfish, merge-risk: 🚨 compatibility, merge-risk: 🚨 security-boundary, status: 📣 needs proof.
  • maintainerCanModify: true.

For feat(sessions): allow same-channel thread recall without agent-wide visibility, author-side work remains pending. Follow-up and review requests belong in this pull request. This checkpoint does not modify source code.

@shannon0430

shannon0430 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Refreshed this PR with current main at exact head 9b99db182f547aba65f3edfef8e9fd2d376ae932 and addressed the inventory-to-search authority gap.

Each channel-scoped candidate is now re-authorized immediately before transcript search, with exact session-incarnation fencing when available. Focused suites passed (141 tests), scoped node scripts/check-changed.mjs --base upstream/main --head HEAD passed, and the full build passed. The PR body records the isolated actual-Gateway/SQLite proof, repeated on this exact head, for same-channel allow, other channel/account/workspace denial, and a controlled post-inventory reassignment rejected before sessions.search.

The product/SDK choice about retrieval-only versus also send/status remains for maintainers.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

…l-visibility

# Conflicts:
#	docs/.generated/config-baseline.sha256
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
@shannon0430

Copy link
Copy Markdown
Contributor Author

Addressed the two fresh exact-head security findings and refreshed with current main at ba0fe78.

  • Restored the memory reset-recall privacy ordering.
  • Revalidated requester/target route authority at the final writer-ordered admission boundary before search/history/send/status/patch effects.
  • Added same-session-ID route-reassignment and initial-to-final admission race regressions.
  • Focused suites passed (60 tests, then the final scoped-admission suite 2/2). Changed-file format, ratchets, config/docs, SDK/boundary, and core/extension/test typechecks passed. The remaining full-tree dead-export report names two untouched files and is recorded in the PR body.
  • No live Slack/production Gateway claim is made for this head; the exact proof boundary is in the updated PR body.

The maintainer-owned retrieval-only versus sibling send/status contract remains unchanged.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

…l-visibility

# Conflicts:
#	docs/.generated/config-baseline.sha256
@clawsweeper clawsweeper Bot added the proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. label Oct 12, 2026
@shannon0430

Copy link
Copy Markdown
Contributor Author

Addressed the three fresh authorization findings on exact head 5b3430f9a90934aa5b9f4ba8f07473b5fe343105:

  • Private transcript recall now reloads persisted session metadata after the visibility guard await.
  • Channel-scoped recall now performs its final row admission against the post-await route snapshot.
  • tools.sessions.visibility = "channel" remains retrieval-only: cross-session sessions patch requests are denied before any Gateway mutation. Existing per-target resolution keeps batch denials isolated instead of aborting unrelated targets.

I also merged current upstream main (1b77dd5c655749ca9c4c5ef58feaa6a09a992912) without force-pushing and regenerated the config baseline.

Regression evidence:

  • The new private-metadata and sibling-patch regressions fail on prior head ba0fe780e129dc2a4b3bf4ccc09f07f1a0b37306.
  • Focused exact-head run passed: 63 tests across the session visibility, sessions tool, and scoped-access suites.
  • OPENCLAW_LOCAL_CHECK=1 OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 pnpm check:changed passed on the merged head.
  • Mandatory local autoreview initially caught the stale channel-route snapshot; after repair, the follow-up review was clean with no P0-P2 findings.

The dead-export scan remains excluded from the local changed check because its two failures (GatewayApprovalEventPublisherV2, reconnectGateway) are inherited from main, not introduced here.

I have not relabeled the focused/unit evidence as an actual Gateway or live Slack run. The earlier Gateway proof is still attached to the PR, but a fresh exact-head real-Gateway/stable-upgrade proof remains distinct follow-up evidence if required before merge.

The product-scope choice also remains with maintainers: this patch deliberately authorizes channel-scoped retrieval only, not sibling send/status/write operations.

…dmitted-read-20261128

# Conflicts:
#	docs/.generated/config-baseline.sha256
#	packages/gateway-protocol/src/compiled/protocol.generated/predicates.js
#	src/gateway/server-methods/sessions-search-recall.ts
@shannon0430

Copy link
Copy Markdown
Contributor Author

Resolved the admission-contract blocker and integrated current upstream main (168b469579da) with a normal merge (no force push).

Exact head: daf0df7b5cb0430db8cbee6f0aead8ef284f935b

The shared publication owner now preserves a channel decision made when the read was admitted while still rechecking the requester/target owner and expected session incarnation. The same contract is applied to sessions_history, enriched sessions_list, indexed channel recall, native memory search, and direct Wiki transcript disclosure. A route or policy change affects the next request; an already-admitted read may finish. Failed or not-yet-admitted list reads still use the current route check and fail closed.

Exact-head validation:

  • 34 focused assertions passed across history, list, indexed recall, and the shared memory/Wiki transcript owner
  • full production and test TypeScript checks passed
  • targeted format and lint passed
  • Gateway validator and config documentation generation checks passed
  • git diff --check passed

The separate maintainer decision on adopting the retrieval-only channel contract remains unchanged.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Contributor verification update for daf0df7b5cb0 integrated locally with upstream main a1d3d4a51f85: the generated protocol and configuration conflicts were resolved locally. The wider focused run still has two failures, one each in the memory-core and direct Wiki channel-visibility suites. The last published head is unchanged.

The PR description promises that a withdrawn route fails closed. The latest implementation note describes permission at read admission. Those statements give different answers for an in-flight read. My recommendation is to require current channel access before releasing cross-session content, while continuing reads that remain authorized. The earlier limited test pass does not cover these two failures. This integration is still pending.

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Following the exact-head review of 462b973a463e: Maintainer decision requested. The root admission contract freezes operator authority at request start. It permits identity/revision checks and a named-person writer abort, and says that other changes take effect on the next request. This PR proposes a narrow exception for publishing cross-session read results in the opt-in channel mode. If a sibling was readable at search start but policy or its route has since withdrawn access, should the Gateway withhold that sibling from the current response? The author proposes yes, while returning the other still-readable hits. The tool’s caller grant and mutation permissions do not expand. The current review flags this difference as P1. This proposed exception has no maintainer sign-off.

Both released baselines were tested against this head. GitHub’s latest stable tag, v2026.11.10, and the npm distribution, 2026.11.11, each passed the checked-in stable-to-candidate Gateway fixture with the real memory worker enabled. The retained model override was distinct from the default, survived Doctor and the attempted sibling mutation, and the preserved history remained searchable. An additional isolated run on the 11.10 state enabled the real memory-wiki plugin and invoked wiki_search through the candidate Gateway (shared backend, memory corpus). It returned the permitted sibling and excluded the other scopes, then excluded the sibling after reassignment. The search manager was not mocked. The Gateway in these tests is in-process, with public RPC tool calls. A real model choosing and invoking the tools in an agent turn has not been demonstrated.

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Restored admission-once semantics at exact head 1a2697a0d0d6568869d81ca1a543f1e7cc6bac1e.

What changed:

  • removed the post-admission route/policy reread from history, list, targeted search, indexed recall, native memory and direct Wiki publication;
  • retained exact requester/target session-incarnation, archive and Gateway data fences;
  • corrected the direct Wiki regression so both route and policy changes preserve the admitted read and apply to the next request;
  • updated the documentation and PR body; no admission exception is requested.

Exact-head verification:

  • 89 focused assertions passed across history, list, targeted/indexed search, SDK memory, native memory and direct Wiki consumers;
  • full production and test TypeScript checks passed;
  • focused formatting and type-aware lint, Gateway validators, config docs, Markdown lint and diff checks passed;
  • no local full build is claimed; exact-head hosted CI remains subject to upstream workflow approval.

The earlier candidate-bound model/stable-upgrade evidence remains scoped to sibling discovery, persistence and retrieval; the changed admission/publication boundary has fresh exact-head focused proof above.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@shannon0430

Copy link
Copy Markdown
Contributor Author

Addressed the current P2 at cd897fcdc2b6d8a8fcae3293fab4d74680eae55d.

The shared history/list/search/memory/Wiki publication owner now carries the admission-time channel decision through publication and indexed retries. Route or policy changes affect the next request; requester/target incarnation, archive state, projection replacement, abort handling, and the admitted identity ceiling remain live fences. Current main ed76855c83d88a63e46efbfcd9ec67273046e332 was merged normally, and the PR body now states that contract.

Validation:

  • 42 focused assertions passed across sessions_history, sessions_list, targeted sessions_search, memory-core, and direct Wiki channel disclosure.
  • Core, core-test, extension, and extension-test TypeScript checks passed.
  • Focused formatting and type-aware lint, config-doc baselines, line-cap ratchet, and diff checks passed.
  • The local independent-review helper could not start its reviewer because its macOS private-temp isolation gate rejected the available temporary directory; no clean local review is claimed. Exact-head hosted review and CI remain required.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation extensions: memory-core Extension: memory-core extensions: memory-wiki gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: conversation-scoped session visibility for same-channel thread recall

3 participants