Parent: #36
Problem
The native managed-agent process monitor records every non-success child status as a harness error. During an intentional stop, reconfiguration, application shutdown, or welcome-team lifecycle transition, the child can exit on SIGTERM before the stop path clears the status.
The installed canary showed a red harness exited with status signal: 15 (SIGTERM) error with no harness output. That message does not distinguish an expected lifecycle stop from a crash or provider/runtime failure.
Outcome
Expected ACP process termination is represented as stopped/restarting, while unexpected termination remains an actionable error with useful evidence.
Acceptance
Scope
This is a generic native agent lifecycle correction and should remain upstream-ready. It must not introduce Electric OAuth, Supabase, company VM, or Hive branding dependencies.
Proof boundary
Tests prove classification logic. Installed proof must show a normal stop/reconfigure without a red error and a deliberately failed harness with a truthful actionable error.
Parent: #36
Problem
The native managed-agent process monitor records every non-success child status as a harness error. During an intentional stop, reconfiguration, application shutdown, or welcome-team lifecycle transition, the child can exit on
SIGTERMbefore the stop path clears the status.The installed canary showed a red
harness exited with status signal: 15 (SIGTERM)error with no harness output. That message does not distinguish an expected lifecycle stop from a crash or provider/runtime failure.Outcome
Expected ACP process termination is represented as stopped/restarting, while unexpected termination remains an actionable error with useful evidence.
Acceptance
last_error.Scope
This is a generic native agent lifecycle correction and should remain upstream-ready. It must not introduce Electric OAuth, Supabase, company VM, or Hive branding dependencies.
Proof boundary
Tests prove classification logic. Installed proof must show a normal stop/reconfigure without a red error and a deliberately failed harness with a truthful actionable error.