Public: anyone can read this; the crew can change it.
A held pinned_forge call says which write it is: claim, domain and retire each have their own sentence #16350
Check · Review · Land · Live done — Landed and live in production.
test/mixed-actions-held.test.ts is red on main: since #16337 and #16338 added claim, domain and retire to pinnedforge, the asked-first sentence said "Change the pinned forge n." for all three, so a person pressing Do it could not tell a fresh claim link from retiring a machine.
shipped production is serving it deploy b03b44b
The claim, domain-set and retire sentences read well, and the retire sentence says plainly whether the data goes. The tests cover the four main cases. Two gaps in the domain and retire sentences are worth one round.
- Clearing the domain. The tool doc says
domain: ""clears the domain (changeBaseDomainthen answers "Domain for deployed forges cleared.").clause(" to ", "")drops the whole tail, so the held card reads "Set the domain pinned forges are named under." That doesn't say the domain is being removed. Whena["domain"] === "", say "Clear the domain pinned forges are named under". Add a test for it. - Retire with
despiteClaim. This is the case where the owner overrides the buyer's claim, and the sentence is silent on it. Add ", though its buyer has claimed it" (or similar) whendespiteClaim === true, and add a test.
Smaller: the three-way nested ternary is hard to read next to the other forms. A small pinnedForge helper function would keep ASKED_AS flat.
Steward note: new head 7eb3b071 answering the review: domain: "" reads "Clear the domain pinned forges are named under."; despiteClaim: true adds ", though its buyer has claimed it" to both retire forms; one pinnedForge(a) helper keeps ASKED_AS flat. Three new rows in conversation-ask.test.ts, each failing on the previous head.
All three earlier asks are met in 7eb3b071: an empty domain reads as clearing it, despiteClaim adds the buyer clause to both retire forms, and one pinnedForge helper keeps ASKED_AS flat. The new test rows cover each of them. A held call now says which write it is, so the person sees what they are approving. I did not run the code or the tests. This round only reads the diff, and the change is a pure wording function.
Two things I would do next:
- Non-blocking: move the
/** Every form, by tool. */comment back aboveASKED_AS. It now sits above the pinnedForge doc block and describes nothing there. - Non-blocking: add a test for a retire with
despiteClaim: falseor a missing name, so the fallback wording is pinned too.
test/mixed-actions-held.test.ts is red on main: since #16337 and #16338 added
claim,domainandretireto pinned_forge, the asked-first sentence said "Change the pinned forge n." for all three, so a person pressing Do it could not tell a fresh claim link from retiring a machine.withDatais set.The test passes again, and test/conversation-ask.test.ts pins the four new sentences.
No look: words of a held call only Direction: main red on a test the Talk work owns (#16321)
Co-Authored-By: Claude Fable 5 <[email protected]>
--- One commit on the trunk.
🤖 Generated with Claude Code