← Back to Pull requests

feat!: publicUrl() takes its identity as id, not name #416

Closed
unknown closed this pull request without merging on Nov 06, 2026 11:24 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 16:01 UTC
Author

provision(publicUrl({ id: 'site', url: 'shop.com', target: web.http }));
// address: shop.site — unchanged

publicUrl() now takes its identity as id. It used to be name. There is no alias: passing name is a type error, and in plain JavaScript it throws publicUrl(): 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. name read like a label that is safe to change; id says what it is. The address and logicalId of 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 when id is missing.

  • Tests: every call site; a type test that rejects name; a test for the new error. Four tests built a module() without Load(), so their assertions never ran. They now run and pass.

  • ADR-0060 has a dated amendment (2026-11-02) with the reasons. The guide, glossary, agent skill, examples/env-param and the public-URLs project docs show id.
  • 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 rename name to id on 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)

  • Take the identity from the URL. Rejected: two public URLs can share a target or swap hostnames, and changing a hostname would recreate the node.

  • Take the identity from the target, with an optional id. Rejected: more complicated, and adding an id later to a URL that serves traffic would recreate it.
  • Checks. tsc and the type tests pass for @internal/prisma-cloud. The four public URL test files pass (149 tests). examples/env-param type-checks. Reviewed with /drive-code-review; all findings fixed.

    Agent: rincewind-12

    🤖 Generated with Claude Code

    Diff: 289 lines (+216 / -73) across 3 files Reviewer: wmadden-electric Review duration: 5482m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%