Repository navigation
feat(cloud): cloud status reports the seen-txn ledger size per store (T13317) - #1972
Open
kryptobaseddev wants to merge 2 commits into
Open
kryptobaseddev wants to merge 2 commits into
kryptobaseddev wants to merge 2 commits into
Conversation
…(T13317) Seen-txn pruning stays off (#1959) until a proven refusal floor exists (T13318). CloudStatusSyncStream.seenTxns {rows, bytes, byStream} from seenTxnReport (stream + txn text + 8-byte seq per row); the human clause names rows and KiB once non-empty. Tests: per-stream count and byte estimate, a read never prunes, the clause text; mutations on the byte estimate and the clause both fail a test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Task: T13317
Stacked on #1970 (feat/T13315-typed-skip).
Why
Team-lead's T13256 decision (option 3): seen-txn pruning stays off, as #1959 left it, until a proven refusal floor exists (T13318). Until then, the ledger's growth is made visible.
cleo doctor syncdoesn't exist as a command. The store's sync report, including the undo budget the spec assigns to "doctor sync", iscleo cloud status's sync block, so the report goes there.Change
CloudStatusSeenTxns {rows, bytes, byStream}type.CloudStatusSyncStream.seenTxnsis a required field.seenTxnReport(db)(store/sync/pull.ts) groups rows by stream. The byte estimate is the stored stream and txn text plus an 8-byte seq per row, with no page overhead.readStoreSyncStreamfillsseenTxns.<n> seen txn(s), about <size> KiBonce the ledger has rows.Verification
cloud-sync-status: per-stream counts and the exact byte estimate across two streams; a second read sees the same rows (a read never prunes); the flags-off case reports zeroes.nexus-cloud-cli-sync: the clause shows KiB with one decimal under 10 KiB and rounded above, and nothing while the ledger is empty.pull, 18/18 pass.tsc --noEmitis clean for contracts, core and cleo.--base), 40, 4, 10, 32 (--base) and 6 (--check, as CI runs it) pass;lint-changesetspasses.🤖 Generated with Claude Code