Skip to content

sminos: walk prep — live exports re-resolve their project, the daemon pinned to a Python that imports sminos, conflict reported as conflict, hub verbs documented (Arkho #86, 7.162.1) - #205

Merged
SSFSKIM merged 2 commits into
mainfrom
arkho-86-walk-prep-machine
Oct 17, 2026

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Arkho board ticket #86: four machine-side sminos defects found while preparing the desk's two-Mac acceptance walk (MAWS docs/doperpowers/plans/2026-10-16-desk-recomposition-walk.md). The owner enrolls both Macs and installs the daemon by hand from this, so each fix has to work the first time on a real Mac.

What changes

  1. Live exports re-resolve their project. The bridge child resolved the session's project once and kept it for the process's life, so a session started before its checkout got a .smns (or before that .smns named a hub) kept exporting live <message> spans to the old project. sminos.export_live now takes the session's cwd and starts each export from nothing cached, as each hook run does: it resolves the project again, along with the machine's identity and the harness's records. Exports happen a few times a turn, and the append already reads the writer file whole, so the extra stats and small reads cost nothing that matters. The export thread is the only thread in the child that reads sminos's module caches. A session already running when its checkout becomes a hub project exports there from its next message, under the enrolled name, with no restart. This lifts the walk sheet's step 0.8 caveat.
  2. Python 3.10. sminos.py now stops under any Python older than 3.10 (MIN_PYTHON) with a message naming the fix. Before, it died with a TypeError partway through its import; macOS's /usr/bin/python3 is 3.9.6, and every sminos module still compiles on it, so the check is reached. daemon install pins the Python it ran on into the launchd agent and the systemd unit (<python> <sminos.py> daemon run), so the service starts even when the PATH it records finds an older python3 first. The install output names that interpreter. Verbs the daemon runs for desk RPCs now use its own interpreter rather than the bash launcher. In the unit's ExecStart, a $ in the script argument is written $$.
  3. conflict. An event that verifies, arriving at a position another event holds (or one already spent), is now reported to the hub as conflict instead of bad-code. The deployed hub (hub@47fa64ff) has admitted conflict since DC3 M3.
  4. SKILL.md now documents hub enroll / hub show, project init --hub, daemon policy, the Python requirement, and the pinned interpreter.

Tests

  • test-bridge-export.sh: a live child in a checkout with no .smns exports to the local project. The machine then enrolls and project init --hub writes a hub .smns, and the child's next export lands in the hub project under the enrolled name; the project is registered with its hub. This fails on origin/main's scripts (2 assertions) and passes here (23/23). The existing enrollment-only case still passes.
  • test-uplink.sh: a different event that verifies, at a held position, is refused conflict, and the held event's echo still imports as present (99/99).
  • test-sync.sh: the event at a tombstone now reports conflict, and the forgery still reports bad-code.
  • run-sminos-tests.sh (core, 1774/1774 locally):
    • The install pins the interpreter.
    • With a python3 reporting 3.9 first on PATH, daemon install is refused with the message and writes nothing. The same holds for this Mac's real /usr/bin/python3 3.9.6 (that case is skipped where no older Python exists).
    • Run with a newer Python from that shell, the install writes a service that starts and runs under its recorded environment alone.
    • run_verb under an old-first PATH runs on the daemon's own Python.

Review

One doperpowers:reviewer-high round. It found one real issue: the tests compared the pinned path to command -v python3, but Homebrew's python3 reports its versioned binary as sys.executable. That is fixed in 2de0474, and I verified pinning under Homebrew 3.14. It found no runtime defect in the cache reset, the pinning, the conflict reason, or the documented semantics.

Not verified: loading the agent with real launchctl/systemd, and pyenv interpreters.

… pinned to a Python that imports sminos, conflict reported as conflict, the hub verbs documented (Arkho #86, 7.162.1)

- The bridge child's live export starts from nothing cached, as each hook
  run does: the project of the session's cwd is resolved again, with the
  machine's identity and the harness's records. A session already running
  when its checkout gets a .smns (or one that comes to name a hub), or when
  its machine enrolls, exports to the new project under the enrolled name
  from its next message, without a restart.
- sminos.py stops under Python older than 3.10 (sminos.MIN_PYTHON) with what
  fixes it, instead of a TypeError mid-import; macOS's /usr/bin/python3 is
  3.9. `daemon install` pins the Python that ran it into the launchd agent
  and the systemd unit (`<python> <sminos.py> daemon run`), so the service
  starts though the PATH it records finds an older python3 first, and the
  verbs the daemon runs for desk RPCs use its own interpreter too.
- An event that verifies at a position another event holds (or that was
  spent) is reported to the hub as `conflict`, which the deployed hub admits
  since DC3 M3, not `bad-code`.
- SKILL.md documents `hub enroll` / `hub show`, `project init --hub`, and
  `daemon policy`, and the Python requirement.
…finds it — Homebrew's python3 reports its versioned binary (review of Arkho #86)

SKILL.md: a pinned Python that is removed calls for installing the daemon again.
@SSFSKIM
SSFSKIM merged commit 593ec94 into main Oct 17, 2026
9 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