You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0bd3677
Browse filesBrowse the repository at this point in the historyBrowse files
wip(spec): the entry's closed nested shapes are published defs that prescribe; fixtures follow
The closed retryConfig and action shapes of an authored connector entry
are exported as DeclarativeConnectorEntryRetryConfigSchema and
DeclarativeConnectorEntryActionSchema. They are the shapes a metadata
document is parsed against, so the authorable-surface gate judges a
deletion from their shared declaration on them; the open RetryConfig and
ConnectorAction are reached by no metadata root. A credential-shaped key
inside either meets the entry's credential prescription, and an
execution binding on an action meets ADR-0097 section 5's.
Forced test edits: the authorable-surface gate fixtures move to the
retry twin, the CLI package-union probe moves to apis[].objectParams;
the door pins gain an inline openapi document case and its control.
Claude-Session: https://claude.ai/code/session_01Q4EjjP1K353tLKWRMajLsE
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/connector-entry-nested-undeclared-key-refused.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ Metadata-protocol: narrowed
12
12
**BREAKING** accept-set narrowing on an authored connector entry (`DeclarativeConnectorEntrySchema`), at every door that parses it: `defineConnector()`, `defineStack({ connectors })`, `os validate` / `os compile`, the metadata plugin's artifact load at boot and on reload, and the metadata save door `PUT /api/v1/meta/connector/:name`.
13
13
14
14
-**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.
15
-
-**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. An execution binding on an action (`method`, `path`, `url`) is refused the same way: an action carries none (ADR-0097 §5).
15
+
-**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
+
-**New exports.** The closed shapes are published as `DeclarativeConnectorEntryRetryConfigSchema` and `DeclarativeConnectorEntryActionSchema`, the shapes a metadata document's `retryConfig` and `actions` elements are parsed against.
16
17
-**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.
0 commit comments