Skip to content

0.0.16 T2: browser sign-in and explicit personal-login setup #633

Closed

Description

@jparker2006

Parent

Ticket T2 of confirmed spec #2920 (0.0.16).

What to build

Connect GitHub browser authentication to the existing setup runtime and page, and make a deliberately chosen personal-login path sufficient when the user skips the App. Reuse GitHub CLI browser sign-in and positive current account/repository checks. A browser launch or callback is not usable login evidence. Show the selected acting identity; leave a skipped/missing App truthful rather than marking it verified. An App failure or revocation must never silently select the personal login or its quota.

Carry this choice through the existing Python setup store, Rust reader and read-only setup response to the existing page. Maintain CloudRoom, harness, project, engine and reviewer requirements as independent facts. Use only the contract-first expansion for new fields; preserve old saved-state compatibility and no-write GET behavior. This ticket makes the sign-in/skip-App path demonstrable in isolation on recording providers; it does not wait for the new manifest or init implementation.

Owned paths

  • tools/install/setup/github_login.py
  • tools/install/setup/test_github_login.py
  • tools/install/setup/setup.py (shared) only personal identity/browser-login checks and selected-auth readiness composition; not project/brain checks or prepare
  • tools/install/setup/store.py (shared) only identity-choice fields/validation; not brain-reference fields
  • crates/store/src/setup.rs (shared) only identity-choice decoding/validation; not brain-reference decoding
  • crates/server/src/setup.rs (shared) only identity selection/readiness, login/App reason codes and focused tests
  • apps/web/src/setup.ts (shared) only identity selection and reason presentation
  • apps/web/src/components/Setup.tsx (shared) only GitHub login/App-skip continuation
  • apps/web/test/browser/setup-github-login.test.mjs
  • tools/install/test_setup_api.mjs (shared) only identity selection/readiness cases
  • tools/release/build_products.py (shared) only github_login.py runtime packaging row
  • tools/install/install.py (shared) only github_login.py required-runtime row
  • tools/install/test_install.py (shared) only github_login.py asset fixture/case
  • tools/install/fixture_bundle.py (shared) only github_login.py fixture asset row
  • tools/release/test_package.py (shared) only github_login.py packaging case
  • crates/service/src/bootstrap.rs (shared) only github_login.py required-asset row/count
  • changes/setup-onboard-github-login.md
  • tests/checks/skills.rs (shared) only the setup_onboard_login check registration
  • .github/actions/docs-only/run.py (shared) only setup_onboard_login test-selection registration
  • .github/actions/docs-only/plan.py (shared) only setup_onboard_login test-selection registration

Relies on: contracts/setup-onboard.v1.md, contracts/setup-onboard.v1.schema.json, contracts/setup.v1.md, contracts/setup.v1.schema.json, contracts/agent-github-reads.v1.md, contracts/open-development.v1.md

Links

Acceptance criteria

  • Signed-out users receive the supported browser sign-in; verified existing users reuse their login without a pasted personal token. Positive account and selected-repository access are read back.
  • An explicit App skip persists across reload, names the acting personal identity and allows the selected login path to become ready without claiming an App is installed.
  • Denied/unknown auth, account mismatch, revoked repository access, stale observations and unselected auth cannot become ready or silently fall back.
  • Recording and browser tests cover browser cancellation, restart, repeated requests, current identity and both legacy/new state; GET setup performs no authentication call or write.
  • The existing page retains missing/refused/unknown/uncertain states. Attach small target images before changing its visible login/skip area, per the image skill; keep desktop and phone proofs scoped.

Proof

P1/P2/P5. Red-first runtime/API/browser behavior at the selected-identity seam; no live login or secret provisioning in tests. Packaging verifies the same helper ships and runs from the installed runtime.

Validation and authority

Run the affected checks only, plus format/type checks for touched code. Use the existing CI selection/registration rows; do not add a new project dependency or skip a missing required tool silently. Fixtures contain synthetic values only. Raw live/contributor/account evidence and exact decision words stay private; public results use verified private-comment pointers. New visible UI uses the existing image skill before implementation.

This graph is written for approval only. No ready label, builder start, live/account/machine/secret action, external posting, spending, merge, release or publication is authorized by this unapproved ticket. After graph approval, the project's merge rules apply to implementation; live work still needs T8's exact kit authorization. A closed blocker without its required verified merge/completion evidence does not release work. New scope or changed interfaces return through plan-graph change control.

was ClosedWiz #2941

Activity

  1. added this to the 0.0.16 milestone on Nov 15, 2026
  2. added
    ready-for-agent
    on Nov 15, 2026
  3. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: noted #699

    RN6’s repository-capitalisation-only contract change is pre-released for this ticket under C2. Consumer scope, blocker meaning and owned paths are unchanged; no ticket edit or new approval cutoff is needed. This acknowledges/releases only a #699-triggered contract hold, not any independent audit, needs-info, ordering or live gate.

    Private record: https://github.com/jparker2006/ClosedWiz/issues/325#issuecomment-6891382510

  4. added
    held
    and removed
    ready-for-agent
    on Nov 15, 2026
  5. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: held for #644: contract changed, re-approve. contracts/setup.v1.md, contracts/setup.v1.schema.json changed in #644.

    T1 is verified merged into main. Its optional identity/brain fields, selected-identity ready rule and pinned init/receipt seams affect existing relied-on contracts. This is the mechanical consumer hold required by launch-fleet, not an assertion that T1 failed review. The current approved graph bodies, paths and dependency edges are unchanged; the prepared re-approval request is on spec #625. The #699 C2 release covers only its capitals-only change, not this #644 interface delivery. No independent hold or live authorization is released.

  6. added
    ready-for-agent
    and removed
    held
    on Nov 15, 2026
  7. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: start checked, branch room/633-0-0-16-t2-browser-sign-in-and-explic-ku7j

    Public PR #862 and full head 1f9089f are independently verified. CI is red in the carriage guard; the exact classification-entry question is recorded separately. This is branch ownership verification, not a green hand-back or review.

  8. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Builder question: two exact paths outside the owned list

    Ticket #633 needs two edits outside its owned paths. The current revision 3 approval names no supporting envelope, so I am asking before I edit either one.

    1. apps/web/src/api.ts (shared), only the setup reader: SetupView and parseSetupText.

    • Why: the page's strict openwiz.setup.v1 reader lives here, not in setup.ts. Today it refuses any extra key and any ready: true where github_app is not verified. setup.v1's 0.0.16 expansion says T2 ships the server and the page together. Without this edit, a server response that carries identity makes the page show an error. The owned tools/install/test_setup_api.mjs tests exactly this reader.
    • Smallest change: accept an optional identity object with exactly the keys selected, app_choice and acting_login, using the contract's enums and login pattern. personal_login requires skip and a login. Relax the reader's ready check only for personal_login + skip. Responses without identity keep the current rule exactly. Nothing else in the file changes.
    • Criteria: AC2 (the skip persists and names the acting identity), AC3 (no silent fallback is shown ready), AC5 (the page keeps its states).

    2. A target-image evidence folder: docs/evidence/openwiz-0.0.16/setup-github-login/.

    • Why: AC5 and the image skill require target pictures, committed in an owned evidence path and posted on the ticket, before the visible login/skip area changes. The ticket owns no evidence path.
    • Contents: synthetic target PNGs at 390 and 1440 CSS px, their prompt and generation notes, and the red-run logs.

    Design note (no answer needed unless you object): the explicit App skip is saved through setup's existing preview → --yes --operation pattern as a connect_app operation. Its effects say plainly that no App is registered or installed and name the acting login. No new operation kind is added and no setup.v1 enum changes.

    Recommendation: grant both paths as scoped above. In the meantime I am building the owned store, server and Python login slices.

  9. added
    needs-info
    on Nov 15, 2026
  10. jparker2006 commented on Nov 15, 2026

    @jparker2006
    MemberAuthor

    Orchestrator ruling: both granted, as supporting paths for this ticket only, answering the builder question above.

    1. apps/web/src/api.ts (shared): only SetupView and parseSetupText, to accept the optional identity object exactly as contracts/setup.v1.md already defines it, and to relax the ready check only for personal_login with skip. Responses without identity keep today's rule. No contract, schema or enum change; nothing else in the file.
    2. docs/evidence/openwiz-0.0.16/setup-github-login/: synthetic target pictures, their prompt and notes, and the red-run logs.

    Same intent as the ticket (AC2, AC3, AC5); no new interface, dependency or scope. Record both grants in the PR's Facts. If the reader needs any contract change after all, stop and ask again.

  11. 25 remaining items

  12. added 3 commits that reference this issue on Nov 16, 2026
  13. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    Orchestrator decision requested: PR #862 at 51a8de8360162730a5ad8030348016a777b1d381 after its one ordinary review and one re-check.

    The retained reviewer's exact-head CHANGES re-check was read back and matched to its own output. R1 is resolved. Two blockers remain:

    • R2: after the pending-record age cutoff, the fence can release a positively identified living authentication child, permitting another sign-in after its wrapper was interrupted.
    • R3: the newly github.com-bound read with Enterprise-only credentials gets a real-gh HTTP401/exit1 path classified as identity_unreadable; explicit sign-in exits without starting authentication.

    All four helpers are archived and both immediate original-window audits are clean. Evidence is synthetic/process proof, with no live provider or OAuth acceptance claim. The ordinary 1+1 budget is consumed.

    Recommendation: authorize one bounded further fix for R2 and R3, retaining github.com binding, positive living-child exclusion and refusal of arbitrary read/network errors. Please record the actual decision here for this head: fix once more (including any necessary exact supporting scope), or log and merge with explicit disposition of both blockers. No new builder round, review allocation or merge is inferred before that decision.

  14. added
    needs-info
    on Nov 16, 2026
  15. added 3 commits that reference this issue on Nov 16, 2026
  16. removed
    needs-info
    on Nov 16, 2026
  17. added 2 commits that reference this issue on Nov 16, 2026
  18. jparker2006 commented on Nov 16, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: archived

    PR862 merged through the queue at approved head79fcc4e496b6a84f59f98aff3e9795385410c1eb into default main as f95a553266b07c5f3aa397d48b1aee2a711dfead. Default-branch ancestry and this closing PR's closure of #633 were independently verified. The retained builder and reviewer are archived, both read back; immutable claims/history retained. Ordinary review/re-check and the separately authorized final check remain consumed, with final exact-head APPROVE6909671372. No live acceptance claim. #636's frontier is checked in this same wake with all three prerequisite merges verified.

  19. added 2 commits that reference this issue on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions