Skip to content

feat(bots): let bots archive threads they created - #1477

Merged
nixuuu merged 4 commits into
devfrom
feat/bot-own-thread-archive
Nov 29, 2026
Merged

nixuuu merged 4 commits into
devfrom
feat/bot-own-thread-archive

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Changes

  • Apply the gateway's existing thread access checks before considering an approval exception. Use the recorded creator and the authenticated bot turn to verify every thread affected by the archive. Recheck the locked targets in the archive transaction.
  • Keep individual approval for restoring threads and for archiving when any affected thread lacks matching provenance. A cascade containing a user-created side thread requires approval.

Thanks @marcinniewinski for reporting the repeated confirmation cards.

Verification

  • Local Linux, 170fed8e3: formatting and lint passed for the 13 changed TypeScript files. git diff --check passed. The focused bot policy test passed (5 tests).
  • GitHub CI passed on 170fed8e3: repository checks and the gateway integration fixture covering bot-created threads, a different bot, a user-created side thread, and restoration, together with the existing bulk archive regression tests.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 16:19
…chive

# Conflicts:
#	apps/gateway/src/bots/tools/threads.ts
#	apps/gateway/src/core/core-threads.ts
#	apps/gateway/src/store/thread-lifecycle.ts
#	docs/bots.md
@nixuuu
nixuuu merged commit d94988d into dev Nov 29, 2026
25 checks passed
@nixuuu
nixuuu deleted the feat/bot-own-thread-archive branch November 29, 2026 16:39
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