Skip to content

Table view renders protection:system schema fields as user-facing columns #2376

Closed

Description

@malibio

Problem

table-view.svelte derives its columns from schema.fields with no protection filter, so protection: "system" fields render as user-facing columns.

Visible on person, which shows a "Possible duplicate" column — a local_only, system-managed convergence marker whose own schema description says "Never written directly; see NodeService::mark_possible_duplicates". It is internal logic, not data anyone enters, and on a local-only install it is permanently empty by construction.

The detail view already gets this right

generic-schema-form.svelte:51:

const visibleFields = $derived(schema.fields.filter((f) => f.protection !== 'system'));

Its comment even names this exact field:

protection: 'system' fields (e.g. person's _possible_duplicate, never …)

So the two views disagree: the detail form correctly shows only Name and Email, while the table adds a third column that can never be filled.

table-view.svelte:43 iterates schema.fields directly with no equivalent filter.

Blast radius: every node type, not just person

ai-chat is the worst case, with six system fields that would all leak the same way:

  • last_active
  • context_tokens
  • created_nodes
  • capture:session_id
  • capture:transcript — raw PTY scrollback, documented as possibly containing "secrets, tokens, absolute paths"
  • capture:summary

database-settings, task and project also declare system fields.

The capture:transcript case is the reason this is worth fixing promptly rather than bundling with a design discussion: a column surfacing raw terminal scrollback is a poor default, even if it renders empty in most rows.

Fix

Apply the same protection filter when deriving table columns. There is already a generic-schema-form-protection-filter.test.ts guarding the form side; the table has no equivalent.

Acceptance criteria

  • table-view.svelte filters protection !== 'system' when deriving columns
  • Regression test mirroring generic-schema-form-protection-filter.test.ts
  • Verified against ai-chat (six system fields) as well as person
  • Core and user-defined (schema-only) types both covered
  • Non-system fields still render, in schema order, using friendlyName

Context

Split out of #2374 item 2 as a contained fix. That issue's item 1 (whether _possible_duplicate should exist in its current per-type form at all) is a separate architectural question under design; this change is correct regardless of how that lands, since a system-protected field should not be a user-facing column either way.

Activity

  1. added
    bug
    on Sep 7, 2026
  2. malibio commented on Sep 7, 2026

    @malibio
    CollaboratorAuthor

    Baseline (worktree issue-2376-table-system-fields): Frontend 229 test files passed, 4848 tests passed.

  3. assigned and unassigned on Sep 7, 2026
  4. malibio commented on Sep 7, 2026

    @malibio
    CollaboratorAuthor

    Baseline (worktree issue-2376-table-system-fields): Frontend: 4852 passed (230 test files)

  5. self-assigned this
    on Sep 7, 2026
  6. added 2 commits that reference this issue on Sep 7, 2026
    0154726
    58f98cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfrontend

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions