Skip to main content

Group telemetry collector operations

Automatic group statistics have a separate gated release runbook and exact-copy packet. Deploy the compatible control plane with admission disabled and limit zero, migrate managed records, then verify capability-aware workers before the public clients and approved pilot. The existing managed deployment gate does not authorize automatic enrollment.

Deployment gate​

Do not enable fleet infrastructure until a VRDex-owned account and consenting test group complete the bounded provider proof in scripts/prove-vrchat-group-telemetry.mjs. Hosted provider-session storage is cleared by BASIC's 2026-07-27 risk decision, recorded in the bootstrap steps below — a product-owner acceptance of a known operating pattern, not a VRChat grant. The proof writes sanitized local evidence under ignored artifacts/group-telemetry-proof/; evidence and logs must never contain credentials or cookies. Local proof sessions are confined to the operator's operating-system credential vault. That cache is a deliberate bounded risk for VRDex-owned proof accounts, not a provider-approved exemption; stop proof traffic and clear it if VRChat objects.

Record a go, adjust, or stop disposition in docs/engineering/group-telemetry-provider-proof.md. For Free Join, Request-to-Join, and Invite-Only, record the observed membership transition. If a path cannot be exercised, record it as unverified with the exact next test; do not treat a mock as provider evidence. A collection proof should run for multiple hours across active and quiet cadence, retaining only counts, state names, request classes, timing, and hashed target identity.

Required proof environment:

NameStoragePurpose
VRDEX_VRCHAT_PROOF_ACCOUNT_ALIASnon-secret local configStable vault key for the VRDex-owned account, such as VRDex_Oak.
VRDEX_VRCHAT_PROOF_GROUP_IDephemeral operator environmentConsenting group ID.
VRDEX_GROUP_TELEMETRY_USER_AGENTnon-secret configIdentifying app/version/contact User-Agent.
VRDEX_GROUP_TELEMETRY_PROOF_ENABLEDephemeral operator gateMust be exactly true before the proof can make provider requests.
VRDEX_VRCHAT_PROOF_USER_IDoptional non-secret guardExpected usr_... ID; aborts local login if another account authenticates.

Run read-only membership inspection first with pnpm proof:group-telemetry. On the first run, it starts a tokenized browser form on 127.0.0.1; the operator enters the VRDex-owned account credentials and TOTP or email code there. Credentials and codes remain in the form process. The resulting session is stored under VRDEX_VRCHAT_PROOF_ACCOUNT_ALIAS in the operating-system credential vault and validated against the stored and optionally configured immutable account ID before reuse. Invalid or expired sessions are removed automatically; transient validation failures stop without deleting a potentially valid session or asking for credentials. Use --fresh-login to replace a session and --clear-session to delete it. The command reads non-secret values from the process environment or ignored repository .env.local. Add --allow-join only after the group owner approves the membership transition. Use --duration-minutes=240 or up to 1440 for the collection run. Send Ctrl+C, stop the process, or create artifacts/group-telemetry-proof/STOP to interrupt the run; the harness checks the stop file at least every five seconds and still writes sanitized evidence. Transient errors remain inside the bounded run with jittered backoff, while authentication or moderation-class failures stop it. Every artifact also includes an explicitly labeled, deterministic synthetic_no_provider_request check showing that the production failure policy honors a 429 Retry-After value; do not intentionally hammer VRChat to manufacture a live rate limit. Naturally observed provider failures remain separate in statusClasses, retries, and backoffMs.

--auth-from-env is an explicit trusted-development fallback. It requires VRDEX_VRCHAT_PROOF_AUTH_COOKIE and accepts optional VRDEX_VRCHAT_PROOF_2FA_COOKIE; never commit, print, or paste either value. It bypasses the vault, cannot be combined with --fresh-login or --clear-session, and is not the normal operator path. The local vault cache is an operator convenience only; hosted sessions are governed by the recorded risk decision below and by the stop condition, not by the presence of a local cache.

Account bootstrap​

  1. Create a dedicated VRDex-owned VRChat account and enable the provider-required account protections.

  2. The provider-approval half of this gate was cleared by BASIC on 2026-07-27: durable VRChat service-account sessions are accepted as a known, acceptable operating pattern for VRDex-owned proof accounts. This is a product-owner risk decision, not a statement that VRChat has granted VRDex anything, so the stop condition in docs/planning/community-group-telemetry.md still stands — if VRChat objects, stop proof traffic and clear the saved session.

  3. Transfer the session with pnpm ops:vrchat-session:transfer -- --secret-id <arn>. It re-validates the saved alias-scoped session against VRChat, generates a 48-byte workerApiKey, writes only workerApiKey, authCookie, twoFactorAuthCookie, and vrchatUserId into the named secret, and prints just the lowercase SHA-256 digest for registration. No secret value is printed, passed as a process argument, or written to disk. The worker refuses to start without vrchatUserId and sends it with every control-plane call, which rejects the request when it does not match the collector the account id names — so pairing one collector with another account's secret cannot run. vrchatUserId is not a secret: it records which collector account the secret belongs to, so a later transfer refuses an alias paired with another account's secret id rather than deploying the wrong session under it. Add --dry-run to rehearse; a dry run writes nothing, and so also skips the validation that would rotate the live session. Do not hand-extract cookies or store the password or TOTP seed.

  4. Register the account with the digest printed by step 3 — never the key itself:

    pnpm cx -- prod run communityTelemetry:registerCollectorAccount '{"vrchatUserId":"usr_...","accountAlias":"VRDex_Oak","secretRef":"arn:aws:secretsmanager:...","workerKeyHash":"<digest from step 3>","capacity":100,"reservedHeadroom":15,"requestsPerMinute":30}'

    The mutation rejects a secretRef that is not an ARN or secret:// reference and a workerKeyHash that is not a 64-character hex digest, so a pasted key fails rather than being stored.

  5. Build workers/group-telemetry/Dockerfile, push the image, and configure container_image with its immutable @sha256: digest URI. Terraform rejects service enablement when that digest is absent. Once the reviewed automation bootstrap below is complete, the main-branch release lane performs this step automatically.

  6. Apply with enable_service=false and desired_count=0. Review the task role, execution role, one-secret scope, SSM deployment gate, logs, alarms, budget, and egress-only networking.

  7. After a go or acceptable adjust, set enable_service=true, desired_count=1, and a budget alert email. Keep the task cap at two.

Person-proof reads and recovery​

Each person check spends one provider request on authenticated GET /profile/{targetExternalId}. The reader requires a non-null, non-array object, the exact requested id, and a string bio. Only the bio can match a person's proof code. There is no /users fallback or second status request. Group checks keep their /groups endpoint and description/name fields.

A readable bio without the code, including an empty bio, is not_found. Missing or invalid bio evidence or identity is schema_drift. The worker records provider_unavailable with that bounded category and sends no negative proof_result. It does not log the provider error message or response body. The same pending attempt retains its code and expiry and retries on a later due poll, subject to the existing budgets, cooldown, expiry, and kill switches. Authentication shutdown and rate-limit backoff are unchanged. The browser's pending/queued presentation is unchanged. Expired or canceled attempts start again through the normal flow.

Controlled person-proof acceptance​

Offline provider tests and browser adapter tests do not establish live bio access. A heartbeat or healthy release-readiness result proves neither that the collector can read a person's bio nor that a claim can settle.

This procedure requires separate approval for rollout, live profile edits, and claim settlement. Merge can trigger an automatic collector release after successful main-branch Baseline Checks, so hold merge until rollout is approved.

  1. Identify the exact controlled VRChat identity, test profile, claimant, expected trust outcome, and cleanup owner in the private approval record. Prefer an existing dedicated fixture. If none exists, obtain approval to create one; do not substitute an unrelated person's profile.
  2. After the approved rollout, confirm convergence on the exact collector release using the release-readiness procedure below. Capture the previous immutable image for rollback.
  3. Use one fresh or still-valid pending attempt through the normal claim flow. With authorization, save its code in the controlled identity's bio. Let the ordinary queue dispatch it to the released collector. An old stored proof, manual verification, or fixture adapter verdict does not pass this check.
  4. Confirm a collector found result for that attempt, normal backend settlement, and the reactive claim-page result. Check the expected trust outcome against the fixture's existing associations; do not assume every proof produces claimed_verified.
  5. Retain only the release, timestamps, bounded outcomes, and approval reference. Keep the code, bio, provider session, and claimant details out of saved receipts and logs. The cleanup owner can remove the code after completion under the approved cleanup scope.

If acceptance fails, preserve the existing claim history and report the bounded failure. Use the existing release recovery procedure and captured immutable image when rollback is authorized. Restoring the old reader can restore false negatives, so fleet recovery does not prove person-proof recovery. Do not manually grant ownership to conceal a failed check.

Automatic releases and drift detection​

.github/workflows/group-telemetry-release.yml is the only automatic writer for routine collector releases. A successful main Baseline Checks run builds the exact main SHA, publishes an immutable SHA tag, plans against checked-in production enable/count state plus fail-closed repository variables, and applies the saved plan only after the policy helper proves that it changes the collector image and release metadata alone. ECS must stabilize on the exact digest, then communityTelemetry:collectorDeploymentReadiness must report a fresh matching heartbeat from GROUP_TELEMETRY_COLLECTOR_ACCOUNT_ID with telemetry_v1 and vrchat_proof_v1. Because proof capability is required, the same release must also have reached the proof-claim gate with usable proof budget and no active account cooldown.

Before enabling the lane, perform one reviewed bootstrap from the trusted state holder:

  1. Migrate any existing local collector state to the declared S3 backend with terraform init -migrate-state, then inspect the remote state.
  2. Plan the current production variables with the reviewed release image and source SHA. The first plan includes task metadata plus heartbeat, auth, control-plane failure, and restart metric filters and alarms.
  3. Apply that infrastructure plan manually. Automatic releases intentionally reject it because it contains more than an image-only task revision.
  4. Provision the main-only GitHub OIDC release role, following the least-privilege requirements in the stack README.
  5. Configure every required GitHub variable and secret listed there, then set GROUP_TELEMETRY_RELEASE_ENABLED=true.
  6. Dispatch the workflow manually only from a commit reachable from main, or let a successful main Baseline Checks run trigger it automatically.

The CloudWatch filters consume only redacted JSON event names: collector_heartbeat, collector_auth_required, collector_control_plane_failure, and collector_worker_restart. The worker also logs collector_session_check with a bounded outcome; its auth_required outcome is always paired with collector_auth_required, so the existing alarm covers it. They must never include a profile slug, proof code, provider target, account identifier, cookie, key, or raw error payload. Missing successful heartbeats alarm after two one-minute periods. Every alarm notifies the ${name_prefix}-alerts SNS topic, which emails budget_alert_email. The address confirms the subscription once, from the message SNS sends on the first apply; until then the alarms change state but nobody is told.

The Terraform-managed ${name_prefix}-operations dashboard combines those collector signals with ECS task count, CPU, and a bounded recent-log view.

Steps 1-7 are the bring-up sequence for standing a fleet up, not a description of the current state. Production has been through them: BASIC accepted durable service-account sessions on 2026-07-27, and the fleet runs enabled.

Apply production with the checked-in run state, not the defaults:

terraform apply -var-file=environments/production.tfvars

environments/production.tfvars carries enable_service, desired_count, and the production requests_per_minute budget. An explicit request-budget change must update that checked run state before the next automatic image release, so the release cannot silently restore Terraform's default. The file otherwise contains no account-specific values. Image digest, secret ARN, subnets, and security groups stay in the operator's gitignored terraform.tfvars. The variable defaults remain disabled so a new environment is safe by default, but applying production without that var-file would set desired_count = 0 and take the fleet down, which now also disables collector-resolved VRChat claims.

The stop condition in docs/planning/community-group-telemetry.md still applies: if VRChat objects, stop the traffic and clear the saved session.

The execution role reads only the assigned account secret and SSM startup gate. The application task role has no AWS data permissions. The worker receives no customer credential and cannot claim work for a different collector account ID.

Normal health​

  • Account state is ready; integration state becomes active after membership succeeds.
  • A collector_session_check event with outcome: ok appears every 8-12 minutes, including with no groups assigned. outcome: auth_required means the stored session is not being accepted; a long gap means the worker is not reaching the provider or the control plane, and the heartbeat and control-plane alarms say which.
  • Active groups poll every randomized 60-120 seconds; quiet groups poll every 3-5 minutes.
  • Group membership metadata is cached for five minutes while instance state continues on the active/quiet cadence. Join, leave, and membership-transition calls always invalidate or bypass that cache.
  • The worker enforces a local process safeguard, then atomically reserves the predicted request cost against control-plane global, account, and integration minute budgets. A denied local budget defers the assignment instead of repeatedly reclaiming it.
  • Managed membership audit catch-up advances up to 32 durable steps toward a fixed target per integration lease. While an owner recovery job is active, it yields after one successful durable step so historical repair can use the remaining budget. Deferred attempts do not count as a successful step. Each provider page reserves its own global, account and integration capacity. Membership work and its budget waits use a 90-second slice within the existing four-minute lease deadline, leaving time for the next ownership-proof poll before its two-minute freshness limit. Waits retain heartbeats. Authority older than 30 seconds is refreshed before more work, leaving room for request latency before the hard one-minute submission boundary. Collection stops when caught up, shutdown begins or the slice ends. Collection, verification and finalization still use the existing fixed-window protocol, so partial backfills remain unknown rather than zero.
  • New membership scan windows cover up to the existing 31-day backend limit, bounded by the collection epoch and fixed past cutoff. Existing in-progress windows resume unchanged. Provider pages remain capped at 100 records, and both audit passes must agree before coverage is certified. Larger windows reduce repeated empty scans without increasing request limits or changing publication.
  • A 429 honors Retry-After plus jitter. 5xx, network, and timeout failures back off exponentially. A 404 degrades only the affected integration.
  • CloudWatch should have one running task, no sustained CPU alarm, and no raw provider payload or authorization values in logs.
  • The private dashboard shows last observation, coverage, account state, and gaps.

Stops and recovery​

Use the Convex global kill switch to stop all new claims without taking the web app down. Use the account kill switch or quarantined state for one account, and the integration kill switch/disconnect for one group. Set ECS desired count to zero for the live infrastructure stop. The SSM deployment gate prevents a disabled revision from starting after a task restart; it is not a dynamic stop for an already running process.

Any authenticated provider 401 immediately sets the account and every assigned integration to auth_required, releases all leases, and opens degraded coverage. Recover by creating a new session from behind the collector's NAT gateway, never from an operator's own network: VRChat pins a session to the address that created it, and a laptop-born session is refused on the collector's first request. The login host stack in infra/terraform/group-telemetry-login-host (its README is the runbook) provides the tunnel; run pnpm proof:group-telemetry --fresh-login and then pnpm ops:vrchat-session:transfer (scripts/transfer-vrchat-session-to-aws.mjs) through it. The transfer validates the session, replaces only the session fields, and mints a fresh worker key; do not manually extract the local vault record. Re-register the account with the printed workerKeyHash to increment credential generation, restart the task, then return the account to ready. Password-based unattended reauthentication is intentionally absent. Recovery puts integrations into connecting; it does not backfill the outage or turn it into zero attendance.

Reading production state​

Everything here is a read. Production Convex needs CONVEX_DEPLOYMENT_PROD and CONVEX_DEPLOY_KEY_PROD in the main checkout's ignored .env.local; the AWS calls need account credentials for us-east-1. Under Git Bash export MSYS_NO_PATHCONV=1 first, or the /aws/ecs/... log group name is rewritten as a Windows path and the call fails validation.

pnpm cx prod run communityTelemetry:fleetHealth '{}'
pnpm cx prod run communityTelemetry:collectorProofAvailable '{"now": 1788498562000}'
aws ecs describe-services --region us-east-1 --cluster vrdex-group-telemetry --services vrdex-group-telemetry --query 'services[0].{desired:desiredCount,running:runningCount,taskDef:taskDefinition,events:events[:5].message}'
aws ecs describe-tasks --region us-east-1 --cluster vrdex-group-telemetry --tasks $(aws ecs list-tasks --region us-east-1 --cluster vrdex-group-telemetry --desired-status STOPPED --query taskArns --output text) --query 'tasks[].{started:startedAt,stopped:stoppedAt,exit:containers[0].exitCode}'
aws logs filter-log-events --region us-east-1 --log-group-name /aws/ecs/vrdex-group-telemetry --start-time $(( ($(date +%s) - 6*3600) * 1000 )) --filter-pattern '{ $.event != "collector_heartbeat" }' --query 'events[].message' --output text

fleetHealth strips the secret reference and worker key hash; the rest of the account row is safe to read aloud. collectorProofAvailable is the claimant's own gate: false means the claim page shows "We could not reach VRChat", and the account row says why:

ReadingMeaning
state: auth_required, lastHealthResult: provider_401VRChat rejected the collector's session. It may have expired or been created from a different network address; a successful check from a laptop does not prove it works from the collector. The control plane answers the worker's heartbeat with 423 collector_disabled, the worker fails six times and exits 1, and ECS restarts it about every five minutes. Those stopped tasks and collector_worker_restart log events are the expected shape of this state, not a second failure. Recover with the NAT-origin login path above.
state: ready but lastProofPollAt older than two minutesThe worker is not reaching proof_claim. Check consecutiveControlFailures and the collector_control_plane_failure log events for the phase and failure class.
state: ready, cooldownUntil in the future, or killSwitchEnabled on the account or in settingsBudget or operator gates. Nothing is broken; wait or clear the switch.

The worker checks its session at startup and then at jittered 8-12 minute intervals, including when no telemetry integrations or proofs are queued. A release readiness check that requires vrchat_proof_v1 fails while the account is auth_required; that failure is correct and clears once the session is replaced and the account is back to ready.

For account loss, quarantine the account before assigning managed groups elsewhere. Capacity allocation chooses only ready, non-cooled-down accounts with reserved headroom. The internal reassignment operation checks target headroom, releases the old lease, and opens an unknown coverage window before the replacement account joins. Automatic groups reject reassignment and honor membership loss as a stop. A quarantined account stays quarantined when credentials rotate; reconcile or remove its old VRChat group memberships before explicitly returning it to ready. For automatic rollback, disable admission first, fence affected leases through group stops, suppress output and complete cleanup while retaining history. Follow the gated runbook before restoring an older image; legacy workers cannot receive automatic assignments. A global kill switch or stopping ECS pauses unrelated managed work too and requires its own operational decision.

Cost and self-hosting​

The default task is 256 CPU/512 MiB, desired count is capped at two, and logs retain 30 days. ECR removes untagged images after seven days, while immutable git-* release tags remain available for rollback until an operator deliberately removes old tagged releases. The optional AWS Budget defaults to USD 30/month with 80% forecast and 100% actual alerts after the Component cost-allocation tag is activated.

A self-hosted deployment may run the same container outside ECS. It must provide an equivalent per-account external secret, startup gate, HTTPS-only egress, restart policy, logs without payloads, and every required runtime variable documented in workers/group-telemetry/README.md, including the exact release SHA and bounded release version. The Convex control plane remains authoritative for assignments, leases, budgets, and public settings.

Explicit admission compatibility and alarms​

Deploy the backend compatibility changes before a worker advertising explicit_group_statistics_admission_v1. Existing workers continue legacy and free-join work, but cannot claim an explicit grant without both that capability and automatic_group_aggregates_v2 in the claim and fresh heartbeat. Before authorizing any request or invitation, verify readiness for the exact approved worker release SHA and assigned account. A source constant or successful rollout alone is insufficient.

The existing AutomaticEnrollmentBacklog metric now includes explicit admission processing and cleanup, even when free enrollment is disabled. collector_heartbeat.automaticEnrollmentBacklog drives the existing three-period one-minute alarm. Its actions use the alerts SNS topic; the configured email subscription defaults to basic@basicbit.net. Missing heartbeat, control-plane failure and authentication-required alarms retain their existing actions. Verify enabled alarm actions, confirmed SNS email subscription and actual delivery during a separately authorized rollout. No Terraform apply or delivery test is established by source tests.

For a backlog alert, inspect exact-head worker capability first, then assigned-account readiness, failures and cleanup provenance. Approval and invitation waits with fresh successful inspections should not alert. Never repeat an uncertain membership write or switch bots to bypass it. Cancel and inspect cleanup before rolling back a worker. Keep the compatible backend until grants are cancelled and owned cleanup is confirmed; reverting only the UI does not revoke stored grants.

Statistics calculation repair​

Implementation does not authorize production execution. First deploy the compatible backend through the normal release process. The population collector remains unchanged. Use an exact target and a fixed past range of at most 93 days. Start with BITRATE and Faceless as separate reviewed inventories; only one repair run is active at a time.

node --import tsx scripts/repair-community-statistics.mjs --target prod --mode dry-run --integration INTEGRATION_ID --start 2026-10-31T00:00:00Z --end 2026-11-02T00:00:00Z --inventory bitrate-statistics-review.json

Review the manifest's exact deployment, integration, bounds, blocked targets, and proposed changes before granting apply approval. Inventory and dry run do not change published rollups. Event previews stream read-only input pages. Old guest undercounts cannot be reconstructed by these calculations. Ambiguous epochs, missing raw input, or read-limit failures are blocked rather than treated as zero. A manifest with blocked targets cannot be applied without a revised review.

After explicit execution approval:

node --import tsx scripts/repair-community-statistics.mjs --target prod --mode apply --inventory bitrate-statistics-review.json
node --import tsx scripts/repair-community-statistics.mjs --target prod --mode status --inventory bitrate-statistics-review.json

Apply persists its run ID into the same manifest. Repeating apply resumes that scope and restarts the migration cursor safely; corrected targets are skipped. A queued recap remains pending. Status reads progress in pages and resolves finished recap targets; migration enumeration completion alone is not repair completion. Inspect failed/pending targets before retrying; do not start a second run to bypass them.

Compare a fixed canary range against independent raw-observation integration, persisted v2 buckets, public series, and the signed-in club UI before expanding. Record numeric changes and remaining blocks. Correction can raise boundary totals and lower outage totals. During the rebuild, old and new buckets coexist in place, with internal calculation-version stamps. Preserve missing coverage, category access and hidden epochs. Rollback requires replaying a specified prior calculation against retained raw observations and reviewing its output; changing a version label alone is not rollback.

Fragmented instance identity repair​

Missing instance-list entries no longer confirm closure. The forward lifecycle correction does not consolidate existing historical fragments. See the historical repair proposal for the seven-fragment BITRATE inventory, retained-link recommendation, bounded preview, rollback and separate production execution gate. The statistics calculation repair commands above do not merge session identities.

Membership activity identity projection​

Membership audit events retain optional actor ID/name and role ID/name evidence. Role fields are parsed only for group.member.role.assign and group.member.role.unassign, using data.roleId and data.roleName from the pinned community API schema. Role names and IDs are validated independently within those event types. Actor names require a validated actor ID and never label targets. Unsupported optional metadata is omitted while valid core evidence remains collectible. Ingest enforces those relationships and drops invalid optional name/actor/role strings instead of stalling the page; core audit and scope validation still rejects invalid evidence.

Authorized individual activity reads can show the latest locally cached VRChat name and a unique visible verified VRDex person-profile link. They make no provider requests and do not broaden the public-profile destination refresh queue. Optional name/profile lookups are capped at 200 distinct identities per returned page, including reactive windows that grow beyond their requested size. Excess identities retain validated VRChat links without further reads. Profile candidates are capped at 20 per identity, proof history at 20 per candidate, and optional profile verification at 100 candidate associations per activity page. Overflow omits the VRDex link. Name/cache misses leave a validated VRChat link available.

Old rows remain valid. Replayed audit IDs preserve their first recorded metadata. Historical repair, where enabled and explicitly requested by an owner, stores supplemental evidence separately; it does not rewrite original events. Future names and cached current names remain separate from event-recorded evidence. Deploy the compatible backend before the web UI and worker: the UI uses its explicit activity-scope availability field, and the worker sends its optional event fields. The previous worker payload remains accepted. Merge or deployment of collector changes still follows the release approvals above.

Person filtering uses the additive canonicalTargetUserId projection and its indexes. Original targetUserId evidence remains unchanged, including mixed casing. Before deploying new clients, prepare each intended integration's current epoch through one authorized invocation of the internal clubMembership:backfillTargetIdentities mutation with exact { integrationId, epochStartedAt, groupId }. Each page reads at most 101 missing projections, updates at most 100, and returns { updated, complete }. An incomplete page schedules the next page with that same scope. Completed or duplicate invocations skip prepared rows and stop when none remain. Every continuation rejects changed epochs, mismatched groups and foreign evidence before committing a page; a failed page schedules no further work.

Poll the internal clubMembership:targetIdentityBackfillStatus query with the same exact scope until it returns { complete: true }. This probe checks at most one missing projection and rejects a replaced scope. If preparation stops after a failure, inspect the failed scheduled function before restarting the same authorized scope; do not roll out clients while status remains incomplete. No provider request or recovery job is involved. This task prepares the functions but does not authorize running them against a hosted environment.

The empty-string projection marks rows without a valid person target as prepared. Unfiltered and event-only history remain available during preparation. Person-filtered reads return MEMBERSHIP_ACTIVITY_INDEX_PENDING while any verified row in the selected range lacks a projection, rather than returning incomplete or falsely empty history. The UI retains the filtered URL and offers the existing Retry and Clear filters controls. Roll out the backend, finish the bounded backfill, then roll out clients. If an older backend writes more unprojected rows during rollback, repeat preparation before restoring person filters.

Private workspace name lookup​

Workspace identities have a private integration/epoch-scoped queue separate from the public outbound-link destination queue. Admission is limited to authorized audit entries, invitation reviews/batches, scheduled operations and stored member/request read results. A review grant expires after 15 minutes and is replaced when the same actor reviews different recipients. Names never authorize an action or replace its exact target ID. The worker retains only validated ID/name/observation and retry state; it does not fetch artwork for these jobs.

The invitation composer waits 300 ms after recipient edits before previewing the list and admitting name lookups. Review requires a settled, nonempty selection and still revalidates those exact IDs. The people hook retains each unchanged, unexpired source ticket only while that source remains active in the same viewer/community/integration scope. Removing a source or changing access discards its ticket, and expiry renews only the affected active sources. clubPeople.requestView returns serverNow with its server expiry; deploy this backend contract before the corresponding client. Client deadlines use monotonic elapsed time from request start, conservatively charging the full round trip. Missing calibration or expired responses supply no names or pending count; server expiry and authorization remain strict.

Activity, members' recent actions and scheduled-action views retain groups of continuously visible IDs on ordinary prepend, append and reorder, including filtered or underfilled pages. New visible IDs enter new groups of at most 25; hidden rows are never admitted to stabilize a group. When the group count exceeds the greater of eight or twice the fully packed group count, the current visible IDs are repacked into groups of 25. This occasionally requires fresh admission to bound subscriptions on long-open dashboards, without dropping visible IDs or imposing a fixed eight-group limit. A removed and later restored source needs fresh admission. A failed people query contributes no names or pending count, while other active, unexpired views remain usable. Viewer, community, access and epoch changes still discard every old ticket.

Identity joins and fallback collision checks use canonical VRChat user-ID keys across activity, members, invitations and scheduled actions. This comparison does not change the original IDs displayed in confirmation or sent in action payloads, selected recipient counts, operation IDs or revisions.

Failed recipient previews show the existing error or validation message and offer Retry without requiring an edit. Retry keeps the entered IDs, makes one new settled preview attempt, and leaves Review disabled until that current input succeeds. Changing the input cancels any older pending result; failures do not start an automatic request loop.

When active sources name the same person differently, VRChat observations take precedence over recorded names, which take precedence over VRDex profile fallbacks. Within a source class, the latest observation wins. Loading an older activity page cannot replace a newer recorded name. Only currently authorized, unexpired source results participate.

VariableScope and defaultOwner and recreation
VRDEX_PEOPLE_RESOLUTION_ENABLEDConvex backend for the intended environment. Unset or any value other than true disables automatic and viewer-derived audit-to-people admission and new workspace-name provider claims. Not a frontend or ECS secret.BASIC/VRDex operator. Recreate unset after environment recreation. Set to true only after the bounded provider checkpoint and intended rollout are accepted. Remove or set false to stop audit admission and new claims.
VRDEX_MEMBERSHIP_RECOVERY_ENABLEDConvex backend for the intended environment. Unset or any value other than true disables owner historical-repair requests/claims. It does not turn ordinary collection into a replay.BASIC/VRDex operator. Recreate unset. Enable only after the scoped role/audit payload checkpoint and intended rollout are accepted; remove or set false to stop new recovery traffic.

The definition is checked in here and in the backend claim gate. Do not silently copy a production enabled value into staging or previews. Automated/local tests may set the flag only against synthetic transports. This implementation task does not set it in a hosted environment.

Historical repair uses a fixed last-30-day window chosen when the owner creates the job, intersected with the integration epoch. Resume preserves that displayed window, checkpoint and cumulative 10,000-entry cap. It does not silently request a fresh rolling interval or reset the request budget. Stopping or disabling repair preserves current-scope checkpoints for a later authorized resume; replaced scopes invalidate old results. A completed scan means its bounded source interval was exhausted, not that every missing historical name or role was recoverable.

Recovery keeps one supplementary audit page per leased poll, after ordinary work. An early idempotent claim identifies active owner jobs for scheduling only. While one exists, ordinary catch-up yields after one successful durable step; collect, verify and finalize can span multiple polls. This slows ordinary catch-up during repair. Without an active recovery job, ordinary catch-up retains its 32-step allowance. Recovery still obtains a fresh claim and current-job check before dispatch. If local or shared capacity is exhausted, it waits with heartbeats within the same 90-second background allowance used by ordinary membership catch-up, then reuses authority within the existing 30-second freshness margin or refreshes stale authority using its own two-request reservation before claiming and checking the page again. Recovery receives no fresh allowance when catch-up has used that time, preserving headroom for the next ownership-proof poll. It does not carry a reservation across minute boundaries, raise request limits or move ahead of ordinary work. Shutdown, expired authority, revoked scope or the background deadline stops dispatch; a later authorized poll can continue the same checkpoint. This avoids starvation when a quiet poll consumes the integration's four-request minute.

A legitimately issued recovery request can still report an account-wide 429 cooldown after the owner stops the job, the repair flag is disabled, or fresh audit authority is lost. The response must authenticate the original attempt against the current worker key, collector lease, credential generation, integration, epoch and group. Its Retry-After extends the existing account cooldown by maximum; consuming the attempt prevents replay from extending it again. This cooldown-only path cannot write evidence or advance a stopped, disabled or unauthorized checkpoint. One retained interrupted-attempt record stays private on the recovery job and is omitted from owner-facing status. It does not authorize another GET.

Enrichment spends at most two provider reads per minute per account, within the existing shared account/global request budget, after higher-priority work. Exact-source references determine retention and cleanup; abandoned review-only observations are removed within 24 hours after grant expiry, and terminal operation references last at most 30 days. Repeated viewing cannot reset provider cooldowns. Disabling the gate must not show a false list-level updating indicator; existing cached names remain readable under current source authorization.

With the people flag off, ordinary audit collection still records its original evidence, and activity views still read recorded, public and retained private names under current authorization. Neither path creates or refreshes audit-derived people or reference rows. Explicit views still create short-lived grants, and non-audit views retain their source admission behavior; the flag does not make every view operation inert or erase existing rows.

When enabled, viewer-derived audit references retain the actor fence and expire no later than 30 days after the latest authorized view or the underlying source expiry. Actor-free automatic references follow collection policy while the verified event remains retained and its scope valid. Legacy permanent viewer references have no last-view timestamp, so authorization and cleanup conservatively bound them to 30 days after their creation; cleanup stores that finite expiry without removing their actor fence. Original audit evidence is unchanged.

Audit-reference maintenance runs at twelve-hour intervals, while other references are checked within one hour or their expiry, whichever is earlier. People are checked hourly, and the ten-minute cleanup cron chains bounded batches until due work is drained. The twelve-hour interval leaves room for truncated-reference pruning, another hourly person check and cron timing within the 24-hour unsupported-cache cleanup window under normal scheduler operation. Reads and claims revalidate exact sources and authority immediately; delayed maintenance never extends access or grant expiry.

Stored scheduled-operation and invitation-batch references are reauthorized individually. A disabled, denied, missing or foreign operation contributes no names or provider work, while other allowed operations in the view remain usable. This tolerance does not apply to raw recipient-review authorization, upfront batch/community/scope checks, activity history or provider-read authorization.

Each people claim returns reservationWindowStartedAt, the server minute charged to all three counters. Before GET dispatch, the worker requires that minute to match its current clock, rejects a backward clock step, and requires a successful local budget consume. A stale or missing reservation releases the lease without a GET or a budget refund. Deploy backend support before the worker; the new worker fails closed against older claim responses. Server and worker clocks must agree on the minute to dispatch, so clock skew can delay enrichment without granting extra requests.

See the workspace identity verification record for the checkpoint state and remaining live proof. A stopped login host or a successful ECS release is not payload acceptance. Keep the additive backend/schema while new clients or stored observations still require it during rollback.

For rollback, stop or roll back the worker and roll back the web UI before reverting backend behavior. An older event validator rejects new-worker fields and stalls membership_scan_page ingest. Keep the additive activity-scope response field in backend rollbacks: rolling back the web deployment does not replace already-open newer clients, which still require it. Keep the additive schema fields while stored events contain them; returning to the original schema requires a separately authorized migration that removes those fields first.