Skip to content

sminos: a family chat per host; say/chat, the reach rule, retire --cascade; board verbs retired (7.125.0) - #185

Merged
SSFSKIM merged 23 commits into
mainfrom
sminos-family
Sep 27, 2026
Merged

SSFSKIM merged 23 commits into
mainfrom
sminos-family

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Every sminos family has a group chat. A seat that spawns children hosts a family (itself plus the seats whose parent is its alias). sminos say writes one message to the family's record ($SMINOS_HOME/chats/<host-seat-id>.jsonl) and pushes a frame over the inbox socket the harness already reads: tags at the start of the text address members (@alias reaches that member and brings a stopped one back; @all reaches every live member), an untagged message goes to the host (a root's goes to its children), and --team selects the chat a seat hosts. sminos chat prints the record and moves the reader's watermark; a frame's first line reads [sminos chat <host> #<id> from <sender> → <targets> | unread <n>]. The operator writes with say --in <host> and reads with chat <host>.
  • A family seat's CLI surface is its families. list shows parent, siblings, and children; spawn derives group and parent from the caller; every other verb resolves only inside that reach and refuses the rest with a pointer to the native ListAgents/SendMessage tools. A seat in its startup window (record written, session id not yet promoted) is still found as the caller through its launch id. Pipeline roots spawned without --group are not family seats and see no change.
  • retire refuses a host with live children unless --cascade, which retires the tree depth-first, siblings in alias order, bounded to the caller's reach or its own subtree. A blocked harness row with no live process now reads stopped (it read blocked forever).
  • The seat protocol is rewritten around the family. The spawn preamble's first instruction is sminos chat -n 30; SKILL.md describes the family, the reach rule, say/chat, and a host's role; decomposing names a sminos child seat as one way a leaf runs.
  • What leaves: post/board, topology/view/groups, mark, join/leave, the listen/log pointers, and the legacy codex process handling (six engine: codex records were removed from the real registry first). The TUI's b panel shows the focused seat's family chat. The CLI has 19 verbs where it had 25; sminos.py is about the same size (3040 → 3068 lines).
  • Design and record: docs/doperpowers/specs/2026-09-26-sminos-family-chat-design.md (Decision Log, Surprises & Discoveries with the live evidence, Outcomes & Retrospective). Version 7.125.0.

Verification

  • tests/sminos/run-sminos-tests.sh: all 746 assertions passed (561 at the merge base). tests/skill-links/test-cross-doc-refs.sh, scripts/lint-shell.sh, and every tests/issue-tracker/test-*.sh and tests/claude-code/board-api/test-*.sh pass (31 scripts, run at each milestone boundary).
  • Live proof on the real harness (spec, Surprises & Discoveries): from a terminal, spawn lead … --group fam; lead spawned a and b from its Bash tool, a spawned a1. a's untagged report started a turn in the idle lead (transcript: [sminos chat lead #1 from b → lead]); a's --team message was recorded in a's chat only; lead's @a @b reached both; from inside a1, list showed a and a1 only and say "@b …" was refused with the native pointer; retire fam/lead was refused with the children named, and --cascade retired a1, a, b, lead in that order. A frame pushed to a busy seat is absorbed into its running turn (queued_command, absorbed_mid_turn), not dropped.
  • Three defects only the live run showed, fixed with assertions (2a5fa97): a one-letter alias lost to hex id prefixes in find_seat (chat a was ambiguous); an @ anywhere in the text was an address, so a report quoting a refused @b could not be sent (tags are now the leading run only); a host's own message counted as its unread.
  • Whole-branch review at reviewer-high: five findings, all fixed with RED-then-GREEN assertions (36feaac): a push could resume a seat retired mid fan-out (retirement is now decided on the reloaded record under the seat's lifecycle lock); an interrupted append left a torn last line that swallowed the next message; a family seat's sync --all reached the fleet; the cascade recursed on a parent cycle; one negative assertion could not fail. The re-review of that commit returned two items logged as docs/doperpowers/TECH-DEBT.md rows 28 and 29 (a fully live parent cycle cannot be cascade-retired; the push lock has no interleaving probe), which closed the loop.
  • Skill text (SKILL.md, the preamble): hermetic text assertions plus the live run above; no eval-harness pass. The live run did change the preamble once: the grandchild spent a minute in the source when its inline @b was refused, so the preamble now states the tag rule in one sentence.

…ily seats, startup-window caller, exact unread, flock chat lock, ResumeRefused, three-level live proof)
…wo messages; list is scoped for family seats only; the seam suites' command
…tart of a message, a member's own messages are not its unread

Three defects from the live family-chat proof:
- find_seat tried seat-id and short-id prefixes before aliases, so 'chat a'
  was ambiguous (or wrong) whenever a hex id started with 'a'. Exact ids come
  first, then a unique bare alias, then the prefixes.
- say treated any @name in the body as a tag, refusing a report that quoted
  an out-of-reach alias. Only the leading run of @name tokens addresses.
- unread_for counted a member's own messages as its unread.
…fects and their decisions (leading tags, alias before prefixes, own messages not unread)
… lock, a torn chat line is ended before the next append, family sync --all stays in reach, cascade survives parent cycles

- push_member rechecks retirement on the reloaded record, and holds the
  seat's lifecycle lock across the recheck and the resume, so a member
  retired mid fan-out is recorded, not resumed.
- chat_append ends an unterminated trailing fragment with a newline
  before writing, so the new record stays readable and updatable.
- bare sync / sync --all from a family seat reconciles only reach_of(caller).
- the retire --cascade collector visits each seat once (self-parent and
  two-seat cycles no longer recurse); a seat is not its own live child.
- the cleared-unread test matches the escaped arrow the frames carry and
  asserts the message-6 frame exists.
… as debt (TECH-DEBT 28–30), Outcomes & Retrospective
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