Repository navigation
Description
Parent
Ticket AP3 of spec #1223 (0.1.0). Size: S.
What to build
The only server piece of the app: a small function in WizSite's deploy that exchanges the GitHub App's sign-in code for the user's token and refreshes it. It checks the sign-in state value, answers only for openwiz.dev, keeps nothing and logs no token, and hands the token to the user's browser. The ticket also writes the GitHub App's manifest for AP4: read-only metadata, issues and pull requests, on the repositories the user picks, with openwiz.dev/app as its callback.
Owned paths
functions/(new) and its tests inopenwizdev/WizSitedocs/github-app-manifest.json(new) inopenwizdev/WizSitepackage.jsonand.github/workflows/site.ymlinopenwizdev/WizSite(shared: running the helper's tests)
Relies on: nothing
Links
none
Acceptance criteria
- Exchange and refresh work against a fake GitHub; a wrong state value, another origin or a missing code is refused
- Nothing is stored, and no token or code appears in any log line
- The manifest asks for read-only metadata, issues and pull requests and nothing else
- This pull request's Cloudflare Pages preview link is in the ticket's status comment while it is open
- Test rule (The test rule: what earns a test, and what never does #687): every new test protects a supported behaviour, a contract others rely on or a safety invariant, and the pull request says per test
catches: <the bug>, orno new test: <why>. No mock-returns-stub, source mirroring, compiler re-checks, quota tests or unreachable cases; a bug gets a failing test first. - Every test the pull request deletes names its keeper (a test that still catches its bug) or says the behaviour it protected is gone.
Proof
P1: the helper's tests with a fake GitHub, red first.
Builder Claude Code Opus 5.5 Medium and reviewer Codex Sol 6.2 Medium (J165), other family, no helper agents. A pull request in WizSite, WizSkills or WizRoom follows the cross-repository route: a recorded claim on the pull request, exact-head CI green, the other-family review, and a merge pinned to the reviewed head.
Activity
jparker2006 commentedon Nov 19, 2026
launch-fleet: start checked, branch room/1256-sign-in-helper
jparker2006 commentedon Nov 19, 2026
Status (kept by hand until AP1 and AP2 land; edited in place)
09eba4d(merge8a928b9); openwiz.dev serves/api/sign-in/*, which answersnot_configureduntil AP4 sets the App's settingsjparker2006 commentedon Nov 19, 2026
launch-fleet: cross-repository merge verified in openwizdev/WizSite#20 at approved head 09eba4d831a48927a24bb8ea00fe141a675e80c9. Merge commit 8a928b9917ff3322b4c99f78c8425f099bd0d063.
jparker2006 commentedon Nov 19, 2026
launch-fleet: archived