mirror of
https://github.com/joelhooks/joelclaw.git
synced 2026-09-19 01:24:04 +08:00
1f7207d10c
Intent: - Prevent agent-secrets recovery from opening an administrator dialog when its RPC loop is unresponsive. - Complete the service-account migration documented restricted break-glass contract. Implementation: - Add an exact-command sudoers grant for only the agent-secrets launchd kickstart. - Install and validate that grant during both service-account migration and critical-daemon installation. - Document sudo -n recovery and classify password prompts as bootstrap defects. Outcomes: - Agents can restart a wedged service-account daemon without a password or UI after host bootstrap. - The grant does not expose wildcard or general launchctl root access. Verification: - sh -n and bash -n passed for all changed installers. - visudo -c parsed infra/sudoers-agent-secrets successfully. - Exact-command and no-wildcard contract assertions passed. Follow-ups: - Flagg still needs the repaired root-owned sudoers file installed once because the original migration omitted it. Co-authored-by: shitratgit[bot] <286405550+shitratgit[bot]@users.noreply.github.com>