Repository navigation
obj: pail obj ls|get|put|rm for the sibling area (Tier 2 primitive) - #58
Open
calvin-archastro wants to merge 1 commit into
Open
calvin-archastro wants to merge 1 commit into
calvin-archastro wants to merge 1 commit into
Conversation
Tier 2 primitive for Actions: create-only (--if-absent) and generation-matched (--if-version) writes with an opaque base64url version token. Exit 3 for an absent key on get, exit 4 for a failed precondition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
pail obj [--area NAME] ls|get|put|rm(default areaactions, objects in<repo>.<area>/), the primitive Tier 2 writers use (docs/actions.md §5).ls PREFIX: JSON lines{key,size,version,modified(ms)}, sortedget KEY [-o FILE]: exit 3 if absent; with-oprints the version tokenput KEY (FILE|-) [--if-absent | --if-version TOKEN]: prints new token; exit 4 on failed preconditionrm KEY [--if-version TOKEN]: idempotent; exit 4 on failed preconditionstore::VersionJSON;ls,get -oandputtokens are interchangeable.events --cursor bucket:).Notes:
REFUSED_EXITfor hook refusals; hooks never run inobj, so it is unambiguous within this command.rm --if-versionis atomic on file://; on buckets it is check-then-delete (no conditional delete in object stores).lsHEADs each object on gs://.Store::casnow maps NotFound on an update to Conflict.tests/incremental_tree_is_canonicalfails on main already (debug overflow); unrelated.--test objto the existing s3/gcs CI jobs).🤖 Generated with Claude Code