diff --git a/docs/paper-validation-runbook.md b/docs/paper-validation-runbook.md index d6bff18..861664b 100644 --- a/docs/paper-validation-runbook.md +++ b/docs/paper-validation-runbook.md @@ -17,7 +17,7 @@ The Azure Functions isolated worker runs **locally on the dev box**, not in Azur worker cannot reach either. Full rationale and alternatives: ADR-031 in `DECISIONS.md`. - Start the worker: ```powershell - cd D:\Source\TradingSystem\src\TradingSystem.Functions + cd C:\repos\TradingSystem\src\TradingSystem.Functions func start # or: dotnet run ``` - **Machine-on requirement:** the dev box and the worker must be up across the day's timer @@ -44,7 +44,7 @@ worker admin-endpoint 4-function list (steps 3–5), and the snapshots data dire (In PowerShell, bare `curl` aliases `Invoke-WebRequest` — use `curl.exe` or `Invoke-RestMethod http://localhost:3131/health`.) 200 = up. If it is down, the system degrades to deterministic rule-based regime classification (ADR-029/ADR-030) — **this is expected behavior, not an incident**. - Restart the gateway (`D:\Source\claude-gateway`) when convenient. + Restart the gateway (`C:\repos\claude-gateway`) when convenient. 3. **Functions worker** started (`func start` per section 1). 4. **Host boot smoke:** after `func start`, the function-list banner must appear with **no `TypeLoadException`** (or repeated "worker process" restarts) in the startup output. @@ -200,7 +200,7 @@ read from the gitignored `local.settings.json` (`Discord:WebhookUrl`) and is nev hooks, or agent pipelines: ```powershell -pwsh -NoProfile -File D:\Source\TradingSystem\tools\ops\Register-GapDayMonitorTask.ps1 +pwsh -NoProfile -File C:\repos\TradingSystem\tools\ops\Register-GapDayMonitorTask.ps1 ``` Run this as the normal dev-box user — no elevation required; the task is registered to diff --git a/tools/ops/Check-DailySnapshot.ps1 b/tools/ops/Check-DailySnapshot.ps1 index c4ba3c4..e7a42b9 100644 --- a/tools/ops/Check-DailySnapshot.ps1 +++ b/tools/ops/Check-DailySnapshot.ps1 @@ -11,10 +11,11 @@ Path.Combine(LocalStorage:DataDirectory, "snapshots.json") with DataDirectory="data" (relative), resolved against the worker's working directory. The TradingSystem-FuncHost scheduled task action is - `cmd /c cd /d D:\Source\TradingSystem\src\TradingSystem.Functions && func start ...`, - so the worker cwd — verified against the registered task on 2026-06-10 — is - D:\Source\TradingSystem\src\TradingSystem.Functions and the file of record is - D:\Source\TradingSystem\src\TradingSystem.Functions\data\snapshots.json (the + `cmd /c cd /d C:\repos\TradingSystem\src\TradingSystem.Functions && func start ...`, + so the worker cwd (originally verified against the registered task on 2026-06-10, + path updated for the 2026-07 machine migration) is + C:\repos\TradingSystem\src\TradingSystem.Functions and the file of record is + C:\repos\TradingSystem\src\TradingSystem.Functions\data\snapshots.json (the -SnapshotPath default). JSON is camelCase with ISO-8601 dates ("date" property). Trading-day logic is weekday-only (Mon-Fri). Market-holiday false positives @@ -55,8 +56,8 @@ [CmdletBinding()] param( [DateTime]$Date = (Get-Date), - [string]$SnapshotPath = 'D:\Source\TradingSystem\src\TradingSystem.Functions\data\snapshots.json', - [string]$SettingsPath = 'D:\Source\TradingSystem\src\TradingSystem.Functions\local.settings.json', + [string]$SnapshotPath = 'C:\repos\TradingSystem\src\TradingSystem.Functions\data\snapshots.json', + [string]$SettingsPath = 'C:\repos\TradingSystem\src\TradingSystem.Functions\local.settings.json', [switch]$WhatIf ) diff --git a/tools/ops/preflight.ps1 b/tools/ops/preflight.ps1 index c0722cc..c898822 100644 --- a/tools/ops/preflight.ps1 +++ b/tools/ops/preflight.ps1 @@ -28,7 +28,7 @@ param( [int]$TwsPort = 7497, [string]$GatewayHealthUrl = 'http://localhost:3131/health', [string]$WorkerAdminUrl = 'http://127.0.0.1:7071/admin/functions', - [string]$DataDirectory = 'D:\Source\TradingSystem\src\TradingSystem.Functions\data' + [string]$DataDirectory = 'C:\repos\TradingSystem\src\TradingSystem.Functions\data' ) Set-StrictMode -Version Latest