Skip to content

fix(relay): remove the relay-command-output feature entirely - #63

Merged
zznathans merged 1 commit into
mainfrom
chore/remove-relay-command-output-feature
Aug 4, 2026
Merged

fix(relay): remove the relay-command-output feature entirely#63
zznathans merged 1 commit into
mainfrom
chore/remove-relay-command-output-feature

Conversation

@zznathans

Copy link
Copy Markdown
Owner

Summary

Fully removes the relay-command-output feature added across #56/#58 and partially reverted in #60. Turned out to be more scope/complexity than warranted - local private-channel logging via Market.php's announce()/announce_background() stays exactly as it was before any of this (that's the "logging to priv channel" behavior), it's just no longer relayed across the bot mesh.

Verified via git diff against the commit immediately before #56 that every touched file (Commodities/00_BasePassiveModule.php, Modules/Relay.php, Modules/Ao/Market.php, and the associated test files/stubs) is now byte-identical to its pre-feature state.

Uses a fix: commit type deliberately - the prior revert (#60) used revert:, which semantic-release's default rules don't treat as release-triggering, so it silently never shipped until a follow-up fix: commit forced it (#61).

Test plan

  • git diff confirms all touched files match their pre-feat(relay): relay a bot's own command output to the hub bot #56 state exactly.
  • CI (unit tests, docs-check, lint, CodeQL) - pending on this PR.
  • Manual verification after release+deploy: confirm no relay behavior remains for command output/activity lines, while local Market.LogToPrivateChannel/LogBackgroundToPrivateChannel logging still works as before.

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

This whole feature (relaying a bot's own command output/activity lines
across the mesh, added across #56/#58, partially reverted in #60) turned
out to be more scope and code-base churn than it was worth for what's
actually needed. Fully removing it:

- Modules/Relay.php: drop relay_command_output() and the
  Relay.RelayCommandOutput setting.
- Modules/Ao/Market.php: announce()/announce_background() go back to
  their original single send_pgroup() call - local private-channel
  logging stays exactly as it was before any of this, just no longer
  relayed across bots.
- Commodities/00_BasePassiveModule.php: drop the leftover explanatory
  comment from the #60 revert.
- Tests/Stubs/FakeMarketBot.php, Tests/Stubs/FakeRelayBot.php,
  Tests/Modules/Ao/MarketTest.php, Tests/Modules/RelayTest.php,
  Tests/README.md: back to their pre-#56 state.

Confirmed via `git diff` against the commit before #56 that every touched
file is now byte-identical to its pre-feature state.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation market Market module (Modules/Ao/Market.php) relay Chat relay modules (IRC/Discord/WebSocket) anarchy-online Anarchy Online specific code core Core bot framework (Main/**) module-ao-market tests PHPUnit test suite changes module-relay commodity-base-passive-module labels Aug 4, 2026
@zznathans
zznathans merged commit 622f8b3 into main Aug 4, 2026
15 checks passed
@zznathans
zznathans deleted the chore/remove-relay-command-output-feature branch August 4, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

anarchy-online Anarchy Online specific code commodity-base-passive-module core Core bot framework (Main/**) documentation Improvements or additions to documentation market Market module (Modules/Ao/Market.php) module-ao-market module-relay relay Chat relay modules (IRC/Discord/WebSocket) tests PHPUnit test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant