Skip to content

Context rescue Phase 4: measure the rescue and the five context-rot effects with a memkernel_fixed arm (#59) #170

Backlog

Description

@gosha70

#59's Phase 4, filed when #59 closed so the work stays tracked. #59 planned it as: "New lifecycle-suite tasks and a
memkernel_fixed arm, measuring the rescue and each of the five effects, in a new measured run with its own
calibration and preregistration."

Why

The 0.5 measured run's memkernel arm ran the hooks with D1–D4 (#59, section 1), and report-0.5.0.md discloses that.
Phases 1 and 2 fixed the hooks and added capture and anti-rot retrieval (#68, #69, #128, #134, #147, #153, #164). No
run has measured memkernel with those changes.

Scope

  • A memkernel_fixed arm: memkernel 0.10.0, the released package, with its hook templates (the owner,
    2026-11-27). 0.10.0 is not published yet: PyPI's latest is 0.9.0, which has Phase 1 and S1 but not S2–S5. The arm
    runs beside the 0.5 memkernel arm's configuration, so the rescue is measured as a difference.
  • New lifecycle-suite tasks for each of the five effects in Context rescue: fix the compaction hooks, then capture session knowledge before it is lost (0.5.1 → 0.6) #59, section 2:
    • lost in the middle;
    • attention dilution;
    • distractor amplification;
    • repetition bias;
    • cost and latency.
      Each task names the effect it measures and what result would show the rescue working or not.
  • Hook time and injected tokens, per block. Hook receipts already record each block's length; the hooks' time is
    not recorded yet. Context rescue S5: hide a wiki page's source memory while the page's memory is shown (#59) #164 deferred hook latency here (its decision O6).
  • Repetition left after Phase 1: whether the same memory reaches one session's context more than once. This is the
    evidence for or against the per-session "already in context" ledger, which Context rescue: fix the compaction hooks, then capture session knowledge before it is lost (0.5.1 → 0.6) #59 did not build.
  • One preregistration, with its own calibration (the owner, 2026-11-27): the preregistration covers all five
    effects, and the calibration decides which effects' tasks are measured, as qualify.py does for lc-correct. Tasks,
    arms, endpoints, model, run counts, prices and spend limit are approved by the owner before any paid run.

Not in scope

Order

After #168's measured run (the owner, 2026-11-27).

Open decision (owner)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions