Skip to content

Hide extension-owned system subtypes such as sync-database-settings from the sidebar types list #3851

Closed

Description

@malibio

Problem

sync-database-settings, the subtype of database-settings that the Sync app registers to hold its per-database state, shows up in the sidebar's types list as if it were a type the user defined. It is a system type: the database-settings singleton is retyped to it in place, and a user never creates or browses it.

Cause (to confirm)

schemas.svelte.ts: builtInSchemas is a hard-coded allowlist of core types (task, issue, project, software-project, spec, plan, decision, skill, person, agent-guidance), but customSchemas is every schema with !isCore, with no filter. A schema registered by an extension build is not core's, so it should fall into customSchemas. Confirm the schema node's isCore value in a Sync database.

Options

  1. Exclude a schema whose extends chain reaches a core type that is not browsable (e.g. database-settings). No new field; the risk is a user type extending a hidden base vanishing.
  2. A declared flag on the schema envelope (e.g. hidden or system) that extension subtypes set. More explicit, but a schema-field change follows the node-type sequence and likely needs an ADR.
  3. The extension registers the subtype with a generic marker core already understands. Core stays free of any sync naming (the Sync boundary).

The rule underneath: the types list shows only types a user can create and browse. Other extension-owned subtypes of system types (e.g. a person or collection subtype) may leak the same way and would be covered by it.

Acceptance Criteria

  • sync-database-settings does not appear in the types list of a database Sync has written to
  • A user-defined type still appears, including one that extends a core type
  • The fix names no Sync type, extension id or product in core code or comments
  • Test covers a registered extension subtype of a non-browsable core type being hidden, and a user type extending a browsable one being shown
  • If the fix needs a change on the Sync side, a nodespace-sync issue is filed for it

Activity

  1. self-assigned this
    on Oct 20, 2026
  2. mstomar125 commented on Oct 20, 2026

    @mstomar125
    Contributor

    Taking this for core v0.3.9.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions