Skip to main content

Workspace identity recovery verification

Implements the approved design using the implementation plan. PR #464 is merged. This page distinguishes local verification from provider and deployed acceptance.

The November 13 provider checkpoint verifies owned-account exact-name lookup, eleven named roles and five non-empty audit rows accepted by the real recovery parser. Production canonical-target preparation completed for BITRATE's current scope. The first collector rollout uncovered a missing backend capability literal; the repair regression uses the worker's actual capability array. Its 200 focused checks and backend typecheck pass. These facts do not establish activation or a completed historical recovery job.

Live verification also exposed a recovery-progress gap at the existing four-request integration limit: three ordinary polls could claim recovery without dispatching any audit page. The actual worker harness reproduced twelve provider reads and zero recovery pages. The correction waits for local/shared capacity within the existing 90-second background allowance and reuses authority within the existing 30-second freshness margin or refreshes stale authority under a separate budget. The same three-poll case then processes three pages, one per poll.

All 317 worker tests and 39 release/worker contract tests pass, including deadline, shutdown, permission loss, group mismatch, expired authority, revoked scope and repeated budget denial. Eight additional red-to-green cases cover a budget reply arriving after shutdown/deadline and stopping during the first authority read. Each read checks the boundary, while an already-granted two-request reservation remains charged. Recovery shares the existing catch-up deadline, preserving ownership-proof polling headroom: repeated denials yield after sixty plus thirty seconds, and catch-up that uses the allowance does not grant recovery a fresh window. These cases restore the existing background-work bound rather than promising proof freshness against unrelated higher-priority delays.

Heartbeat rejection and transport failures during recovery waits reach the outer collector failure handler, matching ordinary catch-up waits. An authority refresh that needs two requests stops without retrying when either local limit is below two. Neither limits nor higher-priority ordering change. The runbook records the bounded wait and continuation behavior; synthetic progress is separate from the eventual live checkpoint.

The subsequent live rollout exposed a second starvation path: ordinary quiet scans completed an older fixed window, immediately opened another moving window and consumed the background allowance before historical recovery. The earlier three-poll fixture fabricated already-current coverage, so it did not prove this interaction. A reproduction using registered Convex scan/recovery mutations and the real worker helpers demonstrates the failure. The correction limits ordinary work to one successful durable step while an owner recovery is active, then attempts a supplementary historical page. Budget-deferred attempts do not count as that step. Ordinary catch-up retains its 32-step allowance without an active job. This preserves ordinary-first ordering and request limits, with slower ordinary coverage while the repair runs. The follow-up passes 321 worker tests, 34 registered backend recovery tests and 39 release/worker contracts. The real scan cases advance five historical pages and finalize ordinary coverage across six polls from both verification and completed-coverage starting states. Live acceptance still requires the deployed checkpoint to advance.

Provider checkpoint​

On November 12, 2026, the connected AWS read route authenticated to the BASIC owning account and expected operator role. An exact tagged-resource read found the canonical VRDex fixed-egress login host stopped. The checked-in collector service explicitly disables ECS Exec. The existing proof configuration names Oak and the consenting BITRATE group.

No infrastructure was started or changed, no credentials were extracted or rotated, and no live provider requests were made for this checkpoint. Fresh exact-user name lookup, role-list payload coverage and historical audit recovery coverage therefore remain unverified. The existing general collector runtime and past cached names do not establish this checkpoint.

The remaining controlled test uses the canonical login-host tunnel and approved collector account, with a small set of exact missing-name IDs from BITRATE history, one role-list read and a bounded recent audit interval. Record only request counts, exact-ID-match booleans and field-presence/count results. Do not retain raw provider payloads. The checkpoint must not create roles, change profiles, send invitations or alter membership. Starting the currently stopped host is a separate infrastructure action; implementation does not authorize doing that silently.

Local and CI evidence​

The private people foundation passes 65 related backend tests, four focused worker tests and backend typecheck. Independent review found two defects, both fixed and accepted in scoped re-review: concurrent rate-limit results retain the longest account cooldown, and an incomplete reference scan cannot delete a name or discard queued work. Regressions reproduce both original failures and verify the fixes.

The workspace UI passes 158 desktop/mobile browser cases, followed by focused regressions for stored invitation remapping, missing role evidence and access restoration. Eight new provenance/collision regressions first failed, then passed; all 148 affected browser cases also pass. Web typecheck and focused lint pass. Tests exercise production components and hooks through synthetic transports, including name updates during recipient selection and confirmation, exact cancellation revisions, source/access/epoch changes, expiry and bounded retries. Independent task review accepted both provenance and collision fixes.

The integrated recovery backend passes 122 focused backend/HTTP/runtime tests, the full 283-test collector worker suite and backend typecheck. Regressions cover credential rotation during an in-flight claim, concurrent cooldown ordering, every raw row consuming the recovery cap, stale results after stop, exact immutable matching, fixed-window resume, role-label provenance and bounded cleanup. A subsequent parser-boundary fix reproduces and handles null, primitive and array audit rows through the real provider parser and Convex checkpoint. Its 20 backend and 43 provider/worker checks pass; normal ingestion and foreign-group validation remain strict.

Final integrated verification passes all 234 desktop/mobile browser cases across people, invitations, members, scheduled actions, activity, recovery, milestones and analytics. Both backend and web typechecks pass at the integrated source head. Recovery/filter model and redirect tests pass 16/16. Final whole-branch review and hosted checks are separate gates recorded on the PR.

Final review corrections add canonical target projections for mixed-case historical IDs, a bounded scope-fenced backfill, dispatch-minute enforcement, settled recipient previews, per-source people tickets and distinct accessible member labels. Focused regressions first failed against the prior implementation, then passed. The corrected source passes 65 related backend checks, 25 worker checks, 10 filter/model checks, both typechecks, focused web lint and the screenshot-capture boundary check. Its combined eight-suite browser run passed 241 of 242 cases; the unchanged paused-clock analytics chart initially rendered no connection in one desktop case. All four variants of that chart test passed on a focused rerun without source changes. The new and corrected browser cases all passed. This records the transient test failure rather than treating the first combined run as entirely green.

A final two-source regression reproduced older loaded activity overwriting a newer recorded name. The hook now selects by source priority and observation time, preserving authorization clearing and distinct pending counts. Both new browser cases first failed; all 96 affected people/membership cases then passed, including scope restoration and expiry checks. Web typecheck, focused lint and the capture-boundary check passed after that final correction.

Scoped re-review found that failed settled invitation previews lacked a retry path. Four new desktop/mobile cases reproduced silent transient and malformed-input failures. The composer now displays the existing error/validation text and an explicit Retry control, while Review remains disabled until current input is valid. All 52 invitation browser cases passed after the fix, including unchanged-text retry, no automatic retry loop, and exact final recipient IDs after another edit. Web typecheck, focused lint and the screenshot-capture boundary check also passed.

Subsequent review found default-off automatic audit admission, hourly immutable-reference maintenance and manually repeated projection preparation. Five new regressions first failed against that head, then passed with an admission gate, twelve-hour audit-reference checks and scheduled projection pages. The follow-up passes 70 covering backend tests, 25 worker tests and backend typecheck. Coverage includes unchanged ordinary audit collection with the flag off, explicit cached-name views, immediate source rejection, cleanup behind more than 100 invalid references within the daily window, one-start preparation, duplicate starts, and stale-scope/foreign-evidence continuations. Five unused indexes were removed after checking callers. The runbook records the bounded completion query and backend-before-client rollout prerequisite; no hosted preparation was run.

A later inline review found that stopping or disabling recovery discarded a valid in-flight 429 cooldown. Five functional and real worker/control-HTTP cases first failed, then passed after separating attempt authentication from checkpoint authority. A terminal-checkpoint proof regression also failed during implementation and then passed with the final fence. The follow-up passes 116 covering backend/HTTP tests, 25 worker tests and backend typecheck. Cases cover stop, flag disable, expired or revoked audit authority, retained longer cooldowns, replay consumption, stale credentials/leases/scopes, owner resume, private status projection and no subsequent GET. Recovery evidence and checkpoint advancement still require current authority.

The same review wave also found permanent viewer-derived audit references and whole-view failures from one denied stored operation. Seven focused assertions reproduced the issues, then passed with disabled audit admission, 30-day viewer retention and operation-only partial resolution. The consolidated wave passes 122 backend/HTTP tests, 25 worker tests and backend typecheck. Coverage includes legacy-reference expiry, unchanged automatic collection policy, retained cached names without new audit references, mixed allowed/disabled/foreign/missing operations, all-foreign empty results without provider work, reactive feature/role loss and strict raw-review/batch authorization.

The subsequent UI review identified mixed-case identity joins, partial operation groups changing on pagination and one query error hiding all names. Nine focused desktop regressions reproduced these cases. Canonical user-ID comparisons now cover all private-name callers, visible operation groups remain stable on append, and only failed views are omitted. The final eight-suite browser run passes all 266 desktop/mobile cases, including exact mixed-case payload IDs and revisions, filtered and underfilled pagination, removal/restoration, failed-chunk pending counts and global access clearing. The first combined run exposed two fixture expiry failures; correcting expired grant-ID reuse restored both without weakening the production expiry check. Mobile member, scheduled and invitation confirmation captures were visually inspected for names, original full IDs, control separation and overflow.

Reactive activity now shares the stable visible-ID grouping used by operations. A production-component regression first reproduced loaded names disappearing when a new event grew a pinned page. With new admissions held pending, the corrected desktop/mobile fixture retains the two loaded groups and admits only the new audit ID. Reordering preserves grants, removal/restoration requires fresh admission, later pages admit only new IDs, and filters admit only visible audit IDs. The covering eight-suite browser run passes 268 cases; web typecheck, focused lint and the screenshot-capture boundary check pass. Existing authority-scope and expiry regressions still pass. Desktop/mobile captures were inspected with names visible during the held admission.

Subsequent review adds bounded compaction for sustained individual prepends, monotonic grant deadlines calibrated by the mutation's server timestamp, and own-key lookups for unfamiliar event types. Regressions first reproduced excessive active subscriptions, fast-clock name loss, slow-clock renewal failure and prototype-key render crashes. Compaction permits ordinary stable grouping and infrequently repacks all visible IDs when the count exceeds the greater of eight groups or twice the packed count. The sustained-prepend case then loads 260 visible rows to verify the bound scales with history. Clock tests cover both one-hour offsets, pending names, retained grants, expiry renewal and a response held beyond its grant; backend tests verify fresh calibration on retained grants without extending their expiry. Prototype-key events retain existing fallback labels and exact Details evidence. All 278 covering desktop/mobile cases and 26 people backend cases pass, along with both typechecks, focused lint, capture boundaries and markdown lint. Desktop/mobile prototype-key captures were visually inspected for readable labels and exact evidence.

Desktop/mobile screenshots cover invitation confirmation, scheduled cancellation, activity roles, filters, history recovery and the people-view lifecycle. Visual inspection checked control separation, exact IDs, mobile wrapping, long names, fixed repair bounds/counts and recorded/recovered/observed provenance. These stories are outside the committed baseline inventory, so their review screenshots do not require blanket baseline regeneration. CI comparisons still run for selected existing baselines. Markdown lint passes across 367 files, and the documentation production build succeeds with nonblocking local cache, dependency-data age and update-check warnings.

Synthetic tests and the throwaway design previews do not prove live provider delivery. At two name reads per minute, a 100-person invitation review cannot resolve every missing name during its 15-minute grant. Unresolved names retain their exact operational IDs and do not block otherwise valid review.

The final PR's checks and review surfaces record exact-head acceptance. Local synthetic evidence does not establish provider acceptance or deployment.

Rollout boundary​

This task delivers code and a merge-ready PR, not a production rollout or historical repair run. Deploy compatible backend/worker support and finish the bounded canonical-target backfill for each intended current integration/epoch before new clients. The collector runbook records the exact scope and continuation contract. Unfiltered history stays available; person-filtered reads fail explicitly until their selected range is prepared, with Retry and Clear filters available. Keep new provider recovery capabilities gated until the checkpoint and intended rollout are accepted. Existing lookup/collector behavior must continue to work during an additive rollout or rollback.