Skip to content

feat(extension): admit Smart Compliance Platform as a service origin - #30

Merged
gcharang merged 2 commits into
devfrom
u2-scp-service-origin
Dec 3, 2026
Merged

gcharang merged 2 commits into
devfrom
u2-scp-service-origin

Conversation

@gcharang

@gcharang gcharang commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The extension admits a second service: Smart Compliance Platform's browser gateway at https://browser.nomixhq.com, beside https://understudy.proofof.tech. The pairing page that sends the offer chooses the service, so one store build serves both.

  • The store build's host permissions and externally_connectable cover both origins; validateStoreManifest pins both exact patterns.
  • externalPairingOffer accepts only the exact /dashboard/pair page at an admitted origin; a URL fragment is accepted, any query (even a bare ?) is refused.
  • The pairing client redeems the offer at the chosen origin, persists that origin with active and queued claims, recovers older claims at the build's origin, and rejects a redirect or a reply naming a different origin.
  • The profile client restores a profile whose stored origin is admitted, clears one that is not, and offers the current credential as pairing proof only to the service that issued it.
  • The staging build admits only its staging origin; verify-build-target.mjs checks the staging bundle contains neither production origin.

Release order

SCP's copy of the protocol must be live before a store build that changes the protocol ships: Understudy PR merged to dev → SCP re-fork deployed → dev → master → store submission (RUNBOOK.md). This change does not alter the protocol.

Test plan

  • CI (ci.yml)
  • After SCP's gateway is live: pair a profile from https://browser.nomixhq.com/dashboard/pair, restart the browser, confirm it reconnects to SCP and not to Understudy

🤖 Generated with Claude Code

gcharang and others added 2 commits December 2, 2026 23:56
The store build admits https://understudy.proofof.tech and
https://browser.nomixhq.com. The exact /dashboard/pair page that sends
an offer chooses the service; the extension redeems the offer there,
records the origin with the profile and reconnects to it, rejects a
reply naming another origin, and offers a credential as pairing proof
only to the service that issued it. Store manifest checks pin both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An offer that would move the browser to another service, or an SCP offer
on an unpaired or revoked profile, waits for the person to confirm it in
the side panel; only that confirmation lifts Stop All. A failed claim
yields to a queued offer for the other service, a staged switch reports
success while the old service's sessions close, pending window cleanup
holds the switch, and the side panel names the controlling service.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@gcharang
gcharang merged commit e9459ac into dev Dec 3, 2026
1 check passed
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