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

@@ -76,3 +76,27 @@ describe('buildAccessDepthModel pending chain', () => {
expect(model.failed).toHaveLength(1);
});
});
describe('buildAccessDepthModel android', () => {
it('uses android platform label and probes', () => {
const model = buildAccessDepthModel(
agent({ platform: 'android', os_version: '14', arch: 'arm64' }),
parseAccessDepthDiagnostics({
environment_probes: {
wifi: true,
battery: true,
foreground_service: true,
},
tier_chain_order: ['foreground_service', 'cpu_inprocess'],
}),
);
expect(model.platformLabel).toBe('Android');
expect(model.probes.map((p) => p.label)).toEqual(['Wi-Fi', 'Battery', 'Foreground svc']);
expect(model.miningOnion.map((r) => r.tier)).toEqual([
'foreground_service',
'cpu_inprocess',
'desktop_tiers_skipped',
]);
expect(model.spreadOnion).toEqual([]);
});
});