Repository navigation
Playback: a foreground Load refused while the plaintext grants return is claimed again - #1018
Merged
Merged
Conversation
… is claimed again
The DID foreground edge withdraws every plaintext grant (grant::network_changed) and claims
the parked Load in the same breath, so a server reached over a consented plaintext grant
refused it ('stream: refused insecure credential transport'). The re-discovery minted the
grant back a moment later and nothing claimed the Load again: the film stayed on a still
frame after an app switch. The frame step now claims the refused Load again when the grant
revision moves, up to three times.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…wake - retry_refused_foreground repeated the drive_foreground / finish_foreground_launch / idle::invalidate body of claim_press_after_decoder_release; both now call one claim_parked_foreground(app, input). The retry claims with ForegroundInput::DidForeground directly (wake_input(Wake, _) is that input for any saved clock). - Drop the awaiting_load() half of the guard: claimable_clock() is Some only for Suspended and Prepared, both of which awaiting_load() already covers. - Spell the retry countdown as (left > 1).then_some((now, left - 1)). - Move the retry call above the plaintext-upgrade comment it had been spliced into, with its own one-line comment. Behaviour identical. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
|
Thanks @tiper, a still frame after an app switch is a nasty one to track down to the grant withdrawal. Merged. What I changed before merging, behaviour the same:
FYI the first CI run died on a |
Contributor
Author
|
Glad I could help, and thanks for tidying it up before merging. |
GLinnik21
added a commit
that referenced
this pull request
Oct 26, 2026
…ecycle's alone; the ladder owns refusals observed after the call returned The pump's failed-open ladder and the foreground lifecycle both acted on a synchronous refusal of a foreground-resume Load (StartFailed + load_failed): the pump set Error, then the lifecycle settled the same refusal as #1018's retry and retired the Engine. Split by who observes the refusal. The foreground actuator marks the Engine whose exact Load attempt it follows (Engine::foreground_follows_load, set where it starts or takes over following an attempt). The pump decides before stepping the machine: a failed Load on a followed Engine whose route_start_status is Failed is the Load call's own result, so it returns and the lifecycle's Failed settlement owns it. A refusal seen after the call returned, and a fresh play's synchronous refusal (no lifecycle behind it), stay the ladder's. The step-0 SYNC test is flipped to the desired behaviour (red first: the pump left Error), the ASYNC test is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
tiper
added a commit
to tiper/fin-native
that referenced
this pull request
Oct 26, 2026
The maintainer pushed "Simplify:" commits onto every PR of ours he merged (plxnative#839, plxnative#937, plxnative#1018, plxnative#1034), behaviour unchanged each time. The skill writes down what he changed (reuse the existing path, one owner per state, values over globals, one named step for a repeated sequence, no redundant guards, docs kept true) and the steps to take before opening an upstream PR so he does not have to. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The DID foreground edge withdraws every plaintext grant (grant::network_changed) and claims the parked Load in the same breath, so a server reached over a consented plaintext grant refused it ('stream: refused insecure credential transport'). The re-discovery minted the grant back a moment later and nothing claimed the Load again: the film stayed on a still frame after an app switch. The frame step now claims the refused Load again when the grant revision moves, up to three times.