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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

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.

Notes

shipped production is serving it deploy b03b44b

opened this

test/mixed-actions-held.test.ts is red on main: since #16337 and #16338 added claim, domain and retire to 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.

  • claim: "Make a fresh claim link for the pinned forge n."
  • domain: "Set the domain pinned forges are named under to d."
  • retire: "Retire the pinned forge n, keeping its data", or "... and delete its data" when withData is 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

Changes requested — before the latest push

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.

  1. Clearing the domain. The tool doc says domain: "" clears the domain (changeBaseDomain then 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. When a["domain"] === "", say "Clear the domain pinned forges are named under". Add a test for it.
  2. 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) when despiteClaim === 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.

commented

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.

Approved

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:

  1. Non-blocking: move the /** Every form, by tool. */ comment back above ASKED_AS. It now sits above the pinnedForge doc block and describes nothing there.
  2. Non-blocking: add a test for a retire with despiteClaim: false or a missing name, so the fallback wording is pinned too.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs