Skip to content

docs(skills): check storage, sync and size changes on copies of real threads - #1053

Merged
bvsr365 merged 1 commit into
masterfrom
skill-check-on-real-data
Nov 13, 2026
Merged

bvsr365 merged 1 commit into
masterfrom
skill-check-on-real-data

Conversation

@bvsr365

@bvsr365 bvsr365 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

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-data skill, used before the PR of a storage, sync, size-limit or performance change:

    1. Run every real thread through the old and new code, and report how many failed before, fail now, and changed.
    2. Measure time and memory with and without a warm cache, and time any migration on the largest real database.
    3. For queries on 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.ts yields every thread's messages from copies of each thread.db (with its write-ahead log). The originals are never opened.

  • The work skill'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

🤖 Generated with Claude Code

…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>
@bvsr365
bvsr365 merged commit 869abf5 into master Nov 13, 2026
7 checks passed
@bvsr365
bvsr365 deleted the skill-check-on-real-data branch November 13, 2026 04:56
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.

1 participant