noCV
ACACHE-109 · Recover cache uncertainty

Reconcile cache generations after a projection-schema release

Practice briefChoreExpert

A new release changes product projection shape while old and new API instances share cached envelopes.

Focused work estimate
5h + prerequisites
Priority in the scenario
Medium
Engineering practice
Schema compatibility · Recovery

Estimated field mix

  • Distributed systems70%
  • Platform engineering30%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

A fictional wholesale portal caches product availability descriptions across several API instances. Delayed invalidations and slow refreshes bring back old content after edits.

Setup prerequisites

  • Create two local cache clients and a synthetic authoritative product store.
  • Use a fake clock and controllable read/write barriers.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Use explicit projection namespaces and compatible-reader declarations.
  • Warm a new namespace from authoritative revisions.
  • Retire the old namespace only after old readers are gone.

Implementation constraints

  • Do not rewrite old cache values into a guessed new schema.

Verification to include

  • Run mixed-version clients against their declared namespaces.
  • Send a new envelope to an incompatible reader and verify safe miss or rejection.

Deliverables

  • Cache-generation rollout and compatibility drill

Rollout and recovery

Switch one synthetic cohort first; restore its previous namespace while keeping authoritative data unchanged.

Value of the work

For the engineer: Practice cache consistency, version guards and recoverable invalidation.

For the team: Review fast derived reads without losing authoritative state or tenant isolation.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.