Skip to content

onlyworlds 0.34.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 03:50
· 476 commits to main since this release
  • patch_world takes back a GET /world body again (live 2026-10-23 about 05:20). keel now serves origin ({source, producer}) on every World body and answers it 422 on PATCH /world, so handing get_world() back to patch_world failed. origin joins WORLD_READ_ONLY_FIELDS and is dropped like slug and public_page; a folder world.json that carries it (an export from 0.33.0 on writes it as served) is sent without it. The folder's own source and producer are still left out whoever passes them, so patch_world never sets a world's origin. The World's extension keys (x_*, atlas_*, shadow_*), now served and stored by keel, are sent as given, None removing one.
  • push sets a world's origin on a first fill (the spec owner's ruling, 2026-10-23). origin is a world's birth line, written once: a push sets it only on a first fill from a folder made elsewhere, never from a folder exported from the same world, and never over a first import. After the element patches (not on a dry run, not after a run that stopped), when the folder's world.json has a source or a producer, push reads GET /world; when its origin is null in both keys (a server that serves no origin counts as set) and the folder's source.world is not that world's id (a folder with no source line passes, so a converter's first output sets producer with source null), it sends the two as they are, a missing one as null, in one PATCH /world. It is logged and read back like a patch; PushResult.origin holds what landed, and a failure is in PushResult.failed with type: "world". A folder with neither key makes no world call.
  • A contributor's push is not failed by the origin step. A key that may not write the world (403 owner_only: a contributor or a guest) is logged skipped: owner_only and leaves PushResult.failed alone; the origin is the owner's and co-builders' to set.
  • Tests: a read body with origin sends without it; a folder world.json with origin too; a read body's x_, atlas_ and shadow_ keys (one None) are sent as given. The push's four cases: an empty origin with a folder from another world, and with no source line, sends {source, producer} and nothing else; an origin already set, a folder exported from the same world, and a server serving no origin each send nothing after the GET. Each watched failing on its own mutant (never send; a set origin ignored; the same-world check dropped; an absent origin read as null). The wire test now reads the World schemas: a body with every key World serves, handed to patch_world, sends only what WorldPatch takes (its properties or its extension pattern). The origin assertions watched failing with origin out of the set, the extension ones with x_ keys dropped.