Skip to content
Draft
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
9 changes: 9 additions & 0 deletions skills/evalmath-mechinterp-power/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ On BPD/ARG-03, development data from 96 cases contained 103 reported paired comp
Every research handoff must include `unit`, `n_units`, `n_cases`, `primary contrast`, `physical dose`, `scientific variation floor`, `matched-sham floor with confidence/source`, `planned and actual comparisons`, `estimated resolution/power`, `readout selection exposure`, `causal controls`, `verdict`, and `exact evidence provenance`. For small n, report *what further data would change the conclusion* rather than a false certainty.

See [resolution notes](references/resolution-and-evidence.md), [EvalMath FSI-01](../../paper/finite_sample_inference.md), [selection and adaptive reuse](../../paper/evaluation_feedback_multigen.md).


## Storyworld and Hypergames authoring

When building or climbing Storyworlds, SWMD or Hypergames gyms, load [storyworld causal-inclination contract](references/storyworld-hypergame-inclinations.md). It distinguishes bounded character traits, pValue/p2Value *beliefs*, latent posterior microstates, world-generator roots and independent evaluations. A pValue is a belief pointer rather than a hypothesis-test p-value. Reward, legal-action, causal-sensitivity, calibration and submission metrics require separately declared gates.

An authored inclination such as `I0=1/2+Σβ_ix_i+Σγ_ij x_ix_j` is a deterministic game-design score unless a stochastic choice law is calibrated separately. Require visible feature provenance, an L1 bound on coefficients, a graph of causal parents, a registered matched do/sham intervention and a root-level evaluation. Distinguish a true exogenous intervention from conditioning on correlated evidence. The generic builder integration lives in `MoralityLabAI/GPTStoryworld` under `codex-skills/hyperworld-builder/` (HGW-04).

A generator's 1,024 posterior possibilities or thousands of decisions within one world cannot substitute for independent world roots. Use the strict preflight on development roots; the example HGW-04 fixtures intentionally fail confirmation. For new neural-model claims, pin generator and score hashes, matched candidate/baseline/sham cases, and post-selection exposure before sealed confirmation. Output `evaluation_finite_sample` JSON with `cluster_id` at the independent-root level. Keep exact finite posterior proofs separate from statistically estimated agent capabilities.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# EvalMath contract for Storyworld and Hypergames causal inclinations

## Observables and epistemic scope

A Storyworld model can contain (a) actual bounded character traits, (b) observer-indexed `pValues`, (c) observer-believer-target `p2Values`, (d) an exact posterior over latent generator states, and (e) real model action traces. Record each separately. `pValues` are authored first-order beliefs, **not** hypothesis-test p-values. `p2Values` may update after correlation-only evidence while the first-order marginals stay fixed. An exact posterior enumeration over `2^10=1024` synthetic worlds verifies a finite inference mechanism, while externally sampled world-generator roots govern generalization claims.

## Formula constraints

For a declared public feature vector `x` with `|x_i|<=1`, keep the authored response scores within an announced range:

\[
I_0(x)=\tfrac12+\sum_i\beta_i x_i+\sum_{i<j}\gamma_{ij}x_i x_j,
\qquad I_1(x)=1-I_0(x).
\]

The HGW-04 convention `sum(|beta|)+sum(|gamma|)<=0.34` guarantees `0.16<=I_j<=0.84`. This is a **bound on scripted inclination**, and by itself says nothing about calibrated choice probabilities or meaningful causal response. A probabilistic actor requires a separately specified choice mechanism, for example a softmax with temperature fitted only on development roots and evaluated by proper scoring rules. Track branch diversity, saturation, score margins and action selection on independent roots. Fit complexity budgets to actual named actors and causal edges. Preserve validity of storyworld endings independently of apparent consensus.

## Causal identification test

Specify an acyclic structural model with fixed exogenous root `U_r`, public inference features `M_r=f_M(U_r,E)`, and choices `A_r=f_A(M_r,C)` or stochastic equivalents. For matched interventions, replace the mechanism equation `do(E=e)`, carry the **same** `U_r` through candidate/sham arms, and recompute downstream public features. A causal input that changes `p2` while holding `p1` fixed helps distinguish higher-order reasoning; a sham changes an irrelevant but equal-dose coordinate. Record the predicted sign and the actual action flip separately. A source copied from an already counted report has the same provenance root and must never count as an independent information source.

If hidden generator state is visible to the grader, prove the policy prompt excludes it. Directly manipulating a belief feature rather than its evidence-generating cause is a different intervention and must be labelled accordingly. Causal structure in authored synthetic mathematics is a mechanism property of the simulator, with learned-agent causal claims requiring independent agent traces.

## Robustness and confirmation

- **Unit:** independent world-generator root, with all descendant episodes, prompts, agent samples and counterfactuals clustered together. For multi-model claims, also account for independently trained model seeds.
- **Effect:** register `d_r=Y_r(candidate,do(E))-Y_r(baseline/sham,do(E))` in an actual behavior metric, and a physical intervention dose. Make task success conditional on legal behavior and absence of critical actions.
- **Variation floor:** `max(scientific_min_effect, matched_sham_upper, measurement_resolution)` under the same dose and task population. The 95th-percentile matched-sham bound at 95% confidence requires **at least 59 independent calibration worlds** even if their maximum is used.
- **Budget:** run `evalmath-mechinterp-power/scripts/preflight.py --strict` before reading confirm worlds. Reject a null/zero-effect pilot that derives spurious normal-theory power from zero variance.
- **Selection:** preserve the complete adaptive search history, discarded weights and policies, nuisance seeds, generator-version locks and proposed hypotheses. Match developmental difficulty with predeclared mixing across causal types rather than refitting to confirmation.
- **Inference:** export `evaluation_finite_sample` paired binary cases grouped by root with a preregistered comparison family. Use matched-sham controls, Holm-adjusted comparisons and report effect-floor lower bounds. Repeat-policy reruns on the same roots are uncertainty diagnostics, not additional independent worlds.
- **Calibration:** prefer Brier or log score for declared belief probabilities, reported as macro world means with diagnostic confidence intervals. Check prediction errors by role, causal intervention, and posterior dependence. Preserve an exact separation between probability calibration and belief-vector magnitude.

## Required evidence for a benchmark climb

The report should say which variables are latent, which were inferred from public evidence, what intervention changes them, what independent roots were generated, how many worlds and task cases were scored, which endpoints and error budgets were frozen, whether the mechanism effect exceeded sham variation, and whether the agent chose legal actions. Include causal diagrams, baseline and sham traces, confidence intervals, model/generator/judge hashes, the preflight decision, source-provenance seals and the status of hidden confirmation data.

A benchmark win following development search stays a development result until fresh sealed roots are opened. A trained exact solver of a synthetic law is an algorithmic ceiling, with separate evidence needed to establish that a neural model learned the law.

## Reference implementation

`MoralityLabAI/GPTStoryworld`, branch `research/hgw04-causal-inclinations-evalmath-20261121`:
`codex-skills/hyperworld-builder/scripts/causal_inclinations.py` and
`scripts/benchmark_receipts.py` generate EvalMath-compatible development preflight and FSI-01 manifests. Their included eight-root and four-root fixtures explicitly fail confirmation requirements. Use the public test suite and CI integration to verify the manifests, and preserve the older Cairo Hyperworld fixtures unchanged.

## HGW-05 registered development-root example (November 21, 2026)

The public HGW-05 prototype in [GPTStoryworld PR #20](https://github.com/MoralityLabAI/GPTStoryworld/pull/20) generates 64 development roots for each of four causal task families. Direct and confounded versions of each observational sample share a root; hence the 2,048 scored cases constitute 192 distinct synthetic generator roots. Its causal-inclination program is a privileged algorithmic ceiling.

The main causal twin contrast has an exploratory root-macro improvement of 223/512 = 43.55 percentage points against an observational baseline, with a descriptive root bootstrap 95% interval of [41.90, 45.22] points. A parity-only second-order belief test achieves 392/512 against 266/512 by a first-order-only control. Per-source-root evidence deduplication yields 512/512 normative decisions against 338/512 for a replay-naive baseline. These results describe source-defined synthetic tasks; they do not establish neural or real-world causal competence.

The **p2** pilot has root-level standard deviation approximately 0.20889, mechanistic floor 0.125 and registered target effect 0.20. With five planned comparisons, EvalMath's normal power preflight estimates **91 independent confirmation roots** for 80% planning power. The HGW-05 registration was amended to plan **128 fresh roots per family**, none generated or unsealed. The direct-cause family alone has an effect of only 1/32, below its scientific-variation floor; the paired direct+confounded discriminator remains the prospective primary contrast.

HGW-05's exact irrelevant-source sham effects are zero by construction, so their 64-root order-statistic envelope is a structural instrument check rather than a learned-model sham distribution. The preflight remains **REDESIGN_OR_PILOT_ONLY** because the development data are unsealed. Sealed model confirmation requires a new matched-sham calibration from model outcomes and a separate frozen root population.
Loading