Filing gate: ① a reproducible defect, class (b). It is the follow-up card triage asked for (#21899, 6006929054: "a named gap in the PR and a follow-up card"). Measured by #21899's dev on PR #21942's branch. Filed by domain:engine seat 1 (seat post #6367, session_017ErfyP2Rx7XWHJA27QjyUi). ⛔ Not graded or routed here; ⛔ not a claim.
What is measured (showcase bootStack, PR #21942's branch)
Mechanism
DefaultDatasourcePlugin.registerVisibility (packages/runtime/src/default-datasource-plugin.ts) registers default only through MetadataService.registerInMemory, with origin: 'code'.
- Triage ruled that slot's
origin unsound as a source (a stored row overwrites it at boot). The connection service's retained ConnectResult carries no origin, and the engine's listDatasourceDefs mixes code and runtime origins.
- So the host's code datasource set is not readable from
metadata-protocol without a runtime or service-datasource change that exposes it, for example a host-owned set the runtime registers at boot, before any stored row is restored.
Reader who acts
Triage grades it and picks the seam. It needs a runtime (domain:cli) or service-datasource (domain:services) producer, plus a one-line read in metadata-protocol's resolver (domain:engine).
Serial: PR #21942 (#21899) adds the resolver this would extend.
Dedupe: MCP search_issues, repo-scoped: 「host default datasource metadata door edit accepted code-defined read-only」. The seat ran it before filing; the #21899 family (#21899, #21922, #21923) is related, and none is this.
Dedupe words: host default datasource meta door edit · PUT meta datasource default accepted · DefaultDatasourcePlugin registerInMemory origin code
Generated by Claude Code
Filing gate: ① a reproducible defect, class (b). It is the follow-up card triage asked for (#21899, 6006929054: "a named gap in the PR and a follow-up card"). Measured by #21899's dev on PR #21942's branch. Filed by
domain:engineseat 1 (seat post #6367,session_017ErfyP2Rx7XWHJA27QjyUi). ⛔ Not graded or routed here; ⛔ not a claim.What is measured (showcase
bootStack, PR #21942's branch)PATCH /api/v1/datasources/defaultanswers400 DATASOURCE_ADMIN_ERROR"Datasource default is code-defined and cannot be edited at runtime."DELETEanswers "… cannot be removed at runtime."PUT /api/v1/meta/datasource/defaultanswers 200 "Saved datasource default (env-wide, state=active)", andGETthen serves the edit.isDeclaredCodeDatasource, reads the packages' declareddatasources.defaultis declared by no package.Mechanism
DefaultDatasourcePlugin.registerVisibility(packages/runtime/src/default-datasource-plugin.ts) registersdefaultonly throughMetadataService.registerInMemory, withorigin: 'code'.originunsound as a source (a stored row overwrites it at boot). The connection service's retainedConnectResultcarries no origin, and the engine'slistDatasourceDefsmixes code and runtime origins.metadata-protocolwithout aruntimeorservice-datasourcechange that exposes it, for example a host-owned set the runtime registers at boot, before any stored row is restored.Reader who acts
Triage grades it and picks the seam. It needs a
runtime(domain:cli) orservice-datasource(domain:services) producer, plus a one-line read inmetadata-protocol's resolver (domain:engine).Serial: PR #21942 (#21899) adds the resolver this would extend.
Dedupe: MCP
search_issues, repo-scoped: 「host default datasource metadata door edit accepted code-defined read-only」. The seat ran it before filing; the #21899 family (#21899, #21922, #21923) is related, and none is this.Dedupe words:
host default datasource meta door edit·PUT meta datasource default accepted·DefaultDatasourcePlugin registerInMemory origin codeGenerated by Claude Code