Repository navigation
sminos: Resume only what has a transcript; a copy never takes a live alias; RPC and open timing - #283
Merged
Merged
Conversation
…alias; the ledger and the plane keep time Four machine-side defects from the desk's Resume of 2026-10-19, which resumed a --bg copy that had taken its seat's name and held no transcript: - sminos_rpc.plan() refuses a Resume `unsupported` when this machine holds no transcript of the session: `claude --bg --resume` would start an empty session under its id and report done. - held_alias (and so publish_renames, the join, the address) no longer adopts, for a seat-less session, a harness name that is the alias of a seat or of another current member of the project. The session keeps the alias it holds, else its short id. publish_renames gives a member that goes by its short id the source it joined with, so no rename follows. - daemon/rpcs.json keeps each RPC's `created` and `done_at` beside `at` and `launched_at`; a `stale` refusal says, in its one daemon.log line, when it was created, when the stream's reader took it, and its age. - sminos_plane logs one line per subscription open: subscribe to snapshot (or to its end before one) and the wait that ended it. sminos 1.0.1. Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
…onger does The suite pinned seat-less sessions taking a live seat's alias from their harness name, which the alias rule now refuses. Each case that tested what a shared alias does (ambiguity refused, #short picks one, the tui reaching each box by id) now makes the collision the way it can still arise: the session goes by the name before a seat is named so. The pc case pins the new rule: a session named as a live seat goes by its short. Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
…not the seat's The review found no test of the shadowing passed to the hook-time callers: the address line and a member's own alias now read the copy's short. Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
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.
Machine-side fixes from the desk's Resume of 2026-10-19. The desk resumed a
--bgcopy that had inherited the seatacc-ask71's name and held no transcript, soclaude --bg --resumestarted an empty session and the RPC still reporteddone.sminos_rpc.plan()refuses a Resume withunsupported("this machine holds no transcript of it, so there is nothing to resume") whensminos.transcript_now(sid)finds none. The check runs after the retired-seat and session-live checks and before the claim.held_aliastakes a newshadowedpredicate (shadowing()), which every caller passes: the join,_member/view_of,_member_alias,default_from,guide_text,session_address. A seat-less session does not adopt a harness name equal to the alias of a non-retired seat of its project, or of another current member (its own lineage excluded). It keeps the alias it holds, else its short id. Becausepublish_renamespublishes the alias the member goes by, no rename onto the shadowed name is published. Aliases a human gives can still collide: a seat named after a session that already goes by that name. The doctrine insminos.py's usage text says so. Trade-off: the engine record saysnameSource: userboth for an inherited name and for a /rename, so a /rename onto a live member's alias is not taken either. The session's title still shows it.daemon/rpcs.jsonentries carrycreated(epoch) anddone_atbesideatandlaunched_at. Astalerefusal's daemon.log line gives the RPC's created time, the time the stream's reader took the frame (threaded fromStreamthroughLink.received), and its age.sminos_planewrites one daemon.log line per open: subscribe → snapshot, or → its end before one, and which wait ended it (bridge snapshot, transcript-only with the reason, timeout, discontinuity or error, closed before its snapshot).Tests:
test_rpcs.pycovers the transcript refusal, the ledger times, the stale log line, andCopyNames: a copy of a stopped seat, a copy of a current member, a free name taken, and the hook-time signing alias.test_session_plane.pycovers the open line for each wait. Every new test failed against main's scripts. Three shell cases inrun-sminos-tests.shpinned the old collision; they now make the collision the way it can still arise, and the pc case pins the new rule.sminos 1.0.1.
Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)