Skip to content

Speed up the autopilot draft pipeline - #869

Merged
RetroGameDeveloper merged 1 commit into
mainfrom
perf/autopilot-pipeline
Nov 8, 2026
Merged

RetroGameDeveloper merged 1 commit into
mainfrom
perf/autopilot-pipeline

Conversation

@RetroGameDeveloper

Copy link
Copy Markdown

Changes

  • Keep one pinned m2c interpreter per explicitly started autopilot lane; recycle after 64 requests, retain CLI fallback, and terminate it on Stop/timeout.
  • Leave repeated saved-file synchronization to the watcher while retaining publication revision guards.
  • Queue optional reuse/archive/cascade work separately; index changed matched functions instead of rescanning the whole project.
  • Batch advisory draft diagnostics with existing bounded bookkeeping. Verified results and completed resume receipts remain immediate.

Verification

  • Full repository Ruff check and git diff --check pass.
  • Core pipeline, native warmed m2c, initial/manual/overlay drafts, return repair and restore throughput: 86 passed.
  • Additional PC autopilot, draft context/repairs/regeneration, drafts and cancellation checks: 94 passed, 3 skipped, 2 baseline failures.
  • Both failures reproduce on an untouched archive of main: restore/WSL cancellation tests assert callback identity, while existing compiler.cancellable supplies a wrapper. Actual cancellation is covered by the new child-process termination test.
  • Native pinned m2c output equals CLI output across names, after failure, and after process recycling. Stop terminates a stuck generator.
  • Small 12-request local generation experiment: separate CLI 1.349s; warmed interpreter 0.170s including first startup, identical output. This is not an end-to-end throughput claim.

Shared ROM autopilot changes retain the exact judge. Imported project autopilot keeps its existing build path. No live projects, runtime checkout or running app changed.

@RetroGameDeveloper
RetroGameDeveloper merged commit b10d1bc into main Nov 8, 2026
0 of 6 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.

1 participant