refactor(app): complete session startup composition
Move the live-session reset and routing graph, combat and diagnostic command targets, and the sole gameplay input subscriber into Phase 7 before frame publication. Add exact retryable ownership for late bindings so partial startup cannot strand session or component teardown edges. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
parent
7fa60971e2
commit
826f9ea9b5
22 changed files with 924 additions and 412 deletions
|
|
@ -31,6 +31,24 @@ public sealed class LivePresentationCompositionTests
|
|||
bindings.Adopt("late", new RetryBinding("late", calls, 0)));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TransferableAdoptionRollsBackExactlyAndRetriesFailure()
|
||||
{
|
||||
var calls = new List<string>();
|
||||
var bindings = new LivePresentationRuntimeBindings();
|
||||
bindings.Adopt("stable", new RetryBinding("stable", calls, 0));
|
||||
IDisposable adoption = bindings.AdoptOwned(
|
||||
"candidate",
|
||||
new RetryBinding("candidate", calls, 1));
|
||||
|
||||
Assert.Throws<InvalidOperationException>(adoption.Dispose);
|
||||
adoption.Dispose();
|
||||
adoption.Dispose();
|
||||
bindings.Dispose();
|
||||
|
||||
Assert.Equal(["candidate", "candidate", "stable"], calls);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CanonicalRuntimeSlotUsesExactOwnerBinding()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue