Repository navigation
docs(skills): check storage, sync and size changes on copies of real threads - #1053
Merged
Merged
Conversation
…threads A new check-on-real-data skill runs every thread on the machine through the old and new code, measures time, memory and migrations on real copies, and asks for query plan tests on hot queries. Its real-threads.ts helper reads copies of each thread.db, never ~/.mousse itself. The work skill's tier 5 row links to it. Co-Authored-By: Claude Opus 5.5 <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.
Problem
Changes to how threads are stored, synced, sized or read are tested only with small, made-up threads. Real threads break limits those tests never reach. A 485-message thread could not open on a phone, and 4 of the 107 threads on one machine had the same problem (#1045). No skill or doc says how to check a change against real data safely.
Change
A new
check-on-real-dataskill, used before the PR of a storage, sync, size-limit or performance change:net.db, or ones that run on every open or send, add a test that fails when the expected index is not used.It also says where the data is, never to write to
~/.mousse, and never to commit real data.real-threads.tsyields every thread's messages from copies of eachthread.db(with its write-ahead log). The originals are never opened.The
workskill's tier 5 row links to the new skill.The approach follows how T3 Code proved its long-thread speedups (pingdotgg/t3code#35130, #35286, #35224).
Verification
real-threads.tson this machine: 108 threads, 7,516 messages; the longest has 574 messages.real-threads.tspassestsc --noEmit --stricton its own. Neither the repo typecheck nor ESLint includes.agents/.🤖 Generated with Claude Code