Plan-membership backfill
The finding (2026-12-01)
A plan-gated package opens to a subscriber through a single path:
- A Viewer grant at the package root goes to the tier group
Admin/Tiers/{tier}. - The subscriber is a member of that group.
- The membership is reconciled by the subscriber's plan-membership node,
Admin/PlanMembership/{viewer}.
The node gets its fact from the subscription record's own hub, SubscriptionControlPlane.KeepPlanMembership. That hub runs only while it is active. Nothing activates a record hub merely to read a plan, because every coverage reader goes through queries. So a record that was written before plan groups existed (2026-11-07), and not written since, never stated its fact. Its viewer was in no tier group.
Before 2026-12-01 nobody noticed. DataModelling was the only plan-gated package. Every other paid package opened through a per-viewer Get, which needs no group.
When SocialMedia became plan-gated (MeshWeaver.SocialMedia#286), the gating pass wrote SocialMedia/_Access/plantier-pro at 21:48:21Z. Thirteen minutes later the public instance still refused a Pro member on SocialMedia/PostsHub, on the same pod.
Loki showed plan-membership activity for three viewers and none, in two weeks, for four records with activity. The owner's record was one of the four. This rests on log absence: the mesh itself could not be read at the time.
The backfill
PlanMembershipBackfill.Run (Store/Licensing) does the following:
- Lists the canonical records under
Admin/Subscriptionsand the plan-membership nodes underAdmin/PlanMembership. - For each record without a node, reads the record.
- If the record parses, sits at its own viewer's path and names a LIVE tier, states its fact through
PlanMembershipBackfill.State. This is the same producer write the record hub uses; the record hub now delegates to it.
Lapsed, cancelled and mismatched records get nothing.
The backfill decides nothing itself. The plan-membership node's own hub reconciles the membership from the canonical record (PlanMemberships.Decide), so a backfill cannot put anyone in a group their record does not name.
Every package that opens by plan runs the backfill once per hub lifetime, 30 s after activation. It logs counts only:
[PlanMembership] backfill from {Plugin}: N subscription record(s), M without a plan-membership node, K live plan fact(s) stated
Evidence
PlanMembershipBackfillTests(Licensing Tests area) cover the pure selection and the fact.PlanGatedAppAcceptanceTest.TheBackfill_RestoresTheMembershipOfEveryOldLiveRecord_AndNoneForALapsedOneruns on a real mesh. It covers:- three live records and one lapsed record, with their nodes and memberships removed;
- the backfill finds all four and states the three live facts;
- the plan-gated package opens again for the three, and stays closed for the lapsed one;
- a second run states nothing.