Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

feat: integrate Orchestrator v2 and native Pi - #293

Merged
aaditagrawal merged 1327 commits into
mainfrom
sync/orchestrator-v2-pi-20260922
Sep 23, 2026
Merged

aaditagrawal merged 1327 commits into
mainfrom
sync/orchestrator-v2-pi-20260922

Conversation

@aaditagrawal

@aaditagrawal aaditagrawal commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Integrates upstream main through db898a3062 and Orchestrator v2 through 060756de5a and adds native Pi RPC support while preserving the fork's provider drivers, per-instance settings, usage monitoring, Hermes gateway, and desktop/mobile identities.

The v2 runtime imports legacy conversations into a separately backed-up statev2.sqlite database. Fork migration IDs remain intact, and incompatible upstream preview databases fail before mutation. Existing Pi ACP instances retain their instance IDs and configuration; native Pi receives a separate instance when needed. A persisted migration marker prevents newly created native Pi instances with default settings from being reclassified as ACP, and migrated IDs appear only once in the provider list. Native Pi requires CLI 0.80.5 or newer. Legacy providers use a tested v2 adapter with restart/history fallback, durable requests, tool output, and stale-event filtering.

Shared provider sign-in flows and credential bindings now protect session startup while credentials change. Provider compatibility advisories and bounded session-open retries follow the refreshed upstream implementation.

The web and mobile clients use the v2 command/event model. Custom provider permissions, rate-limit UI, title-generation errors, and guarded project deletion remain available. Hermes notifications append already-produced output without starting an unintended model run. Release workflows retain fork packaging and disable upstream-owned AUR/EAS publication; hosted web deployment requires explicit fork domains.

Validation includes workspace formatting/lint and typechecks, native mobile lint, focused migration/provider/adapter/client/packaging regressions, license and unused-code gates, and release smoke checks. Integrated verification used a real Codex run in a disposable project, checked replay after reload and live usage limits, and paired the Android development build to the same environment.

Builds on merged #292. Keep merge ancestry when merging so future upstream synchronizations recognize both upstream branches. Upgrade the server and clients together for the v2 wire protocol; preserve the old state database for rollback.

juliusmarminge and others added 30 commits September 22, 2026 17:46
…gg#9897)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ingdotgg#8464)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#9907)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#9905)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…gg#9928)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…dotgg#9920)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ngdotgg#10051)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
juliusmarminge and others added 11 commits September 22, 2026 17:49
pingdotgg#13144)

Co-authored-by: Apex by Callstack <noreply@callstack.com>
Background-task notifications and delegated completions queued behind a
held queue are hidden from the queue UI, so the Resume queue control never
appeared, yet thread.settle counted them as active work. Settle now cancels
those automatic runs in the same transaction; user-queued messages still
block it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tgg#13175)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@aaditagrawal aaditagrawal changed the title chore(ov2): preserve the integration base for replay feat: integrate Orchestrator v2 and native Pi Sep 23, 2026
@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Sep 23, 2026

Copy link
Copy Markdown
Owner Author

@github-actions github-actions Bot added the size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). label Sep 23, 2026
@aaditagrawal
aaditagrawal changed the base branch from sync/upstream-main-20260922 to main September 23, 2026 02:41
@github-actions github-actions Bot added the 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. label Sep 23, 2026
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

⚠️ The thread fixture changed, so impact percentages are not directly comparable to the main baseline.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire — 4.9 KiB — 6.8 KiB ✅
Codex Thread snapshot wire — 3.7 KiB — 4.9 KiB ✅
Codex Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Codex Live turn WebSocket decoded — 20.4 KiB — 29.3 KiB ✅
Codex Live turn messages — 2 — 8 ✅
Claude Total thread wire — 4.9 KiB — 6.8 KiB ✅
Claude Thread snapshot wire — 3.7 KiB — 4.9 KiB ✅
Claude Live turn WebSocket wire — 1.2 KiB — 2.0 KiB ✅
Claude Live turn WebSocket decoded — 20.8 KiB — 29.3 KiB ✅
Claude Live turn messages — 2 — 8 ✅

Baseline: 5031d44 · PR result: 88acf0b · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 106.1 KiB
  • Claude decoded thread snapshot: 106.4 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

aaditagrawal and others added 9 commits September 23, 2026 08:28
Seed legacy home import from v1 state.sqlite after dbPath moved to
statev2.sqlite, keep opaque .bin document attachment paths, accept
structured custom models on acpRegistry, and alias environment
identification in appearance settings search.

Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>
The carryover root-then-child test jumped TestClock by the full 10s
interrupt timeout, so session/cancel acknowledgement could lose the race
on CI. Advance one second instead.

Co-authored-by: aaditagrawal <aaditagrawal@users.noreply.github.com>
@aaditagrawal
aaditagrawal merged commit a7b8ff0 into main Sep 23, 2026
21 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships. size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.