Skip to content

The default dispatch was broken by a GitHub Actions falsy ternary - #62

Merged
StepenkoAnatoli merged 1 commit into
mainfrom
fix/auto-search-transport
Sep 22, 2026
Merged

StepenkoAnatoli merged 1 commit into
mainfrom
fix/auto-search-transport

Conversation

@StepenkoAnatoli

Copy link
Copy Markdown
Owner

Found by launching the first research collection since #58, which used the
default search_transport and died:

  unknown search provider "auto". Known: firecrawl-cli, http-keyless, serpapi

The wiring was:

  RESEARCH_KIT_SEARCH_TRANSPORT: ${{ inputs.search_transport == 'auto' && '' || inputs.search_transport }}

In GitHub Actions the EMPTY STRING IS FALSY, so when the condition is true
the true-branch collapses and the expression yields its third operand. It
passed the literal "auto" into the ladder, which correctly refuses it as an
unknown provider.

Why it survived review and CI: every run that exercised the feature pinned
an explicit provider, because the whole point of the input was comparing
serpapi against firecrawl-cli. The DEFAULT path - the one almost every real
dispatch takes - was never run until a research collection tried it. The
feature was tested; its default was not.

The input is now carried raw as SEARCH_TRANSPORT_INPUT and blanked in the
shell, where an empty string is just an empty string:

  if [ "${SEARCH_TRANSPORT_INPUT:-auto}" != "auto" ]; then
    export RESEARCH_KIT_SEARCH_TRANSPORT="$SEARCH_TRANSPORT_INPUT"
  fi

A guard scans every workflow for the pattern. It earned its place twice: on
first run it flagged the explanatory COMMENT that warns about the footgun,
because a check that cannot tell a value from prose about the value reports
the documentation as the defect. Comment lines are skipped now, and the
guard was confirmed red against the real expression and green without it.

860 -> 861 tests.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@StepenkoAnatoli
StepenkoAnatoli merged commit e1e8e80 into main Sep 22, 2026
3 checks passed
@StepenkoAnatoli
StepenkoAnatoli deleted the fix/auto-search-transport branch September 26, 2026 22: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