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.
This commit is contained in:
AetherForge
2026-06-07 02:44:29 -07:00
parent d9f36f182c
commit 50ebfe53cb
89 changed files with 2849 additions and 82 deletions

View File

@@ -1,11 +1,19 @@
package clearance
import "crypto-miner-server/internal/models"
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