Repository navigation
[NO-TICKET] Tell agents not to rebuild setup by hand on a builder that blocks the CLI - #357
Merged
Merged
Conversation
… CLI On a hosted builder that refuses the CLI, an agent can install the package, read its source, and write its own build plugin that sets the live-site flag on every build. The builder serves that build at its preview address too, so the widget reads the preview as the live site and hides the claim panel from the owner. Say plainly that build plugins, a hand-set marker and direct API calls are routing around the block, and that the Connector-only choice is the tag alone. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Documentation clarifies not to bypass the CLI with manual build hacks. 🎯 Quality: 97% Elite · 📦 Size: Small 📈 This month: Your 207th PR — above team average · Averaging Excellent |
Contributor
Author
|
/review |
patchstackdave
approved these changes
Oct 2, 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.
No ticket.
What changed
AGENT-INSTALL.md, section When the platform blocks the CLI outright:setupby hand counts as routing around the block. That means writing a build plugin or script that imitates a Patchstack step, settingwindow.__PATCHSTACK_PROD__orwindow.__PATCHSTACK_ENV__yourself, or calling the Patchstack API in place of the CLI. It explains why in one sentence.field-test/personas/base44.md: the meta block now lists "no build plugin or production marker of its own" among the things abase44round's report is read for.Why
The section already says "do not route around the block". In a real session on a hosted builder that blocks the CLI, an agent read that as "don't run the CLI another way". It then installed the package, read its source, and wrote its own Vite plugin. The plugin added
window.__PATCHSTACK_PROD__=trueto every build, because no environment variable said otherwise, and copieddata-patchstack-build="true"frommark-build.That builder serves the same build at its preview address and at the published one. The widget saw the live-site flag on the preview, treated the preview as the live site, and never showed the "Connect this website" panel. The person could only claim the site by asking the agent for the link.
A marker decided at build time cannot be right on a platform like that. With no marker, the widget works out from the page's address whether it is on a preview or the live site. So the right instruction is: add nothing in the build.
Verified
npm test: 4292 passed, 7 skipped. This includespermission-handoffandexecution-disclosure, which readAGENT-INSTALL.md.npm run capabilities:check: up to date, no vocabulary change.Outstanding gate
AGENT-INSTALL.mdships in the tarball. After the release that carries it:Read the reports for any build plugin or hand-set marker in the changed files. As with #354, a red scorecard is expected.
Docs: this is the docs change.
🤖 Generated with Claude Code