Skip to content

revert(relay): stop relaying command reply content, keep Market's activity announcements - #60

Merged
zznathans merged 1 commit into
mainfrom
revert/relay-command-output-only-announce
Aug 4, 2026
Merged

revert(relay): stop relaying command reply content, keep Market's activity announcements#60
zznathans merged 1 commit into
mainfrom
revert/relay-command-output-only-announce

Conversation

@zznathans

Copy link
Copy Markdown
Owner

Summary

Modules/Relay.php's relay_command_output() function itself is untouched - it's still used by Market's two direct call sites.

Test plan

  • Tests/README.md regenerated (by hand, no local PHP in this environment) to match the removed test file.
  • CI (unit tests, docs-check, lint, CodeQL) - pending on this PR.
  • Manual verification after release+deploy: confirm command replies (e.g. !market status output) are no longer relayed mesh-wide, while Market's "X used market Y" activity lines still are.

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

…ivity announcements

output_destination()'s TELL/PG relay hook (added in #56, extended in #58)
relayed the full text of every command reply across the mesh, which is
noisier than wanted - especially since the majority of commands are run via
tell directly to the hub bot. Revert that hook back to its pristine
pre-#56 form.

Market.php's own announce()/announce_background() relay hooks (added in
this same follow-up, "X used market Y" activity-log lines) stay - that's
the "command was run" signal that's actually wanted, and it already works
correctly across the mesh.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation core Core bot framework (Main/**) tests PHPUnit test suite changes commodity-base-passive-module labels Aug 4, 2026
@zznathans
zznathans merged commit b7015c4 into main Aug 4, 2026
15 checks passed
@zznathans
zznathans deleted the revert/relay-command-output-only-announce branch August 4, 2026 21:01
zznathans pushed a commit that referenced this pull request Aug 4, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commodity-base-passive-module core Core bot framework (Main/**) documentation Improvements or additions to documentation tests PHPUnit test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant