Correct the R dependency: HiddenMarkov (CRAN) for HMM regime
detection (Viterbi, Baum-Welch); JSON I/O for Hub protocol is
hand-rolled, not jsonlite. Everything else uses base R primitives.
Add R + jsonlite to SessionStart hook (minimal deps — no CRAN
statistical packages). Update M3a spec §3: GARCH, Heston, HMM, DCC,
copula, jump-diffusion, fBM all hand-rolled with base R primitives.
Replaced warn-and-continue pattern with set -euo pipefail and die().
If a toolchain install fails, the session cannot build — stop immediately.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Hub (hub.tcl): syntax-agnostic Tcl coordinator that manages sim
lifecycle, tick-advancement at 90:1, and query routing via
stdin/stdout JSON to sub-processes in their native runtimes.
BoundedPrediction enforces L2 (bounds on every output) and
confidence scale 0.00-10.00.
M3a statistical/main.R: GBM Monte Carlo, Heston stochastic
volatility (Euler-Maruyama with full truncation), Merton
jump-diffusion, HMM 3-state regime detection (forward filter),
GARCH(1,1) volatility forecasting. All produce BoundedPredictions.
M3b sociological/main.pl: Replicator dynamics over 5 behavioral
archetypes, Hegselmann-Krause bounded confidence opinion dynamics,
Nash equilibrium search via constraint satisfaction. Prolog handles
game logic natively; numerical ODE/PDE delegates to R/Octave.
Hub spec updated to reflect Tcl as coordinator language.
MCP create_pull_request tool auto-appends session URLs to PR bodies.
This skill documents the two-step workaround: create then immediately
update to overwrite the injected content.
Ranked languages per spec by fit; took only the top pick:
- M3a (statistical): R — native stats ecosystem
- M3b (sociological): Prolog — equilibria as constraint satisfaction
- M3c (AMM): Solidity — on-chain-equivalent precision
- M3d (MEV): Fortran — dense PDE/knapsack numerics, no GC
- M3e (tokenomics): Fortran — SDE/VAR matrix loops, same toolchain as M3d
- M3f (consensus): Prolog — Markov/Nash as declarative search
- M3g (microstructure): Zig — tick-level latency, deterministic memory
- Hub: updated to reflect per-spec assignments
Julia removed project-wide: JIT startup cost and large toolchain
not justified when the project isn't going all-in on a single runtime.