Skip to content

pulse-memory: retrieve a verified pulse and fill hash fields - #74

Merged
p10ns11y merged 3 commits into
mainfrom
pulse-retrieve-verify-prefetch
Nov 9, 2026
Merged

p10ns11y merged 3 commits into
mainfrom
pulse-retrieve-verify-prefetch

Conversation

@p10ns11y

@p10ns11y p10ns11y commented Nov 9, 2026

Copy link
Copy Markdown
Owner

skill: one-organism
proof: https://captain.kingsparrow.space/articles/memory-issue

The pulse store reserved verify_hash and prefetch_key but left them empty, and there was no retrieve command. This adds both fields on admit, a retrieve command that returns one verified pulse (or a few), and an idempotent backfill.

Retrieve checks the content hash, treats a mismatch or a superseded row as unknown, prefers locked traces over open belief, and never prints the whole store. Prefetch keys are {topic}/{kind} from the retrieval key, kind, and topic.

tstack-state pulse admit now stores the same hash and prefetch values instead of NULLs, and tstack-state pulse retrieve uses the same retrieve helper.

Report

  • Read only: the lived Python store already had the columns; pulse_admit.py did not write them; tstack-state inserted NULL, NULL.
  • Ran locally: python3 pulse-memory/test/test_retrieve.py (17 tests ok); bash pulse-memory/test/test-thin.sh (all checks passed); bash tstack/test/test-state.sh (all checks passed); bash tstack/test/test-thin.sh (all checks passed).
  • Tests and CI: plugin thin tests and tstack state tests as above. GitHub Actions has not run on this branch yet.
  • Not run: GitHub Actions until push; an independent no-context review.

cursoragent and others added 3 commits November 9, 2026 22:42
Add retrieve tests and assertions that a stored pulse keeps a content
hash and a prefetch key, and that retrieve returns unknown on a
mismatch or a stale row.
Compute verify_hash and prefetch_key on admit, add retrieve and
backfill commands, and store the same fields from tstack-state
instead of NULLs.
@p10ns11y
p10ns11y merged commit da70412 into main Nov 9, 2026
2 checks passed
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.

2 participants