Skip to content

feat: add SessionBank checkpoint replay telemetry - #4

Merged
PhilipJohnBasile merged 1 commit into
codex/moe-dflash-integration-20260730from
codex/session-overlap-trace-gate-20260811
Aug 11, 2026
Merged

feat: add SessionBank checkpoint replay telemetry#4
PhilipJohnBasile merged 1 commit into
codex/moe-dflash-integration-20260730from
codex/session-overlap-trace-gate-20260811

Conversation

@PhilipJohnBasile

Copy link
Copy Markdown
Owner

Summary

This is a stacked draft PR on #3. It adds a default-off, bounded, content-free SessionBank overlap trace and a CPU-only offline checkpoint-placement replay/falsifier.

  • records request-start-ordered RAM overlap candidates with exact-once terminal outcomes
  • adds an exact irregular checkpoint-placement planner and chronological 70/30 replay
  • keeps candidate identity, bank epochs, committed-MTP history, quiescence, and provenance fail-closed
  • adds CLI and authenticated admin snapshot/clear endpoints
  • keeps disabled tracing inert before prompt copying, scope allocation, or replay-only capture metadata
  • separately hardens unknown put_snapshot recurrence provenance to recurrent/fail-closed

Contract

This does not activate a runtime placement policy and cannot emit a deployable GO. runtime_go remains false and the CLI exits nonzero even when the CPU counterfactual clears its numeric threshold.

The two replay arms are deliberately limited:

  • observed_fitted may select successfully captured snapshots whose payloads were later discarded, so it is counterfactual-only.
  • future_known_upper uses event-specific future knowledge and is only a no-go oracle.

Only complete, quiescent traces with no drops, pending probes, or candidate truncation are eligible for favorable evidence. Request ordering is server probe/admission chronology, not client-observed HTTP start time. The trace excludes prompt/token/session/model content, but includes prompt lengths, bounded duration counters, epochs, and process-local ordinals.

Runtime promotion still requires implementable retention/rematerialization, exact continuation, measured M5 cost, quality, regression, and physical-memory gates.

Verification

Exact reviewed commit: cce784be70da96320e05db2565581bcdd55e6000

  • 636 passed, 1 intentional skip (CPU only)
  • Ruff lint passed for all changed Python
  • all new Python files are Ruff-format clean
  • py_compile passed
  • git diff --check passed
  • independent Sol frozen-diff review: APPROVE, no P0-P3 findings

No GPU/model load, M5 timing, quality, physical-memory, or production-speed claim is included.

@PhilipJohnBasile

Copy link
Copy Markdown
Owner Author

Publication receipt for cce784be70da96320e05db2565581bcdd55e6000:

  • local CPU gate: 636 passed, 1 intentional skip
  • Ruff lint, new-file format, py_compile, and diff checks: passed
  • independent frozen-diff Sol review: APPROVE, no P0-P3 findings
  • non-PyPI release workflow: passed
    • package build: passed
    • Twine check: passed
    • fresh-venv smoke: passed
    • artifact upload: passed
    • PyPI publication: skipped by design

Workflow: https://github.com/PhilipJohnBasile/MTPLX/actions/runs/31515511225

@PhilipJohnBasile
PhilipJohnBasile marked this pull request as ready for review August 11, 2026 17:04
@PhilipJohnBasile
PhilipJohnBasile changed the base branch from codex/sparse-complete-state-checkpoints-20260811 to codex/moe-dflash-integration-20260730 August 11, 2026 17:05
@PhilipJohnBasile
PhilipJohnBasile merged commit 1d1a026 into codex/moe-dflash-integration-20260730 Aug 11, 2026
@PhilipJohnBasile

Copy link
Copy Markdown
Owner Author

Final merged-state receipt:

Final workflow: https://github.com/PhilipJohnBasile/MTPLX/actions/runs/31515841020

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