Skip to content

feat(slack-bot): use sdk package - #1289

Merged
kantord merged 3 commits into
mainfrom
modernize-slack-bot
Sep 9, 2026
Merged

kantord merged 3 commits into
mainfrom
modernize-slack-bot

Conversation

@kantord

@kantord kantord commented Sep 9, 2026

Copy link
Copy Markdown
Member

Summary

Development stage

  • Plan / Interface — behavioral and exact-interface contract; no implementation
  • Implementation — based on an approved, merged Plan / Interface PR
  • Combined — compact one-task exception; no separate plan PR, and the in-PR plan
    declares **Expected tasks:** 1, a non-placeholder **Combined rationale:**, and no
    runtime/public/operator/persistence/trust-boundary interface change (None — rationale;
    workflow-only meta-changes may review process docs/skills here)
  • Trivial / mechanical — acceptance-plan spine exempt

Contract linkage

  • Acceptance plan:
  • Human decisions resolved and recorded: Yes / N/A with rationale
  • Plan / Interface PR:
  • Approved commit baseline:
  • Combined/exemption rationale:

Interface conformance

Issue relationship

Relates to #

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other (describe):

Test plan

Baseline checks

  • Acceptance-plan checker
  • Linting (task lint)
  • Offline test suite (task test)
  • Offline demo (go run ./cmd/mecademo)
  • Markdown changed: docs generation/link checks (task docs)
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md
  • Landed plan: strict acceptance trace (task ac-trace-strict)
  • Final implementation review: /panel-review

Changes

File Change

User-facing change

Special notes for reviewers

@kantord
kantord marked this pull request as ready for review September 9, 2026 11:53
@kantord
kantord force-pushed the modernize-slack-bot branch from 6c51934 to 6fad474 Compare September 9, 2026 11:53

@samuv samuv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found four issues to address, with the details inline. The two runtime regressions reproduce in focused tests; the existing 21 handler, configuration, and rate-limit tests and typecheck pass with the local SDK source.

I could not validate the published SDK package locally because GitHub Packages returned 403 with the available token. The PR's CI checks are green.

- Move session.run() inside the eviction try/catch — the server can
  reject a stuck-authorization session at run admission, before any
  event streams, which previously skipped eviction entirely.
- Fix silent truncation when an established Slack stream breaks
  mid-run: track "failed" separately from "started" so the full answer
  still gets delivered via a final say().
- Subscribe to agent_session_stopped in the app manifest and README
  setup steps so the native stop button actually reaches the bot.
- Make `task install` self-sufficient for GitHub Packages auth instead
  of documenting a NODE_AUTH_TOKEN-only command that doesn't actually
  configure pnpm.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@samuv samuv left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes. All four previous findings are addressed in bc854b0, and I found no further issues in the follow-up.

Both original regression reproductions now pass, along with the 22 handler, configuration, and rate-limit tests, typecheck, and lint. Local tests used the SDK source; the Slack bot CI job against the published dependency is also green. I separately verified the install task's npmrc wiring and cleanup on success and failure with a stubbed install.

@kantord
kantord merged commit 12751e4 into main Sep 9, 2026
31 checks passed
@kantord
kantord deleted the modernize-slack-bot branch September 9, 2026 14:36
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.

2 participants