Expand P2 test coverage: mining chain, spread lanes, path forge, WS/beacon, E2E onion, file handling
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -81,7 +81,13 @@ func (h *WSHub) FleetAISnapshot(agentID string) (fleetai.AgentSnapshot, bool) {
|
||||
}
|
||||
snap.Stuck = fleetai.ComputeStuck(snap)
|
||||
snap.FailedTierCount = countFailedSpreadTiers(snap.LOTLAttempts)
|
||||
if engine != nil && !aiMode {
|
||||
if aiMode {
|
||||
temperament := fleetai.PersonaSpreadTemperament(h.serverPolicySnapshot().AIPersona)
|
||||
snap.Adaptive = &temperament
|
||||
if len(temperament.Reasoning) > 0 {
|
||||
snap.AdaptiveSummary = temperament.Reasoning[0].Action
|
||||
}
|
||||
} else if engine != nil {
|
||||
fp := strategy.FingerprintFromAuth(agent.Platform, agent.IP, agent.FirewallDomain != nil && *agent.FirewallDomain)
|
||||
adaptive := engine.StrategyForAgent(agentID, fp)
|
||||
snap.Adaptive = &adaptive
|
||||
|
||||
Reference in New Issue
Block a user