Back to skills
SKILL.md
Dice Real Mode Tests
ASecurityValidate dice integrity end to end with real services through the MCP dice test suite.
- 6 stars
- 0 votes
- 0 copies
- 2 views
- Added November 26, 2026
Works with
Security analysis
100/100npx -y skills add jleechanorg/jleechan-skills --skill dice-real-mode-tests --agent claude-codeAre you the author of Dice Real Mode Tests?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jleechanorg-dice-real-mode-tests)---
name: dice-real-mode-tests
description: Validate dice integrity end to end with real services through the MCP dice test suite.
---
# Dice Real-Mode Tests (MCP)
Use this when validating **dice integrity** end-to-end with real services.
## Script Location
- `testing_mcp/test_dice_rolls_comprehensive.py`
## Required Standards
- **Evidence**: Follow `.claude/skills/evidence-standards.md` (Three-Evidence Rule)
- **Authenticity**: Follow `.claude/skills/dice-authenticity-standards.md` (Chi-squared + RNG verification)
## Preview Server (real mode)
```bash
python testing_mcp/test_dice_rolls_comprehensive.py \
--server-url https://<preview-app>.run.app/mcp \
--evidence \
--evidence-dir /tmp/<run-id> \
--models gemini-3-flash-preview,qwen-3-235b-a22b-instruct-2507
```
Notes:
- Distribution tests will skip if `roll_dice` tool is unavailable on preview.
- Qwen/native_two_phase uses **server tool_results** as authoritative; mismatches are overridden.
- Use a unique `/tmp/<run-id>/` (timestamp or UUID) per run to avoid collisions.
## Local MCP (real services)
```bash
python testing_mcp/test_dice_rolls_comprehensive.py \
--start-local --real-services --evidence --enable-dice-tool \
--models gemini-3-flash-preview,qwen-3-235b-a22b-instruct-2507 \
--evidence-dir /tmp/<run-id>
```
Outputs:
- `run.json` (scenario results, tool_results, dice_audit_events, warnings)
- `local_mcp_*.log` (server logs)
- `raw_*.txt` (raw model responses when enabled)
## What This Covers
- **Gemini code_execution** path (dice_audit_events source=code_execution).
- **native_two_phase** path (Qwen/Cerebras tool_results).
- **Distribution** tests (1d6 / 1d20) when roll_dice tool is available.
- **Edge cases** (invalid notation, 1d0+5).
## Common Expectations
- `DICE_ROLLS_MISMATCH` / `DICE_AUDIT_MISMATCH` warnings can appear; server overrides with tool_results.
- Final `run.json` should show aligned totals across `dice_rolls`, `dice_audit_events`, and `tool_results`.
## Chi-Squared Validation
After running distribution tests, validate authenticity:
| Chi-Squared | Sample Size | Verdict |
|-------------|-------------|---------|
| < 30 | 100+ | PASS |
| 30-50 | 100+ | WARNING - Investigate |
| > 50 | 100+ | FAIL - Likely fabrication |
**Reference**: PR #2551 detected fabrication with chi-squared = 411.81
## Troubleshooting
- If native_two_phase fails: ensure tool_results are present in responses.
- If mismatch errors appear in `run.json`: check the log and confirm override occurred.
- If distribution tests skip on preview: expected unless `roll_dice` tool is exposed.
- If chi-squared > 50: Check `rng_verified` field in evidence - may indicate fabrication.
Attribution
Related skills
View all in testing →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.