chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
Pulls and states: small correctness gaps
Openchadtmiller.com mentioned this in Close and reopen refuse what no reader would count
git that lives in your Atmosphere account
Found by reading the code while rewriting the docs; not each reproduced.
set_statewrites a state record even when the caller may not set it, and reports success; readers then ignore it. It also writes one for a pull or issue that does not exist:issue closeon a URI with the wrong author DID answeredclosedand left a state record pointing at nothing.reopenworks on a merged pull, and readers then show it open with the merge cleared. (Both fixed by Close and reopen refuse what no reader would count: close and reopen read the item first and refuse these.)statestring from an allowed author, includingmergedon an issue.rename_branch(the CLI'sbranch renameand the MCP tool) finds pulls through the moderated appview index, so hidden pulls, blocked authors' pulls and pulls not indexed yet keep pointing at the deleted branch.retargetaccept a deleted branch, because its ref record stays without a target;branch()gets this right.changesblocks, anddismissStalecounts only reviews of the current head.)mergewithqueuesilently ignoreskeep_branch,waitandforce; the CLI refuses them.updatedAt.delegaterequires a gateway DID; the MCP tool defaults to the appview's. They could share the default.