Skip to content

Limit subprocess launch helpers to macOS and Linux - #83

Closed
jsflax wants to merge 1 commit into
mainfrom
fix/ios-subprocess-platform-boundary
Closed

jsflax wants to merge 1 commit into
mainfrom
fix/ios-subprocess-platform-boundary

Conversation

@jsflax

@jsflax jsflax commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

EngramMemoryCore fails to compile for iOS because launchClaudeShell exposes Foundation Process in its signature; spawnClaudeSubprocess also constructs it. Compile these two launch functions only on macOS and Linux.

The change adds four conditional-compilation lines in one file. All existing function bodies are unchanged. Log rotation, guard-path validation, SpawnOutcome, command construction and prompt helpers remain available across platforms. No package, workflow or dependency change.

Validation completed: whitespace/diff checks and an exact source comparison confirming that removing the four added guard lines restores the parent file byte for byte. No local build or test was run. The focused iOS module compile is pending; automatic hosted results are recorded below.

Focused qualification plan:

  • Build the actual EngramMemoryCore module for arm64 iOS 18 simulator at this head, then typecheck a small importing client using its shared non-process helpers, with the real manifest and locked dependencies. The retained original iOS compiler failure at the unguarded Process signature supplies the red control; a repeat parent build is unnecessary. This focused control remains unrun.
  • Build on macOS and Linux and run OwnedProcessGuardTests, SpawnAdmissionTests and LearnerLifecycleLoggingTests with their stand-in process fixture.
  • Keep the desktop process suites intact; the entire MemoryCore test target is not an iOS smoke target because its fixtures use Process independently.

This draft fixes the identified module boundary only. Further iOS errors, if any, must be reported separately.

Automatic hosted qualification at ae4fde25e2145c47346f45462f0156f6bd34f506, first attempts:

Check Result
Linux memory and backend Passed: MemoryCore and test targets compiled; 98 tests in 21 suites, including the three process suites above. No recorded skips.
Visualizer validation Passed: app test build and 152 focused tests, zero failures or recorded skips; no owned product processes remained.
Native validation Passed: native test and release-product builds; 811 reported tests in 81 suites (797 passed test declarations, 14 explicitly skipped tests, one skipped suite); separate serial controls, 30 Python MCP harness tests and seven native MCP cases passed.

The native selection records three RecallBench fixture early returns (warmRecallLatency, warmRecallStatementCount, coldAdviseEndToEnd) within its passing results; those benchmark fixture bodies were not exercised. The daemon-contention test skipped in the main selection passed in its isolated process. Serial and cross-platform selections are not added into a unique total. The three process suites named above passed on both macOS and Linux. Source and dependency integrity checks passed.

These results do not qualify the iOS module, the complete iOS executable/test graph, or a release from a later main head. No rerun or manual workflow dispatch was requested.

Keep Process-based entry points out of the iOS memory-core module while retaining shared command, admission, and resource helpers on every platform. The launch implementations are unchanged on macOS and Linux.

Co-Authored-By: Codex <noreply@openai.com>
@jsflax

jsflax commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

Consolidated in #88 (macOS/Linux platform guard on SubprocessSpawner Foundation.Process helpers).

@jsflax jsflax closed this Nov 17, 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