Repository navigation
Thin Fork: auto-archive queries move into their own module - #45
Merged
Merged
Conversation
…wn files ThreadArchiveQueries.ts takes the candidate and subagent-child SQL out of ProjectionStore.ts. The web rows, search entries and mobile section move into fork files; Upstream files keep seam lines. Behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…7/auto-archive # Conflicts: # CUSTOM.md
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.
Part of ziyadakl/tokenmaxxing#117 (spec pingdotgg#107).
Summary
Auto-archive's database queries leave Upstream's
ProjectionStore.ts; its settings UI leaves the Upstream settings files. Behaviour is unchanged.Also: stray
worktreeSettledAfterDays: nullincontracts/settings.test.tsreverted to Upstream's text; default 7 inlined incontracts/settings.ts;SettingInheritance.tsxshrunk to two inline comparisons;ProjectionSettlement.test.ts,ProviderTurnControlService.test.ts,autoSettleSettingsSync(.test).ts,SettingInheritance.test.ts,sharedSettings.test.tsare back to Upstream. Their auto-archive tests moved to fork test files, assertions unchanged.Test wiring changes (fork-owned tests, assertions unchanged):
ThreadArchiveService.test.tsmocksThreadArchiveQueriesinstead ofProjectionStoreV2;ThreadArchive.integration.test.tsprovidesThreadArchiveQueries.layeron the in-memory database.ThreadArchiveService.layerkeeps needingThreadArchiveQueries(so tests can mock it);layerWorkerprovides it.Evidence
git diff --no-renames --numstat --diff-filter=MD $MB HEAD):Before: 181 files, +13889 -2908 After: 175 files, +13347 -2896
ProjectionSettlement.test.ts,ProviderTurnControlService.test.ts,autoSettleSettingsSync.ts,autoSettleSettingsSync.test.ts,SettingInheritance.test.ts,sharedSettings.test.ts.ProjectionStore.tsstays in it for rewind and/compact.ThreadArchiveService,ThreadArchive.integration,ThreadArchiveQueries,ProjectionSettlement,ProviderTurnControlService: 17 passed before the move, 17 after. contractssettings+customSettings: 41 passed. client-runtimesrc/state/: 775 passed. websettingsSearch,SettingInheritance,autoArchiveSettingsSearch,autoArchiveSettingInheritance: 33 passed. mobilesrc/features/settings/: 68 passed.pnpm run typecheck(all packages),vp check(0 errors),pnpm run knip:check: clean.server.ts).Merge Danger
Door: two-way. No schema, migration or stored-data change; revert restores the old layout.
Blast Radius: auto-archive sweep and cascade, the Settings > Threads rows, mobile Thread settings. The SQL is moved verbatim and still runs read-only.
ThreadArchiveService.makeandThreadArchiveQueries.makeare no longer exported (knip). Slice 2 (sidebar groups) edits the same settings files, and slice 5 (rewind) the other region ofProjectionStore.ts; the hunks do not overlap.🤖 Generated with Claude Code