Skip to content

fix(cli): bind retained observation to deployment ref - #4755

Merged
yannickmonney merged 1 commit into
mainfrom
fix/observation-duplicate-stages
Oct 10, 2026
Merged

yannickmonney merged 1 commit into
mainfrom
fix/observation-duplicate-stages

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Problem

Repeated native deployment attempts can retain multiple compiled stage directories for the same automation artifact. The retained receipt already records the deployment reference, but observation discarded that field and treated valid historical stages as an unsafe duplicate.

Change

Keep the receipt's nested deployment reference, include stage deployment references in metadata, and use the receipt-bound reference to select the exact retained stage. Legacy receipts without that reference keep the existing duplicate-stage refusal.

Validation

  • bun test tools/cli/src/lib/deployment/observation-native.test.ts tools/cli/src/lib/deployment/observation.test.ts
  • bun run --filter @tale/cli lint
  • bunx oxfmt --check tools/cli/src/lib/deployment/observation-model.ts tools/cli/src/lib/deployment/observation-native.ts tools/cli/src/lib/deployment/observation-native.test.ts

@yannickmonney
yannickmonney merged commit 8ad4aa4 into main Oct 10, 2026
@yannickmonney
yannickmonney deleted the fix/observation-duplicate-stages branch October 10, 2026 21:08
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.

1 participant