1200+ distilled gold examples, journal system, redstone mastery, safety awareness

Distilled Training Data (1,203 examples):
- 341 initial gold (plugins, enchantments, builds, effects, god, errors)
- 165 buildings + pipeline (100 structures built on dev, 65 request→query→act)
- 24 safety-aware (worldborder, safe tp, intentional harm, gamemode checks)
- 17 advanced logic (decanonized items, redstone gates, iterative builds)
- 12 redstone mastery (NOT/OR/AND/XOR/RS-latch/T-flip-flop/comparator/clock)
- 7 circuit verification and diagnosis
- 1 compact comparator gates
- 10 redstone methodology (build→test→save→recall→learn from mistakes)
- 8 player journal usage
- 29 creative+uncommon+pipeline+god with full tool chains

Player Journal System:
- agent/tools/player_journal.py — per-player text files (1-10 lines)
- journal.read + journal.write tool schemas added
- Cross-contaminated: God and Sudo share same journal per player
- Includes sentiment, relationship, builds, preferences, skill level

Redstone Engineering:
- agent/prompts/redstone_rules.md — baked-in wall torch, dedicated lead, repeater rules
- Learned from 4 iterations of 8-switch circuit: wall_torch on back face, not top
- T-junction bypass prevention: dedicated lead wire between merge and NOT block
- RCON limitation: can build circuits but cannot test them (lever toggle doesn't propagate)

Training Data Cleaning:
- 466 @s→@p fixes, 10 template commands removed
- 12 outdated refusals replaced with correct plugin commands
- Data de-duped across all sources

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mortdecai
2026-03-21 20:50:52 -04:00
parent d9acb653fe
commit 9c2c9a2310
86 changed files with 34873 additions and 1676 deletions
+59
View File
@@ -549,6 +549,65 @@ TOOL_SCHEMAS: List[Dict[str, Any]] = [
}
}
},
# ── Player journal tools ──────────────────────────────────────────
{
"name": "journal.read",
"description": (
"Read a player's journal — a short 1-5 line summary of past interactions, "
"preferences, builds, sentiment, and relationship history. Read this before "
"responding to understand who you're talking to. Returns empty if no journal exists."
),
"parameters": {
"type": "object",
"properties": {
"player": {
"type": "string",
"description": "Player name to read journal for."
}
},
"required": ["player"],
"additionalProperties": False
},
"returns": {
"type": "object",
"properties": {
"ok": {"type": "boolean"},
"journal": {"type": "string"}
}
}
},
{
"name": "journal.write",
"description": (
"Overwrite a player's journal. Aim for 1-5 lines, but up to 10 for players "
"with complex history. You have free reign — decide what to keep and what to condense. "
"Include ALL modes' knowledge: sudo interactions, god sentiment, builds, preferences, "
"skill level, trust, notable events. One journal per player — both God and Sudo "
"read and write to the same file. Overwrite the entire journal to keep it fresh."
),
"parameters": {
"type": "object",
"properties": {
"player": {
"type": "string",
"description": "Player name."
},
"content": {
"type": "string",
"description": "Full journal content (1-5 lines). This REPLACES the entire journal."
}
},
"required": ["player", "content"],
"additionalProperties": False
},
"returns": {
"type": "object",
"properties": {
"ok": {"type": "boolean"},
"lines": {"type": "integer"}
}
}
},
]