Cross-Surface Fix Propagation
Carry the fix across every surface that computes the same decision: clients, services, scripts and cached policy, since one surface is never the whole story
Use when: the same decision logic appears in several places: API handler, background job, CLI utility, mobile client or generated policy
Avoid when: the decision logic lives in exactly one authoritative place and every caller provably goes through it
Procedure
- Search every surface that contains the decision logic, including generated files, vendored code and client-side bundles.
- Classify each surface: authoritative server, derived client mirror, unrelated coincidence or stale copy that should be deleted.
- Fix the authoritative surface first, then every mirror that can act on the same data, even the ones shipped to compiled clients.
- Confirm generation pipelines re-run, since policy files or client bundles regenerate only when the pipeline draws them.
- Ship client binaries in a separate release if compiled mirrors cannot be patched idempotently.
- Record each surface and its change status, so the fix's completeness claims are enumerable rather than gestured at.
Signals
- The fix applies server-side but the mobile client still enforces the outdated rule, producing two divergent views of the same object.
- A background job computes the same check in its own copy and still authorizes what the primary fix now refuses.
- Generated policy files stay unchanged because the generator's input was updated without re-running the generation.
- A vendored copy exists whose upstream is long dead, meaning the surface should be deleted rather than patched.
Patterns
1. Surface row
surfaces: server handler (fixed), worker copy (fixed), mobile mirror (release pending), generated policy (regen done)
2. Coincidence check
decide: mobile uses server response not local copy -> mirror wasted, file removal next release
3. Release row
client release ships the same calendar day or the server fix alone leaves the decision reachable
Pitfalls
- Fixing the server surface and calling propagation done, which classically leaves the worker job as the next breach path.
- Assuming clients cannot act on a mirror, especially when the mirror is a cache of what the client authorizes on its own UI.
- Skipping regeneration because policy files look deterministic, while the generator's cache hides its real inputs.
Done when
- Every surface carrying the decision is enumerated and classified, and each one's fix status is recorded explicitly.
- Regenerate or release follow-ups are scheduled, not merely discussed, so mirrored clients converge on the same behavior.
References
1---2name: cross-surface-fix-propagation3description: "Carry the fix across every surface that computes the same decision: clients, services, scripts and cached policy, since one surface is never the whole story. Use when the same decision logic appears in several places: API handler, background job, CLI utility, mobile client or generated policy"4pack: patchwise5version: 1.0.06category: defensive-security7tags: [propagation, consistency, fix]8metadata:9 source: https://skillmd.com/skills/wsh7ash/cross-surface-fix-propagation10---1112# Cross-Surface Fix Propagation1314> Carry the fix across every surface that computes the same decision: clients, services, scripts and cached policy, since one surface is never the whole story1516**Use when:** the same decision logic appears in several places: API handler, background job, CLI utility, mobile client or generated policy1718**Avoid when:** the decision logic lives in exactly one authoritative place and every caller provably goes through it1920## Procedure21221. Search every surface that contains the decision logic, including generated files, vendored code and client-side bundles.232. Classify each surface: authoritative server, derived client mirror, unrelated coincidence or stale copy that should be deleted.243. Fix the authoritative surface first, then every mirror that can act on the same data, even the ones shipped to compiled clients.254. Confirm generation pipelines re-run, since policy files or client bundles regenerate only when the pipeline draws them.265. Ship client binaries in a separate release if compiled mirrors cannot be patched idempotently.276. Record each surface and its change status, so the fix's completeness claims are enumerable rather than gestured at.2829## Signals3031- The fix applies server-side but the mobile client still enforces the outdated rule, producing two divergent views of the same object.32- A background job computes the same check in its own copy and still authorizes what the primary fix now refuses.33- Generated policy files stay unchanged because the generator's input was updated without re-running the generation.34- A vendored copy exists whose upstream is long dead, meaning the surface should be deleted rather than patched.3536## Patterns3738**1. Surface row**3940```text41surfaces: server handler (fixed), worker copy (fixed), mobile mirror (release pending), generated policy (regen done)42```4344**2. Coincidence check**4546```text47decide: mobile uses server response not local copy -> mirror wasted, file removal next release48```4950**3. Release row**5152```text53client release ships the same calendar day or the server fix alone leaves the decision reachable54```5556## Pitfalls5758- Fixing the server surface and calling propagation done, which classically leaves the worker job as the next breach path.59- Assuming clients cannot act on a mirror, especially when the mirror is a cache of what the client authorizes on its own UI.60- Skipping regeneration because policy files look deterministic, while the generator's cache hides its real inputs.6162## Done when6364- Every surface carrying the decision is enumerated and classified, and each one's fix status is recorded explicitly.65- Regenerate or release follow-ups are scheduled, not merely discussed, so mirrored clients converge on the same behavior.6667## References6869- [OWASP - API security guidance](https://owasp.org/www-project-api-security/)70- [OWASP - mobile testing guideline](https://owasp.org/www-project-mobile-security-testing-guide/)