6 KiB
Deed-linked board publication
Ticket 411. This document describes the implementation contract; a merged commit alone does not prove native publication.
Authority and records
board-state is the ordinary BRD system record. Its stable identity is board:<kind>:<organisation UUID>, owned by the existing staff office service account. One dossier holds the current complete resolved source, roster bindings, template version, desired lifecycle, monotonic revision and delivery receipt. Membership-only changes advance the board revision without rewriting the original deed. No passwords, key codes, signing material or unrelated profile fields are copied.
The existing generator catalogue lists boards.state as an automatic background record and boards.delegate-control as a staff service action. Neither accepts raw browser publication or grants a Dev key. The existing key register uses board artwork.
Clans resolve readClanDeed, with local owner/members. Companies resolve readCompanyDeed, including the current deed owner, CEO and roster. Parent control does not grant a child's private board. The converted honorary Order retains its legacy company board storage identity, but resolves its actual passive Order charter, roster and current parent office authority. Political Houses resolve protected Royal office charters, current office deeds and active appointment deeds. The Council also includes current eligible Naibs; a vacant chair does not invent an owner or remove their independent seats. Ambiguous authority requires review.
Lifecycle and delivery
Committed ordinary clan/company creation refreshes the dossier through the existing callbacks. The existing central scheduler additionally observes current source versions, names, membership bindings, active office terms/appointments, Council seats, Order records and staff overwrite keys in bounded batches. Other mutations, including transfers, renames, archive/restore and membership changes, reconcile on this existing minute tick. No new timer or Minecraft event producer is introduced. This deployment uses the already enabled central bank scheduler; a deployment without that scheduler must provide its existing scheduler integration before enabling publication.
Only changed observations invoke full deed resolution. The publisher leases at most 25 dossiers, sends references to the native CLI, and the existing authenticated private integration bridge reads actual current key data. Caller-supplied desired state is rejected. Native publication preserves existing registry forum/group IDs, applies current affected permission rows, and rebuilds necessary caches once per batch. New groups receive explicit denies on other private boards. An unrelated archived board is not reactivated.
Replay preserves IDs. Older native revisions cannot overwrite newer revisions; changed key/mapping bindings require review. Failed or lost acknowledgements retain durable pending/retry state with bounded backoff. A stale acknowledgement cannot mark a newer dossier applied. Native group-set changes requeue permission repair without creating new keys or revising unchanged sources.
Forum requests read prepared mappings and fresh authority, never provision boards or rebuild global caches. A missing mapping reports pending publication. Departed members lose access before the next publication tick. Stored roster snapshots never grant current private access. The separate existing native political-role watcher and its security refresh remain unchanged.
Temporary control
The existing staff-parent-link key carries a board-only overwrite scope, exact organisation/member binding, actor, reason, ticket, start and expiry. Only current forum staff authority may issue it. The target must remain an eligible current member. Leave/rejoin, source ownership/deed transfer, expiry or ordinary key revocation invalidates it. Current resolved managers are restored; no old owner snapshot is reapplied. Deeds, ordinary ownership, bank, votes and Minecraft privileges remain unchanged.
ops/delegate-board-control.mjs --apply accepts bounded JSON on standard input: {actorUsername,input:{kind,id,memberId,requestId,expiresAt,ticketId,reason}}. It checks the named actor's current authority through the existing adapter, queues publication and emits only a non-secret receipt. No production delegation is needed to test publication.
Validation and limits
Isolated integration fixtures exercise real deed resolution, current key verification, lifecycle revisions, leased delivery, acknowledgement loss, source updates, native group drift, revoked/private access, temporary control and a Council without a chair. Native PHP tests validate exact payload fingerprints, revision ordering and permission-matrix coverage. With 10 existing private boards and 20 groups, updating one board touches 20 permission pairs; adding two groups additionally touches the other 9 boards, giving 38 unique pairs. This is a measured fixture work count, not a production latency claim.
Publication must separately record green CI, actual live source hashes, existing native mappings/content counts, native privacy checks, actual BRD receipts and comparable timing observations. Do not mark the ticket closed from catalogue entries or fixture results. Rollback disables delivery/restores reviewed native helpers while retaining keys, registry mappings and content. Never delete histories to roll back.
Native inventory confirmed that MyBB forums, groups, moderators and permissions use MyISAM while the mapping registry uses InnoDB. Publication therefore relies on the native advisory lock and durable per-object bindings, not a false cross-engine rollback promise. New forum/group rows contain internal HTML-comment identity markers inserted atomically with the row. An interrupted delivery adopts that exact native row before retrying its registry update; it never adopts by display name. Ambiguous markers or unexpected native privileges require review. Focused interruption tests retain the original forum/group IDs after simulated process loss.

Staff