Skip to content

1.40.0: never retry refusals, honour the skill's deployed_sha, stop on stop_retrying - #75

Merged
micmmakarov merged 1 commit into
mainfrom
usage-cli-loops
Nov 27, 2026
Merged

micmmakarov merged 1 commit into
mainfrom
usage-cli-loops

Conversation

@micmmakarov

Copy link
Copy Markdown
Collaborator

From the usage review: agents looped on publish refusals (6,036 conflicts from one account, most via the CLI).

  • Reads .spacesheep.json uuid + deployed_sha (the /sheep skill's pin) and sends it as base_sha — before, a skill-pinned folder deployed with no parent.
  • Before a parentless deploy onto a version another session published, stops and says how to merge (spacesheep read, --base <sha>, --replace); identical files print "Already live".
  • Never auto-retries refusals; rate_limited retried once when retry_after ≤ 60 s; every refusal prints a "What to do:" line.
  • stop_retrying (new server answer) prints verbatim and exits 4. Exit codes documented.

Tests: 393/394 (talk.test.js 'start nudge' fails before this change too).

🤖 Generated with Claude Code

- A deploy with no base onto a space someone else published last reads the
  live version before uploading: the same files are reported as already live
  (nothing deployed, the folder builds on that version from then on);
  different ones stop with who published it and the three ways on (read -o
  and merge, --base <sha>, --replace). The writer is judged the server's way
  (deploy-base.ts); where it can't be told, the server decides as before.
- A .spacesheep.json from the /sheep skill (uuid, deployed_sha) pins the space,
  and its deployed_sha is sent as base_sha when newer than this machine's
  saved base; deploy keeps it current.
- --base latest: the live version itself (the same as --replace).
- No refusal is ever sent again (conflict, error, forbidden, invalid,
  would_drop_files, index_shrunk, placeholder_page, stop_retrying);
  rate_limited once, after a retry_after of at most 60 s. Each prints the
  server's words and one line on what to do; stop_retrying prints its
  message as written and exits 4.

keep_others is not sent: the CLI has no subset deploy (no --only), and the
server doesn't take the field yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0-security

0-security Bot commented Nov 27, 2026

Copy link
Copy Markdown

PR Security

PR Security did not run: your free credit is used. A workspace owner or admin can add a card in Usage & billing, then push again.

@micmmakarov
micmmakarov merged commit bb45f12 into main Nov 27, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant