Repository navigation
An AI GM's tools say a request_roll is the roll of the character it names, and offer dice alone for a trap's or a hazard's harm, where they offered a damage roll made first as a second way to deal it - #1076
Open
Smoebo wants to merge 1 commit into
Conversation
…ames, and offer dice alone for a trap's or a hazard's harm, where they offered a damage roll made first as a second way to deal it
Ruling 3 of issue 915: a request_roll with a characterId is that
character's roll, the one who would pick up the dice at a table. The words
the model reads offered it as a second way to roll harm ("roll it first with
request_roll kind damage and send that total"), and a trap's damage rolled
that way with the id of the character it lands on is stored and shown as
that character's own roll.
Words only; no handler changes and the number gate takes what it took.
request_roll's first sentence says "a character's own dice", characterId
says whose roll it is not, apply_damage's amount is a character's own
total, both refusals of a bare number offer dice alone, and the fight rule
on harm by hand says whose roll a request_roll is.
Two budgets shaped the wording. The trimmed tool set is 5 tokens under its
budget on main at a table with every optional family on
(test-prompt-window), so the new words are paid for by the sentence
targetEnemyId ended on, which the server says itself when a model tries
it. A compact call keeps a description's first sentence and a 16K window
had no room for more (test-tool-profiles), so characterId's new words are
its second sentence.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ruling 3 of #915, answered there on Nov 22: a
request_rollwith acharacterIdis that character's roll, always, and the descriptions stop offering the two-call path for harm. Words only: no handler changes, and the number gate takes what it took.What a table sees
Nothing in the rules. An AI GM is no longer told to roll a trap's or a hazard's damage with
request_rollfirst and then send the total. Rolled that way with the id of the character it lands on, the roll is stored and shown as that character's own ("Aria · Damage (falling rocks)"), which is the reading ruling 2 set out to end. The tools that deal harm (apply_hazard,cast_at_player,apply_damagewith dice) roll it themselves.I did not run a real model, so I cannot say how often one took the two-call path before or takes it now.
The words
request_roll, the toolrequest_roll.characterIdapply_damage.amountAI_NUMBER_REFUSAL)request_roll kind damageprompt-rules.ts)Two budgets shaped the wording
scripts/test-prompt-window.mjs), and onmaina table with every optional family on is 5 tokens under it. So the new words inrequest_rollare paid for by one sentence cut from the end ofrequest_roll.targetEnemyId: "A party character's damage goes through pc_attack or the spell tools." The server says the same itself when a model tries it (invoke-roll.ts: "... damage on an enemy comes from pc_attack (or the spell tools) ..."), with a retry. The trimmed set is one token smaller than onmain.characterId's first sentence,scripts/test-tool-profiles.mjsfailed ("the shop group rides from the start"). So they are its second sentence, which a compact call drops. A compact call still reads "Roll a character's own dice" andapply_damage.amount's new words.If you would rather give either budget room than cut that sentence, say so and I will put it back.
Not covered
request_rollof kind damage, which is the same reading (a spring's dice stored as a character's damage roll).heal.amountis as it was ("Hit points the server rolled this turn, for healing that is not a spell.").request_rollstill pays for a bare number once. A hazard's damage that an AI GM rolls and then sends for a creature lands on it, where the call was answered "already applied" and the creature lost nothing #1074 fixes that path for a creature, and the mark in Two things left after the roll-record door (#915): one list for every roll card a turn has answered, and a mark for the rolls an AI asked for in place of four "spent" stamps #1073 will narrow what pays. Neither is needed for this, and this touches no file of An opportunity attack and a death save show their dice in the chronicle on the line they post, and a rest's hit dice and a fight's opening dice are on the turn that rolled them: three more families move onto the roll-record door (#915, part four) #1063, A trap, a fall and a poison name themselves on their roll card, where their dice read as the roll of the character they landed on, and every attack or damage roll says who or what made it (#915, ruling 2) #1068, The last seven files that put a roll on record by hand go through the one door: a roll card's roll joins its turn as its dice land, and the ledger of by-hand sites is empty (#915, part six) #1072 or A hazard's damage that an AI GM rolls and then sends for a creature lands on it, where the call was answered "already applied" and the creature lost nothing #1074.Tests
scripts/test-tool-descriptions.mjs: one new case and three new facts the compact cut must keep. Both refusals offer dice and name norequest_roll; the fight rule offers dice and says whose roll arequest_rollis; no rule offers "a total it rolled this turn" or a roll made first;characterId's full words say whose roll it is not;apply_damage.amountno longer reads "the server rolled this turn". On the source as it was the suite stops at the first of them.scripts/test-prompt-window.mjsandscripts/test-tool-profiles.mjspass; both failed on my first wording, which is how I met the two budgets above.npm teston Windows, on this commit: 1,264 of 1,268 files passed. The four that failed fail onmainon my machine for its own setup:test-backup-in-appandtest-backup-restore(Git Bash'starreadsC:as a host),test-enforce-last-combatandtest-enforce-monster-blocks(nosqlite3command).tsc,npm run dead-code, lint on the changed files andnpm run buildpass on this commit. The build ran against the Next.js my checkout has installed (16.4.1), not the 16.4.6 the repository pins.Checks
npm run lint,npm testandnpm run buildpass, and the change has a test that fails without it. (Lint on the changed files.npm test: see Tests.).envfiles or players' names in the code, the tests or this description.Settings, options and controls
🤖 Generated with Claude Code