Skip to content

feat(memory): decision-lifecycle capture — idea/abandoned kinds + provenance - #362

Merged
sandstream merged 1 commit into
mainfrom
claude/web-kit-status-sync-p6fg9a
Jul 18, 2026
Merged

sandstream merged 1 commit into
mainfrom
claude/web-kit-status-sync-p6fg9a

Conversation

@sandstream

@sandstream sandstream commented Jul 18, 2026 •

Copy link
Copy Markdown
Owner

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, the open-second-brain near-peer analysis) and ADR-001 — this is trust-deepening memory work, not feature-parity chasing.

Type of Change

  • New feature (non-breaking) — additive kinds + optional fields; existing entries stay byte-identical

Changes Made

  • Negative-space kinds (J1): SharedKind gains idea (considered / not-yet-built) and abandoned (tried and dropped, with the reason). abandoned joins 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. (idea stays out of auto-inject as lower-signal.)
  • Provenance + confidence (B1): entries carry optional provenance (operator | derived | inferred; absent ⇒ operator) and confidence. 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.
  • CLI: kit memory share gains --provenance / --confidence, and now validates --kind against SHARED_KINDS (a typo no longer persists a garbage kind).

Backward compatibility (no false green)

  • Provenance/confidence are written only when provided → existing/committed entries are byte-identical; clean diffs.
  • Canonical appends the new fields last and only-when-present → legacy entries verify unchanged; a later signing of an old entry is stable.

Testing

  • +5 unit tests (kinds present, abandoned round-trip with provenance/confidence, byte-compat when absent, provenanceRank ordering, canonical only-when-present)
  • All tests pass (npm test) — full suite 2969/2969; tsc, eslint (0 errors), format:check clean; contracts unchanged

Context

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

…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>
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit e2dda6f into main Jul 18, 2026
18 checks passed
@sandstream
sandstream deleted the claude/web-kit-status-sync-p6fg9a branch July 18, 2026 20:52
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