Universal Benchmarker Skill (BenchForge)
BenchForge is an Open Scientific Evidence Infrastructure for the Agentic Era. It provides a protocol-driven framework for defining, validating, executing, and documenting benchmarks across AI Skills, Software Systems, Hardware, and Workflows.
Full Protocol Specification & MVP Plan:
Refer to the complete specification at docs/guide.md.
1. User Operating & Usage Guide
How to Trigger the Skill
An AI Agent or user can activate BenchForge using natural language triggers or skill invocations:
- "Benchmark
<candidate-skill> vs <baseline-prompt>"
- "Bandingkan performa
<candidate-tool> vs <baseline-tool> secara data-oriented"
- "Jalankan benchmark suite untuk proyek ini di folder
./benchmarks/"
- "Generate
BENCHMARK_SUMMARY.md dan BENCHMARK.md untuk GitHub"
Step-by-Step Automated Execution Lifecycle
When invoked, the agent executes the following 4-step workflow:
sequenceDiagram
autonumber
actor User as User / Developer
participant BDL as BDL Spec Parser (.bench.yaml)
participant Harness as Execution Sandbox
participant Stat as Dual Statistician Engine
participant Report as Dual Report Generator
User->>BDL: "Benchmark <candidate-skill> vs <baseline-prompt>"
BDL->>BDL: 1. Generate BDL spec & multi-variable dataset
BDL->>Harness: 2. Execute N-run workloads in isolated sandbox
Harness-->>Stat: Tamper-proof Hash Chain Event Logs (ledger/)
Stat->>Stat: 3. Compute Cohen's d, CI95, & Integrity Score (0-100)
Stat->>Report: 4. Export Tier 1 Summary & Tier 2 Scientific Report
Report-->>User: Present BENCHMARK_SUMMARY.md & BENCHMARK.md
- Step 1: Benchmark Spec Initialization (
.bench.yaml):
Drafts or updates a declarative BDL v6.0 specification file under ./benchmarks/ defining baseline controls, candidate targets, hypotheses, and metric weights.
- Step 2: Isolated Sandbox Workload Execution:
Runs workload tasks across target subjects in isolated sandboxes to prevent environment side-effects or source code mutation. All execution events are logged to a cryptographic Hash Chain Evidence Ledger (
ledger/).
- Step 3: Statistical Inference & Integrity Audit:
Filters outliers using Interquartile Range (IQR), calculates percentiles ($p_{50}, p_{95}, p_{99}$), Student's t-test $p$-values, 95% Confidence Intervals ($\text{CI}_{95}$), Cohen's $d$ Effect Size, Bayesian posterior probabilities, and the mathematical Benchmark Integrity Score ($0 - 100$).
- Step 4: Dual-Tier Artifact Emission:
Generates publication-ready report artifacts in
./benchmarks/results/:
- Tier 1 (
BENCHMARK_SUMMARY.md): High-impact card designed for direct embedding into GitHub README.md files (badges, visual Mermaid charts, key win deltas, top 3 testcase highlights).
- Tier 2 (
BENCHMARK.md): Exhaustive scientific report detailing statistical formulas, DAG Evidence Graph references, and the full multi-variable testcase result matrix.
2. Generic BDL Specification Standard (<benchmark-name>.bench.yaml)
apiVersion: benchforge/v6.0
kind: Benchmark
metadata:
id: "BF-EV-<GENERATED_ID>"
name: "<target-subject>-evaluation"
version: 1.0.0
author: "<author-name>"
license: "MIT"
scope:
measures:
- "<primary-evaluation-metric-1>"
- "<primary-evaluation-metric-2>"
does_not_measure:
- "<out-of-scope-boundary-1>"
intended_users:
- "<target-audience>"
validity_boundary: "<validity-environment-scope>"
threat_model:
benchmark_gaming:
severity: "HIGH"
mitigation:
- "Hidden evaluation split (datasets/private/)"
evaluator_bias:
severity: "MEDIUM"
mitigation:
- "Blind human review protocol"
experiment:
hypothesis:
null_h0: "<candidate-subject> shows no statistical quality improvement over <baseline-subject>."
alternative_h1: "<candidate-subject> achieves statistically significant superiority with Cohen's d >= 0.8."
constraints:
sample_size_N: 20
statistics:
sampling:
method: "sequential"
stop_condition: "bayesian_confidence > 99%"
integrity:
formula:
dataset_quality: 0.25
reproducibility: 0.25
fairness: 0.20
leakage_protection: 0.15
statistical_power: 0.15
subjects:
baseline:
subject_ref: "subjects/skills/<baseline-subject>.yaml"
composition:
model: "<base-model-id>"
skills: ["none"]
tools: ["<tool-id>"]
candidate:
subject_ref: "subjects/skills/<candidate-subject>.yaml"
composition:
model: "<base-model-id>"
skills: ["<candidate-skill-id>"]
tools: ["<tool-id>"]
workload:
dataset:
ref: "datasets/manifests/<dataset-id>.yaml"
categories:
- "code_generation"
- "complex_reasoning"
- "system_architecture"
- "technical_specs"
- "adversarial_edge_cases"
evaluation:
index_name: "<Subject> Evaluation Index"
method: "weighted_average"
metrics:
quality_pass_rate:
type: "quality"
unit: "%"
weight: 0.4
direction: "higher_is_better"
wall_time_ms:
type: "performance"
unit: "ms"
weight: 0.3
direction: "lower_is_better"
token_cost_usd:
type: "efficiency"
unit: "USD"
weight: 0.2
direction: "lower_is_better"
claims:
- id: "claim-001"
statement: "<candidate-subject> demonstrates statistically significant performance superiority."
evidence_metrics: ["quality_pass_rate"]
confidence_level: "HIGH"
3. Universal Multi-Variable Workload Taxonomy
- 💻 Code Generation:
.ts, .py, .luau, .go syntax correctness, unit test pass %, zero stubs.
- 🧠 Complex Reasoning: Multi-step debugging, root cause accuracy %, long-context memory.
- 🏗️ System Architecture: Class/module modularity, clean client/server schema contracts.
- 📄 Technical Specs:
.md completeness score, zero superficial summaries, valid Mermaid charts.
- 🛡️ Adversarial Edge: Vulnerable code patch rate %, prompt injection robustness.
4. Scientific Artifact Package
Executing a benchmark run emits an immutable artifact package:
BENCHMARK_SUMMARY.md: Tier 1: GitHub High-Impact Summary Card (Fast Scan for README embed).
BENCHMARK.md: Tier 2: Main research report with Multi-Variable Workload Breakdown & Claims.
BENCHMARK_CARD.md: Benchmark identity, metrics, integrity score, & threat mitigations card.
DATASET_CARD.md: Public/Private split, license, & dataset calibration card.
EXPERIMENT_CARD.md: Execution sandbox, environment lock, & event replay card.
ledger/: Cryptographic Hash Chain Event Logs (hash(prev + current)).
analysis.json: Frequentist ($p, d$) & Sequential Bayesian statistics.
reproduce.sh: 1-Command shell runner script.
5. Key Artifact Locations
- Research Specification: guide.md
- Governance & Subject Registry:
skills/benchforge/governance/
- BDL Spec Example:
./benchmarks/<benchmark-name>.bench.yaml
- Output Artifacts:
./benchmarks/results/
1---2name: benchforge3description: Open Scientific Evidence Infrastructure for the Agentic Era (BenchForge v6.0 Final Specification & MVP Execution Plan). Features BDL v6.0, 2-Tier Dual Reporting Standard (BENCHMARK_SUMMARY.md for GitHub README & BENCHMARK.md for Research Deep-Dive), Multi-Variable Workload Taxonomy, Threat Model Validation, Immutable Hash Chain Evidence Ledger, Complete Agent Composition, Sequential Bayesian Adaptive Sampling, Blind Human Review Protocol, and Scientific Artifact Triad.4---56# Universal Benchmarker Skill (`BenchForge`)78`BenchForge` is an **Open Scientific Evidence Infrastructure for the Agentic Era**. It provides a protocol-driven framework for defining, validating, executing, and documenting benchmarks across AI Skills, Software Systems, Hardware, and Workflows.910> **Full Protocol Specification & MVP Plan**: 11> Refer to the complete specification at [docs/guide.md](file:///D:/Liem%20Product/Liem%20Skills/skills/benchforge/docs/guide.md).1213---1415## 1. User Operating & Usage Guide1617### How to Trigger the Skill18An AI Agent or user can activate `BenchForge` using natural language triggers or skill invocations:1920- *"Benchmark `<candidate-skill>` vs `<baseline-prompt>`"*21- *"Bandingkan performa `<candidate-tool>` vs `<baseline-tool>` secara data-oriented"*22- *"Jalankan benchmark suite untuk proyek ini di folder `./benchmarks/`"*23- *"Generate `BENCHMARK_SUMMARY.md` dan `BENCHMARK.md` untuk GitHub"*2425---2627### Step-by-Step Automated Execution Lifecycle2829When invoked, the agent executes the following 4-step workflow:3031```mermaid32sequenceDiagram33 autonumber34 actor User as User / Developer35 participant BDL as BDL Spec Parser (.bench.yaml)36 participant Harness as Execution Sandbox37 participant Stat as Dual Statistician Engine38 participant Report as Dual Report Generator3940 User->>BDL: "Benchmark <candidate-skill> vs <baseline-prompt>"41 BDL->>BDL: 1. Generate BDL spec & multi-variable dataset42 BDL->>Harness: 2. Execute N-run workloads in isolated sandbox43 Harness-->>Stat: Tamper-proof Hash Chain Event Logs (ledger/)44 Stat->>Stat: 3. Compute Cohen's d, CI95, & Integrity Score (0-100)45 Stat->>Report: 4. Export Tier 1 Summary & Tier 2 Scientific Report46 Report-->>User: Present BENCHMARK_SUMMARY.md & BENCHMARK.md47```48491. **Step 1: Benchmark Spec Initialization (`.bench.yaml`)**:50 Drafts or updates a declarative BDL v6.0 specification file under `./benchmarks/` defining baseline controls, candidate targets, hypotheses, and metric weights.512. **Step 2: Isolated Sandbox Workload Execution**:52 Runs workload tasks across target subjects in isolated sandboxes to prevent environment side-effects or source code mutation. All execution events are logged to a cryptographic Hash Chain Evidence Ledger (`ledger/`).533. **Step 3: Statistical Inference & Integrity Audit**:54 Filters outliers using Interquartile Range (IQR), calculates percentiles ($p_{50}, p_{95}, p_{99}$), Student's t-test $p$-values, 95% Confidence Intervals ($\text{CI}_{95}$), Cohen's $d$ Effect Size, Bayesian posterior probabilities, and the mathematical **Benchmark Integrity Score** ($0 - 100$).554. **Step 4: Dual-Tier Artifact Emission**:56 Generates publication-ready report artifacts in `./benchmarks/results/`:57 - **Tier 1 (`BENCHMARK_SUMMARY.md`)**: High-impact card designed for direct embedding into GitHub `README.md` files (badges, visual Mermaid charts, key win deltas, top 3 testcase highlights).58 - **Tier 2 (`BENCHMARK.md`)**: Exhaustive scientific report detailing statistical formulas, DAG Evidence Graph references, and the full multi-variable testcase result matrix.5960---6162## 2. Generic BDL Specification Standard (`<benchmark-name>.bench.yaml`)6364```yaml65apiVersion: benchforge/v6.066kind: Benchmark6768metadata:69 id: "BF-EV-<GENERATED_ID>"70 name: "<target-subject>-evaluation"71 version: 1.0.072 author: "<author-name>"73 license: "MIT"7475scope:76 measures:77 - "<primary-evaluation-metric-1>"78 - "<primary-evaluation-metric-2>"79 does_not_measure:80 - "<out-of-scope-boundary-1>"81 intended_users:82 - "<target-audience>"83 validity_boundary: "<validity-environment-scope>"8485threat_model:86 benchmark_gaming:87 severity: "HIGH"88 mitigation:89 - "Hidden evaluation split (datasets/private/)"90 evaluator_bias:91 severity: "MEDIUM"92 mitigation:93 - "Blind human review protocol"9495experiment:96 hypothesis:97 null_h0: "<candidate-subject> shows no statistical quality improvement over <baseline-subject>."98 alternative_h1: "<candidate-subject> achieves statistically significant superiority with Cohen's d >= 0.8."99 constraints:100 sample_size_N: 20101102statistics:103 sampling:104 method: "sequential"105 stop_condition: "bayesian_confidence > 99%"106107integrity:108 formula:109 dataset_quality: 0.25110 reproducibility: 0.25111 fairness: 0.20112 leakage_protection: 0.15113 statistical_power: 0.15114115subjects:116 baseline:117 subject_ref: "subjects/skills/<baseline-subject>.yaml"118 composition:119 model: "<base-model-id>"120 skills: ["none"]121 tools: ["<tool-id>"]122 candidate:123 subject_ref: "subjects/skills/<candidate-subject>.yaml"124 composition:125 model: "<base-model-id>"126 skills: ["<candidate-skill-id>"]127 tools: ["<tool-id>"]128129workload:130 dataset:131 ref: "datasets/manifests/<dataset-id>.yaml"132 categories:133 - "code_generation"134 - "complex_reasoning"135 - "system_architecture"136 - "technical_specs"137 - "adversarial_edge_cases"138139evaluation:140 index_name: "<Subject> Evaluation Index"141 method: "weighted_average"142 metrics:143 quality_pass_rate:144 type: "quality"145 unit: "%"146 weight: 0.4147 direction: "higher_is_better"148 wall_time_ms:149 type: "performance"150 unit: "ms"151 weight: 0.3152 direction: "lower_is_better"153 token_cost_usd:154 type: "efficiency"155 unit: "USD"156 weight: 0.2157 direction: "lower_is_better"158159claims:160 - id: "claim-001"161 statement: "<candidate-subject> demonstrates statistically significant performance superiority."162 evidence_metrics: ["quality_pass_rate"]163 confidence_level: "HIGH"164```165166---167168## 3. Universal Multi-Variable Workload Taxonomy169170- **💻 Code Generation**: `.ts`, `.py`, `.luau`, `.go` syntax correctness, unit test pass %, zero stubs.171- **🧠 Complex Reasoning**: Multi-step debugging, root cause accuracy %, long-context memory.172- **🏗️ System Architecture**: Class/module modularity, clean client/server schema contracts.173- **📄 Technical Specs**: `.md` completeness score, zero superficial summaries, valid Mermaid charts.174- **🛡️ Adversarial Edge**: Vulnerable code patch rate %, prompt injection robustness.175176---177178## 4. Scientific Artifact Package179180Executing a benchmark run emits an immutable artifact package:181- **`BENCHMARK_SUMMARY.md`**: Tier 1: GitHub High-Impact Summary Card (Fast Scan for README embed).182- **`BENCHMARK.md`**: Tier 2: Main research report with Multi-Variable Workload Breakdown & Claims.183- **`BENCHMARK_CARD.md`**: Benchmark identity, metrics, integrity score, & threat mitigations card.184- **`DATASET_CARD.md`**: Public/Private split, license, & dataset calibration card.185- **`EXPERIMENT_CARD.md`**: Execution sandbox, environment lock, & event replay card.186- **`ledger/`**: Cryptographic Hash Chain Event Logs (`hash(prev + current)`).187- **`analysis.json`**: Frequentist ($p, d$) & Sequential Bayesian statistics.188- **`reproduce.sh`**: 1-Command shell runner script.189190---191192## 5. Key Artifact Locations193194- **Research Specification**: [guide.md](file:///D:/Liem%20Product/Liem%20Skills/skills/benchforge/docs/guide.md)195- **Governance & Subject Registry**: `skills/benchforge/governance/`196- **BDL Spec Example**: `./benchmarks/<benchmark-name>.bench.yaml`197- **Output Artifacts**: `./benchmarks/results/`