Repository navigation
Description
What is broken
Independent review of the unmerged 5a PR #733 at ff7d65f found two sides of the same request/result ownership race.
The server client correctly takes one coherent address/token snapshot at send time. TimetableRepositoryImpl instead captures an active class/tag key before sending and invokes an unqualified token-rejection callback wired to leaveActive() afterward.
- Send a request for membership A, switch to B, then release DEVICE_TOKEN_INVALID for A. The callback can remove B and its cache/tags while retaining A.
- Replace A with a newly issued token before the old refusal arrives. The old refusal must not remove the replacement.
- Complete leave/sign-out, then release a delayed Changed response. The response can recreate rows after the wipe.
- Select A before remote.window but switch to B before the interceptor signs. Data resolved for B can receive A's ETag key.
Required behavior
Carry request-local provenance for the server and membership actually sent through success and refusal handling. Apply a response only while that membership still matches; revoke only the matching still-current token. Order result writes with leave/replacement/wipes so a completed exit cannot be undone. Key tags to the confirmed class, never the earlier selection.
Do not hold a lifecycle lock across network I/O, stop send-time credential freshness, remove another class, or expose tokens in diagnostics. Preserve the other memberships and both tag namespaces.
What will hold it
Deterministic delayed-response tests for A-to-B switching, same-class token replacement, leave/sign-out before success, switch between repository selection and actual send, and an exit racing with result application. Keep the real production session/preferences/cache wiring in the fixture.
Found by the one independent whole-branch review of #733. This is code-review evidence; no family rollout, on-device reproduction or production incident is claimed. Parent programme #273; fix belongs in the still-open 5a batch.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
Bind schedule results to the membership that sent the request