update skill, in-place install and update admission gate; resume starts the monitor (Issue #72) #75

Merged
Godopu merged 16 commits from fix/issue-72 into main 2026-10-27 22:50:05 +00:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 595e34b2d1 - Show all commits

No files matched your search

+6 -2
View File
@@ -3264,11 +3264,15 @@ mam_control_plane_prefix() {
# fd 7 (`7>&-` on such a child, as pane_lock's fd 9). The wait is bounded by
# MAM_UPDATE_ADMISSION_WAIT_S (default 120).
#
# mam_update_admit [workspace]: rc 0 admitted (fd 7 held), 1 refused (stderr).
# mam_update_admit [workspace]: rc 0 admitted (fd 7 held, unless the workspace
# has no .mam), 1 refused (stderr).
mam_update_admit() {
local root="${1:-$WORKSPACE_ROOT}"
local lock="$root/.mam/update-admission.lock" marker="$root/.mam/update-in-progress" st
if ! { mkdir -p "$root/.mam" && exec 7>>"$lock"; }; then
# No .mam: not an installed workspace, which is all the update runs in (and a
# checkout running its own scripts gets no .mam from this).
[ -d "$root/.mam" ] || return 0
if ! exec 7>>"$lock"; then
echo "ERROR: cannot open the update admission lock $lock" >&2
return 1
fi
+2
View File
@@ -59,6 +59,8 @@ INT_KNOBS = {
# once) and the wrapper's registry wait (0: decide at once - clear or busy)
"MAM_ONBOARD_WAIT_S": (1, "600"),
"MAM_DISPATCH_WAIT_S": (0, "600"),
# Issue #72: how long the update waits for the monitor to stop after SIGTERM
"MAM_UPDATE_MONITOR_STOP_S": (1, "30"),
# delegate_wait_started's ack_s (MAM_ONBOARD_ACK_S / DELEGATE_JOB_ACK_S via create_session.sh)
"delegate_wait_started:ack_s": (0, "180"),
# wrapper flags