Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/paper-validation-runbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions tools/ops/Check-DailySnapshot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion tools/ops/preflight.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down