Community group telemetry backend
Population calculation version 2
Population currently retains the provider-reported n_users value. It is not verified physical occupancy, and it does not establish whether queued users are included. Optional userCount, queueSize, and platforms are retained as independent diagnostics; they do not change recap population semantics. The recap calculation preserves those reported values and their uncertainty.
community-telemetry-v2 is a calculation version, independent of the collector protocol version. The pure interval rule in _clubAnalyticsMath.ts accepts adjacent eligible observations at most 360,000 ms apart, clips integration to half-open ranges, and rejects a pair if recorded degraded/unknown/stale coverage overlaps it. Membership continuity keeps its independent bound. Normalized series carry optional breakBefore metadata across browser and summary pages; a break is not a zero population sample.
Hourly/day recomputation includes the immediate real observations before and after a bucket, within the same epoch and continuity bound. No endpoint is extrapolated. Peaks use actual in-range observations. Adapters retain their existing estimated-sample eligibility. Event jobs sum associated sessions at each provider timestamp before applying the same interval rule, carrying partial timestamps across pages. Old-version recap jobs restart instead of publishing old arithmetic. Version upgrades update stable rollup identities in place.
Event recaps start at the advertised event start. In Automatic mode they end at the later of the advertised end and the last population observation of a confirmed, current-connection instance. Events without an advertised end retain the six-hour fallback. The calculation uses an exclusive end, so automatic tails add one millisecond after the final observation. Closing an instance to new joins does not cut off its remaining observations.
An event manager with event_recaps visibility can set Recap end or choose Automatic in the existing recap. The optional events.recapEndAt field affects only the calculation, never the public schedule. A community that publishes event_recaps also publishes that recap's calculated range and aggregate metrics, including an automatic tail or canonical cutoff. The public event record keeps its advertised schedule. This does not publish per-instance history or change its separate audience. A manual end must be a finite integer timestamp after the event start, with a maximum 93-day range. Missing intervals and time after the final measurement remain unknown. The recap reader returns the stored calculation range separately from the scheduled range and current effective end. The UI keeps the displayed measurement range tied to the stored metrics and shows Updating when the requested range differs. Schedule edits preserve an explicit cutoff even when the new start makes it inconsistent. Readback then returns a null effective end and shows Invalid range, while retaining the stored metrics, other recaps and the authorized correction editor. The operator can enter a valid cutoff or choose Automatic if that calculated range is supported. Imported invalid values and automatic ranges exceeding 93 days use the same recovery path. Calculation and cutoff-write validation remain strict; database, authorization and association-limit errors are not swallowed.
The shared resolver reads at most 1,000 confirmed associations per event and deduplicates current-connection canonical sessions, including repaired aliases. The interactive recap page additionally limits total association resolution to 2,500 rows. Unsupported ranges fail explicitly. Distinct instances sum at each timestamp; repeated rows for one canonical session at the same timestamp use the earliest retained row in index order. Raw observations remain unchanged. Queued jobs validate their pinned range and configuration/association signature before every page. Ordinary incoming polls and periodic refreshes coalesce onto an active paged job instead of resetting its cursor. Automatic jobs may finish an earlier observed prefix, published with its own persisted range while the UI shows Updating. A queued refresh or newer tail schedules a complete catch-up after publication, including late retained observations inside the same window. For manual cutoffs, live observations outside the input interval plus its six-minute interpolation margin do not request a new calculation. Legacy jobs without a signature restart their accumulator when the effective boundaries still match; obsolete boundaries are discarded. Schedule, association, connection and cutoff changes cannot publish an obsolete continuation. Newly ingested observations schedule attached event recaps, including closed sessions and events outside the recent-event picker. The existing recent-event cron still recomputes confirmed recaps whose scheduled start is in the prior 14 days. After rollout, those recaps naturally adopt the new window rule. Observation-triggered refresh can also update older events when their attached sessions continue to report. Before rollout, inventory both groups for review; this change does not add an all-history migration.
Failed recap continuations retain their failure and retry up to three times after one, two and four minutes. Retries restart the calculation; a successful page starts a new retry budget. Exhausted failures remain recorded for explicit recomputation or repair. Current dashboard counts use the latest observation at or before the request time and expire after six minutes, even if a later provider timestamp has already arrived.
Repair tooling is internal-only. communityTelemetryRepair inventories and previews fixed scopes; the operator script writes a reviewable local manifest. Apply materializes its targets into repair-run/target rows. The installed migrations runner schedules batches of 50 approved targets and is intentionally excluded from runAll. Recaps stay pending until their v2 output exists and the job has finished. Ambiguous mappings and missing/over-limit input fail explicitly instead of yielding partial statistics. Raw observations and publication/epoch settings are never changed by repair.
Release gates, disabled defaults, ordered migration, rollback and source-only alert evidence are in the automatic statistics release runbook. Disabling admission also denies already allocated new automatic admissions. Uncertain prior attempts can only verify membership with the same account. Active collection and disconnect cleanup retain their existing authorization. Automatic and adopted aggregate-only reads recheck policy at each provider request. Authenticated heartbeats expose a bounded backlog boolean for the existing worker log and SNS alarm path.
Scope
This backend implements the aggregate-only slice of epic #176. A VRDex-owned VRChat account observes a connected group's member count and visible group instances. It never accepts a customer's VRChat credentials and does not store instance user lists, usernames, or user IDs.
Control plane
The club workspace separates action permissions from analytics visibility. Connection actions require manage_integrations; event-association actions require manage_events. Private dashboard reads admit owners and staff, then filter each data category. Publication settings are owner-controlled.
communityVrchatIntegrations is the community-owned lifecycle record. Connect allocates one healthy account only while assignedGroupCount < capacity - reservedHeadroom; Convex mutation serialization prevents concurrent over-allocation. The same VRChat group cannot be active on two community profiles. Disconnect immediately disables collection and public fields, then a fenced disconnecting assignment makes the service account leave the group before releasing account capacity. Reconnect resets freshness and opens a new telemetryEpochStartedAt; private and public projections filter observations, sessions, coverage, associations, and rollups to that epoch so a previous group's retained history cannot appear under the new connection. Ingestion also refuses to reuse an open session from an older epoch.
collectorAccounts stores an opaque alias, VRChat service-account ID, capacity, health, request budget, credential generation, and an external secret reference. It never stores the credential. Local proof authentication reuses an alias-scoped operating-system vault session only after validating the authenticated immutable account ID; invalid sessions are removed and there is no plaintext fallback. The production worker resolves its provider session from the external secret. That gate was cleared by BASIC's 2026-07-27 risk acceptance of durable VRChat service-account sessions for VRDex-owned proof accounts — a product-owner decision, not a VRChat grant, and the stop condition in docs/planning/community-group-telemetry.md still stands. The secret must record the vrchatUserId it belongs to, and the worker sends it on every control-plane call so a collector paired with another account's secret cannot do work. collectorAccountLeases grants a bounded work claim. communityVrchatIntegrations.leaseGeneration makes fencing tokens monotonic across release and reassignment, so an old worker cannot resume writes with a reused token.
The worker claims one integration immediately before collecting it, so a slow poll cannot age leases for other queued integrations. A one-claim request skips due integrations leased by another worker and continues to the next eligible group. Among due groups it serves the least recently claimed first, preventing a continuously due management queue from starving its neighbors. Shutdown or heartbeat failure before collection releases the new lease. Account and integration request budgets still govern each provider call.
Reassignment is an internal operator action and is allowed only after the source account is quarantined, retiring, or retired. The mutation serially checks target headroom, releases the old lease, moves the allocation, and opens an unknown coverage window before the next fenced claim. Registering new credentials does not automatically reactivate a quarantined or retired account; an operator must reconcile its external group memberships before explicitly returning it to ready.
The account-specific /telemetry/worker HTTP action authenticates a SHA-256 worker key using a constant-time comparison. Every non-claim operation also binds the active lease to that authenticated collector account, worker ID, and fencing token. Lease expiry is checked against trusted server time; collector observation timestamps are validated separately within a bounded clock-skew window. Runtime liveness uses heartbeat, carrying the exact release SHA, bounded version, capabilities, and consecutive control-plane failure count. Telemetry uses claim, membership result, aggregate ingest, failure, and release. Ownership proofs use proof_claim, proof_budget, proof_result, proof_outcome, proof_release, proof_auth_failure, and proof_rate_limit. Proof operations are not lease-scoped. They are bounded by the account's request budget instead, of which proofs may take min(floor(limit / 2), limit - 2) per minute so an atomic telemetry poll always fits, enforced by shared proof:account:<id> and proof:global counters rather than per worker. The worker key is re-checked after the request body is read, and again inside the mutations that grant ownership or change account state, so a rotation cannot be outrun by a slow request. Responses and operator-health queries omit customer, provider, credential, proof-code, and target identifiers.
Proof dispatch and provider checks are separate lifecycle facts.
lastCheckedAt remains the legacy queue cooldown stamp;
firstDispatchedAt/lastDispatchedAt and dispatchCount describe work handed
out, while firstCheckAt/lastCheckAt, checkCount, and the bounded
lastCheckOutcome describe provider requests that actually ran. An idle worker
stamps lastProofPollAt and its lastProofPollReleaseSha only after the account
and fleet proof gates pass. This lets the claim action distinguish a live proof
reader from a generic running task, while the deployment gate can also reject
an obsolete release.
Calendar operations
create_calendar_event, update_calendar_event, delete_calendar_event, and list_calendar_events are the club operations behind the VRChat calendar connector. All four need the calendar feature and the manage_events staff permission. The three writes also need the group-calendar-manage provider grant; the list needs none.
Only connectors enqueue them. They are hidden from the staff operation list, cannot be created or edited through the staff API, and file no failure notice: the connector's lastError is their failure surface. A terminal state resumes the sync job waiting on the operation. Claim and authorize both reject a queued one with connector_inactive unless its connector is active, its direction is not off, and the kind flag is on. A list operation is deleted once its job has read it.
For a create or update with artwork, the worker fetches the PNG over HTTPS and uploads it through /file/image before the event write. The host must resolve only to public addresses: a loopback, private, or link-local address, or IPv4 multicast or reserved space, is refused before any request, and so is a host that does not resolve. The check and the fetch resolve separately, so it does not stop DNS rebinding. A fetch that fails, redirects, or returns anything but a bounded PNG only drops the image: the event write goes ahead without it, and the result's calendarArtworkUploaded is set only when the upload happened. A refused or malformed upload rejects the operation with its own code, and the event write is not sent.
A missed calendar operation was never submitted, so the waiting sync job enqueues it again without spending an attempt. A job still waiting on one operation after six hours records a failed attempt with vrchat_operation_stalled and emails ops.
Automatic candidate queue
Community submission and edit accept optional primaryGroupUrl. An explicit selection is preserved when omitted; null clears it and disables automatic selection. A selected URL must match one of the community's outbound group links. Without an explicit choice, a sole visible group link becomes the inferred primary. Multiple distinct group links require an explicit choice; link order never selects one. Inferred selections are recalculated when links change, and hidden links cannot qualify. The server records the authenticated contributor for new submissions and edits, then waits for the destination resolver to confirm an immutable group ID. Existing profiles without contributor provenance use the backfill quota. Admission, member sampling, and public projection recheck the current selection and immutable group ID. Explicit removal, clearing or relinking takes effect before scheduled reconciliation; verified and operator associations retain precedence.
The resulting profileExternalLinks.provenance = "directory_reference" association is listing data. It cannot corroborate ownership or control, including for a different contributor. Selecting a removed operator association creates a separate directory row and preserves the removed association's history; selecting an active control association preserves its provenance. Actual authenticated control proofs retain their existing upgrade path. Authenticated connection removal or control-primary promotion clears a superseded directory selection so reconciliation cannot undo that action.
groupObservations.reconcileProfile registers and rechecks eligible references; link and profile-cache writers schedule it with affected immutable IDs. Profile and registry reconciliation crons cover missed or legacy changes. Group-reference scans continue in bounded pages and use a reference revision to reject stale cleanup. A full page never proves absence. Any managed history keeps its existing decisions authoritative.
admitQueued handles at most 50 due candidates per call. Managed admissions precede automatic candidates, and deferrals move forward in due order. Allocation reserves healthy account headroom and creates the canonical integration in the same mutation. It never evicts an assignment. Automatic admission defaults to disabled, limit zero, and no scope. All three gates must explicitly permit the group; pilot scope matches one exact immutable ID.
New immutable groups consume at most five contributor candidates per rolling 24 hours. Legacy references without contributor provenance use a separate global backfill allowance of 50. Duplicate references and repeat saves consume no additional candidate. The internal overrideCandidateLimit requires an audit reason and only releases an already attributed quota-blocked candidate.
Inferred selections retain their contributor attribution through temporary privacy or ambiguity changes. Reconciliation distinguishes its own directory cleanup from an authenticated removal, so restoring a sole public link can qualify again without bypassing the original contributor quota.
An automatic allocation starts with unknown visibility and join policy. The subsequent worker eligibility gate must confirm public/free-join before joining. recordAdmissionRequired retires a pre-join request/invite/private/invalid target, releases unused capacity, and prevents allocation loops. This queue does not itself contact VRChat.
Member metadata remains available without an aggregate slot under the shared publication policy. The daily sampler skips a healthy active aggregate assignment only while its successful observation is within six minutes, then can resume standalone metadata sampling. group_member_authorize rechecks the claim and shared policy immediately before the provider read, and completion rechecks policy again. A group stop or managed privacy applies across duplicate references.
Observation model
The collector reads GET /users/{collectorUserId}/instances/groups/{groupId} after checking the group's membership. This returns full instance records in one request. Population uses each instance's n_users, not the group-list memberCount. Only normalized counts, platform breakdowns, locators, and closure timestamps leave the adapter; rosters are discarded. The collector identity comes from its verified service-account session.
Each instance observation may also retain the same response's userCount, queueSize, and platforms. These are independent diagnostics: population remains the exact n_users value. No equality, world-capacity ceiling, queue-to-population relationship or platform-sum relationship is assumed. Missing or null diagnostics are omitted; measured zero and an empty platform map are retained. Historical observations and older collectors remain valid without these fields. The platform sum is calculated by a reader when needed and is not stored.
The adapter and backend ingestion independently reject supplied malformed diagnostics. Optional counts and every platform value must be nonnegative safe integers. A platform map has at most 16 entries, with keys of 1 to 64 ASCII letters, digits, underscores or hyphens, beginning with a letter. Keys beginning usr_ are rejected to prevent identity-shaped breakdowns. There is no platform-name allowlist, so future names within those bounds remain usable. A malformed supplied diagnostic rejects the entire snapshot; a missing field does not. Provider shape drift may therefore interrupt collection until reviewed, while an omitted field remains unknown.
Only the existing authorized private clubAnalytics.getInstanceSeries query returns these optional fields, including its before/after boundary points. Instance summaries, population arithmetic, public projections and request budgets remain unchanged. No additional provider reads, player lists or raw payload capture are added.
Paired-count rollout
Deploy the additive backend schema, ingestion validators and private series return validators first. Verify backend compatibility with old collectors before releasing a new collector. Old backends reject the new fields, so do not run this collector against an older backend. Build and deploy the collector through the existing versioned release process with a new VRDEX_GROUP_TELEMETRY_RELEASE_VERSION and its exact release SHA. Keep the protocol version unchanged because the additive backend still accepts older workers. Source changes alone do not update a running collector. Verify future paired observations through an authorized private series read before claiming runtime capture; local fixtures and compile checks do not prove provider field availability. Rolling the collector back leaves already retained diagnostics intact. Do not remove additive backend support while a new collector can still send these fields.
The response's fetchedAt is the observation time. Repeated cached responses therefore cannot renew liveness or count as new disappearance confirmations. Poll scheduling still uses the current request time, including on duplicates. Snapshots older than the connection epoch or the latest accepted observation do not change history. A response older than six minutes fails as unknown coverage instead of becoming a new observation.
A provider-confirmed closure removes the instance from the live list on the first ingested observation. Remaining occupants still contribute to the group population and the instance's observed population history. Repeated closed records reuse the same session; disappearance without explicit closure preserves the session and its last observation. After six minutes without per-session evidence, its current status becomes Unknown and it leaves Live. A later active observation of the same location continues that session; an active observation after a provider-confirmed close starts a new session. When collection first discovers an already-closed instance, its recorded closure is bounded to its first observation, rather than inventing earlier observed history. The management instance picker uses the same full-instance endpoint, excludes closed or inactive destinations, and preserves fetchedAt for its existing freshness checks.
Deploy the backend accepting the optional per-instance closedAt field before releasing the collector. New observations carry collectorVersion=group-telemetry-v2 to distinguish full occupant counts from the old method. Older collectors remain accepted. No historical population correction or backfill is performed.
communityPopulationObservations: one immutable total population, instance count, and world distribution per successful poll; the poll ID is the idempotency key.instanceSessions: first seen, last seen, and confirmed close for an immutable provider location. The canonical location combines world and instance identifiers, so the same instance suffix can exist in different worlds. Missing list entries do not close sessions, advance their timestamps, or create population observations.lastObservedAtrecords actual visibility;closedAtrequires positive provider closure evidence. Continuity has no day or elapsed-time limit within a connection epoch. Retained unknown sessions are matched by the existing location index when observed again; ingestion does not scan all open sessions. The legacyconsecutiveMissesfield remains in stored rows but no longer drives closure.instancePopulationObservations: aggregate population per visible instance per successful poll. These support exact confirmed-event recaps without collecting people.communityMemberCountObservations: a row on count change or after a six-hour heartbeat.communityTelemetryEventRecapJobs: a temporary cursor and metric accumulator for a confirmed event. Each internal mutation consumes at most 100 instance observations, resolves their current session associations, and schedules the next page. The existing recap remains in place until the complete replacement is ready. Event-boundary changes and new confirmations cancel stale jobs.collectionCoverageWindows: observed, estimated, stale, unknown, or degraded intervals. Missing time never produces a zero observation.
Every observation carries source, collector version, observed time, coverage, and fencing token. The v1 source is first_party; vrcpop and vrcx are reserved adapter values, not active integrations. The adapter replaces subjects embedded in hidden(...) or private(...) instance-locator markers, including legacy user IDs without a usr_ prefix, before ingestion. Defense-in-depth validation rejects unredacted subject markers, remaining usr_ identifiers, foreign group markers, inconsistent world/location pairs, negative/non-integer counts, duplicate provider locations, malformed world IDs, oversized values, and control characters.
Private instance freshness and history
Stored session state records the observed lifecycle. An open row does not establish current liveness. Private list and direct-detail queries separately project server now and nullable liveObservedAt. Live requires an active or degraded integration with its kill switch off, analytics enabled under the existing legacy default, and a current-epoch open session actually observed no later than server time and no more than six minutes ago. Exactly six minutes remains live; one millisecond later does not. A newer non-observed coverage transition revokes the claim even if a later group-only success did not see that session.
Repeated failures with the same state and reason coalesce into one coverage window and advance its updatedAt. Session freshness uses that latest evidence, not only the window's start. Closing a non-observed window overwrites updatedAt with its recovery time, so the projection conservatively requires a session observation at or after that recovery boundary. A late observation inside the gap remains in history but cannot restore Live, even if it postdates the last failure. A session actually observed at recovery or afterward can restore Live within the normal freshness lifetime. A group-only recovery never refreshes the session itself.
The telemetry Live list filters that projection. Instance history and Home Recent instances include all authorized current-epoch sessions in descending openedAt order through the existing community/time index. Fresh rows deliberately appear in both lists. Filtering preserves bounded pagination and continuation through empty pages. Session state, close timestamps, raw population and statistics remain intact after outage, disconnect or analytics disablement. An unconfirmed close displays Unknown once freshness expires; a confirmed close keeps its recorded timestamp.
Each list or detail query owner supplies a fresh mount/scope nonce. The shared display timer fixes the initial server/monotonic calibration and expires against each session's original observation deadline, without database writes. Reactive evaluations cannot renew the same observation. Detail expiry unmounts an open closure confirmation. Provider-live management keeps its independent permissions and separate provider-read lifetime.
All rows in a paginated list share that one owner calibration, including later pages and newly observed rows. Each list owner calls the category-authorized getInstanceListClock query with the same fresh nonce as its pages. It returns only server time, including when the first filtered page is empty, so later rows cannot restart pagination. Each observation is validated against its own row's server evaluation time, then expires against the original calibration. A later observation may postdate the original clock; repeated evidence never renews its deadline. Clock response time counts against the available lifetime. The shared plural helper schedules only the next unexpired deadline; the existing singular consumers delegate to the same implementation.
Private membership chart coverage
Membership charts use compact successful-poll coverage, independently of the sparse count-change/six-hour heartbeat rows. New observed coverage windows record observedThroughAt. Explicit non-observed transitions end continuity immediately. A successful-poll gap greater than ten minutes closes the earlier observed window at its last successful poll plus ten minutes and starts a new window. The bound allows the five-minute quiet poll delay, a four-minute management pass before aggregate collection, and one minute of dispatch/transport delay. It is a conservative continuity inference, not a collection SLA. Exactly ten minutes remains connected; longer silent outages are blank. Late timestamps cannot rewrite newer collection-state evidence. Population rollup interpolation uses a separate six-minute rule.
The group-size-authorized day query returns only observed interval boundaries and completeness, with no population values, source identifiers or operational reasons. It reads at most 1001 compact coverage rows plus one same-epoch boundary row for a local day of up to 26 hours. Above 1000 rows it returns incomplete coverage and no inferred intervals. It does not read large population/world-distribution records. The day chart keeps actual member observations and inserts null boundaries across gaps. The range chart isolates partially observed days, leaves unobserved days blank, and only carries a prior count into a day with continuous poll coverage. Isolated real observations remain visible as points. Each bucket includes its server evaluation time and an absolute continuity deadline for an incomplete current day. The range query owner uses a fresh nonce per mount/range and the existing monotonic display timer, so a silent outage disconnects the line at the original deadline without another collector write. Reactive reevaluation does not extend that deadline. Fully covered historical days have no expiry; the recorded member value remains visible when current continuity expires. Both consumers retain their existing membership line and independent interactions.
Legacy windows lack evidence of internal silent gaps. They remain retained, but cannot establish continuous membership coverage; their exact member observations stay visible without inferred connecting lines. The first new successful poll begins a new proven window. No historical backfill runs in this change. This conservative legacy display limitation remains until a separately approved bounded historical reconstruction exists.
Rollups and retention
Primary active VRChat group links can collect aggregate member counts without a connected telemetry integration or service-account membership. The worker claims only publicly surfaced community links whose Group size audience is Public. It reads one group through the authenticated account's existing low-priority metadata budget after proof and connected telemetry work. A linked group's first eligible read is due immediately; later reads are due daily. Multiple profiles linking the same group share one group metadata record and count series. Connected aggregate polls write the same series from their existing group response, without another provider request.
vrchatGroupMemberSnapshots stores vrchatGroupId, memberCount, observedAt, and optional groupCreatedAt, indexed by group and observation time. A new row records a changed count or a daily heartbeat. vrchatGroupMemberMetadata retains the validated creation time, latest observation time, and a short claim lease. Both tables retain observations permanently. Provider failures preserve the latest count and timestamp, schedule a shared later retry, and never insert zero. Link removal or a different primary group stops collection through that link without deleting shared history. The public projection applies each profile's own Group size visibility separately.
community-telemetry-v2 rollups use UTC hour/day/event windows and trapezoidal integration between observations no more than six minutes apart. They include current population, active instances, peak concurrency, player-minutes, coverage ratio, member count/growth, and world distribution. Re-running the same window updates the existing stable-identity row, so late or corrected raw observations deterministically replace the rollup.
Hour/day scheduling and recomputation use the canonical integration ID for both automatic and managed assignments. Existing community-ID callers remain supported for managed work. Automatic work does not schedule event attribution, and public automatic rollups omit worlds and sessions. Adoption retains the same integration and rollup identity.
clubMembership.getMovementBucket applies canonical group policy to anonymous reads, requires managed publication and a public movement category, and rejects ranges before the public history boundary. Authorized private workspace reads retain their existing access to retained history. Adopted integrations set namedMembershipCollectionEnabled=false; the separate Connection setting requires fresh exact-group manager proof to enable named collection. Legacy managed records without the field retain their existing behavior. Workers and direct scan/ingest handlers enforce the choice independently of publication.
The hourly Convex cron schedules the previous hour, previous UTC day, and paged recent-event work. Recent-event work starts private time/world suggestion scans and recomputes every in-window event that has a confirmed session association. Suggestion scans are paged and bounded to the event window plus a six-hour setup lead. Manual confirmation and suggestion approval schedule the event rollup immediately; removing the final confirmed session deletes the event recap instead of retaining an empty public artifact. Raw group and instance observations, session boundaries, coverage windows, member changes, and rollups are retained permanently. Rollup computation does not delete its source observations. There is no age-based telemetry compaction job; deletion workflows are deferred.
Deployment removes the previous daily compaction registration and its scheduled-continuation functions. Until that backend release is deployed, existing deployments retain their previous policy. Data already removed by compaction cannot be recovered by this change.
Public projection
Category visibility takes precedence over legacy publicMetrics booleans once a visibility document exists. Without one, the existing booleans remain the fallback. Group size and membership movement independently gate member counts and net growth, including fields nested inside population history and event recaps. Net growth is not a count of joins or departures.
getPublicCommunityTelemetry is the public instance-analytics projection. An explicit enabledFeatures list without analytics returns no public telemetry, including retained hourly history, instance sessions, member counts and growth, and event recaps. An absent list retains legacy analytics-enabled behavior. Authorized owners and staff can still read retained private history. Each public metric defaults off and is included independently when analytics is enabled. Hourly history is one deliberate bundle containing its documented rollup fields. Public instance history returns at most 20 newest current-epoch sessions when instance_history is public. It includes first/last observed times, confirmed close time when present, and a linked world name only for published worlds. An open session is historical evidence, not a live claim. It excludes provider locations, instance/group IDs, raw observations, population, and unpublished world details. Current population disappears after six minutes without a successful poll, which covers the five-minute healthy quiet cadence plus scheduling tolerance; the projection remains stale if another enabled historical surface is still present. Disconnect returns no public telemetry.
getPublicGroupMembership projects the primary linked group's timestamped latest count, creation time when known, and at most 500 observed points. It works without a telemetry integration and requires the profile's Group size audience to be Public. It combines shared group snapshots with current-epoch connected observations, without exposing group IDs or member identities. Long histories use at most eight indexed sampling windows per saturated source and 32 indexed existence probes for ambiguous multi-day spans. The projection marks a span sampled only when an omitted observation is known, so the chart does not label retained measurements as unobserved or a real missing day as sampled. An integration without an active primary link can still project retained connected observations, but standalone polling requires a primary link. Restoring a public community resets its primary link's poll deadline so a previously deferred first read is due immediately. The public page has separate Appearance switches for the count and history graph; these switches change presentation, not API authorization. A dotted chart segment marks time between creation and the first observation or between raw observations separated by an unobserved UTC day.
profiles.getPublicBySlug attaches this same projection to the community profile. The normal web route, /api/v0/communities/{slug}, /api/v0/profiles/{slug}, hosted MCP, and stdio MCP therefore share one visibility boundary and one PublicCommunityTelemetrySchema. If the connected analytics group differs from the active primary profile group, public telemetry omits the connected group's member count and growth, including rollup membership fields, while preserving its other public instance metrics. This prevents secondary-group counts from being presented as the primary group's membership. Existence-only callers opt out of the telemetry fanout. Internal observation IDs, integration/account IDs, raw coverage reasons, group IDs, and service-account metadata are excluded.
Public population series and protocol ranges
Public community profile reads include telemetry.populationSeries when population history is public. Automatic groups use the strict PublicAutomaticGroupStatisticsSchema: counts, bounded population series and aggregate hourly rollups, with no worlds, instance sessions, events or named membership details. Managed groups retain their existing category permissions and managed rollup schema. populationHistory remains the longer hourly view; the new series does not replace it.
On the public profile, changing the population range refreshes Activity from the current public projection. Withdrawn values disappear after a successful response. A failed read keeps the last successful view. The Member growth card shows the dates used to calculate the published value.
The existing profiles.getPublicBySlug, REST profile GET routes, hosted vrdex_get_profile, and stdio tool share PublicStatisticsRangeInputSchema through PublicProfileReadInputSchema. Omit both statisticsStartAt and statisticsEndAt for the last 24 elapsed hours. Explicit bounds must be paired nonnegative integers, ordered, no more than 24 elapsed hours apart, and end no later than now. A 25-hour DST calendar day is therefore invalid. Person-profile reads keep their default behavior and reject statistics ranges.
Series use half-open [startAt, endAt) windows with at most 720 chronological buckets. Bucket width is at least two minutes. Missing buckets have empty observedSpans and omit counts and observation timestamps. Within each gap-separated span, points retain the first, last, population extrema and instance extrema, deduplicated by timestamp. Peaks use only observations inside the requested window. Player-hours and coverage integrate adjacent successful observations at most six minutes apart, clipped to the requested range, and never across an explicit failure window. Boundary samples support integration but do not become in-range peaks or bucket observations.
Span startAt and endAt name the first and last in-window observations of the complete continuous segment. Every bucket fragment of that segment repeats those bounds while retaining only its own bucket's points. Public charts join fragments only when both bounds match. Distinct spans remain separate even across neighboring buckets with a short failure between them. Bounds never identify an out-of-window sample.
The existing public community Activity section renders this safe series with Recharts, explicit people/instance units, actual observation timestamps and a keyboard observation slider. Empty buckets retain their time positions in the model and chart domain. Only observations and segment separators participate in tooltip selection, so a missing bucket cannot capture the pointer over a measured point. The default request omits both range arguments. Inspect day uses local midnight endpoints and the existing paired epoch inputs; future-ended or over-24-hour local days are rejected. Current population expires in the mounted page after six minutes. Membership appearance controls and managed category permissions remain independent of this graph.
Reads use the canonical group policy, immutable integration identity and public-history boundary. A single indexed page reads at most 5,000 observations, including the six-minute integration margins; a nonterminal page rejects the request instead of truncating the graph. Coverage reads are separately bounded and also reject overflow. Current population still expires after six minutes; historical ranges do not redefine current freshness.
Every REST profile GET response, including errors, carries Cache-Control: no-store. There is no separate profile/range response cache. Every read rechecks group policy, so a prior response cannot keep opted-out telemetry public. The existing identity and route-class rate budget remains shared across ranges; varying the bounds does not grant a new budget.
Verification
Backend tests cover authorization, public-off defaults, concurrent capacity allocation, quarantine/reassignment, fleet stops, monotonic fencing, idempotency, concurrent sessions, close/reopen behavior, malformed input, 401 account isolation, redaction, stale public behavior, deterministic recomputation, and preservation of raw observations older than 90 days during hourly and daily rollup recomputation. Worker tests cover the provider adapter, aggregate-only projection, account-scoped operating-system vault records, immutable identity validation, expired-session removal, transient validation failures, slow-metadata caching, request budgets, cadence jitter, 429 backoff, gap-aware player-hours, and diagnostic redaction.
Explicit public group admission
Super admins can authorize one assigned collector for a public request-to-join or invite-only primary group from its community profile. The Operator query enforces the role independently of profile ownership and returns nothing to other viewers. Unclaimed profiles remain eligible. Private or unknown metadata fails closed. No existing row receives an implicit grant.
The super-admin metadata refresh queues only the selected public primary group after the six-minute admission freshness window. Existing lookup leases, queued work, provider retry deadlines and worker request budgets still apply. Ordinary public profile refreshes retain their daily cache. An automatic candidate blocked before any membership attempt or successful observation can be reused for explicit admission when it has no assigned collector or prior grant. Ambiguous membership and prior observations still require cleanup.
The confirmation sends the exact group ID, collector account and server-observed metadata timestamp. A changed selection requires review again. Pending and active admissions consume the same ceiling of 50 automatic assignments. Admission keeps automatic scope, aggregate publication and analytics only; it grants no community ownership or management access. Collection starts only after an exact provider membership inspection. Cancel revokes and fences collection immediately, hides retained output and holds the slot until provenance-aware cleanup completes.
The heartbeat adds bounded phase counts, external-wait count, processing-backlog count and oldest processing age. These diagnostics contain no group, user, bot or reason dimensions. Fresh pending approval/invitation inspections without processing failures are external waits. A never-inspected admission, including one assigned to a healthy old v2 worker, becomes processing backlog after 15 minutes when due, independently of the free-enrollment switch. Three processing failures signal backlog even during backoff. Cleanup unresolved for 15 minutes also signals backlog despite regular inspection pacing. Paused and ended policy states require operator review; they are not retry queues.
Reviewed session consolidation
Historical session repairs use internal instanceSessionRepair preview/apply/rollback functions. The exact seven-session request is deployment- and epoch-bound, fingerprinted, and resource-bounded. Apply atomically reparents measured observations, retains six alias rows and stores a rollback receipt. It never edits measured populations or community totals. Lists and ingestion use canonical-only indexes; authorized old detail links resolve one same-scope alias hop. A later provider-confirmed close followed by active reuse still creates a new session. No repair runs automatically on deployment. See the repair review and operator boundary.
Private instance chart
Authorized instance detail uses the complete paginated retained history for Population, Windows, Android and Queue. Population and its summary cards continue to use n_users. Windows and Android use their provider platform keys independently; other retained platforms remain available in Diagnostics. A platform line appears only with known values. Queue appears automatically only if any sample is positive. There are no queue or closure visibility toggles.
Solid lines break at unknown fields and collection gaps. Dotted chart connectors span two observations up to 30 minutes apart for population and instance metrics, or seven days apart for membership. They add no samples or coverage to counts or rollups. Instance connectors do not cross a recorded closure to new joins. Measured zero remains zero in the exact-value table. The count axis is unstacked and timestamps use proportional elapsed spacing, with date context for multi-day histories. A stored closedAt marks closure to new joins, not lobby emptiness; later observations remain visible. Data tables and private diagnostics retain full local timestamps and mount their rows only when opened. Chart dots identify isolated observations rather than every sample. Old records show unknown diagnostics without a backfill. Existing instance-history permission checks and repaired-link resolution remain in force.
The instance detail omits short population dips or spikes when the provider counters disagree substantially and nearby readings corroborate the alternate counter. For legacy rows without the alternate counter, it omits only severe single-sample dips bracketed by similar higher counts. Rejected readings are excluded from the detail chart, table and summary. Raw stored readings remain available for authorized backend analysis. The detail omits Android when the linked world has an explicit platform list without Android. Empty or missing platform metadata leaves the series eligible for display.
When an instance has a confirmed event association, event managers with event_recaps visibility also see dotted scheduled-DJ markers from that event's confirmed timed slots. Names use the lineup display labels, including performers without profiles. Untimed, draft and disputed entries are excluded. Hovering an observation shows the last scheduled DJ, including a set that started before the first observation. These are schedule annotations, not evidence of an actual stream handoff or attribution of attendance changes.
See the instance chart release checklist for backend-first rollout and runtime acceptance.
Event-grain repair inventory, preview, and scope checks use the same recap-window resolver as ordinary calculation. A reviewed repair target keeps its exact effective range; a later configuration or tail change requires a new scope review. Repair previews resolve canonical aliases and deduplicate retained session timestamps before summing them. Repair runs can complete for both automatic tails and canonical cutoffs.
If ingest finds more than 1,000 aliases for a session, it records a recap.refresh / alias_limit audit event and skips that session's immediate recap refresh. Raw observations, diagnostics, coverage, and liveness still commit. An operator can reconcile the aliases and request recalculation through the existing recap controls; the recent-event cron remains the normal backstop.