Make the agent install prompt refusal-resistant: verify-first, steps inlined#41
Merged
Conversation
@patchstack/connect was first published in May 2026, after most AI coding agents' training cutoffs, so they assert the package doesn't exist and refuse the install. Lead the prompts and the bundled guide with a read-only `npm view @patchstack/connect` check so agents verify against the registry instead of trusting stale memory. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Clear, focused addition of a verify-first step to the install prompts. 🎯 Quality: 98% Elite · 📦 Size: Tiny 📈 This month: Your 217th PR — above team average · Averaging Excellent |
devlob
added a commit
that referenced
this pull request
Jul 13, 2026
…lineage Two 0.3.x protect lineages had diverged. main (0.3.3, #36-#41) advanced the scaffold-engine + local-manifest/--manifest approach; this branch vendored the node-waf engine into the package (@patchstack/connect/protect) and added the TanStack server-function guard. This takes the vendored lineage as canonical: - scaffolds only guard.ts + rules.json (the WAF engine ships in the package) - protect wires BOTH request middleware (browser tunnel) AND function middleware (TanStack server functions); per-piece idempotent so upgrades reconcile cleanly - drops the scaffolded engine.js/manifest.js templates and the --manifest flag (the vendored engine handles package-conditional rules via the API/rules) Preserves all of main's non-protect advances: in-package install guide, mark-build build-stack descriptor, tag-driven release workflow, guide command, verify-first install prompt. Typecheck clean; 126 tests pass.
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.
Summary
Iterates on the AI-agent install prompt after field-testing three distinct refusal modes:
@patchstack/connectdoesn't exist; the prompt now includes a read-onlynpm view @patchstack/connectcheck so the registry, not model memory, settles existence.The README prompt is now five numbered, individually inspectable commands — no delegation, no trust arguments. The bundled
AGENT-INSTALL.md/npx @patchstack/connect guidestays as reference material (framework-specific widget placement, re-run rules, troubleshooting) rather than the instruction channel the install depends on, and its knowledge-cutoff note is rephrased to be purely factual.🤖 Generated with Claude Code