Skip to content

InterMix 10.1: Runwire 1.0 runtime alignment - #136

Merged
abmmhasan merged 147 commits into
mainfrom
intermix-10.1/runwire-1.0-runtime-alignment
Sep 15, 2026
Merged

abmmhasan merged 147 commits into
mainfrom
intermix-10.1/runwire-1.0-runtime-alignment

Conversation

@abmmhasan

@abmmhasan abmmhasan commented Sep 14, 2026

Copy link
Copy Markdown
Member

Scope

Completes the InterMix 10.1 structured-runtime alignment and persistent-execution hardening work. The implementation plan has been retired after final cross-check because every release gate is now directly evidenced.

Completed implementation

  • Preserve InterMix 10.0 compatibility and default independent Fiber/coroutine isolation
  • Add opaque ScopeContext capture/attach semantics
  • Keep nested child frames carrier-local while sharing explicit logical scope identity
  • Enforce attachment liveness and deterministic concurrent scoped construction
  • Add carrier-local resetCurrentExecutionScope()
  • Provide dynamic / compiled / fallback / deoptimized parity
  • Harden Fiber and Swoole/OpenSwoole carrier identity
  • Guard unsafe process-wide mutation during active concurrent scopes
  • Validate released Runwire 1.0 integration without adding a production dependency
  • Add persistent-worker, cancellation, deadline, memory/cardinality, and runtime compatibility coverage
  • Freeze the Foundation/Webrick integration surface and update user/release/benchmark docs

Release evidence — 38/38 gates complete

Persistent safety:

  • repeated post-warmup churn keeps memory growth and spread within 1 MiB;
  • execution-scope bookkeeping returns to root/null and captured/logical scopes are collectible;
  • one stable application alias remains cardinality-stable across 256 framework-style request reuses and returns to the exact prior registry count after cleanup.

Same-runner InterMix 10.0.4 → 10.1 regression gate:

  • PHP 8.4: sequential production -0.46%; isolated Fiber +3.19%
  • PHP 8.5: sequential production +2.65%; isolated Fiber +2.13%
  • enforced limits: 3% sequential, 5% isolated Fiber

Final validation

Final repository head: ced4b5884c3d02dd37ae1fbdc9a10da91d715a32

  • Security & Standards #570: green on PHP 8.4/8.5, including release regression, analysis, stable/lowest QA, clean install and benchmark jobs
  • Swoole/OpenSwoole Scope Compatibility docs-fix #63: 4/4 green
  • all inline PR review threads resolved

The completed implementation draft was removed in the final repository commit. Durable behavior and release evidence now live in the README, scope guide, benchmark guide, runtime-alignment notes, and process-state audit.

Comment thread src/DI/Internal/ExecutionScopeStore.php Fixed
Comment thread src/DI/Internal/ExecutionScopeStore.php Fixed
Comment thread src/DI/Internal/ExecutionScopeStore.php Fixed
@abmmhasan
abmmhasan force-pushed the intermix-10.1/runwire-1.0-runtime-alignment branch from 664b1fb to 1ffce7e Compare September 15, 2026 00:00
Comment thread src/DI/Internal/ExecutionContext.php Fixed
Comment thread src/DI/Internal/ExecutionContext.php Fixed
Comment thread src/DI/Managers/InvocationManager.php Fixed
@abmmhasan
abmmhasan marked this pull request as ready for review September 15, 2026 01:12
@abmmhasan
abmmhasan merged commit 16291f1 into main Sep 15, 2026
19 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.

2 participants