Skip to content

onlyworlds 0.35.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 04:29
· 475 commits to main since this release
  • The proposal queue's two kinds of row (live 2026-10-23 about 06:00). GET /world/proposals now lists proposal rows (kind: "proposal") and, once each, every element carrying x_review_proposed as a kind: "new_element" row ({kind, id, element_type, element_id, state, by, evidence, expires, created_at, updated_at}, id the element's own; under open, lapsed and all only), one order newest first. world_proposals and walk_world_proposals hand both through; the walker sends each next_cursor back as it came (keel's cursor is opaque now, <microseconds>.<id>). A Proposal carries kind and omitted (the fields a PUT left out that were not empty, in fields at their empty value), and its fields holds only what differs from the element; a propose with nothing new is 422 param fields, and a seat's held write that changes nothing makes no row and answers 200 with the element. push reads only a 202's proposal id, so nothing there moved.
  • review_new_element(element_type, element_id, decision, reason=None) settles a marked new element (POST /{type}/{id}/review, a keeper with the PIN): "accept" writes the mark null and returns {"element": ...}, "decline" deletes the element and returns {"deleted": id}, reason with a decline only (another decision, or a reason on an accept, is a ValueError before sending). ApiError.is_not_proposed reads its new 422 not_proposed (no mark on the element); the member the mark names gets 403 proposed_only as before.
  • The doctor's flag 12 counts the two kinds apart: a new_element row is never a proposal (a row with no kind, from a server before this change, is one). The finding names the marked new elements beside the proposals (2 proposals open and 1 lapsed, and 2 new elements open for review and 1 lapsed, waiting for a keeper; the oldest open proposal is 20 days old), its evidence and compared carry new_open and new_lapsed, and the oldest open is the oldest open proposal. The prose line's unit is now open and lapsed queue rows read.
  • patch_world takes keyword-only source= and producer= (the spec owner's ruling, 2026-10-23). patch_world sends source and producer when you name them; a folder world.json's own pair is left out, since it names the folder's maker; setting a world's origin from a folder is push's first-fill step, unchanged. Each named one is sent as given, None as null (keel clears it); left out, it is not sent.
  • Tests: review accept and decline (with and without a reason), its refusals before sending and an answer without its key; the walker over both kinds with an opaque cursor; not_proposed among the codes, each with its own predicate; flag 12 over a queue whose newest and oldest rows are marked elements, and over marked elements alone; patch_world with the keywords, with None, and with a folder's pair in the partial. The wire test now reaches every /proposals and /review operation in the document on all 22 types, reads the queue's oneOf as the two kinds the doctor tells apart, the review body's two decisions and its two answers, not_proposed at 422, and the named pair under WorldPatch's nullable keys. Sixteen mutants, each watched failing: the review's reason, path, decision check, accept-reason check and answer check; the walker reading the last row's id; not_proposed at 409; the doctor counting marked rows as proposals, dropping their clause, taking the oldest over every row, dropping them from the prose, and a wrong kind name (the wire test); patch_world ignoring the keywords, reading None as not sent, and letting the partial's pair through.