| index c51390878..53a79151d 100644 |
| --- a/internal/activator/seedplace.go |
| +++ b/internal/activator/seedplace.go |
| @@ -90,11 +90,15 @@ func seedRefusedClaim(host string) error { |
| return &SeedPlacementError{Sentence: fmt.Sprintf("%s could not start from its seed: claim control is on for this box.", host)} |
| } |
| |
| -// seedOverUnattributedData is a seed whose first wake found a database at |
| -// its path that is not this seed's (H3-M6). It carries no code: a box |
| -// reports nothing, and every wake refuses until an operator has looked. |
| +// seedOverUnattributedData is a seed whose first wake found database files |
| +// at its path (the database, its WAL or SHM, or litestream metadata) that |
| +// no marker attributes to this seed (H3-M6). That is not proof they are |
| +// another record's, only that nothing here says they are this one's. It |
| +// carries no code: a box reports nothing, and every wake refuses until an |
| +// operator has followed the procedure in |
| +// docs/superpowers/notes/2026-11-30-h3-m6-box-owner-binding.md. |
| func seedOverUnattributedData(host, path string) error { |
| - return &SeedPlacementError{Sentence: fmt.Sprintf("%s could not start from its seed: this box already holds a database for it that is not this seed's. Ask an operator to check it.", host), |
| + return &SeedPlacementError{Sentence: fmt.Sprintf("%s could not start from its seed: this box already has database files for it that nothing marks as this seed's, so they were kept and the seed was not placed. An operator has to check them.", host), |
| Err: fmt.Errorf("%s holds data no marker attributes to this seed; refusing to purge it", path)} |
| } |
| |
| @@ -575,8 +579,11 @@ func (b *ExecBackend) placeSeed(ctx context.Context, rt registry.Route, src *see |
| return seedPlaceFailed(host, err) |
| } |
| if err := sameFileAt(dir, base, wrote); err != nil { |
| - _ = instancefs.RemoveAllBeneath(dir, base+SeedMarkerSuffix) |
| + // The database before its marker: a crash between the two leaves a |
| + // marker alone, which the next wake purges and re-places, never an |
| + // unmarked database, which it would refuse (H3-M6). |
| _ = instancefs.RemoveAllBeneath(dir, base) |
| + _ = instancefs.RemoveAllBeneath(dir, base+SeedMarkerSuffix) |
| return seedPlaceFailed(host, err) |
| } |
| return nil |