astrbot_plugin_private_comp.../docs
YokiiroBW 1bd4821538 chore: script the deployment discipline
There was no shell script anywhere in either repo, so every deployment was
typed by hand and every deployment re-exposed the same pitfalls: rollback
copies left in the plugin scan directory, wrong ownership, stale pycache,
deploying the companion before memory, and a rollback pointer left aimed at an
older backup.

ops/deploy-plugin.sh fixes the order: local test gate, remote backup with the
LATEST_M6 pointer updated, stop, memory before companion (the companion probes
the memory bridge at startup and caches a negative result if the peer is
absent), ownership and modes, a scan-directory residue check that exits
non-zero on any .old/.new/.bak, remote compileall with PYTHONPYCACHEPREFIX,
start, then verification of service state and plugin-level error count.

The ownership rule was documented two ways -- root:root in the errata,
astrbot:astrbot in the M6.1.8 record. The service runs as User=astrbot, so
astrbot:astrbot is correct and the script now says so in a comment.

Also noted, in the script and the errata: QQ's official platform rate-limits
bot session starts, and restarting eight times within an hour made the
qq_official adapter fail to log in. Batch deployments should batch restarts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-27 05:42:03 +08:00
..
M6日程拆分与陪伴插件调整评估.md feat: link bot personal memory bridge 2026-07-26 03:14:03 +08:00
OPS陪伴插件全功能盘点与删减评估.md feat: remove ops entertainment integrations 2026-07-26 01:32:07 +08:00
Q7后端接口收口与VM验收记录.md docs: record q7 vm acceptance 2026-07-26 00:14:02 +08:00
Q8前端改造与验收记录.md docs: record q8 vm deployment acceptance 2026-07-26 03:00:48 +08:00
VM部署验收-娱乐功能清理-f4d160c.md docs: clarify vm clock in acceptance record 2026-07-26 01:56:48 +08:00
前端改造要求-Q6-Bot自有存储与用户记忆边界.md docs: add frontend migration contract 2026-07-26 00:14:38 +08:00
对话日程可行性评估.md feat: add temporal companion calendar 2026-07-25 01:35:56 +08:00
运维陪伴错题本.md chore: script the deployment discipline 2026-07-27 05:42:03 +08:00
错题本.md feat: complete M6.1.3-R2 through M6.1.7 bot personal archive contract 2026-07-27 01:37:40 +08:00