Phase 2: two-way multi-device sync (#100) + error-signature nudges & panel (#97)#111
Merged
Conversation
…100 Phase 2) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…Phase 2) Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Phase 2 of #100 (two-way multi-device sync) and #97 (active-surfacing). Two file-disjoint commits, integrated clean, full suite green.
#100 Phase 2 — two-way multi-device sync
sync pullfetches peers' encrypted mart shards (decrypt, monotonic-generation replay-guard, per-shard content-hash vs cursor → download-changed-only) into<mart>_remotelanding tables;sync/merge.pyunions local + remote at the stable(provider, slug)grain (SUM), dedupssession_martbysession_idwith amerge_warningscounter. Exposed via a dedicatedroutes/sync.py(GET /api/sync/status,GET /api/sync/overview?scope=all-devices) so the default dashboard path is untouched and off the<100msfast-path. Additivev029migration (sync_cursors,sync_remote_devices, 5_remotetables); schema → v29. Defaultscope=this-deviceruns no union. 38 tests. (all-devices FE toggle is a documented follow-up; backend + API/CLI are live.)#97 Phase 2 — error-signature nudge + dashboard panel
New
stackunderflow-posttool-nudge(PostToolUse/Bash): after an errored tool result whose signature matches a recurring minedErrorSignaturewithresolution_hints, injects a one-line hint under the same governance as Phase 1 (dedupe/cap/cooldown/adaptive-quieting) — emits onlyadditionalContext, never blocks.POST /api/patterns/dismisswrites the exact Tier-1 governance fingerprint (round-trip tested). A "What almost bit me" section in the Health tab lists recent would-have-fired nudges with dismiss controls. Default-off. 43 tests.Verification
ruff --select E,Fclean ·tsctypecheck clean · vite build (panel bundled) · version guard green ·test_pricing_invariantsgreenpyrage[Unreleased]documents both🤖 Generated with Claude Code