dice-real-mode-tests
Validate dice integrity end to end with real services through the MCP dice test suite.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- dice-real-mode-tests
- description
- Validate dice integrity end to end with real services through the MCP dice test suite.
03 SKILL.md 正文
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)
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_dicetool 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)
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_MISMATCHwarnings can appear; server overrides with tool_results.- Final
run.jsonshould show aligned totals acrossdice_rolls,dice_audit_events, andtool_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_dicetool is exposed. - If chi-squared > 50: Check
rng_verifiedfield in evidence - may indicate fabrication.
04 同仓库更多 Skills
instinct
Use when the user invokes /instinct or /in, or asks to "message Instinct", "ask Instinct", "tell Instinct", "check Instinct", or read replies from the configured peer assistant. iMessage first, WhatsApp Web as fallback.
hr
Compatibility alias for history-resume; produce the same fresh-state, provenance-aware resume briefing.
history-resume
Resume briefing for the current repository branch or worktree using fresh state and admitted history sources.
grok
Alias for the canonical grokbot browser conversation workflow; /grok talks to the Grok bot the same way /dot talks to Dot.
codexa-bench
Compare `codexa` and normal `codex` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.