Skip to content

fix(cli): correct managed volume inventory lookup - #4436

Merged
yannickmonney merged 4 commits into
mainfrom
fix/managed-volume-inventory
Oct 6, 2026
Merged

yannickmonney merged 4 commits into
mainfrom
fix/managed-volume-inventory

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Closes #4429

The managed runtime admission path compared an already-qualified Docker volume name against a doubly-prefixed name, allowing an existing volume with a missing container mount through additive admission. The fix centralizes project volume name construction and compares the inventory against the resolved mount identity.

Evidence:

  • OLD (9bd1e2015d): targeted runtime-apply suite, 72 pass / 0 fail.
  • NEW (a5cc21545): targeted runtime-apply suite, one worker, 75 pass / 0 fail.
  • Regression covers legacy, pending and ready admission with an existing tale_config-data volume and missing platform mount; it verifies refusal before mutation.
  • Additive coverage verifies tale_static-assets is created and existing mounts/volumes remain.

Checks not run: installs, builds, stacks, deployments, Docker, CI reruns, and independent review. Disposable deploy/upgrade proof is blocked because it requires a heavy slot and Ops evidence.

Next: independent exact-head review (C13 recommended).

@yannickmonney

Copy link
Copy Markdown
Contributor Author

ACCEPT — exact-head review of 3a1cbd98ceccc013ee8fc5657295bea44563ff51.

The inventory fix is correct: Docker reports fully qualified Compose volume names, while desired mounts use source keys; projectVolumeName() now normalizes both sides before admission. Missing newly declared named volumes are therefore additive, while missing existing named volumes and bind mounts remain fail-closed. The pre-mutation custody check preserves retained mounts/volumes, rejects foreign project volumes, and leaves retries idempotent. The scoped tests cover refusal before mutation across legacy/pending/ready states and adoption while retaining existing mounts.

@yannickmonney

Copy link
Copy Markdown
Contributor Author

Merge gate for delegated retry at 3a1cbd98ceccc013ee8fc5657295bea44563ff51:

  1. Head/state: exact head, OPEN, non-draft, MERGEABLE with no conflicts.
  2. Checks: 43 SUCCESS, 31 SKIPPED, 0 FAILURE, 0 PENDING. CI ready (Checks) and CI ready (CLI) are SUCCESS; skipped path-filtered lanes are accepted under the corrected gate.
  3. Independent acceptance: C13 ACCEPT is present at this exact head (comment 6017467107).
  4. Per-PR dispositions: CODE, DEPLOYMENT/RECOVERY, SECURITY, and tests covered by C13; UI, LOCALE, A11Y, and DATA are NOT_APPLICABLE for this CLI-only PR.
  5. Main context: main at 50156d30 has the unrelated Browser flake (dashboard-shell.browser.test.tsx); repair is in flight.

@yannickmonney
yannickmonney merged commit 2f3d12a into main Oct 6, 2026
@yannickmonney
yannickmonney deleted the fix/managed-volume-inventory branch October 6, 2026 14:34
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.

fix(cli): refuse missing managed mounts when the desired volume already exists

1 participant