Skip to content

Name every node by its full address, starting with the app name - #384

Merged
wmadden-electric merged 45 commits into
mainfrom
drive/fully-qualified-node-addresses
Oct 23, 2026
Merged

wmadden-electric merged 45 commits into
mainfrom
drive/fully-qualified-node-addresses

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor
export default module('shop', ({ provision }) => {
  const catalog = provision(rawPostgres({ name: 'catalog' }));
  const api = provision(apiService, {
    deps: { db: catalog },
    input: { origin: serviceOrigin('shop.api') },   // was serviceOrigin('api')
  });
});
$ prisma deploy
Address        Deployed
shop.catalog   postgres-database db_dhmp6sef…      # was: catalog
shop.api       compute-service   cps_efn6g905…     # was: api

$ prisma dev url shop.api                          # was: prisma dev url api
http://127.0.0.1:3001

The decision: a node is named by its full address, starting with the app name

Every module, service, database and bucket in a Composer app is a node. Each node has an ID: its name, unless provision() gives it another one. A node's address is the IDs on the path from the root module down to the node, joined with dots. The root module's ID is the app's name.

Until now, addresses left out the root. The database above was catalog, not shop.catalog. So the string catalog did not say which app it belonged to. To find the node, you also had to know which app you meant, from the linked project or the directory you were in. That gets in the way of the next pieces of this project: platform commands that take an address (prisma service logs @pr-42:shop.api), and prisma deploy list, which will print every node on a stage. It also meant two apps deployed to the same stage could have nodes with the same address.

This PR puts the app name at the start of every address. That string is now the only way a node is identified. Everything that names a node is built from it:

Where the node is named Before After
CLI output, errors, logs, dev url api shop.api
The logicalId on the node's platform row. The platform uses it to recognise the same service on every stage. api shop.api
The display name of the service, bucket, database connection and bucket access key on the platform api shop.api
The IDs under which Alchemy, the deploy engine Composer uses, records each resource it created api-svc, catalog-conn shop.api, shop.catalog.connection
The environment variables Composer gives a service COMPOSER_API_… COMPOSER_SHOP_API_…

The decision is recorded in ADR-0057, which replaces ADR-0051. The principles, glossary, domain docs, guides, agent skill and examples are updated to match.

What app authors change

  • serviceOrigin() takes the full address: serviceOrigin('shop.api'). If the address names no service, the deploy fails before it creates, changes or deletes any resource. One consequence: an app that uses serviceOrigin() can't be deployed under another name with prisma deploy --name shop2. Under that name the service's address is shop2.api, so 'shop.api' names nothing.
  • prisma dev url takes the full address.
  • An app name may contain only letters, digits, - and _. Composer rejects any other name before deploying, because the name now starts every address and every environment variable name.

Nothing else in an app's code changes.

How existing apps move over

An app deployed by an earlier release has its resources recorded under the old IDs, such as catalog-db. If this release simply used the new IDs, Alchemy would see resources it has never created, plus old ones that are no longer declared. It would create an empty database and delete the old one with its data.

So Composer also tells Alchemy each resource's old ID. Users write nothing for this. Inside Composer's Prisma Cloud code, every resource Composer declares for an app carries Alchemy's rename declaration (renamedFrom), naming the ID earlier releases gave that resource. On the first deploy with this release, Alchemy moves each resource's record to its new ID and updates the resource, instead of recreating it. The deploy log is the only place a user sees this:

[shop.api] update (renamed from api-svc)
[shop.catalog.connection] replace (renamed from catalog-conn)

The old IDs are built in legacy-resource-ids.ts. Review checked each one against the v0.34.0 source, and every release since v0.16.0 builds them the same way. On a stage already deployed with this release, or a new stage, the rename declarations do nothing.

That first deploy does the following to each kind of resource. The full table, with the upstream code each line relies on, is in upgrade-effects.md.

  • Updated in place: services, databases and buckets. Their platform ids, URLs, data, objects and custom domains stay.
  • Recreated, with new credentials: the database connection and the bucket access key that Composer created for each database and bucket. Their display names change to the full address, and Alchemy recreates a connection or access key whose name changes, because the platform can't rename one. Composer's services get the new credentials in the same deploy.
  • Recreated, with the same values: the environment variables Composer created, because their names change, and each service's deployment, so every service restarts once.
  • Untouched: everything Composer did not create, such as custom domains, environment variables set by hand, and connections or access keys made by hand.

Each recreated resource is created first. The old one is deleted only after the whole deploy has succeeded, by the id Composer recorded for it.

Local prisma dev keeps its instances, ports and data. Composer records which local instance backs each node in .prisma-composer/dev/emulator-instances.json, and rewrites that file to full addresses on the first run.

One rare app shape can't move automatically. Take an app shop with a service x directly under the root, and also a module named shop that contains another service x. The second service's old variable names (COMPOSER_SHOP_X_…) are the first service's new ones. A check finds this before any resource is created, changed or deleted, and names both services. Its fix loses nothing: delete each old variable it names, then deploy again.

What happens when this is released

Releasing changes nothing by itself. Each stage moves over on its first deploy with this release, as described above.

  • Data. No database, bucket, object or custom domain is lost by that deploy, as long as the stage was last deployed by v0.16.0 or later.
  • Credentials used outside Composer stop working. That includes a database connection string or S3 key that someone copied out of Composer's variables, for example into a local .env or a reporting tool. Composer's own services keep working.
  • Stages that are never deployed again keep the old IDs. That includes abandoned preview stages. So the rename declarations can't simply be deleted later: a release without them would delete and recreate an unmoved stage's resources. The release that removes them should first look at a stage's deploy state, and refuse to deploy one that still holds old IDs, telling the user to deploy it with a release that moves it.

How we know it's safe

On the real platform (qa.md), QA did the following:

  1. Deployed a test app with v0.34.0. It had a database, a bucket, two services that call each other, a generated secret and a serviceOrigin.
  2. Wrote rows to the database and objects to the bucket.
  3. Added a custom domain, an environment variable, a database connection and a bucket access key, all by hand.
  4. Deployed the app with this branch.

Afterwards, the platform ids, rows, objects, generated secret, service-to-service keys and URLs were all unchanged. So was everything added by hand, and the hand-made connection and access key still read the data. Every display name and logicalId was the full address, and no old ID or variable was left.

QA also deployed the same app to a brand-new stage. The first attempt failed, as it also does with v0.34.0: a bucket that Composer did not create appeared on the new stage, and Composer refused to deploy over it (the first known issue below). After QA deleted that bucket by hand, the deploy to the new stage worked. Local dev kept its data across the upgrade, and prisma project delete removed the app while its services ran.

Typecheck, lint and unit tests pass.

Known issues not fixed here

  • A first deploy to a new stage fails for an app with a bucket. Seconds after Composer creates the stage, a bucket that Composer did not create appears on it. Before deploying, Composer refuses to deploy to a stage holding resources it has no record of, so it stops. Deleting that bucket by hand and deploying again works. v0.34.0 fails the same way, so this PR doesn't cause it. Why the bucket appears is not known yet. It is a separate fix.
  • prisma emulator list shows local instances created before the upgrade under their old short addresses, until prisma dev --fresh re-creates them.

Alternatives considered

  • Keep short addresses and work out the app from context. Every reference to a node would need a second input, and two apps on one stage could collide.
  • Two forms: a full address for people and a shorter path for internal names. That gives one node two identities, and every surface would have to say which one it means.
  • Keep the short display names on database connections and bucket access keys, so their credentials don't change. That keeps a second form of a node's name.
  • Let the first deploy after upgrading recreate everything under the new IDs. It would delete every database's and bucket's data.

Agent: victoria-52

🤖 Generated with Claude Code

wmadden-electric and others added 30 commits October 22, 2026 17:51
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…app name

ADR-0056 supersedes ADR-0051. Addresses start with the deployed app name,
resource IDs and COMPOSER_ env keys are built from them, and existing
stages migrate on their next deploy through renamedFrom declarations.
The index marks ADR-0051 superseded and notes the amendments to ADR-0006,
ADR-0019, ADR-0048, ADR-0052 and ADR-0053.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…lossary and domain docs

The address principle, the glossary entry, core-model, deploy-cli,
alchemy-lowering, pdp-data-model, config-params, local-dev and
module-composition now describe addresses that start with the app name,
dotted resource IDs with their previous IDs, and env keys built from the
full address.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Load now joins every child to the root's id, so addresses read
shop.catalog and shop.auth.api instead of catalog and auth.api. The CLI
resolves the app name (the root's name or --name) before Load, so its
graph and the deploy lowering share one root, and the topology's root
logicalId equals the Project's. logicalIds, bundle keys, reports and
errors follow from the graph. The name-length error now names the
address it measured. Tests use the full form (ADR-0056).

Resource IDs still use the old suffix pattern on top of the new address;
the next change replaces them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…- turned into _

An app name may contain -, which no POSIX variable name may. configKey,
generatedParamVarName and local dev's copies of the key rule now map it
to _, so my-shop.api gives COMPOSER_MY_SHOP_API_... (ADR-0056).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…ource ID

The resource ID of a Database or Bucket is now the node's address, which
is also the node's key in the directory's record. Keying by it frees the
name prop to stay a label in its old form, so recordKeyOf goes away.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…m its old one

Each node's main resource is now its address (shop.catalog) and every
other piece is <address>.<role> (shop.catalog.conn, shop.web.env.<KEY>,
shop.web.generated.<path>, <consumer>.servicekey.<input>,
<provider>.streamskey). Every resource declares the ID the previous
release built with renamedFrom, computed in legacy-resource-ids.ts, so an
existing stage moves its state instead of recreating databases, buckets,
generated values and service keys.

Names whose change makes upstream replace a resource (Connection,
BucketAccessKey, Bucket, branchless Database) stay the address without
the app name, so credentials are not rotated (ADR-0056).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…igrate

Also corrects where an unknown serviceOrigin() address fails: while the
deploy builds its plan, not at Load.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…s the address upgrade

A record keyed by addresses without the app name now reads with the app
name in front of each such key, and is written back that way, so the
first prisma dev after upgrading reuses every instance and port. The
rule lives in legacy-address-keys.ts. A bucket's objects stay in
buckets/<app>/<address without the app name>, the folder earlier
releases used, so an existing bucket instance keeps its directory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…he upgrade

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Every address now starts with the app name, so the tree built from the
addresses had the app as its only top-level node, under a first line
that already names the app. The tree now starts below it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…ttach tests

These tests run against local-target's built output, so they kept passing
with short addresses until it was rebuilt with the app-relative bucket
folders.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… with project delete

Guides, the agent skill, the auth module's README and examples now write
addresses with the app name (serviceOrigin('auth-example.api'),
prisma dev url my-app.gateway, COMPOSER_MY_APP_... keys). The deploying
guide explains the upgrade to full addresses, and points whole-app
teardown at prisma project delete, keeping the destroy operation for a
single stage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
The app name (the root module's name or --name) is the first segment of
every address and of every COMPOSER_ key, so Load now requires letters,
digits, - and _, starting with a letter or digit, before anything is
assembled or deployed. A provision edge also carries the app name, so a
provisioner can build names below it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…old keys

Every write stores formatVersion 2. A record without it was written
before node keys were full addresses, so every one of its keys gets the
app name in front, including a child named like the app. A versioned
record is read as is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…noun roles

addressBelowApp removes the known app name from an address. It is the
one place that computes it, used for every legacy ID and for every
platform name Composer writes: the App display name, the branchless
Database name, and the Connection, Bucket and access key names. Those
names are labels inside the app's own Project and stay within the
65-character limit however long the app name is. validateName checks
that name and says plainly that fixing it changes the node's identity.

Roles are now nouns: connection, accesskey, deployment, warmup,
migration, streamkey. The local App provider finds its instance by
resource ID, like databases and buckets, and the emulators hook keys
every node through resourceId, with a test pinning the two together.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…ormat and serviceOrigin with --name

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… and rename dispatches

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
… including state outside the graph

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Main added the dev-server decision as ADR-0056 and the v0.34.0 release.
Conflicts kept both sides: ADR-0053 carries both amendment notes, the ADR
index lists both records, and the deploying guide keeps main's piped-output
paragraphs between the branch's address definition and its logicalId text.
The identity record is renumbered in the next commit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Main took ADR-0056 for the dev-server decision. The identity record and
every reference that means it now say ADR-0057; references to the
dev-server record keep ADR-0056.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
The App display name, the local dev Database name, and the Connection,
Bucket and bucket access key names are now the full address. Name
validation checks each kind against the platform's own limit (Connection
65, Bucket 100, App 256, access key none) and names the address on
failure. addressBelowApp moves into legacy-resource-ids.ts, the only place
that still needs it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
ADR-0057, the glossary, the principle, the lowering doc, core-model and
the deploying guide now say every platform name is the address, and that
the upgrade recreates Composer's Connections and access keys with new
credentials that its services receive in the same deploy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
wmadden-electric and others added 8 commits October 23, 2026 15:55
…wner

The move to full addresses can give one row's new key to another row's
old key: a module or service named like the app in any letter case, or
modules spelling an app name with `-` or `_`. Upstream then fails partway
with a conflict that names neither node. Deploy preflight now computes
every row's new and old key from the graph and, while the old owner's
row still holds the key on the stage and has not moved, fails before any
change, naming both addresses, the variable and the
`prisma project env delete` command that clears it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
APP_NAME and assertAppName had been inserted between Load and its doc
comment. Two comments still cited the superseded ADR-0051 for the rule
that the row holding a node's logicalId is that node's row.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…r labels

ADR-0057 no longer says keys cannot collide during the move, describes
every form of the clash and the preflight that stops it, and replaces the
advice to rename a node, which would delete its rows, with deleting the
one old variable. The deploying guide gives the same fix and notes that
emulator instances keep their old address labels until --fresh.
upgrade-effects.md states when a Database update rotates its default
connection: never for a stage last deployed by v0.34.0. The glossary says
a Connection's platform name carries upstream's suffix; core-model's
sketch names the Connection by its address.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
With `shop.x`, `shop.shop.x` and `shop.shop.shop.x`, the middle node's new
key is the last node's old key, so it exists before any move and hid the
first clash. A row under the old owner's new key now counts as moved only
when that key's own clash is not pending. The error also says what is
true: no resource has been created, changed or deleted, but the Branch's
topology has been replaced and the build recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
ADR-0057, the deploying guide and upgrade-effects.md no longer say the
deploy stops before changing anything. They say, as the ADR does for
serviceOrigin, that no resource has been created, changed or deleted but
the Branch's topology has been replaced, and that a chain of clashes is
reported in one run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…elete

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@prisma-gizmo

prisma-gizmo Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

✅ Gizmo reviewed 1e44464 — posted 0 inline comment(s) this pass.

Open findings: none

Change walkthrough

This incremental delta hardens the deploy-preflight error message in preflight.ts so the prisma project env add commands it prints are safe to paste into a shell, and updates preflight.test.ts to pin that behavior.

What changed

  • missingError now wraps every interpolatable part of the printed command in shellQuote (POSIX single-quote escaping): the KEY=<value> pair as one word, the --project value, and the --branch value. Previously only the --branch scope was quoted, and with double quotes — which would let $ expansion or backticks in a stage name execute when pasted. Single-quoting the KEY=VALUE pair also keeps a user-substituted secret value literal instead of shell-expanded, closing the gap the old comment only partially covered.
  • shellQuote moved from below missingError to just above it, next to its first use; it is the same helper envKeyClashError already used, so the two preflight error builders now quote identically. Since both call sites are runtime function calls, the move has no hoisting implications.
  • The test expecting the production-scope command was updated to the new quoted form, and a new test covers the branch scope with an adversarial stage name (it's "$HOME" x), asserting the exact escaped output 'it'\''s "$HOME" x'.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 89854df1-01bd-418a-b960-d7529501c8ee
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@prisma/composer@384
npm i https://pkg.pr.new/@prisma/composer-cli@384
npm i https://pkg.pr.new/@prisma/composer-prisma-cloud@384

commit: 1e44464

wmadden-electric and others added 2 commits October 23, 2026 16:41
…e check

env-key-clash.ts, legacy-resource-ids.ts and resource-ids.ts are only
imported by deploy-time code (descriptors, control, preflight, the local
target), so they join the control plane of the prisma-cloud extensions
layer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
…aries

App display names are now the full address, so looking an App up by its
short name (`storefront`, `blobs`, `widgets`, `jobs`, `streams.service`,
`cron.runner`) finds nothing. The scripts now match the App's logicalId,
the full address built from STACK_NAME, which every CI deploy passes as
`--name`. The cold-start canary also looks for the streams artifact under
its full-address file name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: 🟡 5 minor · trace

Findings outside the diff

  • 🟡 Minor · consistency architecture.config.json — architecture.config.json keeps a glob rule for the deleted service-app.ts
    This PR deletes packages/1-prisma-cloud/1-extensions/target/src/service-app.ts (its serviceAppName/resourceName helpers are replaced by full-address names built with resourceId) and adds architecture rules for the three new files (env-key-clash.ts, legacy-resource-ids.ts, resource-ids.ts) in the same layer/plane, but the glob rule for the now-deleted service-app.ts (around line 340) is left behind. A grep confirms no other reference to the deleted module remains. The stale entry misleads the next architecture audit and any tooling that validates the config's globs against the tree.
    Recommended fix: Delete the packages/1-prisma-cloud/1-extensions/target/src/service-app.ts rule block from architecture.config.json.

@wmadden-electric wmadden-electric changed the title A node's address starts with the app name, and existing apps move over without losing data Name every node by its full address, starting with the app name Oct 23, 2026
…clash error

- Remove the architecture rule for the deleted service-app.ts.
- validatePlatformName enforces the Management API's minimums as well as
  its maximums (Connection 3 to 52 after upstream's suffix, Bucket 1 to
  100, App 1 to 256) and names the address and both limits.
- The env key clash error single-quotes the key, project id and stage in
  the printed delete command, so it is safe to paste; the guide's example
  is quoted the same way.
- serializer.ts's header describes the current key scheme: the full
  address from the app name, `-` turned into `_`; only the boot stash is
  address-free.
- The core-concepts skill says short provision ids are fine, since every
  platform name is the full address, and gives each kind's real limits.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: 🟡 1 minor · trace

… command

missingError printed `--branch "<stage>"` with the stage unescaped, so a
stage containing `"`, `$` or a space printed a command unsafe to paste. It
now single-quotes the `KEY=<value>` pair, the project id and the stage
with the same shellQuote the env key clash error uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New findings: none · trace

@prisma-gizmo prisma-gizmo Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No Gizmo finding is open and the head commit has been reviewed. Approving.

@wmadden-electric
wmadden-electric merged commit 561f533 into main Oct 23, 2026
30 of 31 checks passed
@wmadden-electric
wmadden-electric deleted the drive/fully-qualified-node-addresses branch October 23, 2026 16:17
sneub added a commit that referenced this pull request Oct 27, 2026
Brings in ADR-0057 (#384): addresses start with the app name and COMPOSER_
keys normalise - to _. configKey moved to config-key.ts on this branch, so
addressKeySegments moves there with it and serializer.ts re-exports both;
stashRows keeps building keys through configKey and needs no other change.
The dev-server tests use full addresses (shop.auth, hello-dev.app,
fixture-module.web), and the stashRows test uses my-shop.web so it covers
the - to _ rule.

Signed-off-by: Shane Neubauer <[email protected]>
sneub added a commit that referenced this pull request Oct 27, 2026
…R-0057)

After the merge of #384 every address starts with the app name, so the
front door, the dev-server lines and dev url read shop.web, not app.

Signed-off-by: Shane Neubauer <[email protected]>
wmadden-electric added a commit that referenced this pull request Oct 27, 2026
Brings in dev servers (#381), full node addresses (#384, ADR-0057), the deploy entry in prisma.config.ts (#387) and prisma deploy list (#388). The secrets decision becomes ADR-0058, and every reference to it moves with it.

A dev server gets its environment from materializeEnv, so it receives the same per-service secret values from process.env, an unset optional secret is absent, and a changed value restarts it; the serve test now covers both. The docs that described placeholders for dev servers now describe reading secrets before the dev server starts. Tests and expected error text use full addresses.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants