mirror of
https://github.com/kevwillow/scaffold.git
synced 2026-10-20 08:37:34 +02:00
Add _format metadata key to tool schemas and presets to prevent cross-loading (e.g., loading a preset as a tool schema). Three-tier enforcement: correct value loads silently, missing value warns (tools) or accepts silently (presets for backwards compat), wrong value hard rejects with clear error. - Add _format check to tool loading path (after JSON parse, before validate_tool) - Add _format check to preset loading path (silent for missing) - Include _format: scaffold_preset in serialize_values output - Add _format: scaffold_schema to all 10 bundled tool schemas - Bundle example.json as a reference schema demonstrating every feature - Add schema.md (JSON schema specification) to the repo - Update PROMPT.txt and schema.md with _format in spec and examples - Add Section 45 tests (format marker behavior, 17 new assertions) - Patch test_manual_verification.py for missing-format dialog handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>