feat!: publicUrl() takes its identity as id, not name #416
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 289 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #416"
general
weight: 0.35
wmadden-electric
publicUrl()now takes its identity asid. It used to bename. There is no alias: passingnameis a type error, and in plain JavaScript it throwspublicUrl(): id is required. It takes its identity as id, not name.Why. The parameter's only job is the node's stable identity. It is the node's default provision ID, so it sets the address and the
logicalId. Changing it destroys the URL and creates a new one.nameread like a label that is safe to change;idsays what it is. The address andlogicalIdof existing public URLs do not change, so deployed URLs are not recreated.What changed
packages/1-prisma-cloud/1-extensions/target/src/public-url.ts: the parameter, the error label, and a clear error whenidis missing.name; a test for the new error. Four tests built amodule()withoutLoad(), so their assertions never ran. They now run and pass.examples/env-paramand the public-URLs project docs showid.Riding along. Two docs commits from
docs/public-urls-plan-current, so they need no PR of their own: one brings the public-URLs plan up to date with the platform slices; the other records, in.drive/deferred.md, the follow-up to renamenametoidon every node.Breaking change. Accepted during the release-candidate phase. Lands before increment 3 (pending hostnames) so the API is stable before it.
Alternatives considered (recorded in the ADR-0060 amendment)
id. Rejected: more complicated, and adding anidlater to a URL that serves traffic would recreate it.Checks.
tscand the type tests pass for@internal/prisma-cloud. The four public URL test files pass (149 tests).examples/env-paramtype-checks. Reviewed with/drive-code-review; all findings fixed.Agent: rincewind-12
🤖 Generated with Claude Code