Skip to content
Back to skills

Researchforge Baseline

ASecurity

Set up the experiment contract and run the frozen baseline benchmark. Use when an improve-repository project needs its evaluation defined, the contract approved, or the baseline measured.

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythonbashgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add forger-labs-hq/researchforge --skill researchforge-baseline --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Researchforge Baseline?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Researchforge Baseline
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/forger-labs-hq-researchforge-baseline/badge)](https://www.skillsdirectory.com/skills/forger-labs-hq-researchforge-baseline)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: researchforge-baseline
description: Set up the experiment contract and run the frozen baseline benchmark. Use when an improve-repository project needs its evaluation defined, the contract approved, or the baseline measured.
---

# Contract and baseline

The contract (`researchforge.yaml` at the repository root) freezes the
evaluation: primary metric + direction, hard constraints, editable vs
protected paths, commands, resource limits, network mode, shipping flags.
Approval hashes it; later edits are detected as drift and refused until
re-approved. **The contract is the boundary — experiments can only change
`editable_paths` and are judged only by the contracted benchmark.**

## 1. Draft the contract

```bash
researchforge contract generate --json
```

Then edit `researchforge.yaml` **with the user** — these are their choices,
not yours: the benchmark command (`execution.full_command`) must print or
write a machine-readable result (`execution.result_file`), the primary
metric must match a key in that result, and `permissions.editable_paths` /
`protected_paths` decide what experiments may touch. Benchmarks and
evaluation code belong in `protected_paths`.

## 1b. A quick screen for a slow benchmark

Every variant runs the screen first, and one that does clearly worse is
rejected before it pays for a full run. Without one, a 2-hour benchmark costs
2 hours per variant. `baseline run` warns when a full run took over 10 minutes
and there is no screen. Then (or earlier, if you can see the benchmark is
slow) propose one:

1. Write a screening command that measures the **same metric** on a cheaper
   version of the same task: a fixed data subsample, one fold, fewer epochs.
2. If the benchmark has no quick mode, add one in the editable code, switched
   on by a flag or an environment variable and **off by default**. Keep it
   small and in one place (where data is loaded or the loop is bounded), away
   from model settings: it is merged into each variant's code, and a variant
   that changes the same or neighbouring lines skips the screen. Save it as a
   patch (`git diff > quick.patch`), then put the code back (`git checkout --
   <file>`): the screen patch is applied only to screening runs, never to full
   runs or the user's branch.
3. Let the engine check it at the frozen baseline:

   ```bash
   researchforge baseline screen --command "<command>" [--patch quick.patch] --json
   ```

   It passes only if it reports the contract's primary metric and takes at
   most 20% of a full run. If refused, fix what `reasons` says and check again.
4. Show the user the numbers (`summary`, and any `notes`) and ask whether to
   use it. On their yes: `researchforge baseline screen --adopt-check <check_id>`,
   which writes the screen into `researchforge.yaml`; approving the contract
   again (step 2) is theirs.

## 2. Validate and approve

```bash
researchforge contract validate --json
```

Fix any of the semantic errors it reports (they are field-level and
actionable). Then show the user a summary of what they are approving —
metric, constraints, commands, limits, paths — and ask them to run:

```bash
researchforge contract approve
```

The approval is a typed confirmation. Only run it with `--yes` yourself if
the user has explicitly said in this conversation to approve this contract.

## 3. Run the baseline

```bash
researchforge baseline run --json
researchforge baseline show --json
```

The baseline runs in an isolated detached worktree; the user's checkout is
never touched. Report the recorded baseline metrics from the JSON. All
future experiments are compared against this frozen measurement.

Next: the researchforge-plan skill designs experiments against a hypothesis.

## Rules

- The Python engine is the boundary: never work around a validation error, a
  protected path, or an approval gate — fix the artifact or ask the user.
- Approvals belong to the user: never pass `--yes` or type a confirmation
  unless the user explicitly approved that step in this conversation.
- Ground every summary in stored data: quote only numbers returned by
  `--json` output or files under `.researchforge/` — never invent metrics.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.