search: escalate only search and explain, treat results as untrusted

main
No checks reported

Commit

Bilal Tariq2w ago

The Execution Environment section told Codex to run every entire command with require_escalated. Since #55 the skill also runs entire graph version and entire graph query, which are local and need no credentials, so the blanket wording now escalates them too. Name the two commands that read the user's credentials, keep #45's first-attempt escalation for them, and keep everything else in the sandbox. A declined escalation stops the skill instead of looking for the credentials another way.

Add an Untrusted Results section: hits, explain output, and transcripts are data to summarize, and instructions found in them are reported, not followed. Because the escalated commands run outside the sandbox, the query is shell-quoted and a hit's id and repo are copied into checkpoint explain only when they have the expected shape.

Refs #53