Repository navigation
feat(memory): device-couple PAL — ephemeral-session items don't nag your device - #182
Merged
Merged
Conversation
…our device You can land a "blocked-on-you" item in a throwaway container/scratch dir; today it persists in ~/.kit and (with gap-#4 sync) can follow you to your laptop and nag forever. This couples PAL items to where they were created. - schema v5: pending_actions gains origin_device + origin_root, stamped at palAdd / palSyncFindings. origin_device = KIT_DEVICE_ID or a stable sha256(hostname+user) — an ephemeral container gets its own throwaway id. - palList device-filters by DEFAULT: only this device's items (+ legacy NULL-origin rows) surface, so reminders, the statusline ⚠ count, and `kit memory pal list` stop nagging about another device's / an ephemeral session's work. `--all` opts back in to every device. - `kit memory pal prune`: closes THIS device's open items whose origin_root no longer exists (dead ephemeral/scratch dirs). Only this device's items (we can't judge another device's paths); pre-v5 rows (no origin_root) untouched. Backward-compatible: legacy rows have NULL origin and always show. 7 new tests (stamping, default device filter + --all, NULL-legacy visibility, prune keep/close/other-device, stable+overridable deviceId). 1969 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
sandstream
pushed a commit
that referenced
this pull request
Jun 30, 2026
…es visible
PAL's "blocked-on-you" count only reached the AGENT (via the memory hook); the
human never saw it in the terminal unless they hand-edited settings.json. So
`kit memory install` now also wires `statusLine` → `kit statusline`, making the
setup score + open-PAL ⚠ count visible in the Claude Code status bar.
- installStatusline / uninstallStatusline in memory/install.ts: idempotent,
uses the same absolute kit invocation as the hooks. NEVER clobbers a user's
existing custom statusLine — reports "foreign" and leaves it; uninstall
removes only kit's own.
- memInstall wires it (skip with --no-statusline); memUninstall removes it.
Help updated.
Pairs with the device-coupled PAL count (#182), so the bar shows THIS device's
real blocked-on-you, not an ephemeral session's. 3 new install tests
(added/idempotent, never-clobber-foreign, uninstall-only-ours). Smoke: install
writes statusLine = "<abs>/kit statusline". 1972 tests pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
3 tasks done
sandstream
added a commit
that referenced
this pull request
Jun 30, 2026
…es visible (#183) PAL's "blocked-on-you" count only reached the AGENT (via the memory hook); the human never saw it in the terminal unless they hand-edited settings.json. So `kit memory install` now also wires `statusLine` → `kit statusline`, making the setup score + open-PAL ⚠ count visible in the Claude Code status bar. - installStatusline / uninstallStatusline in memory/install.ts: idempotent, uses the same absolute kit invocation as the hooks. NEVER clobbers a user's existing custom statusLine — reports "foreign" and leaves it; uninstall removes only kit's own. - memInstall wires it (skip with --no-statusline); memUninstall removes it. Help updated. Pairs with the device-coupled PAL count (#182), so the bar shows THIS device's real blocked-on-you, not an ephemeral session's. 3 new install tests (added/idempotent, never-clobber-foreign, uninstall-only-ours). Smoke: install writes statusLine = "<abs>/kit statusline". 1972 tests pass. Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg Co-authored-by: Claude <noreply@anthropic.com>
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 "blocked-on-you" item created in an ephemeral session/container (a throwaway scratch dir) persists in
~/.kitand — with the gap-#4 memory sync — can follow you to your durable device and nag forever for work that never lived there. (Seen live: PAL items scoped totmp.qolSKAbJVy/kit-integ-check-…reminding on an unrelated machine.) This couples PAL items to where they were created.Type of Change
Changes Made
pending_actionsgainsorigin_device+origin_root, stamped atpalAdd/palSyncFindings.origin_device=KIT_DEVICE_IDor a stablesha256(hostname+user)— an ephemeral container gets its own throwaway id, so its items can never match your laptop.palListdevice-filters by default: only this device's items (plus legacyNULL-origin rows) surface. That flows automatically to the SessionStart/UserPromptSubmit reminders, thekit statusline⚠ count, andkit memory pal list.--allopts back in to every device.kit memory pal prune: closes this device's open items whoseorigin_rootno longer exists (dead ephemeral/scratch dirs). Only this device's items (we can't judge another device's paths); pre-v5 rows with noorigin_rootare left untouched.Testing
Test Coverage
--all, NULL-legacy visibility, prune (keep live / close dead / ignore other device), stable+overridabledeviceIdnpm test) — 1969 pass, 0 failManual Testing
kit memory pal pruneagainst this container correctly no-ops on the pre-v5 items (they carry noorigin_root→ not guessed at) — confirming backward-compat; new items carry origin and prune acts on them (proven by tests).Note
Backward-compatible: legacy rows have
NULLorigin and always show; nothing is hidden or pruned retroactively. The two pre-existing[kit]-scoped warns still auto-close on akit checkonce trivy is installed.🤖 Generated with Claude Code
https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
Generated by Claude Code