research(session-lineage): persist VM decision — Python memo + B=1500 (#54) - #55
Open
Skywind5487 wants to merge 45 commits into
Open
research(session-lineage): persist VM decision — Python memo + B=1500 (#54)#55Skywind5487 wants to merge 45 commits into
Skywind5487 wants to merge 45 commits into
Conversation
This was referenced Aug 9, 2026
Closed
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.
Result
The #54 resolver gate is complete.
Selected production shape: ranked sequential indexed point traversal + query-local Python
node -> resolved_rootmemo/path compression.Selected global work budget:
B = 1500successful row lookups.Production implementation is tracked separately in #62. This remains a research/evidence PR; it does not modify production session-search code.
Durable evidence
research/session-lineage/benchmark/FOCUSED_GATE.md— final decision record;research/session-lineage/benchmark/results/focused_vm_gate_20260809.md— exact e2-micro receipt, tests, focused performance CSV, safety/B CSV, package SHA;python_memo.py— hardened selected research candidate;focused_scenarios.py— shallow normal + depth14/size15 compatibility fixtures;focused_vm_gate.py— production-VM focused runner;tests/test_focused_gate.py— exactness/reuse/budget contracts.Existing TEMP/Fixed/broad-gate/profiler artifacts remain historical/reference evidence. The old "Pure TEMP vs Fixed3 only" finalist framing is superseded.
Focused VM result
Accepted run source head:
444c161218b00166bda73f2ec5a21f250e2049bc.The runner used a clean worktree, disposable synthetic DBs only, a 35-second CPU precondition, and passed 11/11 focused/contract tests.
Median timings:
The memo cost on shallow normal paths is ~0.001–0.002 ms while reducing the real compatibility extreme by ~4.75x–5.42x. Full-consume work drops deterministically from 120 to 15 successful row lookups.
B=1500
Previously established legitimate frozen-corpus envelope:
B=1500leaves ~20% headroom above the hardC<=1000envelope. The pathological e2-micro curve contains non-monotonic quota stalls, so the budget is selected from the logical work envelope + modest margin, not from a fitted wall-time cliff.Runtime caveat
The saved focused-run receipt used
/usr/bin/python3linked against SQLite 3.40.1 rather than a Hermes-managed runtime. This does not reopen the memo-vs-no-memo mechanism decision; #62 still requires normal Hermes-runtime tests before production merge.Production semantic handoff
#62 must not reproduce the current generic-parent mistake. The DB winner path and tool-layer current/title exclusion must share one positive compression-continuation root meaning, keeping branch/delegation/tool parent relations separate and respecting the Aug-7 foreign-marker correction documented in #58/#46.
CI note
Research-diff ruff/ty passed. Repository-wide failures observed during this PR were in unrelated
devfiles/tests (including existing mem-trim and Windows-footgun/lint findings); this PR intentionally does not modify unrelated production code to make global checks green.Status
Refs #54 #58 #60 #62.