feat(runtime): add native semantic, replay, and adaptive systems - #336
feat(runtime): add native semantic, replay, and adaptive systems#336PhilipJohnBasile wants to merge 4 commits into
Conversation
Integrate semantic SessionBank anchors, safe-point memory governance, expert-locality telemetry, privacy-safe request capture, deterministic counterfactual replay, trace parity, operational dashboard exposure, audit hardening, and permanent native-systems CI coverage.
Phase-one CI receipt — superseded by phase-two headThe original semantic/replay head
The PR has since advanced to |
8bddb3e to
88954d8
Compare
Promote the exact receipt-bearing source tree used by upstream PR youssofal#336 while preserving the fork's existing mainline history as a parent.
Final exact-head matrix receipt
Upstream checks:
The permanent native-systems matrix passed all nine cells:
The matrix specifically covers all safe-point blockers, zero-mutation blocked paths, default-off lock avoidance, simultaneous memory/OTLP/policy/replay operation, telemetry privacy defaults, non-automatic promotion, environment clamping, and concurrent first-use idempotency. The PR is non-draft, mergeable, maintainer-editable, and contains no temporary publication branches or files. The fork-side temporary branches were archived by exact commit tag and deleted. This is ready for maintainer review and merge. |
|
@youssofal — final handoff: #336 is now the only open PR associated with this integration. The fork-side staging PRs and the unrelated external replay PR have been closed, the PR description now has a file-by-file review map, maintainer edits are enabled, and the exact head remains |
Keep fork main source-identical to upstream PR youssofal#336 while preserving the existing fork mainline as the second parent.
|
@youssofal The reviewer-facing README pass is now complete on The README now includes a full before / after table, all new native runtime and adaptive features, exact opt-in environment variables, the The preceding code-and-matrix head
Maintainer edits remain enabled. |
|
This bundles several unrelated systems in one PR and I cannot review it as one unit. Split it into one PR per system with a measurement each and I will look. |
|
@youssofal I split #336 into 13 focused PRs. Each PR is based on current
I did not carry the old I left #336 open as the replacement index rather than closing it. |
|
Only the superseded 51-file branch is conflicting. All 13 measured replacement PRs in the map above are clean and mergeable. I am closing #336 rather than merging current main back into the rejected bundle and recreating the review problem. |
Maintainer action required
The reviewer-facing README pass is complete on exact head:
9e067af5f65e26f4ff3d056f55c5dd8b80428e8aBecause this external-fork PR modifies workflow files, GitHub created new exact-head runs with no jobs and marked them
action_required. Please approve:The preceding code-and-matrix head,
53ba0cc1bc96b135da32fba25615dfff96b81bf6, passed all four authoritative upstream workflows. The only change after that green head isREADME.md. Maintainer edits remain enabled, and@youssofalis the requested reviewer.Reviewer-facing README update
The top-level README before-and-after section now documents the complete contribution in product terms rather than requiring the reviewer to reconstruct it from source files. It includes:
/v1/mtplx/systems, the Systems dashboard, the read-only Native command surface, and the relevant CLI commandsWhat this adds
This is a vendor-neutral MTPLX implementation. It does not import, embed, launch, or require FreeToken, Future AGI, or another external runtime.
Semantic runtime intelligence
Deterministic replay and evaluation
Native adaptive systems
Operations
GET /v1/mtplx/systemsnative-systemsand expandednative-adaptiveCI coverageSafety boundaries
materialize_only; it does not claim hard page residency on unified memoryConfiguration matrix
The permanent nine-cell matrix covers:
53ba0ccThe cross-system tests cover default-off fast paths, individual and combined activation, every safe-point blocker, lock release and zero-mutation behavior, invalid environment-value clamping, privacy-default OTLP behavior, simultaneous memory/telemetry/policy/replay operation, non-automatic promotion, and concurrent first-use idempotency.
Existing publication receipt
docs/validation/native-adaptive-phase2.jsonrecords the preceding publication gate:Suggested review order
README.mdand the linked operator documentationmtplx/semantic_anchors.py,memory_governor.py,expert_locality.pymtplx/deterministic_replay.py,request_capture.py,replay_orchestrator.pymtplx/expert_residency.py,unified_memory.py,native_adaptive.pymtplx/otlp_export.py,policy_hooks.pymtplx/runtime_systems.py,mtplx/server/openai.pyThe contribution is four clean commits directly on MTPLX 2.9.1. It contains no source exporters, patch payloads, temporary publication workflows, or fork-only benchmark archives.
Benchmark evidence
No throughput or quality improvement is claimed. These systems are default-off, observational, capability-gated, or offline. Model-specific M5 performance promotion remains separate work.