Skip to content

onlyworlds 0.26.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 15:01
· 495 commits to main since this release
  • The proposed change (live 2026-10-22 16:25). propose(type, id, fields, *, evidence, expires=None, idempotency_key=None) (any member key that reads the element; fields cleaned as patch cleans a body, a known-of stub refused; an Idempotency-Key always sent, yours or a fresh one, as create does; expires an ISO string or a datetime), list_proposals(type, id, ...), world_proposals(state=None, since=None, element=None, limit=None, cursor=None) and walk_world_proposals(...) (the queue, newest first; keepers see every row, others their own), accept_proposal(type, id, pid) ({proposal, element}: the keeper's own write, one feed row; no Idempotency-Key, the document declares none, so a retry after a lost answer can meet a 422 on a decided row), decline_proposal(type, id, pid, reason=None) and withdraw_proposal(type, id, pid) (204). X-OW-Client on propose and accept, where the document lists it; X-OW-Agent on none.
  • A write held as a proposal raises, never returns. Under the world's AI seats propose, a person accepts switch an agent seat's patch, upsert or link edit answers 202: ProposedError (ApiError, status 202, .proposal, is_proposed). A bulk slot with status 202 stays in the result, listed on BulkResult.proposed. The push loop counts a 202 as PushResult.proposed, logs it with the proposal id, never puts it in ok or failed, and on a rerun skips a patch the log shows was proposed (already_proposed), so it never files the same proposal twice; an edited patch is sent again.
  • Five codes as ApiError predicates (is_stale_proposal, is_own_proposal, is_proposed_only, is_too_many_open, is_field_not_visible); a stale accept is StaleProposal with .conflicts ([{field, base, current}]) and .current, modelled on PreconditionFailed.
  • patch_world drops agent_writes_proposed with slug, public_page and agent_narrator_rule.
  • The doctor, flag 12 "proposals waiting" (PROPOSALS_FLAG, API door only): the open and lapsed rows of the queue, one finding on the world when any, with the counts, the oldest open row and its age in days; compared["12"] carries open, lapsed and the key's role as view (a non-keeper sees its own rows only); not run, with its reason, on a folder, on a 403 or 404 (a key with no member, or a server before the proposed change), or on a reader without the queue; --packet leaves it out.
  • Tests: 37 offline (17 red first) and 3 against the live document (every proposal call's route, parameters, headers and body; the 202's shape on PUT, PATCH and links; the five codes' statuses; agent_writes_proposed read-only). Live on production with the demo key, reads only: the world carries agent_writes_proposed: false; the queue answers 404 to a key with no member, as the document says. Not exercised live yet: propose, accept, decline, withdraw and the 409 (staging does not serve the proposed change at release time; the round-trip script waits for it). No conditional 304 on the lists yet.