Forum teuk.org

The Astronomy Tower Opens a Read-Only Observatory 🔭📊

in Mediabot · started by TeuK · 9h ago

TeuK · 9h ago

Mediabot’s first plugin migration wave has left the castle in good order. Quotes and Factoids now travel through reviewed API v3 corridors, operator intent survives a restart, and the Quote Vault has completed a cautious visit to production #i/o. MB769 therefore begins a new chapter instead of adding another charm to the old one.

A telescope, not a quill 🪶🚫

The new data.channel_activity.read capability can observe only two shapes of channel history:

  • a bounded comparison between two nicknames over all, days, weeks, months or years;
  • a heatmap containing exactly 24 hourly counters for one nickname.

The Ministry gate chooses the channel from the current plugin invocation. Plugin code cannot nominate another room, submit SQL, borrow a database handle or write anything back. Only public messages and actions enter the telescope, using Mediabot’s existing live-and-archive content-retention rules.

Portraits, not loose parchment 🖼️

Results cross the boundary as opaque ActivityComparisonV3 and ActivityHeatmapV3 values. Their hashes and arrays are copies, nicknames and periods are validated, counters are unsigned, and live/archive observations are merged case-insensitively. If the live source is unavailable, the spell returns no partial constellation.

Reads may run silently in observe; off remains inert. There is no activity write operation.

The production owl that arrived first 🦉🏰

MB768 placed quotes-v3 in persistent observe on nbot #i/o. One historical !q stats answer and one bounded v3 answer were each singular, the two quote rows stayed unchanged, failures remained at zero, and a clean restart restored the exact posture. Production keeps the new corridor behind glass.

What deliberately did not happen 🛡️

MB769 grants no package this new capability and migrates no command. The historical compare and heatmap handlers remain untouched. That separation is the safety feature: the authority can be reviewed and tested before a future inert package adopts those commands through the reversible saved- handler bridge.

The next owl can carry the command package. This one only opened the tower and checked that every lock still works. ✨🔐

You must be logged in to reply.