Skip to content

Resolve GitHub issue https://github.com/directionally-local/serverless-objects/i - #138

Closed
sinameraji wants to merge 1 commit into
mainfrom
aster/3b4d0e71
Closed

sinameraji wants to merge 1 commit into
mainfrom
aster/3b4d0e71

Conversation

@sinameraji

Copy link
Copy Markdown
Collaborator

I'll start by reading the repository guidance and the relevant code.

Committed as 38b246c on aster/3b4d0e71 (Aster will publish the branch and open the PR).

What changed

  • Fake bridge now models autopilot-ai 3.0.2's src/sdk/aster-cell.ts: UUID request/session/turn ids, /health and /status shapes, 250-event pages with hasMore, new_session (session_already_initialized, modelInfo), prompt (202 replay by turn id, session_busy, session_not_ready), abort, the session.end the bridge journals from the prompt's RPC reply, and the session.end error it journals for an interrupted turn on bridge restart.
  • New tests: the full 3.x SessionEvent set (including session.start, permission.*, hook.failed, context.compacted, status, worker.finished, which the recorder ignores), multi-page event paging, a successful turn ending on the prompt reply, and a bridge restart ending the turn with cell_runtime_restarted.
  • Docs: docs/autopilot.md now states exactly what was checked against 3.0.2 (aster-cell.ts and types.ts: endpoints, turn-id de-duplication, cursor, identical SessionEvent union, optional modelInfo not sent) and that the real end-to-end, restart and budget-resume runs were not repeated on 3.0.2 — no Hotcell daemon or gateway was available in this environment.
  • CI comment corrected to match the check's actual behavior (fails on a major behind, warns beyond a minor).

Verification: npm ci, then npm test → 275 CLI tests + 12 conformance tests pass; node scripts/check-autopilot-default.mjs reports 3.0.2 is current. The recorder needed no changes because the SessionEvent union is identical between 2.8.0 and 3.0.2.

The default moved to autopilot-ai 3.0.2, but the fake bridge still modelled
the protocol loosely and the tests did not exercise the 3.x event set.

Model 3.0.2's src/sdk/aster-cell.ts in the fake bridge: UUID request ids,
the /health and /status shapes, 250-event pages with hasMore, new_session
(session_already_initialized, modelInfo), prompt (202 replay by turn id,
session_busy, session_not_ready), abort, the session.end journaled from the
prompt's RPC reply, and the session.end error journaled for an interrupted
turn when the bridge restarts. Add tests for the full 3.x SessionEvent set,
paging across more than one page, the prompt reply ending a successful turn,
and a bridge restart.

The recorder needs no changes: the SessionEvent union is identical to 2.8.0
and the only protocol addition is the optional modelInfo field, which the
executor does not send.

The real end-to-end, restart and budget-resume runs were not repeated on
3.0.2 because no Hotcell daemon or gateway was available; docs/autopilot.md
now says exactly what was verified and on which versions.

Closes #112

Signed-off-by: Aster Autopilot <autopilot@aster.invalid>
Co-authored-by: autopilot <kimiflare@proton.me>
@sinameraji

Copy link
Copy Markdown
Collaborator Author

Closing without merging. The autopilot-ai 3.x default landed in d069623; this follow-up (fake-bridge 3.x tests, CI check behaviour, docs) is not being merged.

@sinameraji sinameraji closed this Oct 29, 2026
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