[ENG-3568] Document login for the agents that will run it - #153
Merged
Conversation
The command was one line inside a paragraph about credentials, which is not enough for an assistant to use it correctly. Adds a section to AGENT-INSTALL.md covering when it applies, what the agent must do, and what it cannot do alone. The failure this heads off: an agent seeing a missing or rejected credential reaches for deleting .patchstackrc.json and re-scanning, which silently provisions a second site and orphans the original — widget tag already live on the deployed page, history attached to a record nothing points at any more. Says so in the place that instinct occurs. States the parts an agent must relay rather than discover: it needs the human, because approval requires their signed-in account; it should not kill and retry, because each run invalidates the code already on screen; and approving rotates, so CI, deploys and other checkouts need the new value. Adds a table of the cases where it will not work at all. The CLI now says the rotation consequence before approval as well as after, so whoever is deciding sees it in time to matter. Co-Authored-By: Claude <noreply@anthropic.com>
|
Adds detailed login recovery documentation and CLI flow for credential restoration. 🎯 Quality: 94% Elite · 📦 Size: Small 📈 This month: Your 58th PR — above team average · Averaging Excellent |
Contributor
Author
|
/review |
daniloradovic
approved these changes
Aug 20, 2026
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.
Follow-up to #150. The command shipped; the instructions for using it did not.
loginwas one line inside a paragraph about credentials — not enough for an assistant to use it correctly, and this package is installed by AI coding tools far more often than by hand.The failure this heads off
An agent that sees a missing or rejected credential will reach for the obvious fix: delete
.patchstackrc.jsonand runscanagain. That provisions a second site. The original is orphaned — its widget tag already live on the deployed page, its history attached to a record nothing points at any more.AGENT-INSTALL.mdnow says so directly, in the place that instinct occurs.What the section covers
When it applies — credential gone or rejected: file deleted, never committed, cloned without it, container recycled, ingest 401ing.
What the agent must do — surface the link and code verbatim, leave the command running, report the outcome.
What it cannot do alone — approval requires the user's signed-in account. This is deliberately human-in-the-loop: starting a flow proves nothing about who started it, so an owner approving in the browser is the authorisation. An agent must not ask for credentials to do it itself.
Two things it would otherwise get wrong
A table of cases where it won't work at all — unclaimed site (409), CI (refuses), no
siteUuid, expired code — each with the correct next step.Verification
1220 tests pass, typecheck clean. Docs and CLI copy only — no behaviour change.
Ref ENG-3568
🤖 Generated with Claude Code