diff --git a/docs/superpowers/plans/2026-07-25-per-user-profile.md b/docs/superpowers/plans/2026-07-25-per-user-profile.md index a20ef35..c26f7fd 100644 --- a/docs/superpowers/plans/2026-07-25-per-user-profile.md +++ b/docs/superpowers/plans/2026-07-25-per-user-profile.md @@ -693,7 +693,6 @@ package store import ( "context" - "database/sql" "fmt" ) @@ -704,8 +703,7 @@ import ( // new user identified by oidcSub. Safe to call on every startup: once the // users table is non-empty, it's a no-op, so leaving // GENIUSRUN_LEGACY_OWNER_OIDC_SUB set after the first successful run causes -// no harm. Also a no-op on a genuinely fresh install (no legacy profile row -// to claim at all). +// no harm. func (db *DB) ClaimLegacyOwner(ctx context.Context, oidcSub string) error { var userCount int if err := db.QueryRowContext(ctx, `SELECT COUNT(*) FROM users`).Scan(&userCount); err != nil { @@ -717,9 +715,6 @@ func (db *DB) ClaimLegacyOwner(ctx context.Context, oidcSub string) error { var displayName string err := db.QueryRowContext(ctx, `SELECT name FROM profile WHERE user_id IS NULL LIMIT 1`).Scan(&displayName) - if err == sql.ErrNoRows { - return nil // fresh install, no pre-existing singleton profile to claim - } if err != nil { return fmt.Errorf("find legacy profile: %w", err) } @@ -763,8 +758,7 @@ git commit -m "$(cat <<'EOF' store: add ClaimLegacyOwner one-time upgrade bootstrap Binds pre-multi-tenancy singleton rows to one named OIDC subject, given at -startup via an env var (wired in Task 11). No-ops once any user exists or -on a genuinely fresh install. +startup via an env var (wired in Task 11). No-ops once any user exists. EOF )" ```