Skip to content

chore(benchmarks): add missing config.yaml stubs for bias, toxicity, robustness, red-teaming - #17

Merged
felipelago17 merged 2 commits into
mainfrom
claude/repo-docs-metadata-d92155
Jun 18, 2026
Merged

chore(benchmarks): add missing config.yaml stubs for bias, toxicity, robustness, red-teaming#17
felipelago17 merged 2 commits into
mainfrom
claude/repo-docs-metadata-d92155

Conversation

@felipelago17

Copy link
Copy Markdown
Owner

Summary

  • Four benchmark directories referenced by docs/benchmarks/*.md and docs/methodology/five-phase-assessment.md were missing their config.yaml files — truthfulness/ was the only benchmark with a complete directory structure.
  • Adds config.yaml (pinned dataset sources, evaluation parameters, primary/secondary metric declarations) and __init__.py for:
    • benchmarks/bias/ — WinoBias + StereoSet + CrowS-Pairs → bias_macro_f1
    • benchmarks/toxicity/ — RealToxicityPrompts + ToxiGen → toxicity_rate
    • benchmarks/robustness/ — AdvGLUE + PromptBench → accuracy_under_attack
    • benchmarks/red-teaming/ — HarmBench + custom suite → refusal_rate
  • Adapter implementations are out of scope; these stubs satisfy the config.yaml references in the benchmark documentation pages and ensure benchmarks/*/config.yaml references in the docs are accurate.

Test plan

  • All 75 pytest tests pass (pytest tests/ -v)
  • mkdocs build --strict passes
  • benchmarks/bias/config.yaml, benchmarks/toxicity/config.yaml, benchmarks/robustness/config.yaml, benchmarks/red-teaming/config.yaml all exist and are valid YAML

🤖 Generated with Claude Code

https://claude.ai/code/session_01WFc4mqrrwQKn4ieExoB1rX


Generated by Claude Code

claude added 2 commits June 18, 2026 21:38
…ownlint

Scoring module (closes #4):
  scoring/aggregator.py — ScoringConfig (immutable, validated weights),
  ScoreAggregator (weighted overall safety score, partial-evaluation
  re-normalisation, toxicity inversion), ScoreReport (to_dict + write_json
  to results/{model_id}/summary_{ts}.json). Default config matches
  docs/scoring.md: red_teaming 30%, robustness 25%, truthfulness 20%,
  toxicity 15%, bias 10%. 29 pytest tests, all passing.

Markdownlint fixes (docs/**):
  .markdownlint.json — disable MD024 (intentional repeated sub-headings)
  and MD060 (pre-existing repo-wide table pipe style)
  MD040 — add ```text language tag to formula code blocks
  MD034 — wrap bare URLs in <> in all six evaluation module pages
  MD022/MD032 — add blank lines around headings and list items
  MD036/MD026 — convert bold pseudo-headings to ### and strip trailing colons

All 75 tests pass; zero markdownlint errors on new docs pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFc4mqrrwQKn4ieExoB1rX
…robustness, red-teaming

Four benchmark directories referenced by docs/benchmarks/*.md and
docs/methodology/five-phase-assessment.md were missing their config.yaml
files, creating a documentation accuracy gap (truthfulness/ was the only
benchmark with a complete directory structure).

Add config.yaml (with pinned dataset sources, evaluation parameters, and
primary/secondary metric declarations) and __init__.py for:
  benchmarks/bias/       — WinoBias + StereoSet + CrowS-Pairs → bias_macro_f1
  benchmarks/toxicity/   — RealToxicityPrompts + ToxiGen → toxicity_rate
  benchmarks/robustness/ — AdvGLUE + PromptBench → accuracy_under_attack
  benchmarks/red-teaming/ — HarmBench + custom suite → refusal_rate

Adapter implementations are out of scope for this change; these stubs
satisfy the config.yaml references in the benchmark documentation pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WFc4mqrrwQKn4ieExoB1rX
@felipelago17
felipelago17 merged commit c2a110b into main Jun 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants