Skip to content

feat(native): add ACP registry search and sign-in wizard - #198

Merged
rynfar merged 2 commits into
nativefrom
nw/139-registry
Nov 4, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/139-registry

Conversation

@rynfar

@rynfar rynfar commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

The native add-provider dialog stopped at manual/Local ACP configuration and handed registry accounts off to Settings for sign-in. This ports registry search/preparation into Provider → Identity → Sign in and reuses the existing provider Account controls after Create.

Search debounces for 300ms, supports Enter/explicit refresh and loading/refresh/error/empty states, filters the real first-class provider registry IDs, prevents configured agents from being prepared again, and renders at most 512 results in a virtualized 256px list. Preparation merges the server's returned agent ID, version and distribution before applying the web's identity and configuration defaults (including the allowlisted icon URL). Dialog tokens, connection IDs, cancellation and result epochs prevent old searches/preparations from changing a hidden step, replacement dialog or environment. Provider-management permission and policy are checked again at execution and selection.

Manual/Local ACP setup keeps its reset/draft/Back behavior. Built-in wizard configuration and ChatGPT setup remain on their existing paths. Registry Create opens the shared auth UI, including discovery, browser/device-code/credentials/terminal interactions, cancellation, sign-out and Done/Skip behavior. No contracts, web or server code changed.

Validation:

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (1,329 tests), plus the focused 53 provider cases
  • normal and snapshot builds
  • theme generation, parity intake and client-runtime conformance checks
  • mocked search/preparation wire responses and cancellation; core stale-result, defaults, filtering, configured-instance and auth-discovery cases
  • failing-first registry identity regression: an agent named ACP Registry must derive its label-based ID rather than the manual custom ID
  • Full vp run check:changed aae811d2ffe6cfdf188c321dfa02041a3fedca78 is green on the final revision

Offscreen evidence (local PNGs only, per factory instructions):

  • Before: /private/tmp/native-factory-2f5f764a/evidence-139-registry/before-choices.png
  • Search dark/light: /private/tmp/native-factory-2f5f764a/evidence-139-registry/search-dark.png, /private/tmp/native-factory-2f5f764a/evidence-139-registry/search-light.png
  • Preparation and identity: /private/tmp/native-factory-2f5f764a/evidence-139-registry/preparing-dark.png, /private/tmp/native-factory-2f5f764a/evidence-139-registry/identity-dark.png
  • Embedded auth: /private/tmp/native-factory-2f5f764a/evidence-139-registry/signin-dark.png, /private/tmp/native-factory-2f5f764a/evidence-139-registry/auth-active-dark.png, /private/tmp/native-factory-2f5f764a/evidence-139-registry/signed-in-dark.png
  • Loading/error/empty/discovery/manual/local/Back and scrolled-result captures and logs are in that same directory.

ST-PROVIDERS and ST-SHELL stay partial and retain #139. Remaining gaps: registry icon image rendering (the validated URL is persisted; rows use the existing initials fallback), recent-query cache reuse across dialog reopen, selected-agent Docs/Source links, and the accepted P3s for concurrent argument-array merges and live-policy select focus. The known offscreen renderer still sometimes omits cached heading/footer glyphs after scrolling; this does not expand into a renderer rewrite.

No real registry requests/preparations/downloads, provider Create/auth/launch, paid turns, real windows, computer use, clipboard writes, new dev servers or containers, live-state access or cleanup occurred. Real-provider and reduced-scope remote behavior remain unverified. The worktree is retained for orchestrator cleanup.

Review follow-up: b5f80bef497c749ad5cc72dd5ff7af172658b6af is based on fork/native at aae811d2ffe6cfdf188c321dfa02041a3fedca78. The rebase point d1a17db0d148b5473f8b6f36e83a723bf0d41ceb preserves all ten non-ledger feature blobs and the exact non-ledger patch from c31361d326. All 129 other ledger rows, including Appearance/theme rows, retain the new base's values; ST-SHELL/ST-PROVIDERS remain partial #139.

The verified P2 Create race is fixed in a separate commit: the dialog's shared state owns its Create phase and saved instance ID. Preparation, late-result staging and selection application all require the editing phase. Registry inputs/actions are disabled while Create owns the draft, and sign-in subscribes/renders using the captured saved ID. The deterministic state/handler ordering regression fails before the guards with fixture-b crossing the pending Create, then passes for new preparation, late/queued application, failure recovery and completed Create. Existing permission/policy/connection/dialog guards remain in place.

All common gates were joined before the fix, then run once on the fixed revision: clippy, 1,329 workspace tests, normal/snapshot builds, theme/parity/conformance and the complete pinned check:changed command. New offscreen evidence uses only copied smoke home and fixtures: /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/saving.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/auth-active.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/local.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/identity-back.png. All four exited 0 and were inspected; the known cached-glyph limitation still appears after Back. Failing-first/check logs, blob/ledger proofs, range-diff and the isolated review-fix patch are in /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/ (proof.json, range-diff.txt, review-fix.patch). No real Create/auth/registry operation was performed.

Built with GPT-6.1 Sol in Codex

@rynfar

rynfar commented Nov 4, 2026

Copy link
Copy Markdown
Owner Author

Review follow-up: b5f80bef497c749ad5cc72dd5ff7af172658b6af is based on fork/native at aae811d2ffe6cfdf188c321dfa02041a3fedca78. The rebase point d1a17db0d148b5473f8b6f36e83a723bf0d41ceb preserves all ten non-ledger feature blobs and the exact non-ledger patch from c31361d326. All 129 other ledger rows, including Appearance/theme rows, retain the new base's values; ST-SHELL/ST-PROVIDERS remain partial #139.

The verified P2 Create race is fixed in a separate commit: the dialog's shared state owns its Create phase and saved instance ID. Preparation, late-result staging and selection application all require the editing phase. Registry inputs/actions are disabled while Create owns the draft, and sign-in subscribes/renders using the captured saved ID. The deterministic state/handler ordering regression fails before the guards with fixture-b crossing the pending Create, then passes for new preparation, late/queued application, failure recovery and completed Create. Existing permission/policy/connection/dialog guards remain in place.

All common gates were joined before the fix, then run once on the fixed revision: clippy, 1,329 workspace tests, normal/snapshot builds, theme/parity/conformance and the complete pinned check:changed command. New offscreen evidence uses only copied smoke home and fixtures: /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/saving.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/auth-active.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/local.png, /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/identity-back.png. All four exited 0 and were inspected; the known cached-glyph limitation still appears after Back. Failing-first/check logs, blob/ledger proofs, range-diff and the isolated review-fix patch are in /private/tmp/native-factory-2f5f764a/evidence-139-create-freeze/ (proof.json, range-diff.txt, review-fix.patch). No real Create/auth/registry operation was performed.

Declared gaps and runtime verification restrictions remain unchanged. Ready for the same reviewer to re-review the new head.

@rynfar
rynfar merged commit e9d5ae9 into native Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant