Repository navigation
fix(slack): stop untagged bot loops with opt-in explicit mentions - #177555
shannon0430 wants to merge 82 commits into
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. |
|
Codex review: needs real behavior proof before merge. What this changesAdds an optional Slack setting that rejects implicit bot mentions while preserving human thread follow-ups and existing defaults. Example: In channel C123, allowBots is "mentions" and requireExplicitBotMention is true.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this PR provides a distinct, compatibility-preserving solution to a source-supported Slack problem, and no introduced correctness defect was found. Reviewed head: Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherSlack events pass through sender authorization and message preparation before agent dispatch; this change narrows bot admission at the existing mention gate. flowchart LR
A[Slack event] --> B[Sender and channel authorization]
B --> C[Explicit and implicit mention facts]
C --> D[Slack bot admission gate]
D --> E[Rejected event]
D --> F[Agent dispatch]
F --> G[Slack reply]
Technical reviewBest possible solution: Approve a Slack-owned compatibility contract, then complete transport and upgrade acceptance for the existing admission-gate implementation. Do we have a high-confidence way to reproduce the issue? Current main produces both implicit thread facts and admits them through effectiveWasMentioned for authorized bot senders; recorded synthetic Gateway output corroborates the path, but this review ran no target code. Is this the best way to solve the issue? The opt-in targets the existing owner and preserves shipped defaults; existing global implicit-mention controls cannot independently preserve human follow-ups while rejecting implicit bot activation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 153168fd09e4. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +63, Tests +538, Docs +2, Generated 0, Other +5. Total +608 across 16 files. Added test files: 1. View PR surface stats
Preflight sourceSource 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
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 (31 earlier review cycles; latest 8 shown)
Reviewed November 29, 2026, 8:38 AM ET / 13:38 UTC (Revision 32). |
|
The implementation is now integrated with current main, and the committed isolated actual-Gateway scenario proves final effects: both authorized implicit bot kinds produce a correlated native rejection with no model request or Slack send; explicit bot, human implicit, and legacy controls produce four provider requests and four independently read-back replies. All fixtures are synthetic; no live Slack/provider claim is made. The PR body contains the candidate, command, validation, and remaining contract decision. The maintained live QA doctor still reaches After Slack-owner direction on the opt-in, an authorized upstream QA operator can run: OPENCLAW_ENABLE_PRIVATE_QA_CLI=1 pnpm openclaw qa slack --scenario-file /absolute/path/slack-explicit-bot-proof.yaml --credential-source convex --credential-role ci --provider-mode mock-openai --output-dir .artifacts/qa-e2e/slack-explicit-bot-proofThe standard lane owns its isolated Gateway, lease, exact-owned messages, stored readback, and cleanup. It does not use employee accounts or a new downstream patch. The isolated native transport/received-before-policy-publication final effects and standard published-package upgrade below are completed independently of Convex. Actual live Slack acceptance alone remains unexecuted. An authorized upstream QA operator should run the same maintained recipe on this candidate using existing Foundation project access, or grant the existing project scope to the configured contributor QA actor before that same run. There is no remaining contributor implementation defect from the current review; Slack-owner opt-in acceptance and live QA entitlement/execution remain upstream actions. Current-head hosted CI completed SUCCESS with no nonpassing jobs: run 39427790673. Inspectable value-free runtime verdict (the same candidate; additional isolated prebuilt-Gateway replay): {
"sourceHead": "41974794c4ab5eb235d153d7926de7dedba834f6",
"gatewayProcess": true,
"liveSlack": false,
"receivedBeforePolicyPublication": [
{
"kind": "reply_to_bot",
"nativeHttpAccepted": true,
"acceptedMs": 16,
"noProviderOrSendEffectsBeforePublication": true,
"activeConfigPublicationComplete": true,
"publishedMs": 394,
"correlatedMentionGateRejection": true,
"rejectedMs": 5217,
"providerRequestDelta": 0,
"slackPostDelta": 0
},
{
"kind": "bot_thread_participant",
"nativeHttpAccepted": true,
"acceptedMs": 25,
"noProviderOrSendEffectsBeforePublication": true,
"activeConfigPublicationComplete": true,
"publishedMs": 390,
"correlatedMentionGateRejection": true,
"rejectedMs": 5241,
"providerRequestDelta": 0,
"slackPostDelta": 0
}
],
"rejectedImplicitKinds": [
"reply_to_bot",
"bot_thread_participant"
],
"positiveReplies": 4,
"storedReplyReadback": true,
"modelRequestCursor": 4,
"cleanupComplete": true,
"passed": true
}Each additional bot input is signed and HTTP-acknowledged under the applied legacy policy, remains without provider/send effects during the initial 200ms, and is rejected only after strict policy publication is independently read back ( Standard published-package upgrade acceptance passed on this exact candidate, independently of live Slack QA access. The maintained The base recipe preserves representative existing configuration and old Slack session metadata. It does not seed an old Slack channel connection/configuration; that boundary is not claimed. Legacy omitted/false bot-policy compatibility is separately covered by the owning schema/handler regressions and actual Gateway final-effect controls above. Package version alone is not the identity: this candidate has the same {
"sourceHead": "41974794c4ab5eb235d153d7926de7dedba834f6",
"baseline": "[email protected]",
"scenario": "base",
"candidatePackageVersion": "2026.10.5",
"candidateTarballSha256": "8a8f4ee103e923b7ca3f4b6399dc8e101f880897332d4ef245da3950a9dd6d21",
"status": "passed",
"passedPhases": 49,
"failedPhases": 0,
"seconds": 1475.52,
"configAndStateSurvived": true,
"legacySlackSessionMetadataSurvived": true,
"oldSlackChannelConfigSeeded": false,
"timings": {
"startupSeconds": 156,
"updateRestartSeconds": null,
"idempotenceSeconds": null,
"idempotenceBudgetSeconds": null,
"healthzSeconds": 1,
"readyzSeconds": 1,
"statusSeconds": 7
},
"minimalEnvironment": true,
"productionDelivery": false,
"ownedContainerRemoved": true,
"ownedWrapperStopped": true
}Standard replay from this candidate (Docker and the normal build prerequisites): OPENCLAW_UPGRADE_SURVIVOR_PUBLISHED_BASELINE=1 \
[email protected] \
OPENCLAW_UPGRADE_SURVIVOR_SCENARIO=base \
OPENCLAW_UPGRADE_SURVIVOR_CANDIDATE=current \
bash scripts/e2e/upgrade-survivor-docker.shSupplemental received-before-policy-publication replayApply this proof-only patch to the committed Gateway test at this candidate, then run the existing opt-in command above. It changes no production source or published candidate. The actual captured verdict is above. --- a/test/e2e/qa-lab/runtime/slack-strict-bot-gateway.e2e.test.ts
+++ b/test/e2e/qa-lab/runtime/slack-strict-bot-gateway.e2e.test.ts
@@ -258,6 +258,68 @@
expect(patched.hash).toEqual(expect.any(String));
await deliver("QA-STRICT-LEGACY", { bot: true, threadTs, parent: HUMAN });
await replied("QA-STRICT-LEGACY");
+ const publish = async (strict: boolean) => {
+ const current = asNonArrayRecord(await gateway.call("config.get", {}));
+ const result = asNonArrayRecord(await gateway.call("config.patch", {
+ baseHash: current.hash,
+ raw: JSON.stringify({
+ messages: { inbound: { debounceMs: 5000 } },
+ channels: { slack: { requireExplicitBotMention: strict } },
+ }),
+ restartDelayMs: 0,
+ }));
+ await until(async () => {
+ const readback = asNonArrayRecord(await gateway.call("config.get", {}));
+ return readback.hash === result.hash &&
+ typeof readback.configRevisionHash === "string" &&
+ readback.appliedConfigHash === readback.configRevisionHash
+ ? true : undefined;
+ }, "active config publication");
+ };
+ const queueProof: Array<Record<string, unknown>> = [];
+ for (const kind of ["reply_to_bot", "bot_thread_participant"]) {
+ await publish(false);
+ const before = Number(await cursor());
+ const beforePosts = posts.length;
+ const mark = gateway.markLogs();
+ const started = Date.now();
+ const blocked = await deliver(`QA-QUEUED-BLOCKED-${kind}`, {
+ bot: true, threadTs,
+ parent: kind === "reply_to_bot" ? botUserId : HUMAN,
+ });
+ const acceptedMs = Date.now() - started;
+ await sleep(200);
+ expect(Number(await cursor())).toBe(before);
+ expect(posts.length).toBe(beforePosts);
+ await publish(true);
+ const publishedMs = Date.now() - started;
+ expect(publishedMs).toBeLessThan(5000);
+ await until(async () => {
+ const tail = asNonArrayRecord(await gateway.call("logs.tail", {
+ limit: 300, maxBytes: 256000,
+ }));
+ const lines = [
+ ...gateway.readLogsSince(mark).split("\n"),
+ ...(Array.isArray(tail.lines) ? tail.lines.filter(
+ (line): line is string => typeof line === "string",
+ ) : []),
+ ];
+ return lines.some((line) => line.includes("bot-missing-mention") &&
+ line.includes(String(blocked.ts))) ? true : undefined;
+ }, `received-before-policy-publication ${kind} rejection`);
+ const rejectedMs = Date.now() - started;
+ expect(rejectedMs).toBeGreaterThanOrEqual(5000);
+ expect(Number(await cursor())).toBe(before);
+ expect(posts.length).toBe(beforePosts);
+ queueProof.push({
+ kind, nativeHttpAccepted: true, acceptedMs,
+ noProviderOrSendEffectsBeforePublication: true,
+ activeConfigPublicationComplete: true, publishedMs,
+ correlatedMentionGateRejection: true, rejectedMs,
+ providerRequestDelta: 0, slackPostDelta: 0,
+ });
+ }
+ evidence.receivedBeforePolicyPublication = queueProof;
const replies = asNonArrayRecord(
await (
await fetch(`${manifest.endpoints.apiRoot}conversations.replies`, {Corrected native QA recipetitle: Slack strict bot admission preserves explicit and legacy handoffs
scenario:
id: slack-explicit-bot-proof
surface: channels
execution:
kind: flow
channel: slack
timeoutMs: 300000
retryCount: 0
suiteIsolation: isolated
isolationReason: Owns leased bot messages and an isolated Gateway.
config:
agentE2e: true
flow:
steps:
- name: strict rejection and explicit and legacy positive controls
actions:
- set: proof
value:
expr: |
await (async () => {
const qa = slackScenarioContext;
const driver = await qa.context.driverClient.auth.test();
if (typeof driver.user_id !== "string") throw new Error("Missing leased driver identity");
const marker = `QA-SLACK-STRICT-${randomUUID()}`;
const configure = async (strict) => {
await patchConfig({
env,
patch: {
channels: {
slack: {
accounts: {
[qa.sutAccountId]: {
allowBots: "mentions",
implicitMentions: { replyToBot: true, threadParticipation: true },
replyToMode: "all",
streaming: { mode: "off" },
channels: {
[qa.channelId]: {
allowBots: "mentions",
requireMention: true,
users: [driver.user_id],
requireExplicitBotMention: strict
}
}
}
}
}
}
}
});
await waitForGatewayHealthy(env, 60000);
await waitForTransportReady(env, 60000);
};
const request = (suffix) => `Reply exactly: ${marker}-${suffix}`;
await configure(true);
const root = await channelE2e.send({ text: request("SEED") });
await channelE2e.waitForReply({
afterMessageId: root.id, threadId: root.id,
textIncludes: `${marker}-SEED`, timeoutMs: 60000
});
const before = await env.gateway.call("logs.tail", { limit: 1, maxBytes: 32000 });
if (!Number.isSafeInteger(before.cursor)) throw new Error("Missing log cursor");
const blocked = await channelE2e.send({
text: request("BLOCKED"), mention: false, threadId: root.id
});
let rejected = false;
const deadline = Date.now() + 30000;
while (!rejected && Date.now() < deadline) {
const tail = await env.gateway.call("logs.tail", {
cursor: before.cursor, limit: 200, maxBytes: 256000
});
rejected = (tail.lines ?? []).some(line =>
["Slack inbound event rejected during preparation", "bot-missing-mention",
qa.channelId, blocked.id].every(field => line.includes(field))
);
if (!rejected) await sleep(500);
}
if (!rejected) throw new Error("No correlated native bot-missing-mention rejection");
const assertBlocked = async () => {
const messages = await channelE2e.read({ threadId: root.id, after: blocked.id });
if (messages.some(message => message.actor === "sut" &&
message.text.includes(`${marker}-BLOCKED`))) {
throw new Error("Untagged bot escaped the strict gate");
}
};
await assertBlocked();
const explicit = await channelE2e.send({ text: request("EXPLICIT"), threadId: root.id });
await channelE2e.waitForReply({
afterMessageId: explicit.id, threadId: root.id,
textIncludes: `${marker}-EXPLICIT`, timeoutMs: 60000
});
await assertBlocked();
await configure(false);
const legacy = await channelE2e.send({
text: request("LEGACY"), mention: false, threadId: root.id
});
await channelE2e.waitForReply({
afterMessageId: legacy.id, threadId: root.id,
textIncludes: `${marker}-LEGACY`, timeoutMs: 60000
});
await assertBlocked();
return {
nativeStrictRejection: true, strictExplicitAccepted: true,
legacyUntaggedAccepted: true,
transport: "live Slack and isolated Gateway", model: "mock-openai"
};
})()
detailsExpr: JSON.stringify(proof)
|
|
Current candidate The body and existing native-QA handoff were rewritten around this evidence. Live Slack remains unavailable at upstream broker PROJECT_ACCESS before lease acquisition; no access workaround or employee action was attempted. Public opt-in acceptance remains a Slack-owner decision. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
858a67a to
4197479
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Integrated pinned official Exact head: Focused exact-head proof:
This does not overstate live Slack coverage; the previously recorded QA-project authorization dependency remains separate. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
# Conflicts: # docs/.generated/config-baseline.sha256
|
Refreshed this branch onto current upstream The nine-commit upstream delta only changes release/package/session-share and generated metadata, not this PR's Slack bot opt-in path. On the new head, @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Validated exact head
This does not claim a new live Slack QA execution; the recorded QA-project authorization dependency and Slack-owner opt-in decision remain unchanged. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…daily-pr177555-20261125 # Conflicts: # docs/.generated/config-baseline.sha256
|
Resolved the current merge conflict by normally merging pinned upstream Exact head: Current-head validation:
I also updated the PR body with the existing-configuration compatibility contract and proof: the optional field adds no stored-data migration, undefined/false preserve legacy implicit-bot behavior, and the packaged-Gateway proof reads back the legacy stored reply after disabling strict mode. The separate live Slack QA authorization dependency and maintainer opt-in decision remain open. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Related: #160750, #160752.
What Problem This Solves
Operators cannot reject untagged bot thread replies without also making humans repeat mentions or changing existing bot handoffs on upgrade.
User Impact
Slack operators can opt into
requireExplicitBotMention: truealongsideallowBots: "mentions"at the existing root/account/channel scopes. Strict mode rejects untagged bots that otherwise qualify through reply-to-bot or thread participation. Human follow-ups, explicit bot mentions, DMs, authorized commands, configured mention patterns, andallowBots: true/falseretain their behavior.Omitted or false preserves shipped implicit bot handoffs. This is an alternative to #160752's default change, not a downstream adoption decision. Slack-owner acceptance of the new optional public setting remains required.
Why This Change Was Made
The existing bot-admission gate owns this choice. The unchanged mention classifier moves to the existing thread-mention sibling, keeping the oversized prepare module smaller. Existing no-restart reload metadata covers all four projections. No new admission mechanism, retroactive revocation, persistence schema, migration, private runtime patch, or distribution is added.
Integrated fixed official main
228b5e9e7df8b978a85a0f3f3aa249b705f383aawith an ordinary merge to repair actual preparation-owner and generated-output conflicts. Main retains a singleprepareSlackMessageowner; retired helper frames are not restored. Existing mention decision and unchanged source classification live together in the existing mention sibling to satisfy the shrink-only line-cap. Current canonical generators own the metadata/baselines. The schema regression uses main's directsafeParseassertions after its former test helpers were removed; all validity/default/type assertions remain.Adoption decision and fresh distribution evidence — 2026-11-02
The Slack-owner decision remains whether to expose the compatibility-preserving
requireExplicitBotMentionopt-in. The current submission section below owns the latest head and CI status; maintainer edits remain enabled. Owner acceptance is still outstanding.The historical advisory review reports no actionable findings and sufficient recorded isolated-Gateway output, and recommends accepting the opt-in. It does not record Slack-owner acceptance. Its two outstanding checklist entries both concern that same public-contract decision. The review is scoped to
39d01116dd2d5e01fa7f8ab50dbb1e44613a0e9a; the earlier12-input comparison was bound to8fa0cc0d85711ab2ee19e488ec9e325309a476c2. That earlier integration retained11 byte-identical inputs; access-control documentation only adds accepted official Slack read-bound guidance. The strict opt-in authored delta and committed Gateway scenario are retained. The older proof retains its original head; that earlier head's CI supported its integration. No fresh live Slack run or current employee acceptance is claimed.Recorded official distribution evidence confirms that the need remains after the implicit-thread silence repair: unmodified Core/Slack 2026.10.10-beta.5, build
7e15622f37bd0ced194a3b0fccacb4ad6bc78d85, still admits untagged bot messages through bothbot_thread_participantandreply_to_botin the isolated distributed-function/compiled-gate fixture. The same 20-case matrix passes 17, with these two strict-admission requirements and the separate optional-completion policy remaining. Package integrity and the scope are recorded in the release follow-up. This is not a new live Slack incident or a claim that existing documented defaults were silently changed.Decision requested from the Slack owner: accept or reject this optional public setting at the existing root/account/channel scopes. Omitted/false keeps existing implicit bot handoffs. With
allowBots: "mentions"and the opt-in enabled, untagged bot activation is rejected while explicit bot requests, implicit human follow-ups, DMs, authorized commands, and existing sender restrictions retain their controls. This is the compatibility-preserving alternative to #160752's default change; no new default change is requested here.This PR decides admission, not whether an already admitted explicit bot notification may finish empty. That latter product-policy question remains separate in #186514. A scoped acceptance/rejection of this opt-in is the missing adoption decision; existing code/proof work is not being represented as owner approval. No new review command or redundant behavior replay was added for this mechanical integration.
2026-11-03: the same admission requirement remains in stable2026.10.10
Official npm/latest Core/Slack 2026.10.10, distributed Core build
7dc3350cb9f08fcf9a0af5c4845a20d5b2f1a8be, was checked with the unchanged20-case synthetic matrix: 17PASS / 3FAIL. The two untagged-bot admission cases (bot_thread_participantandreply_to_bot) still admit the bot under existing mentions-only behavior. The two implicit-thread optional/silent conditions from merged #164877 nowPASS in stable; the third remaining failure concerns #186514's separate explicit-bot completion policy.The stable distribution follow-up fixes the verified immutable Core/Slack hashes and execution scope. This is actual distributed Core-function / verbatim compiled Slack-gate evidence, with unchanged cases/assertions and shipped package bytes. The existing native Gateway proof retains its original binding. This paragraph updates distribution evidence only; the current PR head and compatible opt-in proposal remain unchanged. Slack-owner acceptance or rejection remains unrecorded.
Evidence
Current upstream integration
Merged upstream main
8802e8885de1intofb0c5bb6bd11. Regenerated the configuration documentation checksum. The bundled channel metadata check and the Slack schema, bot-thread admission and Gateway reload suites passed. Hosted CI awaits maintainer approval (0 jobs). The released stable 2026.11.12 CLI wrote and validated a saved channel allowlist, sender list and mentions-only bot policy. The candidate loaded those bytes with its Slack schema and message preparation. With the new option omitted, an implicit bot reply, an explicit bot mention and the human follow-up were all accepted. With the option enabled, only the implicit bot reply was dropped. The saved file was unchanged and all events were synthetic. The Slack owner’s decision and live Slack acceptance are pending.Candidate:
d7b47f3a7b33d16786c766b2768df0e0f92505d4; ordinary merge parents are the previous accepted head41974794c4ab5eb235d153d7926de7dedba834f6and fixed official main228b5e9e7df8b978a85a0f3f3aa249b705f383aa.openclaw/ci-gatepass. All 117 checks are terminal with zero failures. Previous-head native Gateway/package evidence below remains explicitly bound to that older head. No new configuration surface beyond this PR's existing opt-in proposal, employee runtime change, or private package distribution is introduced. External live-QA entitlement and Slack-owner acceptance below remain upstream prerequisites.Current mechanical integration (2026-11-18)
Exact head:
23a92f9b11de1f8b91a660ce1c0841764ec1b9d8. Normally merged pinned officialmainf7c6804343843245d8ab6f37a91675ecc257a7b9and regenerated the conflicting config counts/hash with their canonical owner. The conflict resolution adds no routing or authentication behavior. All 45 focused Slack schema, reload, and bot-thread assertions pass;config:docs:check, authored-diff whitespace and publication secret gates pass.The existing live-Slack proof limit and Slack-owner adoption decision remain open. Previous hosted review remains bound to its reviewed head; no redundant mechanical re-review, repeated adoption request, channel delivery, or maintainer workflow approval was performed. Current-head native CI is separate.
Earlier accepted evidence (previous head)
Candidate: 4197479. Current-head hosted CI completed SUCCESS with no nonpassing jobs: run 39427790673.
Inspectable value-free runtime verdict (the same candidate; additional isolated prebuilt-Gateway replay):
{ "sourceHead": "41974794c4ab5eb235d153d7926de7dedba834f6", "gatewayProcess": true, "liveSlack": false, "receivedBeforePolicyPublication": [ { "kind": "reply_to_bot", "nativeHttpAccepted": true, "acceptedMs": 16, "noProviderOrSendEffectsBeforePublication": true, "activeConfigPublicationComplete": true, "publishedMs": 394, "correlatedMentionGateRejection": true, "rejectedMs": 5217, "providerRequestDelta": 0, "slackPostDelta": 0 }, { "kind": "bot_thread_participant", "nativeHttpAccepted": true, "acceptedMs": 25, "noProviderOrSendEffectsBeforePublication": true, "activeConfigPublicationComplete": true, "publishedMs": 390, "correlatedMentionGateRejection": true, "rejectedMs": 5241, "providerRequestDelta": 0, "slackPostDelta": 0 } ], "rejectedImplicitKinds": [ "reply_to_bot", "bot_thread_participant" ], "positiveReplies": 4, "storedReplyReadback": true, "modelRequestCursor": 4, "cleanupComplete": true, "passed": true }Each additional bot input is signed and HTTP-acknowledged under the applied legacy policy, remains without provider/send effects during the initial 200ms, and is rejected only after strict policy publication is independently read back (
hashand applied normalized revision agree). The configured debounce is 5000ms; native correlation rejects at 5217ms/5241ms. Each final provider/send delta is zero. This is received-before-publication final-effect proof; exact registration within the debounce queue is proved by the existing two fake-clock handler cases, not inferred from HTTP acknowledgement. Already-adopted work keeps its existing captured-policy lifetime. Scenario body 40.580s; Vitest 88.00s including worker preparation. Cleanup and original source-head readback pass.b8f91cb249b8c702cfc02befd6d2fb11215928f3had five focused failures for strict bot admission/schema; legacy controls passed. Current integrated candidate: 24 Slack tests + 17 Gateway reload-planning tests pass. Queued-before-policy-publication tests use the real handler and both implicit kinds; already-adopted work retains the existing captured-policy contract.bot-missing-mentiondecision. Each rejection leaves the mock provider request cursor unchanged and produces no Slack send. Explicit bot, human implicit follow-up, and legacy false-policy controls produce four model HTTP requests and four stored same-thread replies including the seed.conversations.repliesindependently reads each reply exactly once. Child Gateway and fixtures stop successfully. The scenario body took 27.671s (Vitest 38.61s); a full Gateway is needed to observe the actual model and send effects, and this opt-in E2E stays outside the ordinary unit lane.test/e2e/qa-lab/runtime/slack-strict-bot-gateway.e2e.test.ts. The synthetic bot is explicitly allowed by the fixture's channel sender list, so denial is proved at the changed mention gate rather than the earlier owner-presence guard. No dispatch or internal admission mock is used.This is actual Gateway/plugin/core proof with simulated Slack and model HTTP, not a live Slack workspace or live model.
Standard published-package upgrade acceptance passed on this exact candidate, independently of live Slack QA access. The maintained
published-upgrade-survivorbase cell installed official[email protected], seeded its supported old settings/state, upgraded to the candidate test tarball, ran doctor, asserted config/state survival, and started/probed the upgraded Gateway. This is isolated contribution QA; no registry publication or employee installation occurred.The base recipe preserves representative existing configuration and old Slack session metadata. It does not seed an old Slack channel connection/configuration; that boundary is not claimed. Legacy omitted/false bot-policy compatibility is separately covered by the owning schema/handler regressions and actual Gateway final-effect controls above. Package version alone is not the identity: this candidate has the same
2026.10.5package version, pinned by build commit and tarball SHA256.{ "sourceHead": "41974794c4ab5eb235d153d7926de7dedba834f6", "baseline": "[email protected]", "scenario": "base", "candidatePackageVersion": "2026.10.5", "candidateTarballSha256": "8a8f4ee103e923b7ca3f4b6399dc8e101f880897332d4ef245da3950a9dd6d21", "status": "passed", "passedPhases": 49, "failedPhases": 0, "seconds": 1475.52, "configAndStateSurvived": true, "legacySlackSessionMetadataSurvived": true, "oldSlackChannelConfigSeeded": false, "timings": { "startupSeconds": 156, "updateRestartSeconds": null, "idempotenceSeconds": null, "idempotenceBudgetSeconds": null, "healthzSeconds": 1, "readyzSeconds": 1, "statusSeconds": 7 }, "minimalEnvironment": true, "productionDelivery": false, "ownedContainerRemoved": true, "ownedWrapperStopped": true }Standard replay from this candidate (Docker and the normal build prerequisites):
Remaining upstream decision and external acceptance
Should Slack expose this compatibility-preserving opt-in, or should the default contract change as in #160752? The contributor implementation, regression, isolated final-effect proof, and CI are ready for that decision. No maintainer acceptance is inferred from a bot rating.
The maintained live Slack QA doctor was rerun with the existing Convex CLI/login, current source-private-QA opt-in, and proper relative output directory. It again stops at Foundation broker PROJECT_ACCESS before a lease. No QA Slack fixture or employee conversation was created, and no credential rotation/grant was attempted. An authorized upstream QA operator can run the native recipe after the contract decision; its corrected recipe uses the leased driver identity for sender admission and native lifecycle/cleanup ownership. The isolated native transport, received-before-publication final effects, owner regressions, and standard package-upgrade boundaries above are complete. Actual live Slack lease acceptance alone remains unexecuted. Next action for an authorized upstream QA operator: run the maintained native recipe on this exact candidate using its existing Foundation project access, or grant that existing project scope to the already configured contributor QA actor, then run the same standard command and attach its native verdict. No new credential service, employee account, grant bypass, or production setting change is proposed. This external QA entitlement and Slack-owner contract acceptance are upstream prerequisites; they are not unresolved contributor code defects.
Supplemental public replay diff and the corrected maintained live QA recipe: #177555 (comment)
Current main integration — 2026-10-28
Current PR head:
5fb93bc22c2cc2db24f9ef681fed7a17ce793af0. An ordinary merge integrates official main2753fa0dfd266faad1285805a3bec19a776f5970after GitHub reported an actual conflict. The sole conflicted file wasdocs/.generated/config-baseline.sha256; the canonical config-doc generator regenerated it, and both config-doc and bundled-channel metadata checks pass. No generated hash was hand-selected.All 31 direct feature, guard, caller and generator inputs match the preceding reviewed head
ff1339ffbebc05b9f512d43931b32c07b007f897; the accepted isolated Gateway proof is reused with its original head binding and live-Slack limitation. Fresh focused Slack schema/bot-thread and Gateway reload tests pass (two Vitest shards, 75.48 s) on the merged source. Outgoing diff and secret checks pass. This mechanical integration introduces no new bot policy, private patch, or employee/runtime change.This exact head passed all six hosted workflows, including CI 40629840087, CodeQL and Workflow Sanity. All 71 CI jobs are terminal (43 success, 28 skipped, zero failures); openclaw/ci-gate, dependency review and security-sensitive review also pass. Older passing runs are not counted as this head's CI. The current-head re-review is complete with zero actionable findings (durable review); its only Before merge items require Slack-owner acceptance of the optional public setting. The live Slack QA project entitlement and product adoption decision are unchanged.
2026-11-11 config-conflict maintenance
Integrated official main
a38ea90f53272bd6e64ea7230d6556523d05c7aato resolve actual generated-config conflicts and regenerated artifacts with their owning generators. The focused Slack schema/bot-thread/Gateway-reload command, generated metadata/config checks, and the test-line ratchet against the exact prepared main all passed. The structured Slack shard reports 30/30 assertions. Existing allocations, the shared scalar, assertions and timeouts are unchanged.The earlier UI fixture failures map to official fixes #197016 and #197036 in that main. The earlier six-line test-budget excess was inherited from the exact CI base, rather than missing feature allocation. Current-head native CI 43034367063 completed successfully on attempt 1: 69 terminal jobs (42 success, 27 skipped), with no failures or reruns. The immutable CI merge contains exact PR head
6c917ef00a3659630664bef95571610c0d3d86b5and official main04e941df29283d3c7a2e770c552a464e465f47ad. This maintenance provides no new live provider, Slack transport or employee-runtime acceptance.2026-11-13 generated-conflict maintenance
Current published head
1d7f133e3c6e6490dc3016e2632e3a0155508c93normally merges immutable official main439a9c3552da1e939803fc3c69d87bc6e16a6553into the existing branch. The actual conflicts were the generated config counts and hash outputs; both were regenerated by their canonical owner. All 14 non-generated contribution inputs remain byte-identical to the preceding public head1a4b82eafb937963bb18ffa8eaa1c5474149ad97.Focused Slack configuration, bot/thread handling and reload tests, core and Slack type-aware lint passed. Live Slack QA entitlement and Slack-owner adoption remain separate. Canonical config/base-schema/bundled-channel checks, formatting, whitespace and the test-line ratchet against that exact main passed. Existing assertions, timeouts and allocations are unchanged. Native wrapper totals are routed pass events, so no distinct whole-suite test count is claimed. Earlier public Gateway/provider proofs retain their dated scope; no new provider transport or employee acceptance is claimed. The new head's first native CI is tracked independently from these local checks. Feature adoption and official package delivery remain maintainer decisions.
Exact-head CI disposition — 2026-11-13
The exact head's first native CI43436922581, attempt1, is terminal FAILURE: the existing Home reader case in
ui/src/e2e/home-readonly.real-gateway.e2e.test.ts:45reaches the unchanged 120000ms test timeout; the dependent CI gate fails. Actual logged checkout7f2711219713fc6dcf200fad3e11b3e4610e1561has main parent6eb8095ae971f51bfa547644d4d249c21ebb8335plus this exact PR-head parent.The existing published browser diagnostics show two browser/Gateway connections, completed renderer/route reads and zero recorded browser console/page/script-request errors. Both snapshots retain
agentsLoading/rosterLoading; the bounded last-32-RPC rings containagents.listsends without a recorded success while session RPCs do have success. This localizes the observation beyond browser/Gateway connection, but does not establish the RPC's full pending lifetime or root cause. Exact-base main CI skipped UI; a nearby scheduled main run passed these UI lanes. Identical direct UI/test/helper bytes therefore do not establish a known-main failure or rule out an indirect interaction. Required CI stays blocking with cause unconfirmed. No green-seeking rerun, test weakening, timeout increase or speculative private fix was made.Previous upstream integration
Merged upstream main
a6893b815789into2f98479e17f7. Regenerated the config baseline. The Slack configuration, admission and reload suites passed (45 tests). Hosted CI awaits maintainer approval (0 jobs).Saved Slack channel configuration from stable 2026.11.6
The published 2026.11.6 CLI wrote and validated a channel allowlist with an allowed room, a sender list, required mentions, and the existing mentions-only bot policy. The new strict flag was absent. At
b1245eb12be3the candidate read the same file into the Slack plugin and ran the normal message preparation function with synthetic inbound events. The saved bytes were identical afterwards. Captured candidate output (truemeans that event reached the prepared-message stage):{ "botImplicit": true, "botMention": true, "humanImplicit": true, "strictOmitted": true }The previously admitted implicit bot thread reply, explicit bot mention and human follow-up all remained eligible under those existing settings. Slack client calls were isolated. The separate real Slack rejection and positive control still need the authorized live QA workspace.
Existing configuration compatibility
requireExplicitBotMentionis optional at every scope and has no persisted-data migration. Existing Slack configuration that omits it keeps the legacy implicit-bot behavior.Current exact-head compatibility evidence:
false;false, then observes one stored legacy bot reply through the Slack adapter.This demonstrates that existing stored configuration remains readable and behavior-compatible. It does not replace the separate live Slack QA requirement.