Parent: https://github.com/Cubid-Me/cubid-monorepo/issues/49
Brainstorm Task: Capture production SIWC hosted-test evidence and narrowing
Sequence: Goal 3 of 3
Objective
Replace the obsolete starter.cubid.me deployment with the canonical v3 starter and prove the complete production relying-party SIWC/OIDC flow.
Execution Tasks
- Reconcile and merge the existing SIWC demo implementation.
- Deploy the correct Vercel project with an exact registered production client.
- Run and automate the full hosted browser smoke.
Sequence Context
- Depends on: monorepo production protocol boundary Goal and SDK production issuer Goal.
- Enables: Sprint completion.
- Run independently by: a fresh Codex thread in
Cubid-Me/cubid-starter-v3 after both predecessor Goals are green.
Non-Goals
- Turning the starter into an app-wide authentication gate.
- Reimplementing Cubid-hosted login, passkeys, consent, or token issuance.
- Exposing API keys, tokens, PKCE verifier, nonce, cookies, or user PII.
Guardrails
- Keep the starter a relying-party educational demo.
- Read the installed Next.js version documentation before code changes.
- Preserve HttpOnly cookie and server-mediated callback handling.
- Stop on Vercel, DNS, client-registration, quota, billing, or permission blockers.
Expected Codebase Surfaces
- Existing
codex/siwc-demo-todos commits and dirty working-tree files.
src/app/api/cubid/siwc/**, src/components/cubid/**, README, env example, and deployment configuration.
- Hosted
starter.cubid.me alias and registered callback/client metadata.
Acceptance Criteria
- Production serves the canonical v3 marker and expected SIWC routes.
- A registered-client flow completes discovery, Authorization Code + PKCE, Login/SSO, consent, callback, token/userinfo, starter session, and starter-only logout.
- The developer trace is ordered and redacted.
- Automated smoke detects wrong-project deployment and missing routes.
Validation Plan
Run pnpm lint, pnpm typecheck, pnpm build, route-level checks, and real browser smoke on starter.cubid.me.
Child Tasks
Risks And Mitigations
- Existing dirty work may overlap the SIWC branch: preserve it and resolve deliberately before PR.
- Wrong Vercel alias/project may recur: assert a canonical marker and route contract in deployment smoke.
- Browser auth may require an operator-controlled fixture: use a marked throwaway client/account and redact evidence.
Stop Condition
Stop when the deployed starter completes the production flow, automated and visual evidence passes, and the Sprint has a final cross-repo handoff.
Vetting Addendum — 2026-07-16
Implementation Worktree
Update code, technical docs, tests, deployment evidence, and the branch-scoped session log as required. Read the installed Next.js docs before framework changes.
Integrated validation and smoke
Run pnpm lint, pnpm typecheck, pnpm build, focused route/tests, hosted route probes, and the full registered-client browser flow. Capture redacted desktop and mobile screenshots for the canonical landing/sign-in state, Identity allow/consent, successful session and trace, and starter-only logout; include safe negative state/config evidence. Verify the canonical marker, exact callback, issuer/state/nonce/PKCE behavior, userinfo/session/logout, and wrong-project detection.
Issue Validator
After all Tasks, local/hosted validation, session-log updates, and commits, run $issue-validator before moving this Goal to In Review. Provide the Goal/Sprint URLs, commits, worktree, changed files, commands/results, deployment ID and rollback target, hosted smoke results, visual artifacts, and non-goals. The validator checks the complete flow, redaction, credential boundaries, UI evidence, wrong-project regression, docs/tests coverage, and unresolved external blockers; reports pass, pass-with-notes, or fail to sprint-orchestrator; and comments here. A fail returns the relevant Task to implementation.
Stop at In Review; do not publish SDK packages or remove the root checkout.
Parent: https://github.com/Cubid-Me/cubid-monorepo/issues/49
Brainstorm Task: Capture production SIWC hosted-test evidence and narrowing
Sequence: Goal 3 of 3
Objective
Replace the obsolete
starter.cubid.medeployment with the canonical v3 starter and prove the complete production relying-party SIWC/OIDC flow.Execution Tasks
Sequence Context
Cubid-Me/cubid-starter-v3after both predecessor Goals are green.Non-Goals
Guardrails
Expected Codebase Surfaces
codex/siwc-demo-todoscommits and dirty working-tree files.src/app/api/cubid/siwc/**,src/components/cubid/**, README, env example, and deployment configuration.starter.cubid.mealias and registered callback/client metadata.Acceptance Criteria
Validation Plan
Run
pnpm lint,pnpm typecheck,pnpm build, route-level checks, and real browser smoke onstarter.cubid.me.Child Tasks
Risks And Mitigations
Stop Condition
Stop when the deployed starter completes the production flow, automated and visual evidence passes, and the Sprint has a final cross-repo handoff.
Vetting Addendum — 2026-07-16
Implementation Worktree
Cubid-Me/cubid-starter-v3at/Users/botmaster/src/cubid/cubid-starter-v3codex/siwc-demo-todosmainsprint-orchestratorvia$approved-cleanupafter merge, without removing the root checkout.Update code, technical docs, tests, deployment evidence, and the branch-scoped session log as required. Read the installed Next.js docs before framework changes.
Integrated validation and smoke
Run
pnpm lint,pnpm typecheck,pnpm build, focused route/tests, hosted route probes, and the full registered-client browser flow. Capture redacted desktop and mobile screenshots for the canonical landing/sign-in state, Identity allow/consent, successful session and trace, and starter-only logout; include safe negative state/config evidence. Verify the canonical marker, exact callback, issuer/state/nonce/PKCE behavior, userinfo/session/logout, and wrong-project detection.Issue Validator
After all Tasks, local/hosted validation, session-log updates, and commits, run
$issue-validatorbefore moving this Goal toIn Review. Provide the Goal/Sprint URLs, commits, worktree, changed files, commands/results, deployment ID and rollback target, hosted smoke results, visual artifacts, and non-goals. The validator checks the complete flow, redaction, credential boundaries, UI evidence, wrong-project regression, docs/tests coverage, and unresolved external blockers; reportspass,pass-with-notes, orfailtosprint-orchestrator; and comments here. Afailreturns the relevant Task to implementation.Stop at
In Review; do not publish SDK packages or remove the root checkout.