Repository navigation
Web: name the auto-created web app 'Verify web <hash>' so the URL's host stays out of Revyl - #96
Merged
Merged
Conversation
…RL's host stays out of the app list TypeScript, Python and Go name it from the first 10 hex digits of the SHA-256 of the host (lowercase, port when not 443), keeping one app per host with the same find-or-create and 409 app_exists reuse. Docs, READMEs and the revyl-verify skill say the new name and that Revyl reuses the build holding the same URL. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…se the Go port as a number TypeScript hashed the punycode host, so an international domain got a different app name than in Python and Go; it now hashes domainToUnicode(hostname), lowercased. Go compares the port as an integer so :0443 counts as 443. Comments say the name doesn't show the host rather than reveal it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… hosts name the same app TypeScript hashes the Unicode host from domainToUnicode. Python now decodes each xn-- label with the built-in punycode codec and Go with a small stdlib-only RFC 3492 decoder, lowercased, keeping a label as written when it doesn't decode. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ppName A web target with url and no app id can name the Revyl web app Verify finds or creates, such as 'Checkout previews': 1 to 100 characters after trimming, no control characters, not with an app id, and rejected on iOS, Android, computers and inside a computer. Without it the name stays 'Verify web <hash>'. The per-process cache is keyed by the name too, and the non-web-app and missing-build-id errors no longer show the URL. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
anamhira47
force-pushed
the
capy/web-app-no-host
branch
from
December 5, 2026 00:24
57c6577 to
4c9fa97
Compare
…() does So a name padded with a byte-order mark finds the same Revyl web app and passes the same length check in all three languages. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a54b099. Configure here.
| const name = `Verify: ${host}`; | ||
| const unicodeHostname = hostname.startsWith('[') ? hostname : domainToUnicode(hostname).toLowerCase(); | ||
| const nameHost = port && port !== '443' ? `${unicodeHostname}:${port}` : unicodeHostname; | ||
| const name = appName ?? `Verify web ${createHash('sha256').update(nameHost).digest('hex').slice(0, 10)}`; |
There was a problem hiding this comment.
Rejected hosts share one app
Medium Severity
domainToUnicode returns an empty string when it rejects a host, and that empty result is hashed with no fallback to the original hostname. Every rejected host then shares one Verify web app, or one per port, while Python and Go keep the raw label, so the same URL does not map to the same app.
Reviewed by Cursor Bugbot for commit a54b099. Configure here.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md # packages/verify/docs/web.md
capy-ai
Bot
changed the base branch from
main
to
capy/persistent-refuse-running
December 5, 2026 01:16
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
capy/persistent-refuse-running
to
main
December 5, 2026 03:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


G1 from the /verify device and test-editor dogfood (REVL-46674, REVL-46672): keep private preview hosts out of Revyl org data.
What changes
appIdfinds or creates its Revyl web app asVerify web <hash>instead ofVerify: <host>.<hash>is the first 10 hex digits of SHA-256 of the same host string as before (lowercase, IPv6 in brackets, port when not 443). Each host still maps to one app through the existing find-or-create (409app_exists→ reuse), and TypeScript, Python and Go produce the same name for every ASCII and IPv6 host. They were checked on 12 URLs, including Unicode IDN hosts (TS hashes the Unicode form, as Python and Go do), IPv6 and:0443. One gap remains: a host typed already in punycode (xn--…) still hashes differently in Python and Go, because closing it in Go would needgolang.org/x/net/idna.revyl-verifyskill use the new name.web.mdandconfiguration.mdnow say Revyl reuses the build that already holds the same URL, and that the build keeps the full URL.open(); the oldVerify: <host>apps can be deleted in Revyl, or pinned withappId.Build records: no SDK change needed
POST /api/v1/apps/{id}/builds/externalalready reuses one record per app + URL (+ commit, which Verify doesn't send). The backend inserts withON CONFLICT DO NOTHINGon a unique index for liveweb_externalbuilds and returnswas_reused: true(cognisim_backend/app/services/builds/web_external_builds.py,app/db/repositories/builds_repo.py). So repeatopen()s of one URL don't pile up records. Skipping registration isn't possible: a web start needs anapp_id, refuses a raw URL, and otherwise opens the app's latest build. Each distinct URL still gets one record that holds it. Removing that needs a backend change, such as an ephemeral flag onbuilds/externalor a URL on the start request; that's proposed in the report, not built.Proposal, needs Anam's approval (not built)
An option to name the auto-created app, which defaults to
Verify web <hash>and can't be combined withappId:app: { url, name?: string }Target(..., app_name=None)Target.AppNameDeleting the auto-created app on
close()is not recommended. The app is shared through find-or-create by every concurrent process for that host, deleting it hides finished sessions, it needs a delete permission many keys lack, and it doesn't remove recorded builds.Review
An independent review found no high-severity issues. Its medium finding (IDN parity) and two lows (Go
:0443, comment wording) are fixed in cbded2d.Checks
npm test(317 + 8).check:links.No tests added or changed, and not run live. Conflicts expected with #94 and the G2/G3 PR on the CHANGELOG headings and the web-app error lines; whichever merges second rebases.
Note
Medium Risk
Behavior change on every web open without appId (new Revyl apps per host until pinned), with coordinated logic across three SDKs; not auth-critical but affects org metadata and upgrading users.
Overview
Web targets without a pinned app id no longer register Revyl web apps as
Verify: <host>. Verify now finds or creates them asVerify web <hash>, where<hash>is the first 10 hex digits of SHA-256 over a normalized host string (Unicode IDN, port when not 443), so preview hostnames stay out of org app lists. TypeScript, Python, and Go share the same naming and normalization logic, including new punycode handling in Go.Optional labeling is added across all three SDKs:
app: { url, name },Target(app_name=...), andTarget.AppName, to pick a human-readable app name (1–100 trimmed chars, not combinable with an existing app id). Process-level web app caches now key on host plus optional name.Migration: existing
Verify: <host>apps are not matched; the nextopen()per host creates one new app (logged withcreated;). Errors for wrong-platform apps and missing build ids no longer echo the URL. Docs, READMEs, CHANGELOG, and the verify skill document the new defaults,name, and build reuse.Reviewed by Cursor Bugbot for commit 12a20e2. Bugbot is set up for automated code reviews on this repo. Configure here.
Stack
Based on #94 (
capy/persistent-refuse-running) so the three 0.9.3 PRs merge in order without conflicts: #94 → #96 → #97. The 0.9.3 CHANGELOG sections are built up once across the stack.