Skip to content

sminos: Resume only what has a transcript; a copy never takes a live alias; RPC and open timing - #283

Merged
SSFSKIM merged 3 commits into
mainfrom
sminos-resume-fixes
Oct 20, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
sminos-resume-fixes

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Machine-side fixes from the desk's Resume of 2026-10-19. The desk resumed a --bg copy that had inherited the seat acc-ask71's name and held no transcript, so claude --bg --resume started an empty session and the RPC still reported done.

  • Resume needs a transcript. sminos_rpc.plan() refuses a Resume with unsupported ("this machine holds no transcript of it, so there is nothing to resume") when sminos.transcript_now(sid) finds none. The check runs after the retired-seat and session-live checks and before the claim.
  • A copy never takes a live identity's alias. held_alias takes a new shadowed predicate (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. Because publish_renames publishes 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 in sminos.py's usage text says so. Trade-off: the engine record says nameSource: user both 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.
  • The ledger keeps time. daemon/rpcs.json entries carry created (epoch) and done_at beside at and launched_at. A stale refusal's daemon.log line gives the RPC's created time, the time the stream's reader took the frame (threaded from Stream through Link.received), and its age.
  • Subscription open timing. sminos_plane writes 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.py covers the transcript refusal, the ledger times, the stale log line, and CopyNames: 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.py covers the open line for each wait. Every new test failed against main's scripts. Three shell cases in run-sminos-tests.sh pinned 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)

…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)
@SSFSKIM
SSFSKIM merged commit fe7884e into main Oct 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant