feat(core): aggregate receive health by account

Track receive health for every process attached to an account while treating unarmed monitoring as compatible rather than degraded.

Report the account as healthy while any attached process remains healthy, and mark it degraded only after every attached process has been confirmed stale. Keep health ownership synchronized with process attach, migration, and detach transitions.

Fail fast when process ownership and health state diverge instead of silently presenting a healthy status. Add multi-process regression coverage for partial degradation, full degradation, and recovery.

Refs #233.
This commit is contained in:
DrSmoothl committed 2026-07-15 16:47:26 +08:00
1 parent e8cb49ced9
commit da26d6796f
4 files changed
+63

No files matched your search

@@ -2,4 +2,7 @@ import type { BridgeContext } from './bridge-context';
export interface BridgeInterface extends BridgeContext {
readonly activePid: number | null;
/** False only when every attached QQ process is confirmed stale.
* An unarmed watchdog remains true for compatibility. */
readonly receiveHealthy: boolean;
}