Files
LithosAnanake/docs/formal/scraps/experiments/02-experiments
rajamesandClaude Opus 5.5 7aed588f78 docs: reorganise -- current reference gathered, finished work archived, superseded and dead ideas marked as such
docs/CLAUDE.md Phase 2, 2026-10-14.  All moves by git mv; every archived
file carries a header saying what it is, why, and where to look instead.

- docs/reference/ (new): roadmap and versioning policy, M7.1, word-ACL
  design, kernel args, hosted acceptance test, dictionary, primitives,
  ontology, L8 table -- previously spread over docs/, docs/lithosananke/
  and docs/03-architecture/.
- docs/working/archive/historical/: finished work (session plan, test-gap
  audit, birthing plan, fix write-ups, the January architecture draft).
- docs/working/archive/superseded/: the Hermes-VM Tripod docs and July
  Hermes designs (-> FABRIC-3.5/3.6), the StarForth roadmap, every working
  doc already flagged superseded or obsolete.
- docs/working/archive/dead/: the hal_* target contract (never adopted),
  L4Re, metrics-and-knobs.
- Papers and proposals into docs/working/papers/.
- References rewritten across the repo (not logs/, not docs/patent/);
  CLAUDE.md's documentation section rewritten.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 16:03:56 -04:00
..

%% SCRAP: experiments/02-experiments/README
%% SOURCE: docs/working/experiments/02-experiments/README.md
%% STATUS: CURRENT
%% FITS: experiments/ch-framework
%% EDITORIAL: lifted — prose rewritten to press voice

\section{Experimental Framework Overview}

StarForth's experimental programme applies rigorous design-of-experiments methodology
to the physics-driven adaptive runtime, yielding a body of evidence that grounds
every performance claim in reproducible, statistically validated data. Four
experimental series structure the work.

\begin{itemize}
  \item \textbf{Factorial DoE} — Full $2^k$ factorial designs sweep all binary
        combinations of feedback-loop configurations, revealing main effects and
        interaction terms that single-factor studies cannot detect.
  \item \textbf{Heartbeat DoE} — Focused experiments on the heartbeat subsystem
        measure temporal stability, load-response coupling, and convergence
        dynamics of the adaptive tick mechanism.
  \item \textbf{James Law} — Window-scaling experiments validate the conservation
        invariant $\Lambda \times (\mathrm{DoF}+1) = W$ across multiple window
        sizes, degrees of freedom, and workload shapes.
  \item \textbf{Physics Optimization} — Targeted parameter sweeps quantify the
        marginal contribution of individual physics-engine parameters, establishing
        a tuning baseline for production builds.
\end{itemize}

\subsection{Experiment Lifecycle}

Every experiment follows a five-phase protocol:

\begin{enumerate}
  \item \textbf{Design} — state the hypothesis, identify factors, and specify
        response variables before collecting any data.
  \item \textbf{Protocol} — write a formal execution guide documenting methodology
        and success criteria.
  \item \textbf{Execute} — run the experiment and collect data without mid-course
        adjustments.
  \item \textbf{Analyse} — apply statistical methods (ANOVA, Levene's test,
        credible-interval estimation) to the collected measurements.
  \item \textbf{Document} — write a summary and promote publication-ready results
        to the research archive.
\end{enumerate}

\subsection{Key Result: Deterministic Behaviour}

Across 90 experimental runs in the physics-engine validation campaign, StarForth
achieves \textbf{0\% algorithmic variance}, confirming formally proven deterministic
behaviour of the physics-driven adaptive runtime. The $2^7$ factorial campaign
extends this over 38{,}400 runs with consistent convergence to the lowest-CV
steady state.

\subsection{Statistical Methodology}

Each campaign employs factorial designs for multi-factor analysis, heartbeat-driven
data collection at millisecond resolution, and statistical validation via ANOVA and
Levene's test. Experimental protocols are reproducible: run scripts, R analysis
code, and raw CSV data are archived alongside results.

%% TODO(bob): confirm canonical published path for the DoE metrics schema and
%%   publication-results documents referenced in the source