Repository navigation
v0.49.0
Image: ghcr.io/alejandroerickson/what-build:v0.49.0 (linux/amd64), built from 1ad7d439f2a29c082a0eef1256f4d4425e5477d5.
Migrations. This release changes the database schema since v0.48.0, the last release with an image:
0057_blocking_feedback.sql0058_search_words.sql
Going back to an earlier release needs the database restored to before these ran. Take a restore point before deploying.
If a release breaks your deployment: recovering from a bad release.
Upgrading.
- A search reads only the pieces of text that hold its words. Row-level security kept Postgres from using the search index, so every search read every piece of text in the database, every organization's, and on a small server with little memory a search after a quiet spell could pass 5 seconds (
503 search_timed_out). Migration0058addstext_chunk_words, which copies each piece's search words beside it (and dropstext_chunks_tsv, which could never be used). It lockstext_chunksagainst writes while it copies, about as long as reading every piece takes, and the database grows by about the size of the pieces' search vectors. The previous release keeps working on the migrated schema: it still searchestext_chunksas before, never changes a piece in place (which the migration refuses), and the pieces it writes get their words from the migration's trigger. Nothing else needs doing. A search for words most texts hold still reads each piece that holds them. - Correcting a misspelt word in plain search no longer reads every text in the organization. A word that matches nothing is now corrected from the product's own pieces that hold a word starting with its first three letters (or with two neighbouring letters swapped, or from a title). It took about half a second for every five million characters of text the organization held on a fast computer, several times that on a small database server, where it could stop the search; now it takes milliseconds. People and agents will notice that a misspelling within a word's first three letters is searched as typed unless it is a swap. Looking for a correction has half a second of its own; past it, the words are searched as typed and the answer's
correction_skippedsays so, neversearch_timed_out. Agents seetools_version0.79.0. Nothing needs doing; no migration. - A search stopped at its time limit says why it was likely slow.
503 search_timed_outgivesdetails.searches_running, how many other searches ran beside it. When there were any, it tells the agent to send searches one at a time. Connected agents see the guide's new words once they refresh their tool list (tools_version0.79.0). The Azure guide says why a search can time out on a small database server (reading text from disk after a quiet spell, or CPU credits spent) and how to tell which. Nothing needs doing; no migration. - Problems people meet reach the people who run the deployment at once. Errors in people's browsers (a screen that failed, an error the app's own code threw), signed in or not, the sign-in page among them, are written to the service's log as ERROR lines,
browser_error, which an alert on error lines mails; a request meant to answer at once that takes 10 seconds or more is aslow_requestline; every 5xx answer carriesreference, the request's ID, which the web app shows beside the error with Report this problem. Feedback takesseverity: "blocking"and areference, and a blocking report is mailed toWHATBUILD_FEEDBACK_EMAILat once, within allowances of its own. Migration0057adds four columns tofeedbackand one tofeedback_counts, with defaults, which the previous release never reads or writes, so it keeps working on the migrated schema; nothing else needs doing for these. A Cloud Run deployment takes the new alerts by runningdeploy/cloud-run/alerts.mjsagain (it addsslow requests), and, behind the Cloudflare Worker, by deploying the Worker from this release and passingEDGE_URL=https://<the app's host>, which adds an uptime check on/edge-health.txt, a path only the Worker answers, andthe edge is down(Cloud Run). Agents seetools_version0.79.0. - A filesystem file store that can't be written is said, not answered as an internal error. A deployment whose files go to a mounted volume (
WHATBUILD_BLOB_STORE=fs, as on Azure) checks at start that it can write toWHATBUILD_BLOB_DIR. When it can't, it logsfile_store_unwritableas an ERROR line that names the folder and the error, answers writes of files503 storage_unavailableinstead of500 internal, andGET /api/v1/metasaysstorage: "unwritable"until a write succeeds. After changing the environment or the volume, check thatstoragesays"ok". A deployment on object storage reads"unchecked"there. Nothing needs doing; no migration. - Agents' common guesses at a field's name are taken, or answered with the right one. A write takes
etagforexpected_etag,derived_read(action="text")takeslengthforlimit, and the Playbook'sindex,read_filesandget_downloadtakefolderforprefix. The actions' one-line summaries, which an agent reads before it asks for a schema, now name the fields they take:offsetandlimit,note_kind,prefix, and thatmockups_write(action="request_upload")takes only the ZIP's size. A refused field is matched against the optional fields too, so it comes with the name meant. Nothing needs doing; no migration. - Agents keep corrections in the Playbook, and hear of the starter's pages nobody filled. The server's instructions, the guide and the starter's
how-to/lessons.mdsay that writing to a product's Playbook is part of the work the person asked for, and that a correction about the product's work is a lesson there even for an agent with a memory of its own, which may keep a pointer to it.playbook_read(action="housekeeping")answersunfilled_starter, the starter's pages to fill (product/now.md,product/evidence-map.md) that nobody has written, from the first day, and leaves them out ofdrafts;products_read(action="get")marks such aread_firstentrystarter: true. A product that has written to its Playbook keeps its own copy of the starter'show-to/files;playbook_read(action="starter")shows the new text to take. Nothing needs doing; no migration. Agents seetools_version0.79.0, and a connected agent gets the new instructions only after its client refreshes its tool list (in Claude Code, a new conversation or a restart).
What's Changed
- Use made-up sample values for the Pro price, the demo's phrase and a synthetic organization by @alejandroerickson in #379
- Fix Playbook links to Story pages, and add what agents asked for by @alejandroerickson in #380
- Hear of a problem people meet at once: browser errors, references, blocking reports by @alejandroerickson in #382
- Check the Playbook plan's tools_version against the server's by @alejandroerickson in #383
- Say where step 15's floods are judged and where a Story page's arrows lead by @alejandroerickson in #384
- Name fields where agents read them, say when a file store can't be written, and why a search timed out by @alejandroerickson in #381
- Keep corrections in the Playbook, and name the starter's pages nobody filled by @alejandroerickson in #385
- Correct a misspelt word from words that start as it does, within half a second by @alejandroerickson in #386
- Find a search's pieces by their words' index under row-level security by @alejandroerickson in #387
- Give v0.49.0 its upgrading notes by @alejandroerickson in #388
Full Changelog: v0.48.0...v0.49.0