Skip to content

docs: using memkernel from a harness, and the checkpoint note in every template (Closes #119) - #159

Merged
gosha70 merged 1 commit into
mainfrom
docs/119-harness-section
Nov 24, 2026
Merged

gosha70 merged 1 commit into
mainfrom
docs/119-harness-section

Conversation

@gosha70

@gosha70 gosha70 commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Closes #119

The last item of issue #119's spec (specs/memkernel-0-15-harness-foundations): US4, the README section "Using memkernel from a harness" (FR-007), plus the instruction-template note the owner asked for after H2. With H1 (#154), H2 (#156) and H3 (#158) merged, every task in the spec is done. The S4 hashing work (canonical content_hash) is a separate issue, #153.

What's in it

  • README "Using memkernel from a harness", before "Embedding MemKernel in your own harness": five steps for a harness author (name the caller with run, agent and task ids, set for the server and the hooks; keep notes private with scope; record what each run received with the recall log's receipts; compare a run with the store with eval/context-diff/diff.py; count repeated mistakes per run and agent), then the limits: scope is a convention, not access control; receipts need the recall log and can be cut short; what the diff's source check can and cannot say; "why a memory was selected" is only what the receipt records; no OpenTelemetry; the diff and the count are repository tools, not in the installed package.
  • The template note in the Antigravity (rules/memkernel.md) and Kiro (steering/memory.md) templates and in both places of claude-memory-instructions.md (session start and post-compaction recovery): the latest checkpoint comes from the session's task, else agent, else the project scope; tools continuing the same work share a task id; scope="project" hands work off. test_the_instructions_say_which_ids_carry_a_checkpoint now covers all five instruction templates.
  • tasks.md US4 ticked; CHANGELOG under [Unreleased].

Checks

  • Fast suite: 1335 passed, coverage 95.06 %; ruff, mypy src/ strict, mypy --strict on the eval tools: clean.
  • The README's diff command, run where no store exists: it parses, exits 2 with "no store at …", and creates nothing.
  • Origin alignment: gate passes (the H3 build record; the spec is unchanged here).
  • DeepSeek: PASS, 0 blocking.

…oint in every template (#119)

README "Using memkernel from a harness" (FR-007, US4): naming the caller (run,
agent and task ids, for the server and the hooks), scope, receipts in the recall
log, the context diff and the repeated-mistake count per run and agent, and
their limits. The Antigravity, Kiro and Claude instruction templates now carry
the note the Codex and Cursor ones have: the latest checkpoint comes from the
session's task, else agent, else project scope, and scope="project" hands work
off; the template test covers all five.
@gosha70
gosha70 merged commit e436d0f into main Nov 24, 2026
9 checks passed
@gosha70
gosha70 deleted the docs/119-harness-section branch November 24, 2026 19:31
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.

Feature: AI Harness Foundations — Scoped Knowledge, Reproducible Context, and Retrieval Observability

1 participant