feat(studio-server): Civ7TunerSession — Effect-scoped owner of the shared tuner connection + backoff gate#1655
Merged
Merged
Conversation
|
Railway preview (MapGen Studio): not provisioned for this PR. Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.
Debug: |
Owner
Author
mateicanavra
force-pushed
the
design/tuner-effect-session
branch
from
June 12, 2026 20:44
5b758bf to
e9a8435
Compare
mateicanavra
force-pushed
the
design/tuner-session-seam
branch
2 times, most recently
from
June 12, 2026 22:30
bffb13b to
3ce8eec
Compare
mateicanavra
force-pushed
the
design/tuner-effect-session
branch
2 times, most recently
from
June 12, 2026 22:44
c0d8bde to
f58e2f6
Compare
This was referenced Jun 12, 2026
Owner
Author
Merge activity
|
mateicanavra
changed the base branch from
design/tuner-session-seam
to
graphite-base/1655
June 12, 2026 22:46
…ared tuner connection + backoff gate
Layer.scoped + acquireRelease around ONE Civ7DirectControlSession (lazy
connect, self-healing, listenerId-multiplexed); release = graceful FIN on
runtime.dispose(). use(run) gates on the session's consecutive
response-timeout counter: past the threshold (4) reads fail fast with
typed Civ7TunerBackoffError for one cooldown (15s), half-open after,
reset on success — connection-refused stays un-gated so readiness keeps
reporting fast. Civ7TunerClient routes every tuner read through the
shared session (savedConfigurations is filesystem-only and bypasses it).
StudioRpcHandle gains tuner.{session,health} ports + dispose() — nothing
closed the runtime scope before, so finalizers never ran.
Also dedupes effect to 3.21.3 across the workspace (the app/control-orpc
pinned 3.21.2 → mixed-runtime warning).
Gates: studio-server tsc + build; studio app tsc + 204 tests (3 new pins:
one shared connection + FIN on dispose, gate fail-fast/half-open/reset,
wedge-suspicion health).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
mateicanavra
force-pushed
the
design/tuner-effect-session
branch
from
June 12, 2026 22:46
f58e2f6 to
1796ee0
Compare
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.

Layer.scoped + acquireRelease around ONE Civ7DirectControlSession (lazy
connect, self-healing, listenerId-multiplexed); release = graceful FIN on
runtime.dispose(). use(run) gates on the session's consecutive
response-timeout counter: past the threshold (4) reads fail fast with
typed Civ7TunerBackoffError for one cooldown (15s), half-open after,
reset on success — connection-refused stays un-gated so readiness keeps
reporting fast. Civ7TunerClient routes every tuner read through the
shared session (savedConfigurations is filesystem-only and bypasses it).
StudioRpcHandle gains tuner.{session,health} ports + dispose() — nothing
closed the runtime scope before, so finalizers never ran.
Also dedupes effect to 3.21.3 across the workspace (the app/control-orpc
pinned 3.21.2 → mixed-runtime warning).
Gates: studio-server tsc + build; studio app tsc + 204 tests (3 new pins:
one shared connection + FIN on dispose, gate fail-fast/half-open/reset,
wedge-suspicion health).
Co-Authored-By: Claude Fable 5 noreply@anthropic.com