Skip to content

onlyworlds 0.22.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 12:17
· 503 commits to main since this release
  • The conditional head poll (live 2026-10-22): Client.head() reads GET /changes?head=true, where the feed is now without a page, and answers {head, cursor, epoch, unchanged} (with epoch_reason when keel sends it). The client keeps the last 200's ETag and sends it as If-None-Match on the next call, exactly as received (W/ and quotes included; production answers the 200 with a weak tag and the 304 with a strong one, and the tag sent back as received is what matches); the package compares nothing. keel answers 304 Not Modified, with no body, when neither the head nor the epoch moved (the tag covers both), and refunds it against the request budget within a floor of 120 a minute per credential; head() then answers what the last 200 said with unchanged=True. A 200 answers unchanged=False and keeps its tag, or none when it carries none. The tag is per client instance. A 409 resync_required from head(), changes() or walk_changes() drops it, so the poll after it carries no tag. A 304 when no tag was sent is a ValueError, never an invented head. cursor is a string, as the npm SDK's changesHead hands it back (keel answers an owner's as a number). The package never sleeps: the docstring's loop walks when head or epoch differs from the ones last applied, not on unchanged alone, since unchanged is "nothing since the last poll", and a walk that failed after a 200 would otherwise never be retried. Every other call is as before.
  • Fixed: a walk's cursor at the head. keel answers an owner's cursor at the head as a number ("cursor": 226), and ChangeWalk kept only a string: at the tail it held on to the cursor it had been given, so the next walk resent the last page, and a number on a page with more to come was refused as "no new cursor". It now keeps any cursor as a string, "226", the position to pass back as since.
  • patch_world drops slug, public_page and agent_narrator_rule. Since keel's public page (2026-10-22), every GET /world body carries slug (a string or null) and public_page (an object: on, palette, hero, sections, pin, index), and PATCH /world answers both 422 as unknown fields, as it answers public_read. Both writers carry every GET /world key into world.json, so an exported folder's world handed back to patch_world would have been refused. agent_narrator_rule is refused the same way (a 422 naming it, measured on staging) and is dropped with them. owner_character is still sent: PATCH takes it.
  • The wire test now checks /changes's query parameters too (the document declares them), and that the head poll's If-None-Match and the 304's ETag are declared; the live suite polls the demo world's head twice and reads the second as unchanged.