Skip to content

Commit 4bab398

Browse files
committed
docs(spec): the nested-key changeset and upgrade entry say an explicit retryConfig replaces the stored one whole
Claude-Session: https://claude.ai/code/session_01QSeKYn5CmmdShCJifm6WYj Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5c189e6 commit 4bab398

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎.changeset/connector-entry-nested-undeclared-key-refused.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Metadata-protocol: narrowed
1313

1414
- **Before.** The entry refused an undeclared top-level key, but its two nested shapes were plain objects: an undeclared key inside `retryConfig` or inside an `actions` element parsed green and meant nothing to the runtime.
1515
- **Now.** Each is refused by name, in one `unrecognized_keys` issue located at the container (`retryConfig`, `actions.N`) that lists every undeclared key; at the save door `422 INVALID_METADATA`, and nothing is stored. A credential-shaped key (`secret`, `token`, `apiKey`, `password`, `credentialRef`, …) meets the entry's own prescription (`auth.credentialRef`); an execution binding on an action (`method`, `path`, `url`) is refused with ADR-0097 §5's: an action carries none.
16-
- **Unchanged.** The published open shapes — `ConnectorSchema`, `RetryConfigSchema`, `ConnectorActionSchema` — keep their posture: the def a plugin hands to `registerConnector`, the actions a provider derives, and the retry policy the runtime parses at materialization. A row stored before this refusal keeps working: the runtime parses its policy with the open `RetryConfigSchema`, the read withholds the undeclared key, and a save of the served form keeps it at rest; a save that leaves `retryConfig` out removes it, the withheld keys with it.
16+
- **Unchanged.** The published open shapes — `ConnectorSchema`, `RetryConfigSchema`, `ConnectorActionSchema` — keep their posture: the def a plugin hands to `registerConnector`, the actions a provider derives, and the retry policy the runtime parses at materialization. A row stored before this refusal keeps working: the runtime parses its policy with the open `RetryConfigSchema`, which drops the undeclared key, and the read withholds it.
17+
- **A save over such a row.** An explicit `retryConfig` replaces the stored one whole (the maintainer's ruling): a save that sends `retryConfig` — the served form, `{}`, any object — does not carry the stored row's undeclared retry key forward, and its answer names each key it dropped (advisory rule `withheld-key-dropped`). A save that leaves `retryConfig` out removes it, as before. An undeclared key in an `actions` element stays at rest through a save of the served form.
1718

1819
## FROM → TO
1920

‎packages/spec/src/migrations/entries/semantic/18.connector-entry-nested-undeclared-key-refused.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export const entry: SemanticMigration = {
2121
'reason: an undeclared key may be a misplaced setting or the only copy of a secret. The open shapes ' +
2222
'(`ConnectorSchema`, `RetryConfigSchema`, `ConnectorActionSchema` — the def a plugin hands to ' +
2323
'`registerConnector`, and the policy the runtime parses) are unchanged. A row stored before this refusal keeps ' +
24-
'working: the read withholds the undeclared key, and a save of the served form keeps it at rest.',
24+
'working: the read withholds the undeclared key. An explicit `retryConfig` in a save replaces the stored one ' +
25+
'whole, so its undeclared key is not kept and the save names it on its answer; an `actions` element\'s ' +
26+
'undeclared key is kept at rest by a save of the served form.',
2527
acceptanceCriteria:
2628
'Every authored connector entry parses through `DeclarativeConnectorEntrySchema` with no `unrecognized_keys` ' +
2729
'issue at `retryConfig` or at an `actions` element; each secret that sat at such a key is set under its ' +

0 commit comments

Comments
 (0)