Skip to content

Add the official mods - #1

Merged
duruer merged 1 commit into
devfrom
feat/official-mods
Oct 23, 2026
Merged

duruer merged 1 commit into
devfrom
feat/official-mods

Conversation

@duruer

@duruer duruer commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Replaces the two draft placeholders. Every entry points at release
mods-2026.10.23 of Blockheads-Club/mod-sdk (to be created after approval),
with sha256 and size of the packages built by scripts/build-official-mods.sh
(commit 84b8171 of mod-sdk branch feat/official-mods). testdata/packages holds
those exact files, so scripts/check-local.sh passes offline (10 mods, labels
needs-security-review + new-mod, which this review answers).

| id | version | sha256 | size |
| chat-filter | 0.1.0 | 75ad57615eb2da03e64957ce95d5d8cce4d84e5fd1bca662e056af94fa92050e | 1853 |
| chat-filter-rust | 0.1.0 | 643b4490f4cf612e611aa5684bd16f05e0961b47135adfd8d278b1c3b97be7a8 | 39131 |
| economy | 1.0.0 | cb0420c30794366e801cfaefacb5eaa3df80e0b8390182255997a66ac7b5b88c | 2379 |
| hello-lua | 0.1.0 | f5ba606a82aabf2406b9c1476c76e5cc7162e6f0abb05a00d2350a35190bca53 | 1408 |
| hello-rust | 0.1.0 | 96574b9b91edd678d3e145c5f41264ba39aad636d04029e0442d14e2ec33a9c3 | 34529 |
| landclaim | 1.0.0 | 48c635dd0128a2fe815b9c098030f36de4b46a4592402417ee9343223d816068 | 1950 |
| perms | 1.0.0 | c2d0a32d8cf1989c7d4e1acb8efabb5e339c9e6554edd4b28eb2fb1c62d4e471 | 1972 |
| scheduler-lua | 0.1.0 | ddaaa95811674dcaafe049892a8de18cb55e0cc4f51f3dd109cc8f6206a49848 | 1746 |
| scheduler-rust | 0.1.0 | 2a858990018ad30a5ff2278c00769162685e0b6e876966bb1545690b4283f35b | 58507 |
| shop-rust | 0.1.0 | f589c36c964bdf35fafcdef4aeebca53ce07006015f1eb54f91ca6ccb1404a52 | 31191 |

Security review (every source file read: all .luau, all four lib.rs, both
.wit files, mod.toml and LICENSE of each package; Rust Cargo.lock reviewed)

Common: no native code, no .so/.jar, no net-http, no world permissions, no
channels. Rust packages import only blockheads:api interfaces and sandboxed
WASI cli/clocks/io (no sockets, filesystem or http); build-only crates (syn,
wit-bindgen macros) are not linked in. Lua mods run in the Luau sandbox (no io,
os.execute, loadstring). Only permission asked anywhere: players:chat
(broadcast), for hello-, scheduler-. Sending a chat line to one player needs
no permission in the host (checked in bhmod-core host.rs), so the others
correctly ask for nothing.

  • chat-filter / chat-filter-rust: APPROVED. No permissions needed. Cancels
    blocked links, masks two words, optional /chatfilter on|off (moderator+).
    Fixed word lists, no pattern injection (plain find / literal replace). Logs
    only the alias, never message text. Link blocking is trivially bypassed:
    a functional limit, not a safety issue.
  • economy: APPROVED. Storage only. /pay validates whole positive amounts,
    rejects self-pay, withdraws before deposit, errors are caught by pcall.
    /eco-give is admin only. No permissions needed.
  • perms: APPROVED. Storage only; /perm is admin only; admins/owner have all
    nodes by design. Wildcard match compares an exact prefix.
  • landclaim: APPROVED. Needs economy ^1, soft perms ^1. Cancels block and
    object edits in claimed 16x16 plots for non-owners; bypass for admin/owner
    or node landclaim.bypass (service call wrapped in pcall, fail closed).
    Claims are keyed by player id, not name.
  • hello-lua / hello-rust: APPROVED. players:chat is justified by /hello
    broadcast; greeting counter in storage.
  • shop-rust: APPROVED. Needs economy ^1. Hand-rolled CBOR encodes constants
    only; no user data reaches the encoder except through fixed price table; the
    call fails closed ("shop is closed"). No unsafe code.
  • scheduler-lua / scheduler-rust: APPROVED AFTER FIXES (mod-sdk commit
    84b8171, included in these hashes). Review found two player-triggerable
    problems in the first draft: /countdown 2.5 (or NaN in Rust) never reached 0
    and broadcast every second until restart; /remind with a negative or huge
    delay raised a Luau error (a fault; 3 faults in 60 s disable the mod), and
    hitting the per-mod task limit did the same. Now: whole-second countdown,
    finite check, delay clamped to 0..86400 s, task-limit error answered
    politely. Regression test added to the SDK. players:chat justified by the
    broadcast tip and countdown. Remaining low risk: any player can start the
    (single, max 10 s) countdown and queue reminders until the task limit.

Known limits, not blockers: mod descriptions are English only; the index has no
licence field (licence is MIT OR Apache-2.0, stated in each package's mod.toml
and LICENSE).

🤖 Generated with Claude Code

https://claude.ai/code/session_01W7Xy6GoKedKNc6gmiBACBA

Replaces the two draft placeholders. Every entry points at release
`mods-2026.10.23` of Blockheads-Club/mod-sdk (to be created after approval),
with sha256 and size of the packages built by scripts/build-official-mods.sh
(commit 84b8171 of mod-sdk branch feat/official-mods). testdata/packages holds
those exact files, so scripts/check-local.sh passes offline (10 mods, labels
needs-security-review + new-mod, which this review answers).

| id | version | sha256 | size |
| chat-filter | 0.1.0 | 75ad57615eb2da03e64957ce95d5d8cce4d84e5fd1bca662e056af94fa92050e | 1853 |
| chat-filter-rust | 0.1.0 | 643b4490f4cf612e611aa5684bd16f05e0961b47135adfd8d278b1c3b97be7a8 | 39131 |
| economy | 1.0.0 | cb0420c30794366e801cfaefacb5eaa3df80e0b8390182255997a66ac7b5b88c | 2379 |
| hello-lua | 0.1.0 | f5ba606a82aabf2406b9c1476c76e5cc7162e6f0abb05a00d2350a35190bca53 | 1408 |
| hello-rust | 0.1.0 | 96574b9b91edd678d3e145c5f41264ba39aad636d04029e0442d14e2ec33a9c3 | 34529 |
| landclaim | 1.0.0 | 48c635dd0128a2fe815b9c098030f36de4b46a4592402417ee9343223d816068 | 1950 |
| perms | 1.0.0 | c2d0a32d8cf1989c7d4e1acb8efabb5e339c9e6554edd4b28eb2fb1c62d4e471 | 1972 |
| scheduler-lua | 0.1.0 | ddaaa95811674dcaafe049892a8de18cb55e0cc4f51f3dd109cc8f6206a49848 | 1746 |
| scheduler-rust | 0.1.0 | 2a858990018ad30a5ff2278c00769162685e0b6e876966bb1545690b4283f35b | 58507 |
| shop-rust | 0.1.0 | f589c36c964bdf35fafcdef4aeebca53ce07006015f1eb54f91ca6ccb1404a52 | 31191 |

Security review (every source file read: all .luau, all four lib.rs, both
.wit files, mod.toml and LICENSE of each package; Rust Cargo.lock reviewed)

Common: no native code, no .so/.jar, no net-http, no world permissions, no
channels. Rust packages import only blockheads:api interfaces and sandboxed
WASI cli/clocks/io (no sockets, filesystem or http); build-only crates (syn,
wit-bindgen macros) are not linked in. Lua mods run in the Luau sandbox (no io,
os.execute, loadstring). Only permission asked anywhere: `players:chat`
(broadcast), for hello-*, scheduler-*. Sending a chat line to one player needs
no permission in the host (checked in bhmod-core host.rs), so the others
correctly ask for nothing.

- chat-filter / chat-filter-rust: APPROVED. No permissions needed. Cancels
  blocked links, masks two words, optional /chatfilter on|off (moderator+).
  Fixed word lists, no pattern injection (plain find / literal replace). Logs
  only the alias, never message text. Link blocking is trivially bypassed:
  a functional limit, not a safety issue.
- economy: APPROVED. Storage only. /pay validates whole positive amounts,
  rejects self-pay, withdraws before deposit, errors are caught by pcall.
  /eco-give is admin only. No permissions needed.
- perms: APPROVED. Storage only; /perm is admin only; admins/owner have all
  nodes by design. Wildcard match compares an exact prefix.
- landclaim: APPROVED. Needs economy ^1, soft perms ^1. Cancels block and
  object edits in claimed 16x16 plots for non-owners; bypass for admin/owner
  or node landclaim.bypass (service call wrapped in pcall, fail closed).
  Claims are keyed by player id, not name.
- hello-lua / hello-rust: APPROVED. players:chat is justified by /hello
  broadcast; greeting counter in storage.
- shop-rust: APPROVED. Needs economy ^1. Hand-rolled CBOR encodes constants
  only; no user data reaches the encoder except through fixed price table; the
  call fails closed ("shop is closed"). No unsafe code.
- scheduler-lua / scheduler-rust: APPROVED AFTER FIXES (mod-sdk commit
  84b8171, included in these hashes). Review found two player-triggerable
  problems in the first draft: /countdown 2.5 (or NaN in Rust) never reached 0
  and broadcast every second until restart; /remind with a negative or huge
  delay raised a Luau error (a fault; 3 faults in 60 s disable the mod), and
  hitting the per-mod task limit did the same. Now: whole-second countdown,
  finite check, delay clamped to 0..86400 s, task-limit error answered
  politely. Regression test added to the SDK. players:chat justified by the
  broadcast tip and countdown. Remaining low risk: any player can start the
  (single, max 10 s) countdown and queue reminders until the task limit.

Known limits, not blockers: mod descriptions are English only; the index has no
licence field (licence is MIT OR Apache-2.0, stated in each package's mod.toml
and LICENSE).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7Xy6GoKedKNc6gmiBACBA
@github-actions

Copy link
Copy Markdown

Mod index check

Failed. Fix the errors below and push again.

chat-filter (new mod)

  • New versions: 0.1.0

Permissions of 0.1.0:

  • none

chat-filter-rust (new mod)

  • New versions: 0.1.0

Permissions of 0.1.0:

  • none

economy (new mod)

  • New versions: 1.0.0

Permissions of 1.0.0:

  • none

hello-lua (update)

hello-rust (update)

landclaim (new mod)

  • New versions: 1.0.0

Permissions of 1.0.0:

  • none

perms (new mod)

  • New versions: 1.0.0

Permissions of 1.0.0:

  • none

scheduler-lua (new mod)

  • New versions: 0.1.0

Permissions of 0.1.0:

  • players:chat

scheduler-rust (new mod)

  • New versions: 0.1.0

Permissions of 0.1.0:

  • players:chat

shop-rust (new mod)

  • New versions: 0.1.0

Permissions of 0.1.0:

  • none

Labels: needs-security-review, new-mod

A maintainer must review this mod's code before it can be merged (every new mod, native code, and updates that add permissions).

Errors

  • pull request: change one mod per pull request (this one changes chat-filter, chat-filter-rust, economy, hello-lua, hello-rust, landclaim, perms, scheduler-lua, scheduler-rust, shop-rust)
  • mods/c/chat-filter.toml: the PR author duruer must be listed in owners
  • mods/c/chat-filter-rust.toml: the PR author duruer must be listed in owners
  • mods/e/economy.toml: the PR author duruer must be listed in owners
  • mods/h/hello-lua.toml: duruer is not an owner of hello-lua; only Blockheads-Club may change it
  • mods/h/hello-lua.toml 0.1.0: published versions cannot be edited (only yanked = true may be added)
  • mods/h/hello-rust.toml: duruer is not an owner of hello-rust; only Blockheads-Club may change it
  • mods/h/hello-rust.toml 0.1.0: published versions cannot be edited (only yanked = true may be added)
  • mods/l/landclaim.toml: the PR author duruer must be listed in owners
  • mods/p/perms.toml: the PR author duruer must be listed in owners
  • mods/s/scheduler-lua.toml: the PR author duruer must be listed in owners
  • mods/s/scheduler-rust.toml: the PR author duruer must be listed in owners
  • mods/s/shop-rust.toml: the PR author duruer must be listed in owners

@github-actions github-actions Bot added needs-security-review Native code, new permissions or a new mod; needs maintainer review new-mod First submission of a mod id labels Oct 23, 2026
@duruer
duruer merged commit f890662 into dev Oct 23, 2026
0 of 2 checks passed
@duruer

duruer commented Oct 23, 2026

Copy link
Copy Markdown
Contributor Author

Official mods go straight to dev; pushed as f890662.

@duruer
duruer deleted the feat/official-mods branch October 23, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-security-review Native code, new permissions or a new mod; needs maintainer review new-mod First submission of a mod id

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant