Repository navigation
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
Conversation
… 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.
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.
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
.smns(or before that.smnsnamed a hub) kept exporting live<message>spans to the old project.sminos.export_livenow 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.sminos.pynow stops under any Python older than 3.10 (MIN_PYTHON) with a message naming the fix. Before, it died with aTypeErrorpartway through its import; macOS's/usr/bin/python3is 3.9.6, and every sminos module still compiles on it, so the check is reached.daemon installpins 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 olderpython3first. 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'sExecStart, a$in the script argument is written$$.conflict. An event that verifies, arriving at a position another event holds (or one already spent), is now reported to the hub asconflictinstead ofbad-code. The deployed hub (hub@47fa64ff) has admittedconflictsince DC3 M3.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.smnsexports to the local project. The machine then enrolls andproject init --hubwrites 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 refusedconflict, and the held event's echo still imports as present (99/99).test-sync.sh: the event at a tombstone now reportsconflict, and the forgery still reportsbad-code.run-sminos-tests.sh(core, 1774/1774 locally):python3reporting 3.9 first on PATH,daemon installis refused with the message and writes nothing. The same holds for this Mac's real/usr/bin/python33.9.6 (that case is skipped where no older Python exists).run_verbunder an old-first PATH runs on the daemon's own Python.Review
One
doperpowers:reviewer-highround. It found one real issue: the tests compared the pinned path tocommand -v python3, but Homebrew'spython3reports its versioned binary assys.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, theconflictreason, or the documented semantics.Not verified: loading the agent with real
launchctl/systemd, and pyenv interpreters.