Skip to content

Commit 630ee98

Browse files
V48 Gate 1: Update Track 1 rollup for reconnect auth_source; family authoring moves to its own gate
The signed-in Leather reconnect rewrites the wallet connection auth_source from bitcoin_wallet_oauth_identity to bitcoin_wallet_provider, so the rollup's wallet join now accepts both and surfaces payment_address, proof_kind, and auth_source. Notes clarify the full V48 draft family opens in a dedicated authoring gate; Gate 1 closes as the identity/auth QA gate. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 828093c commit 630ee98

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

BITCODE_SPEC_V48_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- Scope: V48 starts as the interactive local experiential QA target over promoted V47 commercial website testnet launch canon.
1414
- QA findings ledger: `BITCODE_V48_QA.md` (the running record of accepted V48 findings and repairs)
1515
- Gate 1 (in progress): identity and authentication interactive QA on branch `v48/gate-1-identity-auth-interactive-qa`
16-
- Full draft family (`BITCODE_SPEC_V48.md`, `BITCODE_SPEC_V48_DELTA.md`, `BITCODE_SPEC_V48_PARITY_MATRIX.md`) opens at Gate 1 closure, per the V47 Gate 1 precedent
16+
- Full draft family (`BITCODE_SPEC_V48.md`, `BITCODE_SPEC_V48_DELTA.md`, `BITCODE_SPEC_V48_PARITY_MATRIX.md`) opens in a dedicated specification-authoring gate once the interactive QA tracks have accumulated the specification intent; Gate 1 closed as the identity/authentication QA-and-repairs gate
1717

1818
## Notes-only draft rule
1919

supabase/queries/v48_qa_05_track1_readiness_rollup.sql

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
-- Purpose: one-row Track 1 identity summary — session, identity, profile,
33
-- wallet binding, GitHub installation, repository count.
44
-- Run: anytime; the quick "where does Track 1 stand" check.
5-
-- Expect (Track 1 complete): session_minted true, wallet binding populated,
6-
-- github_installation_id present, repository_count > 0.
5+
-- Expect (Track 1 complete): session_minted true, wallet binding populated
6+
-- (payment_address fills after the signed-in reconnect; proof_kind is
7+
-- provider_session for identity-derived binds and bitcoin_message_signature
8+
-- after reconnect), github_installation_id present, repository_count > 0.
9+
-- Note: the wallet connection's auth_source is bitcoin_wallet_oauth_identity
10+
-- for identity-derived binds and bitcoin_wallet_provider after the signed-in
11+
-- panel reconnect — the join accepts both.
712

813
WITH qa_user AS (
914
SELECT id
@@ -18,8 +23,11 @@ SELECT
1823
i.identity_data ->> 'sub' AS bitcoin_subject,
1924
p.username,
2025
p.settings #>> '{bitcodeProfile,walletBinding,address}' AS wallet_address,
26+
p.settings #>> '{bitcodeProfile,walletBinding,paymentAddress}' AS payment_address,
27+
p.settings #>> '{bitcodeProfile,walletBinding,proofKind}' AS wallet_proof_kind,
2128
p.settings #>> '{bitcodeProfile,walletBinding,status}' AS wallet_status,
2229
wallet.provider AS wallet_connection_provider,
30+
wallet.connection_data ->> 'auth_source' AS wallet_auth_source,
2331
wallet.is_active AS wallet_active,
2432
github.connection_data ->> 'installation_id' AS github_installation_id,
2533
github.connection_data ->> 'account_login' AS github_account,
@@ -32,7 +40,7 @@ LEFT JOIN public.user_profiles p
3240
ON p.id = u.id
3341
LEFT JOIN public.user_connections wallet
3442
ON wallet.user_id = u.id
35-
AND wallet.connection_data ->> 'auth_source' = 'bitcoin_wallet_oauth_identity'
43+
AND wallet.connection_data ->> 'auth_source' IN ('bitcoin_wallet_oauth_identity', 'bitcoin_wallet_provider')
3644
LEFT JOIN public.user_connections github
3745
ON github.user_id = u.id AND github.provider = 'github'
3846
WHERE u.id IN (SELECT id FROM qa_user);

0 commit comments

Comments
 (0)