Skip to content

organizations: on an un-walled first boot, seed person references to the first admin land NULL, and only owner_id is handed over #34458

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac

Filing gate: ① (named location; carrier for L1 REWORK R1 6928510218 on PR #34457 / #34425).

Where: the un-walled (single-tenant) first boot, from the boot seed load to the first-admin seed-ownership handoff (packages/plugins/organizations, with the fixture in packages/plugins/organizations/src/default-organization-seed-owner.wall.test.ts, describe block control: the same seed on an un-walled boot reads as it did before the fix).

What happens (measured by the #34425 dev on main 6a7403b, control leg of that test): the boot seed loads before the dev admin's sys_user row exists. A seed Field.user / Field.lookup('sys_user') reference that names the first admin therefore lands NULL ("no such sys_user row exists"). Afterwards the first-admin handoff writes owner_id only. The stored row reads { assignee: null, reviewer: null, owner_id: <admin> }.

This is the same outcome #34425 fixed on the walled boot, reached through another entry point: of the seed's person columns that name the owner, only owner_id gets repaired. PR #34457 fixes the walled path only, and its CONTROL test pins the un-walled reading as it stands on main.

Done when: on an un-walled first boot, every seed person reference that names the first admin resolves to that admin. The fix might replay the seed after the first admin exists, or resolve those references at the handoff; that is the builder's choice. The CONTROL test named above is flipped from assignee: null, reviewer: null to the admin id, so the pin moves with the fix.

Business reason: a new single-tenant install that ships sample records assigned to "the owner" shows them unassigned, except for the record owner.

Reader who acts: the objectstack server lane (organizations / seed loader). Triage first-touches the grade.

Dedupe: searched open issues for un-walled seed sys_user owner NULL: none.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p1 · theme: zh-CN / install · 2026-11-16T20:44Z

    ⛔ Not a claim.

    On an un-walled (single-tenant) first boot, seed person references to the first admin land NULL, and only owner_id is handed over. Seeded demo records lose their assignees and other person fields. This is the un-walled sibling of #34425 and #34038, both p1, so this card takes the same p1. It carries L1 REWORK R1 on PR #34457.

  2. added
    bug
    domain:server
    pm:queue
    priority:p1
    on Nov 16, 2026
  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    Claim: PM loop round 1 (area o2-D, repo:objectstack#2)
    Session: session_01ADHkmRXuRn93HphKp7kXEz
    Account: os-steve
    Branch: claude/issue-34458-unwalled-seed-person-refs
    Worktree: objectstack-issue-34458
    Domain: domain:server
    Seat: repo:objectstack#2
    File surface: packages/plugins/plugin-security/src/ (the single-tenant first-admin seed-ownership handoff: claim-seed-ownership.ts, security-plugin-seed-claim.ts and their tests), packages/runtime/src/app-plugin.ts and packages/runtime/src/seed-datasets.ts (the boot seed and its replayer), packages/metadata-protocol/src/seed-loader.ts only if the person-reference resolution must move there (in flight on PR #34429: serial, merge-tree before push), packages/plugins/organizations/src/default-organization-seed-owner.wall.test.ts (the CONTROL pin flips), .changeset/ (stop on breach; explain in the report)
    Container & model: M, mode:subagent, model: default judgment tier, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack: the single-tenant first boot loads the seed before the first admin exists and the first-admin handoff repairs owner_id only | none: no platform path resolves a seed person reference after the referenced user appears | every new single-tenant install whose seed assigns sample records to the owner; reached on first boot today
    Thread-read: 6928812167
    Premise: holds (CONTROL leg of default-organization-seed-owner.wall.test.ts on main e8cba8f pins assignee: null, reviewer: null, owner_id: admin)
    Serial constraints cleared: PR #34457 (walled sibling, same test file) merged as e26e7be. Open PRs intersected by file on a deepened checkout: #34477 touches plugin-security/src/security-plugin.ts (outside this surface; avoid it), #34429 touches metadata-protocol/src/seed-loader.ts (listed above as serial). No other open PR touches the surface.
    Pre-claim lane: domain:server — packages/plugins/plugin-security, packages/runtime, packages/metadata-protocol, packages/plugins/organizations are all server-lane packages; repo:objectstack seat covers them.
    Pre-claim deps: no Blocked-by: line; predecessor PR #34457 merged (e26e7be on origin/main); hot files free apart from the serial note above.
    Prior rulings read: organizations,un-walled,first,boot,seed,person,references,admin,land,null,owner_id,handed → 210 hits; ADR-0062 D5, ADR-0066 D1, ADR-0066 D5, ADR-0068 D2, ADR-0120 D5 (keyword hits, none decides seed person references); governing constraint carried: ADR-0138 D1 (the handoff touches only rows the seed reported landing on); thread: none; repo: objectstack-ai/objectstack

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  5. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz
    os-dev-report

    {
      "issue": 34458,
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34516",
      "head": "0916d339e426a32f029081870c5764bc546b81ce",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 72 derived; 72 run, 72 exit 0; --ran reconciliation: 72 derived, 72 run, 0 NOT-MEASURED, 0 UNRUN. Two families first answered exit 3 (check-plugin-teardown-shape --self-test: fixture commit 621a4876 unreachable in the shallow clone, fetched; check:dual-build-cjs-loads: 23 packages without dist, built by the type-check-debt closure build) and were re-run to exit 0. Lines 1-67 ran on e2ab3fd22, the rest on 0916d339e (= e2ab3fd22 + merge of origin/main 6c7d730f1, which touches no file of the diff; re-derivation identical). Package suites (locked): metadata-protocol 22968 passed, organizations 264 passed, runtime 11271 passed, typecheck x3 Done. Ablation: handoff loader read removed => wall test 2 failed | 3 passed; restored => 5 passed. CI check-runs at report time: 18 in_progress, 5 skipped.",
      "line_budget": "n/a: no skills/** file and no line-ratcheted ledger in the diff",
      "deviations": [
        "The run was interrupted by a container restart during the gate sweep (killed, exit 137, after 67 of 72 gates were recorded) and resumed; the gate sweep spans two heads as stated in gates.",
        "origin/main was merged once more before pr_create (merge commit 0916d339e); no file of this diff changed.",
        "seed-loader.ts overlaps open PR #34429: git merge-tree --write-tree HEAD refs/pull/34429/head (2a00228cf) exits 0, tree 0e6916848, no conflict."
      ],
      "files_changed": [
        ".changeset/34458-unwalled-seed-person-refs.md",
        "packages/metadata-protocol/src/seed-loader.ts",
        "packages/plugins/organizations/src/default-organization-seed-owner.wall.test.ts",
        "packages/runtime/src/app-plugin.ts"
      ],
      "security_findings": "none"
    }
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

    PR #34516 at 0916d339e: L1 ACCEPT 6933601260, landing 6933694137 (ready, auto-merge armed). Follow-up filed: #34542 (held person references survive a restart; contract change).

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Closing hygiene: PR #34516 merged and closed this card (Fixes), but pm:dispatched, lease:o2-D and the assignee were still on it. This stroke removes all three, since a closed card carries no pm state. The ownership labels stay.

  8. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdomain:serverpriority:p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions