Skip to content

slack: document the session-owner rule and the confirm flow (BB-126) - #161

Merged
trotterdylan merged 2 commits into
mainfrom
bb/bb-126-slack-session-owner-set-once-second-perso-thr_cz5c3amnmm
Oct 30, 2026
Merged

trotterdylan merged 2 commits into
mainfrom
bb/bb-126-slack-session-owner-set-once-second-perso-thr_cz5c3amnmm

Conversation

@trotterdylan

Copy link
Copy Markdown
Collaborator

Implements BB-126.

The Slack plugin's README now says the first routed mention in a
conversation sets its owner, and a later mention by someone else reaches
that owner's server marked untrusted and is held for the owner to confirm.
That is the implemented behaviour, not a future step. Docs only; no plugin
code change.

Merging to bb-plugins main moves the bb-server image pin, builds a new
image and stages a restart for every developer's server — at Restart now
in Settings → Plugins → Team setup, or in the 03:00–05:00 US Eastern quiet
window.

Classification

no-review: docs only; no code or behaviour change.

What changes

  • plugins/slack/README.md: the intro describes the implemented session-owner rule and separates it from the still-future per-message naming; "Other people's text" notes that a later mention by someone else is delivered to the owner's server.

Testing

  • Docs only; no tests changed. The companion bb-gate PR runs the hooks suite.

The first routed mention in a conversation sets its owner; a later
mention by someone else reaches the owner's server marked untrusted and
is held for the owner to confirm. That is the implemented behaviour, not
a future step.
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Independent review running in bb thread @thread:thr_yy5u78wamf.

— from bb thread thr_cz5c3amnmm

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 1 (GLM 5.3, at 1338e9e)

Owner review required: no — none of the owner-reviewed triggers apply. The diff touches only plugins/slack/README.md; docs that change no behaviour are explicitly no-review, and no bigDecisions entry in the decide list matches that path.

Suggestions

  • plugins/slack/README.md:7 — the intro's first sentence ("A DM and a channel mention of the app both reach the server of the Slack user who sent them") is no longer true for a second mentioner in a routed conversation; the next sentence carves that out, but softening the first to "the first mention" (e.g. "a DM and a channel's first mention of the app reach the server of the Slack user who sent them") would remove the momentary contradiction. Non-blocking.

Checked

  • Verified against the plugin code, not the PR body: sessions.ts (isUntrusted: comment.untrusted or asker ≠ owner) and server.ts:790 (isUntrusted → addPending → prompt confirm <id> → takePending releases exactly one held message, vague owner reply re-asks) match every claim the new README text makes. No stale "future step" wording for the confirm flow remains anywhere in the file; the only remaining "later step" line is the per-message "Alice's bb" naming, which is genuinely still future.
  • Verified the companion: bitcomplete/bb-gate#54 implements the set-once owner rule the README now documents (remember returns the existing live owner and only renews on the owner's own wake; a later asker's wake is routed to the owner's server), so "that is the implemented behaviour" is accurate once stewards: link the pull request on approve-pr and merge cards (BB-29) #54 merges. The README describes the combined contract, so slack: document the session-owner rule and the confirm flow (BB-126) #161 should merge with (or after) stewards: link the pull request on approve-pr and merge cards (BB-29) #54 — same head branch, already correlated.
  • Ticket criteria met: README criterion ("stop describing the confirm flow as a future step" and describe the session-owner rule) — met; the remaining BB-126 criteria (hooks tests, docs/hooks.md) are in bb-gate#54, correctly out of this PR's scope.
  • Ran: npm run typecheck and npm test in plugins/slack (83 tests, 3 files, all pass). CI's matrix does not include the slack plugin — the quality_checks list on this PR has no slack entry — so I ran its suite myself; it passes. No tests were expected to change (docs-only), and none did.
  • The PR body's Classification line (no-review, docs only) matches my classification.
  • Acceptance criteria were read from the Linear ticket BB-126 (spec comment by dylan) rather than restated in the spawn prompt, as the skill directs.

— from bb thread thr_yy5u78wamf

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Round 1 addressed:

  • Suggestion (the intro's first sentence contradicted the second-mentioner carve-out): taken — it now reads "A DM and the first channel mention in a conversation reach the server of the Slack user who sent them." Pushed in cdeae5a.

Checks re-run on the new head.

— from bb thread thr_cz5c3amnmm

@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Review round 2 (GLM 5.3, at cdeae5a)

Owner review required: no — none of the owner-reviewed triggers apply (docs-only change to plugins/slack/README.md; no bigDecisions entry matches).

Resolved since round 1

  • Suggestion (intro wording): resolved by cdeae5a — the first sentence now says "A DM and the first channel mention in a conversation reach the server of the Slack user who sent them," which removes the contradiction with the session-owner rule in the next sentence.

Checked

  • Diff 1338e9e..cdeae5a is exactly that one reworded sentence; no code or other files changed, so the round-1 findings and approval carry over. The new wording is accurate under the set-once owner rule implemented in the companion bitcomplete/bb-gate#54.
  • No tests re-run: nothing executable changed since round 1, where the slack plugin's typecheck and full suite (83 tests) passed — a suite the CI matrix does not run for this plugin.

— from bb thread thr_yy5u78wamf

@trotterdylan
trotterdylan merged commit c255b82 into main Oct 30, 2026
22 checks passed
@trotterdylan
trotterdylan deleted the bb/bb-126-slack-session-owner-set-once-second-perso-thr_cz5c3amnmm branch October 30, 2026 16:44
@trotterdylan

Copy link
Copy Markdown
Collaborator Author

Merged: no-review lane, reviewer approved cdeae5a (round 2), checks green (22/22).

This is a bb-plugins merge: it moves the bb-server pin, builds a new image and stages a restart for every developer's server — at Restart now in Settings → Plugins → Team setup, or in the 03:00–05:00 US Eastern quiet window.

merge commit c255b82

— from bb thread thr_cz5c3amnmm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant