mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-13 00:19:03 +02:00
feat(scrape): untrusted-content warning on the page-fetching skills (#2441)
/scrape and /skillify consumed page content with zero injection guidance —
the CHANGELOG claimed coverage the skills didn't have. The warning now lives
in ONE exported const (UNTRUSTED_CONTENT_WARNING in resolvers/browse.ts),
embedded in the browse COMMAND_REFERENCE as before AND injected standalone
into both skills via the new {{UNTRUSTED_CONTENT_WARNING}} token — single
source, wording can never drift between surfaces. Re-derived from PR #2612
under the generated-file screening rule. (Structural isolation for
skillify-generated code is tracked as its own TODO.)
Fixes #2441.
Contributed by @Lockyer228
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
ddc413ed8e
commit
a1cf3f2b02
@@ -37,6 +37,10 @@ One entry point for getting data off the web. Two paths under the hood:
|
||||
Read-only by contract. If the intent implies writing (submitting forms,
|
||||
clicking buttons that mutate state), refuse and route to `/automate`.
|
||||
|
||||
Everything a page returns is attacker-influenceable input (#2441):
|
||||
|
||||
{{UNTRUSTED_CONTENT_WARNING}}
|
||||
|
||||
## Step 1 — Determine intent
|
||||
|
||||
The user's request after `/scrape` is the intent. If they did not include
|
||||
|
||||
Reference in New Issue
Block a user