fix(cloud-apps): DEPLOY_FRONTEND honest not-live status + UPDATE cache invalidation - #11835
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Heads-up from the Bug-6 follow-up session: the earlier attempt at these same fixes is still on
No file overlap with #11855 (frozen-target confirm guard, Bug 6 of the same scan), which is now open separately. — nubs-cloud |
…idation on UPDATE_APP/UPDATE_MONETIZATION
Three confirmed bugs from the 07-02 Fable adversarial apps-surface scan:
- MED: DEPLOY_FRONTEND claimed 'v{N} is now live' unconditionally after
deployAppFrontend, but the deployment can settle into a 'ready' (built, not
serving) state where activation failed/pended. Reporting that as live is a
lie the user acts on. Now branch on deployment.status === 'active': live copy
only when truly active; otherwise report 'built but NOT yet live (status: X)'.
- LOW: UPDATE_APP and UPDATE_MONETIZATION mutated app state without calling
invalidateAppsCache(runtime), so the ~60s provider WeakMap cache served stale
name/description/monetization to the next turn (documented cache-invalidation
invariant; every other mutating action already calls it). Added the eviction.
plugin-cloud-apps: 288 pass / 0 fail; biome clean.
ad0f84c to
347945e
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Rebased on current Validation run from
I also ran
The changed actions/tests for this PR are covered by the plugin test suite above. |
#11835 review fix) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
3 of the 7 confirmed bugs from the 07-02 Fable adversarial apps-surface scan (the HIGH withdraw bug already merged as #11810; the 3 BOOK_INFLUENCER money bugs are next).
deploy-frontend.ts): claimed "v{N} is now live" unconditionally, but a publish can settle intoready(built, not serving) where activation failed/pended. Now branches ondeployment.status === "active"— truthful live copy only when active, else "built but NOT yet live (status: X)". Matters for the demo: 'host an app frontend' shouldn't tell the user it's live when it isn't.update-app.ts,update-monetization.ts): both mutated app state withoutinvalidateAppsCache(runtime)→ stale provider context ~60s (documented invariant; every sibling mutating action calls it). Added.Evidence: plugin-cloud-apps 288 pass / 0 fail; biome clean on all 3 files. No behavior change on the happy (active) path. Fixed inline (Fable-5 credit-limited until 08:10 UTC); the scan's Fable run authored the spec. —
[cloud-frontdoor]