db forward round 1 (Astra): LTX headers match their coordinates; a cancelled local restore stops
Finding 1 (P1): litestream's restore picks files by name and compacts them by header, so a valid snapshot under another file's coordinates restored and was reported at a transaction it did not hold. The worker now checks every received file's LTX header against its plan entry, for a query as well as a pull (the live query path had the same gap), and the plan's end against its target; the CLI checks each rebuilt file's header against its manifest entry. Finding 2 (P2): the CLI's rebuild loop checks its context per chunk, and dbdoor.RestoreLocal reads its local replica through the context, as the door path's downloaded.Read does, so Ctrl-C and the deadline stop litestream's compaction (CLI and worker alike). Each fix's test failed first. Census: the four changed rows carry a round 1 clause, ctxReadCloser.Read is new at J4, envelopes re-pinned, seal moved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 files changed,
+308
−33
dbforward.go+31 −1dbforward_test.go+70 −0docs/superpowers/notes/census-proposal-db-region-forward-3.md+11 −3internal/dbdoor/plan_from.go+34 −1internal/dbdoor/plan_from_test.go+66 −0internal/dbreads/pull_test.go+43 −0internal/dbreads/worker.go+35 −14internal/provision/plan14_root_reads_test.go+4 −3internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv+14 −11
CI failed — run details
diff --git a/dbforward.go b/dbforward.go| index 77fdc5e4f..5bf8af68a 100644 |
| --- a/dbforward.go |
| +++ b/dbforward.go |
| @@ -346,6 +346,7 @@ func openDBPull(ctx context.Context, id string, key *ecdh.PrivateKey, sink dbChu |
| root := filepath.Join(dir, "replica") |
| h := sha256.New() |
| fi, written := 0, int64(0) |
| + var head []byte // the current file's first ltx.HeaderSize bytes |
| var out *os.File |
| defer func() { |
| if out != nil { |
| @@ -354,6 +355,11 @@ func openDBPull(ctx context.Context, id string, key *ecdh.PrivateKey, sink dbChu |
| }() |
| drop, _ := sink.(interface{ drop(int) }) |
| for i := 0; i < sink.count(); i++ { |
| + // Ctrl-C and the read's deadline stop the rebuild too (Astra round |
| + // 1 on plan 3, finding 2); RestoreLocal's reads check ctx after it. |
| + if err := ctx.Err(); err != nil { |
| + return nil, dbPullStopped(err, host, region) |
| + } |
| sealed, err := sink.chunk(i) |
| if err != nil { |
| return nil, unchecked |
| @@ -382,13 +388,25 @@ func openDBPull(ctx context.Context, id string, key *ecdh.PrivateKey, sink dbChu |
| if _, err := out.Write(plain[:n]); err != nil { |
| return nil, err |
| } |
| + if len(head) < ltx.HeaderSize { |
| + head = append(head, plain[:min(n, int64(ltx.HeaderSize-len(head)))]...) |
| + } |
| plain, written = plain[n:], written+n |
| if written == f.Size { |
| if err := out.Close(); err != nil { |
| out = nil |
| return nil, err |
| } |
| - out, fi, written = nil, fi+1, 0 |
| + // litestream's restore picks files by name and compacts them |
| + // by header: a file whose header is not its manifest entry |
| + // would restore as a transaction it does not hold (Astra |
| + // round 1 on plan 3, finding 1). |
| + var lh ltx.Header |
| + if lh.UnmarshalBinary(head) != nil || uint64(lh.MinTXID) != f.MinTXID || uint64(lh.MaxTXID) != f.MaxTXID { |
| + out = nil |
| + return nil, unchecked |
| + } |
| + out, fi, written, head = nil, fi+1, 0, nil |
| } |
| } |
| if drop != nil { |
| @@ -400,12 +418,24 @@ func openDBPull(ctx context.Context, id string, key *ecdh.PrivateKey, sink dbChu |
| } |
| db := filepath.Join(dir, "replica.db") |
| if err := dbdoor.RestoreLocal(ctx, lsfile.NewReplicaClient(root), db, s.TXID); err != nil { |
| + if cerr := ctx.Err(); cerr != nil { |
| + return nil, dbPullStopped(cerr, host, region) |
| + } |
| return nil, dbRestoreError(host, err) |
| } |
| os.RemoveAll(root) |
| return &dbdoor.Restored{Path: db, Dir: dir, TXID: s.TXID, At: s.At}, nil |
| } |
| +// dbPullStopped is a pull that ended on its context: "stopped" for Ctrl-C, |
| +// DBF-12 for the read's own deadline. |
| +func dbPullStopped(err error, host, region string) error { |
| + if errors.Is(err, context.Canceled) { |
| + return errors.New("stopped") |
| + } |
| + return fmt.Errorf(dbfUnfinished, host, region) |
| +} |
| + |
| // checkPullManifest is the summary's file list checked whole before any |
| // file is created (plan review finding 22): every size a possible LTX file |
| // and within the cap, every level one litestream writes, every range a |
diff --git a/dbforward_test.go b/dbforward_test.go| index 279c42100..74dd9c2b6 100644 |
| --- a/dbforward_test.go |
| +++ b/dbforward_test.go |
| @@ -605,3 +605,73 @@ func TestForwardedPullCtrlCLeavesNothing(t *testing.T) { |
| } |
| leftBehind(t, tmp, out) |
| } |
| + |
| +// pullStreamOf is a pull's body for the given bytes and summary, one chunk. |
| +func pullStreamOf(t *testing.T, key *ecdh.PrivateKey, b []byte, s dbreads.Summary) *stream { |
| + t.Helper() |
| + st := newStream(t, key) |
| + sealed, err := dbreads.SealChunk(key.PublicKey(), fwdID, 1, dbreads.StreamLTX, true, b) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + st.line(dbreads.Line{Chunk: 1, Data: sealed}) |
| + st.result(dbreads.StateDone, "", 1, s) |
| + return st |
| +} |
| + |
| +// Astra round 1 on plan 3, finding 1, at the CLI: a valid snapshot of |
| +// transaction 1, listed as [1,2] with a summary at 2 that adds up in every |
| +// other way, is DBF-13 and restores nothing: the CLI checks each rebuilt |
| +// file's LTX header against its manifest entry. Mutation: drop the header |
| +// comparison (red: it restores and reports transaction 2). |
| +func TestForwardedPullRefusesARelabelledSnapshot(t *testing.T) { |
| + t.Parallel() |
| + dir := t.TempDir() |
| + dbdoortest.Replicate(t, dir, 2) |
| + rc, err := lsfile.NewReplicaClient(dir).OpenLTXFile(context.Background(), 0, 1, 1, 0, 0) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + b, _ := io.ReadAll(rc) |
| + rc.Close() |
| + sum := sha256.Sum256(b) |
| + s := dbreads.Summary{TXID: 2, Files: []dbdoor.LTXFile{{Level: 0, MinTXID: 1, MaxTXID: 2, Size: int64(len(b))}}, |
| + Bytes: int64(len(b)), SHA256: hex.EncodeToString(sum[:])} |
| + key, _ := dbreads.NewReplyKey() |
| + out := t.TempDir() |
| + r, err := readPullIn(t, pullStreamOf(t, key, b, s), key, out) |
| + if err == nil || err.Error() != fmt.Sprintf(dbfUnchecked, "uk") { |
| + t.Fatalf("a relabelled snapshot gave %+v, %v", r, err) |
| + } |
| + if _, err := os.Stat(filepath.Join(out, "replica.db")); !os.IsNotExist(err) { |
| + t.Fatalf("a copy was restored: %v", err) |
| + } |
| +} |
| + |
| +// Astra round 1 on plan 3, finding 2, after the download: a pull cancelled |
| +// once every chunk has arrived is "stopped" and rebuilds no file. Mutation: |
| +// drop the rebuild loop's context check (red: the files are written and |
| +// restored before the cancel is seen). |
| +func TestForwardedPullStopsWhenCancelledAfterTheDownload(t *testing.T) { |
| + t.Parallel() |
| + dir := t.TempDir() |
| + dbdoortest.Replicate(t, dir, 3) |
| + key, _ := dbreads.NewReplyKey() |
| + st := pullStreamN(t, key, dir, 4, nil) |
| + out := t.TempDir() |
| + sink := &fileSink{dir: filepath.Join(out, "sealed")} |
| + id, res, err := readDBForward(context.Background(), &st.buf, key, "shop.example.com", "uk", dbfFetching, io.Discard, sink, newDBFChunkBound(dbreads.MaxPullBytes, dbreads.PullChunkBytes)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + ctx, cancel := context.WithCancel(context.Background()) |
| + cancel() |
| + if _, err := openDBPull(ctx, id, key, sink, *res, "shop.example.com", "uk", out); err == nil || err.Error() != "stopped" { |
| + t.Fatalf("a cancelled pull answered %v", err) |
| + } |
| + for _, gone := range []string{"replica", "replica.db"} { |
| + if _, err := os.Stat(filepath.Join(out, gone)); !os.IsNotExist(err) { |
| + t.Errorf("%s was written after the cancel (%v)", gone, err) |
| + } |
| + } |
| +} |
diff --git a/docs/superpowers/notes/census-proposal-db-region-forward-3.md b/docs/superpowers/notes/census-proposal-db-region-forward-3.md| index 65e980eb8..002f17c90 100644 |
| --- a/docs/superpowers/notes/census-proposal-db-region-forward-3.md |
| +++ b/docs/superpowers/notes/census-proposal-db-region-forward-3.md |
| @@ -43,12 +43,20 @@ and `CARLOS_DB_PULL_MAX_BYTES` in `dbReadsSettings` make no read it counts |
| | `dbforward.go` `dbPullForward` | new: the same bounded 64 KiB read of a refused reads-route answer as `dbQueryForward` (`io.ReadAll` over the response body, not a file); creates and removes the pull's private 0700 directory | the CLI | legacy, accepted-legacy, J4 (main's footing for `db.go`'s units) | |
| | `dbforward.go` `fileSink.chunk` | new: reads back one sealed chunk it spooled itself, 0600 in that directory, admitted by the chunk bound before it was written | the CLI | legacy, accepted-legacy, J4 | |
| | `dbforward.go` `openDBPull` | new: creates each planned LTX file exclusively (`O_EXCL`, 0600) in that directory, only after the whole file list is checked; then restores, checks and removes them | the CLI | legacy, accepted-legacy, J4 | |
| +| `internal/dbdoor/plan_from.go` `ctxReadCloser.Read` | new (Astra round 1, finding 2): `RestoreLocal` wraps its local replica's reads so each checks the restore's context first; litestream's compaction checks none of its own | the CLI and the worker | legacy, accepted-legacy, J4 (as main's `downloaded.Read`) | |
| | `dbforward.go` `dbQueryForward` | changed: keeps its chunks in a `memSink` and opens them after `readDBForward` returns the result; the same bounded refusal read | the CLI | re-frozen at `census-ruling-db-region-forward-2` with this change appended | |
| -Envelopes re-pinned: `.`, `internal/console`, `internal/dbreads`, |
| -`internal/host`. Frozen declarations are added, so the seal moves: |
| +Round 1 (Astra on cc77ca95): `ServeWorker` now checks every received file's |
| +LTX header against its plan entry through `verifyLTX`, for a query as well as a |
| +pull, and the plan's end against its target; `holdAndSend` only sends the checked |
| +files back; `openDBPull` compares each rebuilt file's header with its manifest |
| +entry and checks its context per chunk. Their rows carry a round 1 clause; no |
| +read is added to them. |
| + |
| +Envelopes re-pinned: `.`, `internal/console`, `internal/dbdoor`, |
| +`internal/dbreads`, `internal/host`. Frozen declarations are added, so the seal moves: |
| static-redirects' `65857c29…` is checked first, the new seal is |
| -`6efe4eab71e7ff5c3de38449d6c8a837ac13ade0f242dfb4094e699e252b1293`. |
| +`36ecd2eca043f1d0056f086be47ba1fb887dcdc2eda67427e698c2b6d1b9031b`. |
| ## Record writes (9B8) |
diff --git a/internal/dbdoor/plan_from.go b/internal/dbdoor/plan_from.go| index 23b378e61..a0764c837 100644 |
| --- a/internal/dbdoor/plan_from.go |
| +++ b/internal/dbdoor/plan_from.go |
| @@ -144,7 +144,10 @@ func PlanFrom(ctx context.Context, rd ReplicaReader, at time.Time) (RestorePlan, |
| // pull), exactly to target, at out, and proves it with lease.CheckDBContext. |
| // On failure nothing is left at out. |
| func RestoreLocal(ctx context.Context, c litestream.ReplicaClient, out string, target uint64) error { |
| - if err := restoreOnce(ctx, c, out, target, time.Time{}); err != nil { |
| + // litestream's compaction checks no context, so every read of the local |
| + // files checks it here, as the door path's downloaded.Read does (Astra |
| + // round 1 on plan 3, finding 2). |
| + if err := restoreOnce(ctx, ctxReplica{ReplicaClient: c, ctx: ctx}, out, target, time.Time{}); err != nil { |
| removeCopy(out) |
| if cerr := ctx.Err(); cerr != nil { |
| return cerr |
| @@ -164,3 +167,33 @@ func RestoreLocal(ctx context.Context, c litestream.ReplicaClient, out string, t |
| } |
| return nil |
| } |
| + |
| +// ctxReplica is a local replica client whose file reads stop once ctx is |
| +// done. |
| +type ctxReplica struct { |
| + litestream.ReplicaClient |
| + ctx context.Context |
| +} |
| + |
| +func (c ctxReplica) OpenLTXFile(ctx context.Context, level int, minTXID, maxTXID ltx.TXID, offset, size int64) (io.ReadCloser, error) { |
| + if err := c.ctx.Err(); err != nil { |
| + return nil, err |
| + } |
| + rc, err := c.ReplicaClient.OpenLTXFile(ctx, level, minTXID, maxTXID, offset, size) |
| + if err != nil { |
| + return nil, err |
| + } |
| + return ctxReadCloser{ReadCloser: rc, ctx: c.ctx}, nil |
| +} |
| + |
| +type ctxReadCloser struct { |
| + io.ReadCloser |
| + ctx context.Context |
| +} |
| + |
| +func (r ctxReadCloser) Read(p []byte) (int, error) { |
| + if err := r.ctx.Err(); err != nil { |
| + return 0, err |
| + } |
| + return r.ReadCloser.Read(p) |
| +} |
diff --git a/internal/dbdoor/plan_from_test.go b/internal/dbdoor/plan_from_test.go| index e0503147c..95b907511 100644 |
| --- a/internal/dbdoor/plan_from_test.go |
| +++ b/internal/dbdoor/plan_from_test.go |
| @@ -6,6 +6,7 @@ import ( |
| "io" |
| "os" |
| "path/filepath" |
| + "sync" |
| "testing" |
| "time" |
| @@ -152,3 +153,68 @@ func TestRestoreLocalRestoresThePlan(t *testing.T) { |
| t.Fatalf("restored %d bytes, planned %d", st.Size(), plan.RestoredBytes) |
| } |
| } |
| + |
| +// countingReads is a litestream.ReplicaClient over a file replica that |
| +// cancels a context on the first byte read and counts every read made after |
| +// it, so a test can see whether a restore keeps reading once cancelled. |
| +type countingReads struct { |
| + litestream.ReplicaClient |
| + cancel context.CancelFunc |
| + mu sync.Mutex |
| + reads int |
| + after int |
| +} |
| + |
| +func (c *countingReads) OpenLTXFile(ctx context.Context, level int, lo, hi ltx.TXID, off, size int64) (io.ReadCloser, error) { |
| + rc, err := c.ReplicaClient.OpenLTXFile(ctx, level, lo, hi, off, size) |
| + if err != nil { |
| + return nil, err |
| + } |
| + return &countedReader{ReadCloser: rc, c: c}, nil |
| +} |
| + |
| +type countedReader struct { |
| + io.ReadCloser |
| + c *countingReads |
| +} |
| + |
| +func (r *countedReader) Read(p []byte) (int, error) { |
| + r.c.mu.Lock() |
| + r.c.reads++ |
| + if r.c.reads == 1 { |
| + r.c.cancel() |
| + } else { |
| + r.c.after++ |
| + } |
| + r.c.mu.Unlock() |
| + return r.ReadCloser.Read(p) |
| +} |
| + |
| +// Astra round 1 on plan 3, finding 2: litestream's local compaction checks |
| +// no context, so RestoreLocal's replica reads must: once the restore is |
| +// cancelled (Ctrl-C, or the read's deadline), no further byte is read and |
| +// nothing is left at out. Mutation: RestoreLocal reads the client without |
| +// its context wrapper (red: reads continue after the cancel). |
| +func TestRestoreLocalStopsReadingOnceCancelled(t *testing.T) { |
| + t.Parallel() |
| + dir := t.TempDir() |
| + dbdoortest.Replicate(t, dir, 4) |
| + ctx, cancel := context.WithCancel(context.Background()) |
| + defer cancel() |
| + c := &countingReads{ReplicaClient: lsfile.NewReplicaClient(dir), cancel: cancel} |
| + plan, err := PlanFrom(context.Background(), lsfile.NewReplicaClient(dir), time.Time{}) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + db := filepath.Join(t.TempDir(), "copy.db") |
| + err = RestoreLocal(ctx, c, db, plan.TXID) |
| + if !errors.Is(err, context.Canceled) { |
| + t.Fatalf("a cancelled restore answered %v", err) |
| + } |
| + if c.after != 0 { |
| + t.Fatalf("%d replica reads after the cancel", c.after) |
| + } |
| + if _, err := os.Stat(db); !os.IsNotExist(err) { |
| + t.Fatalf("something is at out: %v", err) |
| + } |
| +} |
diff --git a/internal/dbreads/pull_test.go b/internal/dbreads/pull_test.go| index ac0886a3b..421d05d1a 100644 |
| --- a/internal/dbreads/pull_test.go |
| +++ b/internal/dbreads/pull_test.go |
| @@ -280,3 +280,46 @@ func TestNewAgentClampsMaxPull(t *testing.T) { |
| t.Errorf("MaxPull %d with a 256 MiB restored cap", a.cfg.MaxPull) |
| } |
| } |
| + |
| +// relabelled is the bytes of dir's first planned file, a valid snapshot at |
| +// transaction 1, under the coordinates of a file that ends at 2. |
| +func relabelled(t *testing.T, dir string) (dbdoor.LTXFile, []byte) { |
| + t.Helper() |
| + rd := lsfile.NewReplicaClient(dir) |
| + rc, err := rd.OpenLTXFile(context.Background(), 0, 1, 1, 0, 0) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + b, _ := io.ReadAll(rc) |
| + rc.Close() |
| + return dbdoor.LTXFile{Level: 0, MinTXID: 1, MaxTXID: 2, Size: int64(len(b))}, b |
| +} |
| + |
| +// Astra round 1 on plan 3, finding 1: a valid snapshot under another file's |
| +// coordinates is refused before ready, for a pull and for a query alike: the |
| +// worker checks each file's LTX header against its plan entry, so a copy |
| +// can never be reported at a transaction it does not hold. Mutation: drop |
| +// the header comparison (red: the query restores and answers ready at 2; |
| +// the pull verifies and answers ready). |
| +func TestWorkerRefusesARelabelledSnapshot(t *testing.T) { |
| + t.Parallel() |
| + dir := t.TempDir() |
| + dbdoortest.Replicate(t, dir, 2) |
| + for _, op := range []string{OpQuery, OpPull} { |
| + lf, b := relabelled(t, dir) |
| + conn, done := workerPipe(t, WorkerOptions{}) |
| + if err := writeJSONFrame(conn, frameHeader, planHeader{V: ProtocolVersion, Op: op, Files: []dbdoor.LTXFile{lf}, Target: 2, MaxRestored: DefaultMaxRestored}); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := writeFrame(conn, frameFile, b); err != nil { |
| + t.Fatal(err) |
| + } |
| + typ, p, err := readFrame(conn) |
| + var end endMsg |
| + if err != nil || typ != frameEnd || json.Unmarshal(p, &end) != nil || end.Code != CodeCheckFailed { |
| + t.Errorf("%s: a relabelled snapshot answered %q %s %v", op, typ, p, err) |
| + writeFrame(conn, frameStop, nil) |
| + } |
| + <-done |
| + } |
| +} |
diff --git a/internal/dbreads/worker.go b/internal/dbreads/worker.go| index f7b216777..20b2cbf00 100644 |
| --- a/internal/dbreads/worker.go |
| +++ b/internal/dbreads/worker.go |
| @@ -157,6 +157,17 @@ func ServeWorker(conn io.ReadWriter, opt WorkerOptions) error { |
| } |
| return end(CodeCheckFailed, err) |
| } |
| + // litestream's restore picks files by their names and compacts them |
| + // by their headers, so a file whose header is not its plan entry |
| + // would be reported at a transaction it does not hold (Astra round 1 |
| + // on plan 3, finding 1). A pull's files go back unrestored, so each is |
| + // decoded whole as well. |
| + if err := verifyLTX(path, lf, h.Op == OpPull); err != nil { |
| + return end(CodeCheckFailed, err) |
| + } |
| + } |
| + if len(h.Files) == 0 || h.Files[len(h.Files)-1].MaxTXID != h.Target { |
| + return end(CodeCheckFailed, errors.New("dbreads: the plan does not end at its target")) |
| } |
| if h.Op == OpPull { |
| return holdAndSend(ctx, conn, next, end, root, h) |
| @@ -207,21 +218,16 @@ func ServeWorker(conn io.ReadWriter, opt WorkerOptions) error { |
| return end(CodeSQLError, qerr) |
| } |
| -// holdAndSend is a pull's whole worker job (spec §6: the box never restores |
| -// for a pull). Each planned file's LTX checksums are verified (the decode |
| -// is the worker's, as every decode of tenant bytes is), the files are held |
| -// in this unit's private scratch, and after the agent's check B they go |
| -// back in the header's order, whole, as output. |
| +// holdAndSend is a pull's whole worker job after the files are received and |
| +// checked (spec §6: the box never restores for a pull): the files are held |
| +// in this unit's private scratch, and after the agent's check B they go back |
| +// in the header's order, whole, as output. |
| func holdAndSend(ctx context.Context, conn io.Writer, next func() (frame, error), end func(string, error) error, root string, h planHeader) error { |
| + // ServeWorker has checked every file whole against its plan entry, and |
| + // the plan's end against its target. |
| paths := make([]string, len(h.Files)) |
| for i, lf := range h.Files { |
| paths[i] = litestream.LTXFilePath(root, lf.Level, ltx.TXID(lf.MinTXID), ltx.TXID(lf.MaxTXID)) |
| - if err := verifyLTX(paths[i]); err != nil { |
| - return end(CodeCheckFailed, err) |
| - } |
| - } |
| - if len(h.Files) == 0 || h.Files[len(h.Files)-1].MaxTXID != h.Target { |
| - return end(CodeCheckFailed, errors.New("dbreads: the plan does not end at its target")) |
| } |
| if err := writeJSONFrame(conn, frameReady, readyMsg{TXID: h.Target}); err != nil { |
| return err |
| @@ -258,14 +264,29 @@ func holdAndSend(ctx context.Context, conn io.Writer, next func() (frame, error) |
| return end("", nil) |
| } |
| -// verifyLTX decodes one held file whole and checks its checksums. |
| -func verifyLTX(path string) error { |
| +// verifyLTX checks one received file against its plan entry: its LTX |
| +// header must name exactly the entry's transactions. With whole, every page |
| +// and the checksums are decoded too (the decode is the worker's, as every |
| +// decode of tenant bytes is). |
| +func verifyLTX(path string, lf dbdoor.LTXFile, whole bool) error { |
| f, err := os.Open(path) |
| if err != nil { |
| return err |
| } |
| defer f.Close() |
| - return ltx.NewDecoder(f).Verify() |
| + dec := ltx.NewDecoder(f) |
| + if whole { |
| + err = dec.Verify() |
| + } else { |
| + err = dec.DecodeHeader() |
| + } |
| + if err != nil { |
| + return err |
| + } |
| + if h := dec.Header(); uint64(h.MinTXID) != lf.MinTXID || uint64(h.MaxTXID) != lf.MaxTXID { |
| + return fmt.Errorf("dbreads: %s holds transactions %s", filepath.Base(path), dbdoor.Span(uint64(h.MinTXID), uint64(h.MaxTXID))) |
| + } |
| + return nil |
| } |
| // receiveFile writes exactly size bytes of file frames to path, refusing a |
diff --git a/internal/provision/plan14_root_reads_test.go b/internal/provision/plan14_root_reads_test.go| index 681de7f51..96d915825 100644 |
| --- a/internal/provision/plan14_root_reads_test.go |
| +++ b/internal/provision/plan14_root_reads_test.go |
| @@ -1430,8 +1430,9 @@ func TestPlan14RootReadCensus(t *testing.T) { |
| // (docs/superpowers/notes/census-proposal-db-region-forward-3.md). The |
| // worker's pull units (holdAndSend, verifyLTX) are accepted legacy at J4 |
| // inside its sandbox, the CLI's (dbPullForward, fileSink.chunk, |
| - // openDBPull) at J4 as the person; ServeWorker and dbQueryForward are |
| - // re-frozen with the pull appended. Frozen declarations are added, so |
| + // openDBPull) at J4 as the person, RestoreLocal's context-checked reads |
| + // (ctxReadCloser.Read, round 1) at J4 as downloaded.Read is; |
| + // ServeWorker and dbQueryForward are re-frozen with the pull appended. Frozen declarations are added, so |
| // the seal moves; static-redirects' is checked first. |
| if errs := checkRootReadLegacy(inv, seal); len(errs) != 0 { |
| t.Fatal(errs) |
| @@ -1439,7 +1440,7 @@ func TestPlan14RootReadCensus(t *testing.T) { |
| if err = loadRootReadInventory(filepath.Join(root, "internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv"), &inv, true); err != nil { |
| t.Fatal(err) |
| } |
| - seal = "6efe4eab71e7ff5c3de38449d6c8a837ac13ade0f242dfb4094e699e252b1293" |
| + seal = "36ecd2eca043f1d0056f086be47ba1fb887dcdc2eda67427e698c2b6d1b9031b" |
| errs := append(compareRootReads(got, inv), checkRootReadLegacy(inv, seal)...) |
| errs = append(errs, checkRootReadDeclarations(got, inv)...) |
| if len(errs) > 0 { |
diff --git a/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv b/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv| index f19a8acc7..59fbfc391 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-db-region-forward-3.tsv |
| @@ -1,20 +1,23 @@ |
| # Census overlay db-region-forward-3 (db region forward plan 3: carlos db pull and pull --at for an instance in another region; spec docs/superpowers/specs/2026-10-22-db-region-forward-design.md rev 7, §6, §13), loaded LAST in TestPlan14RootReadCensus, after static-redirects, the overlay main loads last at 0d9e81dc. Every row carries rev3=PROPOSED-db-region-forward-3; the ruling is asked of the census owner on #280 (docs/superpowers/notes/census-proposal-db-region-forward-3.md). |
| -# The scanner names two new worker units (holdAndSend, verifyLTX: the pull's hold mode, inside the db-read worker's sandbox, over the files the agent sent), three new CLI units (dbPullForward, fileSink.chunk, openDBPull: the pull's spool, its file replica, as the person), and two changed legacy units (ServeWorker, dbQueryForward), re-frozen at their accepted dispositions with plan 3's change appended. No agent, console or host unit is named: the agent's pull, the console's forward of it and CARLOS_DB_PULL_MAX_BYTES add no read the scanner sees. Frozen declarations are added, so the seal moves; static-redirects' is checked first. Envelopes . (the CLI), internal/console, internal/dbreads and internal/host are re-pinned. |
| -@legacy 02f174af82d98de108a656a2261b87f92eadeed7fce6a5d0ccfac036de88c31f internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added file:Stat@2768 d4635af9ef7c0ec6f66c5f8a3332ceb652c9215f2fc611d7f885cb661e853f11 |
| -internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added file:Stat@2768 d4635af9ef7c0ec6f66c5f8a3332ceb652c9215f2fc611d7f885cb661e853f11 |
| -@legacy 68e35c406e1749a6de5685dbea327c426042ed7ffb9866e9e80ed03f87d4f5c3 internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root file:Open@934 4ef666b878d68adb0bcd17f359a4e4142681618ee5836d495f3d266e9b4d1e23 |
| -internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root file:Open@934 4ef666b878d68adb0bcd17f359a4e4142681618ee5836d495f3d266e9b4d1e23 |
| -@legacy 35856d353c251596e131cc5a7fe821231d0fa5ea3201f83200120b5a0a9b21d6 internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch file:Open@47 46773a72349f2d6d7c8935c252e9946ee67bb7563d33bbfd714aac52c6dbf66b |
| -internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch file:Open@47 46773a72349f2d6d7c8935c252e9946ee67bb7563d33bbfd714aac52c6dbf66b |
| +# The scanner names two new worker units (holdAndSend, verifyLTX: the pull's hold mode, inside the db-read worker's sandbox, over the files the agent sent), three new CLI units (dbPullForward, fileSink.chunk, openDBPull: the pull's spool, its file replica, as the person), one new dbdoor unit (ctxReadCloser.Read, round 1: RestoreLocal's context-checked reads, for the CLI and the worker), and two changed legacy units (ServeWorker, dbQueryForward), re-frozen at their accepted dispositions with plan 3's change appended. No agent, console or host unit is named: the agent's pull, the console's forward of it and CARLOS_DB_PULL_MAX_BYTES add no read the scanner sees. Frozen declarations are added, so the seal moves; static-redirects' is checked first. Envelopes . (the CLI), internal/console, internal/dbdoor, internal/dbreads and internal/host are re-pinned. |
| +@legacy 3c07c6c3d2e502f869e247dc6631e15ff04210f75c1d78ce82406bdbdcf7136d internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added Round 1 (Astra on plan 3, finding 1): after each receive it calls verifyLTX, for a query as for a pull, and refuses a plan that does not end at its target; no read added here. file:Stat@3347 37763b2fe7774cb2ad602559c5c55ac7b3021b3abad89d3c3c6cbb8e59faa6c9 |
| +internal/dbreads/worker.go ServeWorker legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-1;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new, stats the copy it restored in its own private /var/tmp for the restored-size cap; reads only the files the agent sent and its own scratch; round 1: it refuses, before writing anything, a plan whose restored-size cap exceeds its own LimitFSIZE or whose files total more than twice that cap;rev3=PROPOSED-db-region-forward-3;basis=accepts a pull header beside a query's and hands a pull, after the same bounded receive, to holdAndSend before any restore; the Stat is unchanged, now reached by a query only; no read added Round 1 (Astra on plan 3, finding 1): after each receive it calls verifyLTX, for a query as for a pull, and refuses a plan that does not end at its target; no read added here. file:Stat@3347 37763b2fe7774cb2ad602559c5c55ac7b3021b3abad89d3c3c6cbb8e59faa6c9 |
| +@legacy 2e2d110b635ff50b9aef17f641b17ddf1aee117c65b56dc07515b660b895b52e internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root Round 1: the per-file verification moved to ServeWorker; this unit only opens the checked files to send them back. file:Open@796 a084883e6c399444fd88f81b22b739819eb305f85975a280210ba749f595d84a |
| +internal/dbreads/worker.go holdAndSend legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens each planned LTX file it received and verified, in its own private /var/tmp, once check B has passed, and copies it back to the agent over its socket; reads only the files the agent sent and its own scratch; decides nothing for root Round 1: the per-file verification moved to ServeWorker; this unit only opens the checked files to send them back. file:Open@796 a084883e6c399444fd88f81b22b739819eb305f85975a280210ba749f595d84a |
| +@legacy 2703470ae3889a39bb57bfc241707586b22516acea0591b17294433f0b41c12d internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch Round 1: also compares the decoded header's transaction range with the file's plan entry, for a query (header only) as for a pull (decoded whole), so a file is never restored or shipped as a transaction it does not hold. file:Open@78 76da616e0866788c581e9eb70c648595ffc63010501efb4a6f9ee8cdf4ab1442 |
| +internal/dbreads/worker.go verifyLTX legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4); the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network, PrivateTmp, /data and /etc/carlos hidden): new (plan 3, a pull), opens one planned LTX file it received, in its own private /var/tmp, and decodes it whole to check its LTX checksums before ready (the worker's decode of tenant bytes, as its restore is); reads only the files the agent sent and its own scratch Round 1: also compares the decoded header's transaction range with the file's plan entry, for a query (header only) as for a pull (decoded whole), so a file is never restored or shipped as a transaction it does not hold. file:Open@78 76da616e0866788c581e9eb70c648595ffc63010501efb4a6f9ee8cdf4ab1442 |
| @legacy 582d4130f874a145585e8c7abee8c4ead54293b5a32e4bacb1562895f4433fcc dbforward.go dbQueryForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-2;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new, reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence; decides nothing for root;rev3=PROPOSED-db-region-forward-3;basis=keeps its chunks in a memSink and opens them with openDBForward after readDBForward returns the result, the same bytes and checks as before; the same bounded refusal read; no read added file:ReadAll@1371 757573f0b60a4b2e4eafdef63b4d1157363768dcbc9354e1317f52e886394dc8 |
| dbforward.go dbQueryForward legacy accepted-legacy accepted-legacy;rev3=census-ruling-db-region-forward-2;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new, reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence; decides nothing for root;rev3=PROPOSED-db-region-forward-3;basis=keeps its chunks in a memSink and opens them with openDBForward after readDBForward returns the result, the same bytes and checks as before; the same bounded refusal read; no read added file:ReadAll@1371 757573f0b60a4b2e4eafdef63b4d1157363768dcbc9354e1317f52e886394dc8 |
| @legacy f4ce27cf5207cac6b448fcd23923bda9694cafd2055e26167764547d4a057b88 dbforward.go dbPullForward legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence, as dbQueryForward does; creates the pull's one private 0700 directory under the system temp dir and removes it on every path but success, where db.go's dbPull removes it after copyOut; decides nothing for root file:ReadAll@939 9f9d794b2d34a5613098f39edc8aa2e1d572a95ef41baa6c621173b3911833d2 |
| dbforward.go dbPullForward legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), reads at most 64 KiB of a refused reads-route answer from the console (io.ReadAll over the HTTP response body, not a file) to print the console's own sentence, as dbQueryForward does; creates the pull's one private 0700 directory under the system temp dir and removes it on every path but success, where db.go's dbPull removes it after copyOut; decides nothing for root file:ReadAll@939 9f9d794b2d34a5613098f39edc8aa2e1d572a95ef41baa6c621173b3911833d2 |
| @legacy b08da594b8cc5ffff9f892eb77f448c0b150afa83fa88ff0a2987ba0d1c83343 dbforward.go fileSink.chunk legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), reads back one sealed chunk it spooled itself, 0600 in the pull's private 0700 directory under the system temp dir, each admitted by the chunk bound before it was written; the bytes open only with the CLI's own ephemeral key; decides nothing for root file:ReadFile@58 6a1f96c3ac25abc41412246cb50d6412d61fd91fcd1e7ba9d8ef6be6c97d6e8b |
| dbforward.go fileSink.chunk legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), reads back one sealed chunk it spooled itself, 0600 in the pull's private 0700 directory under the system temp dir, each admitted by the chunk bound before it was written; the bytes open only with the CLI's own ephemeral key; decides nothing for root file:ReadFile@58 6a1f96c3ac25abc41412246cb50d6412d61fd91fcd1e7ba9d8ef6be6c97d6e8b |
| -@legacy 13ff116a4e18fdfd46205a5661add0c97f459e71fdfae2f4f0b936c34a4d6d51 dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root file:OpenFile@1714 e61aef9e9dba0dff860c5ba8807727ac02ac91860efbf56e8800a1e37bc94465 |
| -dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root file:OpenFile@1714 e61aef9e9dba0dff860c5ba8807727ac02ac91860efbf56e8800a1e37bc94465 |
| -@coverage . ece52b96376c91d2cba8af2c5d89be8534879472d54f266a59f57db32e1aab12 |
| +@legacy 9deb0db511208df7a31c850fbf41473d3a3d2c58a48886602dd3a2e2d09bbbe3 dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root Round 1 (Astra on plan 3, findings 1 and 2): compares each rebuilt file's LTX header, from the bytes it wrote, with its manifest entry, and checks the context before each chunk; no read added. file:OpenFile@2009 51fc426dbd5d8730bbd15c92fb023fa9af85c999eee769decfd63bb97635f66a |
| +dbforward.go openDBPull legacy accepted-legacy accepted-legacy;rev3=PROPOSED-db-region-forward-3;basis=root-input (J4, as main's db.go units); the carlos CLI on a person's machine, as the person (no box unit): new (plan 3), creates each planned LTX file exclusively (O_EXCL, 0600) as a litestream file replica in the pull's private 0700 directory, only after the summary's whole file list has been checked, from chunks opened with the CLI's own key; then restores and checks them with dbdoor.RestoreLocal and removes them; the count and SHA-256 are checked before the restore; decides nothing for root Round 1 (Astra on plan 3, findings 1 and 2): compares each rebuilt file's LTX header, from the bytes it wrote, with its manifest entry, and checks the context before each chunk; no read added. file:OpenFile@2009 51fc426dbd5d8730bbd15c92fb023fa9af85c999eee769decfd63bb97635f66a |
| +@legacy b02fbbaff04f4d5436251522687f9ffb2a058f1e25b7d1aa3efa63cb57f17c39 internal/dbdoor/plan_from.go ctxReadCloser.Read legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input (J4, as main's downloaded.Read);rev3=PROPOSED-db-region-forward-3;identity=the carlos CLI on a person's machine, as the person, and the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network): new (Astra round 1 on plan 3, finding 2), RestoreLocal's reads of the local replica files it was handed, each checking the restore's context first so litestream's compaction stops on Ctrl-C or the deadline; reads only those files; decides nothing for root file:Read@117,file:Read@23 e6bf708f2f7a6643b55b6afc64bd94f65cd60e4235f99a5a91ced9d353a6e67b |
| +internal/dbdoor/plan_from.go ctxReadCloser.Read legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input (J4, as main's downloaded.Read);rev3=PROPOSED-db-region-forward-3;identity=the carlos CLI on a person's machine, as the person, and the db-read worker (carlos system db-worker, carlos-dbread@.service, a DynamicUser with no network): new (Astra round 1 on plan 3, finding 2), RestoreLocal's reads of the local replica files it was handed, each checking the restore's context first so litestream's compaction stops on Ctrl-C or the deadline; reads only those files; decides nothing for root file:Read@117,file:Read@23 e6bf708f2f7a6643b55b6afc64bd94f65cd60e4235f99a5a91ced9d353a6e67b |
| +@coverage . cc17fa0a3414d5c8811d5728f339a9a54b0e9fe0aee0a547f9bc677f1ddd1ab7 |
| @coverage internal/console a09cd3a5db072ff86040580fb038d723c9a114e72a15a39db688bd2523f6bcb4 |
| -@coverage internal/dbreads c1c9a9ab5d1dcf7962f94328fd48bca56208f1342f2689f61f038001b3a7ce9d |
| +@coverage internal/dbreads 64d1eb057fc028865c5b99b2b9bef2714a95eac75ae711f84018980f077d9403 |
| @coverage internal/host 218f8d6a50eb852a22424236fa89427b4b5509e08fd956ce778d95bc5a63c9a0 |
| +@coverage internal/dbdoor e705cafd886bc300e3bacdf65bcfcf09e0e824c30967fd8d82c36238a2ad8573 |