Skip to content

Apply per-instance remoteReferences in environment preview - #256

Merged
coryodaniel merged 1 commit into
mainfrom
fix/preview-remote-references
Sep 12, 2026
Merged

coryodaniel merged 1 commit into
mainfrom
fix/preview-remote-references

Conversation

@coryodaniel

Copy link
Copy Markdown
Member

Closes #255

mass environment preview ignored the remoteReferences list documented under each instance in the preview spec. The config parsed without error, the environment forked, and no remote references were set.

Changes

  • InstanceOverride gains remoteReferences (resourceId, field). After params, version, and secrets are applied to a forked instance, each entry calls Instances.SetRemoteReference. A failure aborts before the deploy.
  • Config is decoded with UnmarshalStrict, so unknown keys at any level fail with an error naming the key.
  • Each remote reference must have both resourceId and field; validation runs before the fork.
  • Removed the stale comment claiming the SDK lacks a per-instance set operation.
  • Helpdoc and generated doc show the remoteReferences block.

Tests

Parsing of UUID and <instance>.<field> forms, happy path asserting each set call, unknown-key rejection at top, instance, and entry level, required-field validation, and error propagation with no deploy.

🤖 Generated with Claude Code

The preview spec documents a remoteReferences list under each instance,
but the CLI dropped the key silently and never set anything. Wire it to
SetRemoteReference after the fork and reject unknown config keys so a
misspelled or unsupported key fails instead of converging the wrong env.

Closes #255

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coryodaniel
coryodaniel merged commit 334f9ad into main Sep 12, 2026
7 checks passed
@coryodaniel
coryodaniel deleted the fix/preview-remote-references branch September 12, 2026 16:58
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.

mass environment preview ignores per-instance remoteReferences documented in the preview spec

3 participants