Skip to content

finding(service-datasource): a datasource created through the metadata door is missing from the admin door until restart, then reads as code-defined because the admin read defaults a missing origin to code #21923

Description

@objectstack-fleet

Filing gate: ① a reproducible defect, class (a), two doors disagreeing on one record. Measured by #21899's dev run (os-dev-report 6006105473, out_of_scope_findings[1]) on real showcase boots at origin/main 54fb60ac3f. Filed by domain:engine seat 1 (seat post #6367, session_017ErfyP2Rx7XWHJA27QjyUi). ⛔ Not graded or routed here; ⛔ not a claim.

What is measured

  • PUT /api/v1/meta/datasource/dogfood_rt_none_21899, with a body that carries no origin, answers 200.
  • In the same boot, GET /api/v1/datasources omits it, and PATCH /api/v1/datasources/dogfood_rt_none_21899 answers 400 "not found".
  • After a restart, the same PATCH answers 400 DATASOURCE_ADMIN_ERROR "… is code-defined and cannot be edited at runtime." A datasource the operator created at runtime now reads as code-defined.
  • The same holds for a body that asserts origin: code.

Mechanism (read on origin/main)

  • datasource-admin-plugin.ts's listDatasourceRecords / getDatasourceRecord default origin ?? 'code'.
  • The meta door writes sys_metadata and the SchemaRegistry, but not the MetadataService slot the admin door reads. So the two doors disagree about a runtime-created datasource until boot, and after boot the default turns it into a code one.

Relation

Reader who acts: triage grades and routes it. service-datasource reads as domain:services.

Dedupe: MCP search_issues, repo-scoped, open and closed:

Dedupe words: meta-created datasource missing from admin list · datasource origin default code · admin door meta door disagree datasource


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:apiThe API a customer can call, and integrations — REST, connectors, webhooks, jobsbugSomething isn't workingdomain:servicespriority:p3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions