Repository navigation
docs(runbook): describe the host tick that starts the session with /bin/sh - #62
Merged
Merged
Conversation
…in/sh The runbook said the session monitor opens the pinned .command with `open -g -b com.apple.Terminal`. The plist that prepare-auto-reply-session-runtime.py writes runs `openkakao-cli auto-reply-host --tick`, and the tick starts the pinned command with `/bin/sh` (src/commands/auto_reply_host.rs). Describe that chain, its locks, cooldown and circuit, the stable binary that holds the Full Disk Access grant, and the plist keys the packager sets. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Decision: merge. Evidence:
|
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.
Why
The goal is to leave twoimo/alden with no open PRs or issues, each one resolved on its merits. PR #60 recorded one known doc gap: the launchd runbook describes a launch path that the code no longer uses. Operators and agents follow this runbook when they install, check or disable the KakaoTalk auto-reply host. A wrong launch chain sends them looking for the wrong TCC grants and the wrong process.
What was stale
docs/auto-reply-launchd-supervision.mdsaid the session monitor starts the pinned.commandwith/usr/bin/open -g -b com.apple.Terminal, that Terminal is the TCC trust boundary, and that the plist runsauto-reply-session-monitor.py. The code does something else:scripts/prepare-auto-reply-session-runtime.pywrites runs<stable openkakao-cli> auto-reply-host --tick --manifest … --state-root ….run_tickinsrc/commands/auto_reply_host.rsclears quarantine, takessession-monitor.lock, honors the disable sentinel, returns while the watchdog or supervisor owner lock is held, applies the 60 s cooldown and the 3-per-15-minute circuit, and then spawns/bin/sh <pinned-command>with a cleared environment.<state-root>/../bin/openkakao-cli(_stage_stable_binary), not on Terminal.Changes
auto-reply-host --tickas the current host and marksauto-reply-session-monitor.pyas retired (still staged, never run by the plist)./bin/shlaunch,AbandonProcessGroup, why the Terminal path was dropped, and which path holds the TCC grants..commandand the plist description match what the packager generates. The example ends inexit "$status", which the packager writes again once fix(packager): end the session command with exit "$status" #61 merges.launch_requestedandopen_failedare defined by the spawn result. The uninstaller renames the plist to<plist>.disabled.<unix-time>.<pid>, which is whatuninstall-auto-reply-session-monitor.shdoes.ARCHITECTURE.mddrops its note that the runbook is stale.Verification
An independent reviewer (Opus) checked each claim against the code at the first revision and gave PASS+NOTES. It confirmed the lock order, the numbers, the child environment, the plist keys and the stable path. Its notes are applied: the Accessibility grant guidance, the uninstaller rename, and the
exit "$status"gap, which is fixed as a bug in #61.python3 ~/.agents/skills/project-onboard/scripts/check_docs.py .printsOK .. Docs only, so no CI step reads these files.🤖 Generated with Claude Code