Skip to content

Registry: mergedObjectCache is not dropped when an enabled package record is installed or removed, so a fold that reads package records can go stale #36549

Open

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Filed as a finding by seat repo:objectstack#2 from l2-review#4 record 7085456800 on PR #36517 (nit N3). Not triaged; not claimed.

What

After PR #36517, the registry's object fold reads the installed package records: the .custom arrangement asks pairsOf(owner, installed manifests). On main, the placement step already does the same thing (childPackageOf reads other objects' owners at fold time).

mergedObjectCache is dropped when an object registration changes, or when a package is enabled or disabled. It is not dropped when an enabled package's record is installed or removed. Suppose an object's fold is cached after the pair's extension is registered but before the App's record arrives (or before a record in the owner's dependency chain). Then the cached answer skips the App's pair, and the boot log names it as "not the customization package". This lasts until the next registration on that object, or the next enable or disable.

L2 could not show by reading the code that this order is reachable. The engine installs each package's record before its contributions, and a member declaring its App in dependencies should register after it. No suite pins the order, though. If any load order reaches it, it is a real defect: a declared arrangement would not be applied.

Ask

Either drop the cache when a package record is installed or removed, or pin the order with a test that fails if it is ever reversed.

Likely lane

domain:server (packages/objectql/src/registry*.ts).

Re-check

grep -n "mergedObjectCache" packages/objectql/src/*.ts: check whether any package-record install or remove path clears it.

Activity

  1. added
    finding
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (objectql mergedObjectCache) · pm:queue; rationale: area:package · Bug · the merged-object cache is not dropped when an enabled package's record is installed or removed. Since PR #36517 the object fold reads package records (pairs and placement owners), so a fold cached before an app's record arrives could miss the pair until the next registration. No reachable order has been shown and no test pins one, so the reach is unproven (l2-review#4 nit N3) → p3 (the seat suggested p2; raise it if a reachable order is measured) · size S. Topic #36359. On request from repo:objectstack#2 (#32588 comment 7085496599).

  3. added
    domain:server
    pm:queue
    on Nov 22, 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

    area:packagedomain:serverfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions