You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Client saved-connection records as one state machine (#4925) #4973
Keep one table as data for save, observe, claim, migrate, replace, and remove. Define each transition's owner check, record update, and failure result.
Preserve the distinct records for case variants and the read-only behavior of status. Serialize legacy alias claims across processes before disconnect or replacement tears down a connection.
Preserve the exact session owner's stored scope during migration. Use a lossless identity for new scope derivation.
Verification
Exercise concurrent save, disconnect, and migration with case variants and invalid or unreadable legacy files. Verify that a stale client cannot remove another session's record or release its lease.
Related work
Follow #4925. Reuse the scope and serialization work in #4946. Schedule this after the daemon migration.
The issue requests implementing saved-connection records as a single transition-owner state machine with specific behavior and verification requirements. This describes new/refactored behavior, not a defect, and provides enough scope for maintainers to act on it.
Decision: saved-connection owner: Keep the post-#4971 scheduling and name merged #4925 as the existing case-safe file baseline. Import the two original #4946 requirements and disposition its later comments on observation-only call sites, hard-link support, unreadable records, corrupt default fallback and legacy .active-session pointer collisions. Preserve exact-owner scope and serialized mutation; #4947 already refuses labels-only refresh. Keep #4858 as a separate client selection defect that consumes the resulting observation API.
Activity
apex-sentinel-staging commentedon Nov 22, 2026
Apex Sentinel · Issue review
Suggested label:
featureThe issue requests implementing saved-connection records as a single transition-owner state machine with specific behavior and verification requirements. This describes new/refactored behavior, not a defect, and provides enough scope for maintainers to act on it.
thymikee commentedon Nov 22, 2026
ADR 0040 alignment (ADR)
Decision: saved-connection owner: Keep the post-#4971 scheduling and name merged #4925 as the existing case-safe file baseline. Import the two original #4946 requirements and disposition its later comments on observation-only call sites, hard-link support, unreadable records, corrupt default fallback and legacy
.active-sessionpointer collisions. Preserve exact-owner scope and serialized mutation; #4947 already refuses labels-only refresh. Keep #4858 as a separate client selection defect that consumes the resulting observation API.