| index d95e46817..88b6ab2ea 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-sqlite-integrity-safe.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-sqlite-integrity-safe.tsv |
| @@ -2,15 +2,15 @@ |
| # 2 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| # 3 new dispositions: 0 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other. |
| @legacy c109695ab92e5cc735ade2d02bcd7447f7042dd1ec9bdf3ef3e95eb372776de8 internal/ops/litestream.go RestoreVerify legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-sqlite-integrity-safe;basis=Output and counting only: prints restore result and freshness separately and counts current vs could-not-judge; exit status unchanged. No read added or changed; restore call and its one retry unchanged. file:ReadFile@79 6c892a8d1dbcf5b6c6bc00a322e366133c12a24e11ab713065afa5a938907d24 |
| -@legacy cf776eed75e16bf95d5a160e3cbe5858b961782b257bf852b85452b67b98dd69 third_party/ltx/decoder.go Decoder.Close legacy accepted-legacy accepted-legacy;rev3=census-ruling-litestream-pin-1443;basis=vendored byte-for-byte from upstream ltx v0.5.1 (until now compiled into root from the module cache, outside the census); no read added or changed. Only acquireReadLock (BeginTx context) and ltx Compactor.Compact (header error returned) differ from upstream (#1443);rev3=census-ruling-sqlite-integrity-safe;basis=Reads through inputReader; a tail shorter than 8 bytes returns io.ErrUnexpectedEOF instead of panicking on a negative slice bound; lz4 end-frame error keeps its cause. Astra R1 P1-1: first returns an error the input already delivered with earlier bytes (held by inputReader, reported as a read reports it) before reading the raw tail. No read added; same LTX object the restore already opened. file:ReadAll@657 fa3142109739b475a4bf861d2bdcd12f7d0704e73043dadcd6253c0421a427c9 |
| -@legacy 480b8e9e115805bb5984da4998bdd1119b86656a93b6f2d0bc025b81b44df1cf internal/lease/check.go ReadHeader legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New shared helper (Astra R2 P1-2) replacing ChangeCounter body and the branch-only ops sourceHeader: opens the same path ChangeCounter and the freshness check opened (the restored copy, the source named by the generated litestream config or the hibernating route DBPath) and reads the same first 28 bytes in one read; requires the whole 16-byte signature SQLite format 3\0 (was 15 bytes) before returning the counter and journal-mode bytes 18-19. Stricter check, no new path. file:Open@58 ca99d9ee8683ca05b5537f16eeacba264456f4592c8c3566d26600f4247d206d |
| -@legacy bed37dd28b080fc42b7e6f154e98a777854d68ea8b80e550e275efcb95d487e6 third_party/ltx/decoder.go inputReader.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New wrapper around the decoder input reader: maps a premature io.EOF to io.ErrUnexpectedEOF and passes other errors through. Astra R1 P1-1: holds an error that arrives with bytes and returns it on every later read. Astra R2 P1-1: readFull, where DecodeHeader and DecodePage read their fields, returns a held non-EOF error once the field is complete, so a call that stops there (genselect.checkRoot) never succeeds over it; io.EOF after a complete header stays valid. Reads only the LTX stream the decoder already reads. file:Read@110,file:Read@23 954c0708ed4b3ec444c2133db082367e5dc9c16e5549d8cd8c10ac6879c9212f |
| +@legacy 6138f4e0e180ed9d215e00674dcf7c90c5ad638fb41a0a17a52ae22ccec3fedc third_party/ltx/decoder.go Decoder.Close legacy accepted-legacy accepted-legacy;rev3=census-ruling-litestream-pin-1443;basis=vendored byte-for-byte from upstream ltx v0.5.1 (until now compiled into root from the module cache, outside the census); no read added or changed. Only acquireReadLock (BeginTx context) and ltx Compactor.Compact (header error returned) differ from upstream (#1443);rev3=census-ruling-sqlite-integrity-safe;basis=Reads through inputReader; returns a held non-EOF read error before reading the raw tail; a tail shorter than 8 bytes returns io.ErrUnexpectedEOF instead of panicking on a negative slice bound; lz4 end-frame error keeps its cause. No read added; same LTX stream the restore already opened. file:ReadAll@657 fa3142109739b475a4bf861d2bdcd12f7d0704e73043dadcd6253c0421a427c9 |
| +@legacy 76a419e7ad538868fffdb352721bde53af68366973afbde386dc27b0b3481b91 internal/lease/check.go ReadHeader legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New shared helper: opens the caller-supplied database path and reads the first 28 header bytes once, requiring the full 16-byte SQLite signature before returning the change counter and journal-mode bytes 18-19. Replaces ChangeCounter's own open and the branch-only ops.sourceHeader; same path, same bytes. file:Open@58 ca99d9ee8683ca05b5537f16eeacba264456f4592c8c3566d26600f4247d206d |
| +@legacy 56f4253cd9673adb76c5e933680c5fa0dc748273d2a97a53d64dd86aac0efe32 third_party/ltx/decoder.go inputReader.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New wrapper around the decoder's existing input reader: maps a premature io.EOF to io.ErrUnexpectedEOF unless the decoded zero-page terminator was reached; holds a non-EOF error that arrives with a field's last bytes and returns it from that decode call (readFull). Reads only the LTX stream the decoder already reads. file:Read@110,file:Read@23 954c0708ed4b3ec444c2133db082367e5dc9c16e5549d8cd8c10ac6879c9212f |
| internal/ops/litestream.go RestoreVerify legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-sqlite-integrity-safe;basis=Output and counting only: prints restore result and freshness separately and counts current vs could-not-judge; exit status unchanged. No read added or changed; restore call and its one retry unchanged. file:ReadFile@79 6c892a8d1dbcf5b6c6bc00a322e366133c12a24e11ab713065afa5a938907d24 |
| -third_party/ltx/decoder.go Decoder.Close legacy accepted-legacy accepted-legacy;rev3=census-ruling-litestream-pin-1443;basis=vendored byte-for-byte from upstream ltx v0.5.1 (until now compiled into root from the module cache, outside the census); no read added or changed. Only acquireReadLock (BeginTx context) and ltx Compactor.Compact (header error returned) differ from upstream (#1443);rev3=census-ruling-sqlite-integrity-safe;basis=Reads through inputReader; a tail shorter than 8 bytes returns io.ErrUnexpectedEOF instead of panicking on a negative slice bound; lz4 end-frame error keeps its cause. Astra R1 P1-1: first returns an error the input already delivered with earlier bytes (held by inputReader, reported as a read reports it) before reading the raw tail. No read added; same LTX object the restore already opened. file:ReadAll@657 fa3142109739b475a4bf861d2bdcd12f7d0704e73043dadcd6253c0421a427c9 |
| -internal/lease/check.go ReadHeader legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New shared helper (Astra R2 P1-2) replacing ChangeCounter body and the branch-only ops sourceHeader: opens the same path ChangeCounter and the freshness check opened (the restored copy, the source named by the generated litestream config or the hibernating route DBPath) and reads the same first 28 bytes in one read; requires the whole 16-byte signature SQLite format 3\0 (was 15 bytes) before returning the counter and journal-mode bytes 18-19. Stricter check, no new path. file:Open@58 ca99d9ee8683ca05b5537f16eeacba264456f4592c8c3566d26600f4247d206d |
| -third_party/ltx/decoder.go inputReader.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New wrapper around the decoder input reader: maps a premature io.EOF to io.ErrUnexpectedEOF and passes other errors through. Astra R1 P1-1: holds an error that arrives with bytes and returns it on every later read. Astra R2 P1-1: readFull, where DecodeHeader and DecodePage read their fields, returns a held non-EOF error once the field is complete, so a call that stops there (genselect.checkRoot) never succeeds over it; io.EOF after a complete header stays valid. Reads only the LTX stream the decoder already reads. file:Read@110,file:Read@23 954c0708ed4b3ec444c2133db082367e5dc9c16e5549d8cd8c10ac6879c9212f |
| +third_party/ltx/decoder.go Decoder.Close legacy accepted-legacy accepted-legacy;rev3=census-ruling-litestream-pin-1443;basis=vendored byte-for-byte from upstream ltx v0.5.1 (until now compiled into root from the module cache, outside the census); no read added or changed. Only acquireReadLock (BeginTx context) and ltx Compactor.Compact (header error returned) differ from upstream (#1443);rev3=census-ruling-sqlite-integrity-safe;basis=Reads through inputReader; returns a held non-EOF read error before reading the raw tail; a tail shorter than 8 bytes returns io.ErrUnexpectedEOF instead of panicking on a negative slice bound; lz4 end-frame error keeps its cause. No read added; same LTX stream the restore already opened. file:ReadAll@657 fa3142109739b475a4bf861d2bdcd12f7d0704e73043dadcd6253c0421a427c9 |
| +internal/lease/check.go ReadHeader legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New shared helper: opens the caller-supplied database path and reads the first 28 header bytes once, requiring the full 16-byte SQLite signature before returning the change counter and journal-mode bytes 18-19. Replaces ChangeCounter's own open and the branch-only ops.sourceHeader; same path, same bytes. file:Open@58 ca99d9ee8683ca05b5537f16eeacba264456f4592c8c3566d26600f4247d206d |
| +third_party/ltx/decoder.go inputReader.Read legacy accepted-legacy accepted-legacy;rev3=census-ruling-sqlite-integrity-safe;basis=New wrapper around the decoder's existing input reader: maps a premature io.EOF to io.ErrUnexpectedEOF unless the decoded zero-page terminator was reached; holds a non-EOF error that arrives with a field's last bytes and returns it from that decode call (readFull). Reads only the LTX stream the decoder already reads. file:Read@110,file:Read@23 954c0708ed4b3ec444c2133db082367e5dc9c16e5549d8cd8c10ac6879c9212f |
| @remove internal/lease/check.go ChangeCounter |
| -@removed internal/lease/check.go ChangeCounter H3 census-ruling-sqlite-integrity-safe;basis=Now returns ReadHeader(path).Counter: same path, same bytes, the full 16-byte signature check. Its own read moved into ReadHeader. |
| +@removed internal/lease/check.go ChangeCounter H3 census-ruling-sqlite-integrity-safe;basis=Now returns ReadHeader(path).Counter: same path, same read, now with the full 16-byte signature check; its direct open is retired into ReadHeader. |
| @coverage . 66d3445f86ea99dd88e2209717e7f0c357e1507923b07426993c10b6cf8df03e |
| @coverage internal/lease 4297b1c70109e23c6998b3a6b7ae773b6cc268dd67aa6d6d69ae0d8c784096da |
| @coverage internal/ops 733709742484121794ba2b4076e5ba5d3a7de935a89d47283c9b84fb2e6fed7b |