mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 00:03:45 +00:00
feat(memory-safety): bound OOM-prone ingress across transports, parsers and scans
Re-scoped from the reverted #10179 to the bound-at-ingress doctrine (see src/shared/memory-safety/README.md): ceilings go where untrusted or unpredictably-large input first enters a heap, not in the interior. Kept: daemon/relay/SSH/mobile/IPC transport frames, PTY output flow control, on-disk agent transcripts, document parsing, filesystem enumeration, provider pagination, media decode, and long-lived accumulators keyed by user-growable ids -- the class behind the reported renderer OOM (#9872). Dropped: interior ceilings whose size is already implied by a bounded input, second ceilings behind existing ones, and derived/presentational state. Every file is reconciled against current main: check-no-merge-base-revert reports 0 reverted and 0 missing across 169 overlapping files, so no shipped work is lost. Typecheck is at main's own 2-error baseline. Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -117,6 +117,7 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm build:electron-vite
|
||||
- run: pnpm verify:cli-runtime
|
||||
# Why: boot the BUILT daemon-entry under plain Node the way production
|
||||
# forks it. v1.4.129-rc.1 shipped a daemon that exited at module load
|
||||
# (leaked electron require) while every other check passed; this fails
|
||||
@@ -158,6 +159,7 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm build:electron-vite
|
||||
- run: pnpm verify:cli-runtime
|
||||
- run: pnpm test:e2e:computer --reporter=verbose tests/e2e/computer-mac.e2e.ts tests/e2e/computer-mac-safari.e2e.ts
|
||||
|
||||
linux:
|
||||
@@ -185,6 +187,7 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm build:electron-vite
|
||||
- run: pnpm verify:cli-runtime
|
||||
- run: xvfb-run --auto-servernum dbus-run-session -- pnpm test:e2e:computer --reporter=verbose tests/e2e/computer-linux.e2e.ts
|
||||
|
||||
windows:
|
||||
@@ -204,4 +207,5 @@ jobs:
|
||||
- run: pnpm verify:computer-native
|
||||
- run: pnpm build:cli
|
||||
- run: pnpm build:electron-vite
|
||||
- run: pnpm verify:cli-runtime
|
||||
- run: pnpm test:e2e:computer --reporter=verbose tests/e2e/computer-windows.e2e.ts tests/e2e/computer-windows-store.e2e.ts
|
||||
|
||||
Reference in New Issue
Block a user