File size: 2,033 Bytes
2e658e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# DESKTOP VERIFICATION HANDOFF β€” Complete Queue

## 1. Focused suite (no fastapi required)
```powershell
$env:PYTHONPATH="hermes_overlay"
$env:HERMES_HOME="$PWD\.tmp_hermes_home"
New-Item -ItemType Directory -Force $env:HERMES_HOME | Out-Null
python -m pytest hermes_overlay/tests/test_futures_integration.py,hermes_overlay/tests/test_backup_allowlist.py,hermes_overlay/tests/test_config_validation.py,hermes_overlay/tests/test_plan_integrity.py,hermes_overlay/tests/test_durable_store.py,hermes_overlay/tests/test_provider_contracts.py,hermes_overlay/tests/test_domain_layer.py -q
python scripts/validate_runbook_consistency.py
python scripts/produce_evidence_package.py
python scripts/clean_build_manifest.py . > .baseline/clean_build_manifest_desktop.sha256
```
Expected: **68 passed**; CONSISTENT; evidence written.

## 2. Full suite
```powershell
pip install fastapi httpx pytest
python -m pytest hermes_overlay/tests -q
```

## 3. Domain DB
With HERMES_HOME set after paper cycle, confirm:
- `hermes_domain.sqlite3` exists
- tables: orders, plans, approvals, idempotency_keys, execution_locks, risk_ledger

## 4. Kill switch
Unset HERMES_EXECUTION_ENABLED β†’ entry fails  
Set true β†’ paper entry works via ExecutionService / existing paper path  
Close remains allowed when switch off

## 5. Agent tools
No execute_futures_position / close_futures_position / set_leverage_and_margin registered

## 6. Docker
```powershell
docker build --build-arg HERMES_UPSTREAM_REF=<immutable-sha> -t hermesface:final .
```

## 7. Browser
Authenticated /futures; health JSON; Execute requires server planId; theme localStorage only

## 8. Operator / external (not code)
- OP-P0-01, OP-P1-01, OP-SEC-01, OP-RISK-01, OP-STRAT-01, OP-LIVE-01
- P11-T05 Testnet lifecycle
- P11-T06 independent audit
- P11-T08 sign-off
- S1-T05/T06 strategy Testnet + approval

## Failure interpretation
- Schema migration fail β†’ check HERMES_HOME writability  
- Kill switch tests fail β†’ env pollution  
- fastapi collection errors β†’ install fastapi