Skip to content

diagnostics: close-forensics Drop timing + skip_vector_index_restore - #2

Open
jarmen423 wants to merge 3 commits into
agent/txn-session-batch-20260726from
diagnostics/close-forensics
Open

diagnostics: close-forensics Drop timing + skip_vector_index_restore#2
jarmen423 wants to merge 3 commits into
agent/txn-session-batch-20260726from
diagnostics/close-forensics

Conversation

@jarmen423

@jarmen423 jarmen423 commented Jul 29, 2026

Copy link
Copy Markdown

Summary

Diagnostics-only Grafeo changes for sidecar close forensics.

Companion AM PR: https://github.com/jarmen423/agent-memory-hosted/pull/63

  • Feature-gated close-forensics lifecycle sink + DROP_ENTER/PHASE timing
  • Config.skip_vector_index_restore for lexical-only open RSS experiments

Base: agent/txn-session-batch-20260726 (9781320f — current AM product Grafeo pin).
PR diff is 12 files / 3 commits only (excludes the large W1/batch/vector stack already on that pin).

Head SHA: 5a82b49d08de769bfc19a0f22baece25e90b6b74

Scope / non-goals

  • Staging diagnostics evidence only
  • No production allocator/default changes
  • No close-path fast-path optimization (separate track)
  • No jemalloc cutover / malloc_trim production wiring (separate AM tracks)

Test plan

  • Feature builds with/without close-forensics
  • AM probe Run B against this tip reproduces Drop event rings
  • skip_vector_index_restore open path used only under diagnostics env

Add a feature-gated non-owning event ring and tiny Drop/worker events for
GrafeoDB, BufferManager, HnswIndex, and checkpoint timer so staging can
prove engine teardown without retaining diagnosed Arcs.
Attribute free/close work inside timed Drop regions (emit phases after
work), keep checkpoint JOINED after join, and expose DROP_ENTER/DROP_PHASE
event codes for sidecar close breakdowns.
Allow Config.skip_vector_index_restore to omit VectorStore HNSW topology
deserialize and quantized rehydrate so staging can measure lexical-only RSS.
@jarmen423
jarmen423 changed the base branch from main to agent/txn-session-batch-20260726 July 29, 2026 17:21
jarmen423 added a commit that referenced this pull request Aug 2, 2026
Replace the parity test's runtime oracle regeneration with committed
binary golden fixtures. D0.8.10 #2 forbids regenerating the eager
reference at test time.

- Add tests/golden/gem0_5b/parity_dense.v5 (1844 bytes, frozen at
  SHA ca0d606 — the last D0.8.7 commit where the eager path is the
  source of truth).
- Parity test now loads the golden fixture via golden_fixture() and
  compares against the bounded output, instead of calling
  eager_lexicographic_payload at test time.
- Add write_golden_fixtures test (#[ignore]) for one-time fixture
  generation: run manually, commit output.

The eager_lexicographic_payload helper remains for the diag tests
and the fixture generator, but is NOT called from the acceptance
parity test.
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