Repository navigation
feat(memory): decision-lifecycle capture — idea/abandoned kinds + provenance - #362
Merged
Merged
Conversation
…venance Coherent memory increment (J1 + B1), deterministic + zero-LLM: - Negative-space kinds (J1): SharedKind gains `idea` (considered/not-built) and `abandoned` (tried + dropped, with the reason). `abandoned` joins the durable set re-surfaced on resume for the area you're touching — the next session sees "we tried X here and dropped it, because Y" BEFORE re-trying it. - Provenance + confidence (B1): entries carry optional `provenance` (operator|derived|inferred; absent ⇒ operator) and `confidence`. recall orders operator-stated above kit-derived (provenanceRank), then recency. Both fields are signature-covered (appended last in the canonical, only-when-present) so existing entries stay byte-identical. - CLI: `kit memory share` gains --provenance/--confidence and validates --kind (SHARED_KINDS) so a typo no longer persists a garbage kind. Grounded in kit-research: kit-memory-as-decision-journal + the open-second-brain near-peer analysis (B1 = the strongest borrow; ADR-001 keeps this trust-deepening, not feature-parity chasing). src/memory/shared.ts (kinds, provenance, canonical, provenanceRank, SHARED_KINDS), hook.ts (durable + provenance-ordered recall), commands/memory.ts (flags + validation, extracted validateShareEnums). +5 tests. Full suite 2969/2969; tsc, eslint (0 errors), format:check clean; contracts unchanged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
✅ Docker image built successfully
|
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.
Description
A coherent memory increment (one message, not two features): kit's curated shared tier now captures the full decision lifecycle — the negative space that evaporates hardest, plus where each entry came from. Deterministic, zero-LLM.
Grounded in the kit-research notes (
kit-memory-as-decision-journal, theopen-second-brainnear-peer analysis) and ADR-001 — this is trust-deepening memory work, not feature-parity chasing.Type of Change
Changes Made
SharedKindgainsidea(considered / not-yet-built) andabandoned(tried and dropped, with the reason).abandonedjoins the durable set re-surfaced on resume for the area you're touching — so the next session sees "we tried X here and dropped it, because Y" before re-trying it. (ideastays out of auto-inject as lower-signal.)provenance(operator|derived|inferred; absent ⇒ operator) andconfidence. Recall now orders an operator's explicit statement above a pattern kit merely derived (provenanceRank), then by recency. Both are signature-covered (appended last in the canonical, only-when-present) so a pre-provenance entry canonicalizes byte-identically.kit memory sharegains--provenance/--confidence, and now validates--kindagainstSHARED_KINDS(a typo no longer persists a garbage kind).Backward compatibility (no false green)
Testing
provenanceRankordering, canonical only-when-present)npm test) — full suite 2969/2969; tsc, eslint (0 errors), format:check clean; contracts unchangedContext
Design:
kit-research/docs/research/kit-memory-as-decision-journal.md,what-kit-can-learn-from-open-second-brain.md; decision:decisions/ADR-001-do-not-replace-kit-memory.md.🤖 Generated with Claude Code