Skip to content

fix(firecrawl): run setup's status checks as single calls - #13866

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/13768-firecrawl-setup-single-calls
Nov 6, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/13768-firecrawl-setup-single-calls

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #13768

Summary

Part (b) of #13768: the firecrawl setup eval suite was INVALID twice because the with-arm's check step ran its probes as one compound Bash command, with a zsh ${(P)v} indirect-expansion loop over the env vars, which the eval session's don't-ask mode denies. This PR makes setup run each probe as its own Bash call.

Fix

plugins/firecrawl/skills/setup/SKILL.md, check steps 1-3, same line count so every line citation in the eval cases still holds:

  • firecrawl --version and firecrawl --status each run alone, with no ;, && or loop.
  • FIRECRAWL_API_KEY presence: test -n "$FIRECRAWL_API_KEY" alone (exit 0 = set); the value is still never printed.
  • FIRECRAWL_API_URL and FIRECRAWL_NO_TELEMETRY: one test -n call each, with the variable named.

Changelog: .changes/firecrawl/fix-13768-setup-single-bash-calls-4b8e2d71.md (patch).

Verification

One before/after pair, all 6 setup cases, --allow-tools Bash,Write,Edit (all six declare the same extras), 3 runs per arm. Head = this branch at ec78498038; before = main at 8e183537f8.

Suite Verdict
head VALID (warnings: no skill-fired grader, which is expected for slash-invoked cases; 1 split judge vote)
before INVALID: 8 permission denials. 7 are the compound check command or its (P) loop; the 8th is a Read of the firecrawl binary's path that came after that run's compound denial, as a fallback.

The head traces show the probes as separate approved calls: firecrawl --version, firecrawl --status, then three test -n "$FIRECRAWL_..." calls. The before side fails only on the shape this PR removes.

Per-case means over 3 runs (with / without). The before numbers come from an INVALID suite and are shown for context only:

Case Head with Head without Before with Before without
setup-apply-no-write-path 0.974 0.641 0.974 0.564
setup-bare-defaults-to-check 1.000 0.667 1.000 0.667
setup-check-read-only 1.000 0.875 1.000 0.833
setup-missing-cli-is-info 0.889 0.444 0.926 0.444
setup-persisted-login-auth-passes 0.933 0.600 0.933 0.633
setup-status-timeout-indeterminate 0.967 0.733 0.933 0.767

setup-missing-cli-is-info is 0.037 lower on head because one regex grader (names-lazy-install) missed in one of three runs. That case's prompt tells the model not to probe, and none of its graders reads the lines this PR edits, so the dip is run-to-run noise, not an effect of the fix.

Split judge votes, all on no-key-change in setup-status-timeout-indeterminate: 1 on head (with-arm run 3: FAIL PASS PASS), 2 on before.

validate-cases.py on plugins/firecrawl/evals: 0 FAIL, 35 WARN. All 35 WARNs say a case cannot grant Bash/Write/Edit/WebFetch itself, which is expected because the runner passes --allow-tools.

Remaining on #13768

  • Tick part (b)'s firecrawl setup line once this merges.
  • The earlier run also had one without-arm sed read of .mcp.json denied. It did not recur in this pair.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 17:31
The check step's probes ran as one compound Bash command with a zsh
indirect-expansion loop over the env vars, which the eval sandbox's
dontAsk mode denied. Each probe now runs alone, and each env var is
tested by name.

Refs: #13768

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 23:07
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T23:07:56.142509Z
We couldn’t complete this review. Comment @codex review to try again.
5ec68d7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 5ec68d7008a654ed47073d7c57b82f74decfbe1a: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read every hunk of both changed files: the changelog fragment .changes/firecrawl/fix-13768-setup-single-bash-calls-4b8e2d71.md and plugins/firecrawl/skills/setup/SKILL.md. Neither file is on a trusted path, and the diff touches no plugin manifest.

Instruction-surface lens. The diff rewrites standing instructions in a skill body, check steps 1–3, so I read it for rules that were removed or weakened:

  • Secret handling stays the same. The FIRECRAWL_API_KEY check still asks for presence only and keeps "NEVER print, echo, log, or persist the value". The new check, test -n "$FIRECRAWL_API_KEY", sends nothing to stdout or stderr and reports only through its exit code. That leaks less than the old [[ -n "${FIRECRAWL_API_KEY:-}" ]], not more.
  • Optional env vars. "again without printing any value" became "print no value". The ban on printing values is unchanged; only the wording is shorter.
  • The firecrawl --version / firecrawl --status probes are the same read-only commands as before, now run as separate Bash calls. No new command, write, or off-machine action is added.

No removed rule matches a protected class, so there is no instruction-surface finding. I did not open the protected-class register (docs/contracts/instruction-exception-register/README.md); I judged the removed rules by their consequences.

Embedded text. The PR description holds no instructions aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 5ec68d7008a654ed47073d7c57b82f74decfbe1a: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #13866, fix(firecrawl): run setup's status checks as single calls

Scope: full review, both changed files read in full: .changes/firecrawl/fix-13768-setup-single-bash-calls-4b8e2d71.md and plugins/firecrawl/skills/setup/SKILL.md. This is the lane's first review of the PR (no earlier heads, not blocking-only).

What changes: check steps 1–3 in setup/SKILL.md now tell the model to run firecrawl --version, firecrawl --status and one test -n "$FIRECRAWL_…" per env var, each as its own Bash call. The old instruction was one compound [[ -n "${FIRECRAWL_API_KEY:-}" ]] test, which models were running as a chained or (P)-loop command that the eval session's don't-ask mode denies.

Checks:

  • Correctness. test -n "$VAR" is the POSIX form of the old presence test and needs no [[ ]]. The skill declares shell: bash and the Bash tool does not run under set -u, so dropping the :- default does not break the unset case. The value is never printed: the result is the exit status only, and the "NEVER print, echo, log, or persist the value" wording is kept.
  • Line citations. The edited block keeps its line count, as the PR says. The changed lines are 50–51, 55 and 69–70, and the surrounding step numbering and verdict text are unchanged.
  • Eval fixtures. The no-print-key / no-key-write sample fixtures under plugins/firecrawl/evals/*/samples/ still show the old [[ -n … ]] shapes. They are grader regression samples, not instructions to the model, so leaving them unchanged is consistent. The new test -n form passing those graders on head is author-claimed, unverified: the PR reports a VALID head suite. I did not run the evals.
  • Changelog. The fragment's bump: patch fits a wording-only fix to a skill's instructions. No plugin manifest changed.
  • Closing issue. The PR says Refs: #13768 and closes no issue, so there are no acceptance criteria to check against.

No embedded directives were found in the PR context.

No findings.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit e22b5e0 Nov 6, 2026
95 of 98 checks passed
@kyle-sexton
kyle-sexton deleted the fix/13768-firecrawl-setup-single-calls branch November 6, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant