Skip to content
Apothem
Command pipeline

/research-experiment

/research-experiment — Executes the designed study and captures raw data with full provenance plus a reproducibility manifest (environment, seed, protocol, version pins).

Role: Principal Investigator (execution) Pipeline position: mid-chain

Executes the designed study or experiment and captures raw data with full provenance. Guarantees reproducibility: records the environment, seed, protocol log, and version pins so an independent party can re-run.

Canonical invocation

/research-experiment

With arguments:

/research-experiment [--suite-name NAME]

Inputs

_inputs/study-design.md (the design) and _inputs/preregistration.md (the frozen analysis plan).

Outputs

_outputs/experiment-log.md (the timestamped protocol trace, plus the close-out record of an autonomous campaign), the raw data at a host-natural location, and _outputs/reproducibility-manifest.md (environment, seed, protocol, version pins).

Downstream

/research-analysis (downstream consumer)

Workflow phases

The command follows the standard /research pipeline workflow:

  1. Load context — Read the study design and the preregistration.
  2. Verify the Sequence Gate — Confirm _inputs/study-design.md exists; otherwise halt with Blocked: run /research-design first.
  3. Run & record — Execute the protocol; capture raw data with provenance; log the timestamped protocol trace.
  4. Capture reproducibility — Record environment, seed, protocol, and version pins.
  5. Update the handoff manifest — Record the data location and the reproducibility manifest.
  6. Emit the log — _outputs/experiment-log.md + raw data + _outputs/reproducibility-manifest.md.

Rigor floor

Execution runs a pilot pass to calibrate budgets and ranges, then the full comparison under a declared compute-utilization plan (core allocation, memory ceilings, safe parallelization of independent repetitions). Each stochastic method runs its preregistered repetition regime with recorded seeds and logged hardware. An opt-in, default-off autonomous experiment loop is available. Against a frozen harness it proposes a change to a single mutable target, states a falsifiable prediction before each run, and runs it at the fixed budget. The primary metric is read from the run log as two signals: a search signal that steers the loop, and an admission signal from a disjoint set, which confirms or rejects a change before it is retained: the change must clear the search stage, then beat the incumbent on admission by more than the stated noise margin (or tie it while reducing complexity). Every trial is journaled and every admission query is counted and disclosed.

A final untouched set is evaluated once, at close-out. A campaign with none labels its result selection-contaminated and exploratory, and any figure the campaign reports is re-measured under the repetition regime above. The operator confirms the target, harness, metric, evaluation sets, acceptance rule, budget, and workspace once, and may fix stop criteria; at stopping, the close-out record (trial, keep, discard, crash, and admission-query counts, the gain over baseline, and the untouched-set result) goes into the experiment log so the analysis stage can classify the loop-selected result.

Failure modes

SymptomCauseRecovery
Blocked: run /research-design firstNo study designRun /research-design to produce _inputs/study-design.md
Run not reproducibleMissing seed / environment recordRecord the full reproducibility manifest before proceeding
Protocol deviation undocumentedMid-run change not loggedLog the deviation in the experiment log; disclose at analysis
Loop result presented as confirmatoryThe loop steered on its admission set, or no untouched set was read at close-outLabel the result selection-contaminated and exploratory; the search signal steers, the admission signal decides, and the untouched set is read once

Examples

# Run the designed study and capture reproducible raw data
/research-experiment --suite-name <name>

Cross-references

On this page