feat(events): a dry run carries a module's advice (MODULE_API 1.16.0) #217
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/dry-run-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rust PLAN_REDESIGNS §11.4, D391 (asked during the RaidableBases build): D208 makes the editor's check of a raid base's spot advice, and D388 shows rocks and cliffs as a warning in the editor. Core's dry run could only take an error from a module, so it gains a warning channel.
What changes
verify: truewith{ ok: true, detail: { warnings: [...] } }has each line shown as a warning finding, codeadvice, anchored to its step. It never fails the dry run: the world may change before the run does.adviceOf). Anything else underwarningsis ignored rather than refused. A refused step carries no advice.version-drift), so there's no client change beyond the version.^1.10.0still resolves and says no warnings. STEAM_SIGNIN.md's claim moves to 1.17.0 (docs PR).Tests: server
eventVerify.test.js+eventModuleContract.test.js44/44, with three new tests (advice is a warning per line and passes; the bounds; a refusal carries none). Full server suite: everything passes except the tworoutes.*.jsonsync tests, which fail only because this machine has the rust and uo modules installed inwebsite/modules/; no route changed. Client 430/430.Re-pins to follow once this merges: Module-Rust stays
^1.15.0(the advice is additive, so an older core simply doesn't show it), and the integration kit'sci/core-ref.jsonturns red by design on the bump until someone re-reads the chapters and moves the pin.Docs: RunicGateway/docs
docs/raidablebases-build(MODULE_API.md, EVENTS.md §I).🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
An action answering verify: true with { ok: true, detail: { warnings } } has each line shown as a warning finding (code `advice`) that never fails the dry run. Strings only, at most ten per step, each cut at 500 characters; anything else under warnings is ignored, and a refused step carries none. Rust PLAN_REDESIGNS §11.4, D391: a raid base's spot is checked against the world as it stands now (a player on it, a rock beside it), which may change before the run, so the editor shows it as advice. One optional reading of an existing member, so minor; Module-uo's ^1.10.0 still resolves and says no warnings. STEAM_SIGNIN.md's claim moves to 1.17.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY