Solutionunvalidated
gate the write, not the door — inside the service write method itself (service.ingest()). Tension: the invariant lives with the write, not with each caller. Outcome: add a test that calls the service / triggers the background job with the flag OFF and asserts zero writes occur.
63ba2eb9-1778-49fc-bf8f-c4bf55d0534e
gate the write, not the door — inside the service write method itself (service.ingest()). Tension: the invariant lives with the write, not with each caller. Outcome: add a test that calls the service / triggers the background job with the flag OFF and asserts zero writes occur.