Skip to content

Align bot commands with supervised TDM and bot hosting - #123

Draft
valzargaming wants to merge 2 commits into
mainfrom
codex/supervised-command-compatibility
Draft

valzargaming wants to merge 2 commits into
mainfrom
codex/supervised-command-compatibility

Conversation

@valzargaming

Copy link
Copy Markdown
Member

Scope

  • Retire the official TDM aliases for host, stop, restart, update and map swap across text, slash and staff-panel callers. Read-only hoststatus and Play remain. Parse one bounded group config snapshot for the front door and Battle, preserving the shared public Play URL and one aggregate button, and fail closed on invalid config.
  • Preserve explicitly configured supervisors for other worlds. Remove the unsupervised BYOND shell fallback and native legacy map swaps; the existing typed OpenDream adapter is unchanged.
  • Retire old bot self-maintenance (shell pulls, resets, dependency updates, shutdown/relaunch and TypeSpess process commands). Stale HTTP endpoints return 410; the webhook still checks its signature. The operator workflow owns Git and systemd. No new Discord systemctl control, service permission or automatic restart.
  • Handle frozen-region update receipts as accepted staging, not a completed update. Keep unknown status distinct from stopped. Rankings no longer invent missing source files or wipe a prior ranking after the gateway move; this does not guess or migrate historical awards.

Validation

PHP 8.4.27 lint passed for all 21 changed PHP files. Ran 19 targeted offline fixture invocations with locked production dependencies (including 37 new TDM config assertions). They cover retired-path no-effects, stale slash/panel and HTTP cases, read-only status and Play, malformed/mismatched receipts, operator confirmation, and missing ranking sources. Three synthetic child-process fixtures used the cloud PHP wrapper in a temporary copy for its relocated runtime dependencies. No tests duplicate DiscordPHP's own contracts. No bot/game daemon, credentials, live command, deployment or restart. Hosted multi-version and Windows checks are separate.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Member Author

2026-11-23 UTC · d7241b4

Retires unsafe shell commands and official TDM mutations while preserving read-only status and Play. php -l passed all 21 changed PHP files. All 19 targeted offline fixture invocations passed under PHP 8.4.27 with the existing lockfile, including the 37-assertion TDM routing fixture, zero-effect retirement, frozen-stage receipts, and missing-awards regressions. Three synthetic child-process fixtures used the local PHP wrapper in temporary copies. Hosted checks were queued when checked. Nothing was deployed or restarted.

This branch has not been deployed

No deployments
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