Files
AetherForge/server/internal/clearance/default.go
AetherForge 50ebfe53cb Add Android APK fleet nodes with Crucible UI integration and tests.
APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
2026-06-07 02:44:29 -07:00

21 lines
495 B
Go

package clearance
import (
"os"
"crypto-miner-server/internal/models"
)
// DefaultClearance returns the baseline clearance for an agent.
// Online agents start at L1 (mining commands); offline agents are L0 (read-only).
// AETHERFORGE_E2E=1 (Playwright phase 8) grants L3 so shell exec E2E can round-trip.
func DefaultClearance(agent *models.Agent) int {
if agent != nil && agent.Status == "online" {
if os.Getenv("AETHERFORGE_E2E") == "1" {
return L3
}
return L1
}
return L0
}