Repository navigation
academy/memory-v06: diagnose long-term memory failure; atom-level transfer mechanisms; evaluation integrity fixes - #38
Merged
Conversation
Pentexa
force-pushed
the
academy/memory-v06
branch
from
November 9, 2026 20:56
f8a75ac to
6732823
Compare
…nce manifests Academy Memory v0.6 (atom-level transfer mechanisms, evaluation-integrity fixes, storage-failure diagnosis) with its frozen-grid evidence and two stamped Quality v0.5 experiment manifests, rebased onto current main. This is the complete PR #38 contribution. Research v0.13 content is excluded (merged to main via PR #37); the diff vs main is therefore Academy-only. See docs/MEMORY_V06.md for the scientific report and docs/MEMORY_V06_EXPERIMENT_MANIFEST.md for the experiment manifest overview.
Pentexa
force-pushed
the
academy/memory-v06
branch
from
November 10, 2026 07:49
5d0c34a to
43ebb46
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Academy Memory v0.6 — Genuine Knowledge Transfer
Summary
v0.5's negative result (fresh frozen 0.312 > all trained frozen
0.250–0.281;
memory_wiped ≡ original; evidence bank no help) isdiagnosed and addressed:
evidence distinguishes rejected hypotheses from confirmed findings:
the checkpointed
triedset blocks reuse is not supported:triedis cleared by the agent's own door events during trainingand is essentially empty at checkpoint time; per-episode reset
(
reset) is bit-identical tooriginalin every regime.hypotheses. ~75 of ~77 hypotheses are contradicted at checkpoint
(56–198 verified→contradicted transitions per run); ~2.5 verified
survive on average. Retrieval mechanics work, but persistent memory
provides little usable evidence for transfer (
source_hypothesis= 0 executed plans in frozen eval, despite thousands of generated
candidates).
bank-sourced frozen probes irrelevant; exact 20/7900), and
bank_ctx_fullfrozen 0.219 < fresh 0.312.ctx_fulldegenerates to the goal-planning-only
novocabexplorer (0.508 ≈0.461), not to random walking (0.055); its frozen gain is an
exploration artifact.
(
novocab0.461 > fresh 0.312).memory_atom_transfer— bounded per-door atom evidence profile(event-level evidence with standing-state lift filtering + verified
hypothesis structure) → reuse recurring parts of causes across
tasks;
probe_min_effective_confidence— context-conditioned confidencegate for verbatim reuse;
memory_bank_refresh_on_contradiction— adaptive forgetting: thebank keeps only currently verified entries;
probe_reset_per_episode— kept as a diagnostic/explorationcontrol (documented as not the binding constraint).
original / memory-wiped / all v0.5 controls mandatory; eval cells
recreate full variant configs (v0.5 dropped agent-level flags in eval
cells); frozen cells assert zero memory movement; per-seed reporting
and paired bootstrap CIs. Comparison-sign defect corrected (all
deltas now candidate − baseline; historical v0.5 raw files untouched,
correction documented in
docs/MEMORY_V06.md).tasks (offline generator, same validation pipeline, zero API calls,
quota policy documented; artifact
results/academy_v01/memory_v06/ evren_pool.json).Measured results (2 seeds × 160 episodes, frozen grids, pinned hash)
Controls (frozen, same grid, pinned hash): random_walk 0.055;
novocab (planning, no vocabulary probing) 0.461.
Paired frozen deltas vs fresh (candidate − fresh): all trained variants
≤ 0 (original −0.030 [−0.094, 0]; atomtx −0.061 [−0.188, 0]; ctx_full
+0.198 [+0.039, +0.359] — an exploration artifact, see below).
Honest statement
No variant demonstrates positive zero-shot transfer. Every
memory-bearing trained variant is at or below the fresh control on the
frozen grid, with CIs at or below zero. The diagnosis is the
deliverable:
(56–198 verified→contradicted transitions per run; ~75 of ~77
hypotheses contradicted at checkpoint), so retrieval has nothing
usable to return (
hypothesis_candidates6816, executed hypothesis-sourced plans 0).
frozen eval are irrelevant to the true rule (exact 20/7900);
bank_ctx_full frozen 0.219.
0.461 > fresh 0.312; ctx_full (0.508) ≈ novocab — context gating
empties candidates and the agent becomes the goal-planning-only
explorer (not a random walker; random_walk = 0.055). Its positive
delta vs fresh is an exploration artifact, not memory.
originalfrozen to 0.406 (+0.094 vs fresh, CI [0.0, +0.1875]) — directionally
positive, not significant at 95%; dense atom-transfer does not
capitalize; teacher-holdout transfer flat at 0.500.
Positive transfer was NOT achieved; a convincing diagnosis was.
Diagnosis highlights (Phase 1)
(original 6816) but zero plans are sourced from hypotheses
(
source_hypothesis = 0) — of ~77 hypotheses at checkpoint, ~75 arecontradicted, so storage survival, not retrieval, is the failure
point.
verified_then_contradicted= 56–198 per run: cross-task noneventsdestroy verified hypotheses — the central negative mechanism
(CONFIRMED).
probes in frozen eval are irrelevant to the held-out rule (exact
20/7900), and
bank_ctx_fullfrozen 0.219 < fresh 0.312(CONFIRMED).
tried-set block hypothesis is REJECTED (reset≡originalbit-identical): the tried set is cleared by the agent's own door
events during training, so at checkpoint it is empty.
ctx_full) filters all hypotheses in a new context →zero probes → goal-planning-only exploration (
novocab0.461), NOTrandom walking (0.055). Its frozen 0.508 is above fresh 0.312 but is
an exploration artifact — increased task success without knowledge
transfer.
tasks (offline generator, same validation pipeline; zero API calls)
→ held-out teacher-task transfer measured.
Testing
python -m unittest academy.tests.test_memory_v06→ 25 tests OKpython -m unittest …(memory + agents + eval + EVREN suites) →167 tests OK
PYTHONHASHSEED=0 python x/run_chunks_v06.py(main benchmark);PYTHONHASHSEED=0 python academy/tools/memory_experiment_v06_evren.py(Phase 4);
python academy/tools/memory_merge_v06.py(merge +controls + diagnosis).
Artifacts & publication gate
The audit artifact-gate hotfix (PR #39,
audit/artifact-gate-fix)has merged: the frozen criteria (v02) remain immutable, but the permanent
artifact prohibition is replaced by the provenance-aware publication
gate. The raw evidence is therefore published in this PR at
results/academy_v01/memory_v06/(summary, runs JSONL, fresh control,EVREN pool/summary) with covering manifests at
generalization_audit/manifests/(memory_v06.manifest.json,memory_v06_evren.manifest.json).Verification (Quality v0.5 tooling, from updated main):
(memory-limit not recorded — same as committed v0.5/v121 examples);
EVREN manifest 9 PASS / 0 FAIL / 4 INCONCLUSIVE (generic-format
checks; memory-limit).
check_frozen_target_artifacts): PASS forresults/academy_v01/memory_v06(manifest coverage, zero FAIL);results/v13gate open (no artifacts).recomputed from the committed vectors by the verifier.
API calls, quota policy recorded.
memory
generated/step/agentstepsunchanged) enforced duringthe runs; fresh per-seed traces recorded in the runs JSONL.
See
docs/MEMORY_V06_EXPERIMENT_MANIFEST.mdfor the full inventory andhashes.
Branch ancestry
PR #38 was originally based on a branch containing one Research v0.13
commit (
4e61903, the subject of PR #37). PR #38 must not be mergedbefore PR #37. After #37 merges, this branch will be rebased onto the
updated
origin/main(keeping only Academy changes) and CI re-run; noresearch commits are deleted or overwritten.
Deliverables
academy/agents/memory.py,metargon_agent.pyacademy/tools/memory_experiment_v06.py,memory_merge_v06.py,memory_experiment_v06_evren.py,render_v06_results.pyacademy/tests/test_memory_v06.pyx/run_chunks_v06.pydocs/MEMORY_V06.md,docs/MEMORY_V06_EXPERIMENT_MANIFEST.mdresults/academy_v01/memory_v06/(summary, runs JSONL, fresh control, EVREN pool/summary)
generalization_audit/manifests/memory_v06.manifest.json,memory_v06_evren.manifest.json