Skip to content

fix(cli): default AutopilotCellRun to autopilot-ai 3.0.2 - #113

Merged
sinameraji merged 1 commit into
mainfrom
fix/autopilot-ai-3x-default
Oct 29, 2026
Merged

sinameraji merged 1 commit into
mainfrom
fix/autopilot-ai-3x-default

Conversation

@sinameraji

Copy link
Copy Markdown
Collaborator

Closes #112.

What changed

  • DEFAULT_PACKAGE in packages/cli/autopilot/cell-executor.js is now autopilot-ai@3.0.2 (was 2.8.0; npm latest is 3.0.2).
  • scripts/check-autopilot-default.mjs now fails (::error::, exit 1) when the default is a major release behind npm, and still warns when it is more than a minor behind. New exported isMajorBehind().
  • Tests cover the new rule and the bumped default.
  • docs/autopilot.md states the default and what was verified on which version.
  • AGENTS.md said the package was 0.3.x; it is 0.13.x.

Bridge protocol check against 3.0.2

Compared autopilot-ai@3.0.2's dist/sdk with 2.8.0:

Surface Result
/health → { ok, initialized, sessionId } unchanged
/status → { initialized, sessionId, activeRunId, cursor } unchanged
/events?after= → { events, cursor, hasMore } unchanged
/rpc command validation, ALLOWED_COMMANDS unchanged
new_session unchanged, plus optional modelInfo
prompt de-duplication by turn id (seenRunIds) unchanged
abort unchanged
SessionEvent union byte-identical (4823 chars in both)
Task shape identical

The only addition is an optional modelInfo field on new_session and set_model. The executor never sends it, so acceptModelInfo() returns undefined and nothing changes. The recorder needs no adaptation.

What was not repeated

The documented real end-to-end and restart runs (provision → completion, kill-node-mid-tool → resume, budget pause → resume) were not re-run on 3.0.2: this environment has no Hotcell daemon or gateway. docs/autopilot.md says so explicitly. The fake-bridge tests still cover setup steps, event mapping, restart resume, budget aborts, errors/backoff, failed setup, lost turns and schema migration.

Tests

  • npm run test --workspace=serverless-objects: 271 pass, 0 fail.
  • node scripts/check-autopilot-default.mjs: autopilot-ai default 3.0.2 is current (latest 3.0.2).

Co-authored-by: autopilot kimiflare@proton.me

The cell executor installed autopilot-ai@2.8.0 by default while npm is at
3.0.2. Checked the bridge protocol against 3.0.2's SDK: /health, /status,
/events and /rpc are unchanged, prompt de-duplication is still by turn id,
the event cursor advances the same way, and the SessionEvent union the
recorder consumes is identical. The only addition is an optional modelInfo
field on new_session and set_model, which the executor does not send, so the
recorder needs no changes.

The CI check now fails when the default falls a major release behind npm
instead of only warning, since a new major may change the bridge protocol.
Also corrects AGENTS.md, which still said 0.3.x.

Co-authored-by: autopilot <kimiflare@proton.me>
Signed-off-by: Sina Meraji <sina.meraji@gmail.com>
@sinameraji
sinameraji merged commit d069623 into main Oct 29, 2026
2 checks passed
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.

AutopilotCellRun: default to autopilot-ai 3.x and re-verify end to end

1 participant