Skip to content

v0.6.0 — YAML Safety Integration

Choose a tag to compare

@Kubonsang Kubonsang released this 15 Jun 02:45
a45e912

unity-ctx v0.6.0 — YAML Safety Integration

Every write path is now gated by the unity-fileid-graph safety kernel (v0.9.0), consumed as a Go library. unity-ctx provides the agent-facing command surface; the kernel decides whether each mutation is safe at the Unity-YAML / fileID-graph level.

Highlights

  • Three-phase graph integrity check on scene apply, prefab set, asset set:
    • pre_check (target before planning) and temp_check (candidate bytes before commit) — a blocking ERROR returns BLOCKED code=GRAPH_CHECK_FAILED (exit 0) and never touches the file, including dry-run.
    • final_check (re-read after a committed write) — failure returns ERROR WRITE_COMMITTED ... backup=<path> (exit 1) with the rollback path.
    • WARN findings are surfaced (CHECK lines) but do not block.
  • meta guid — resolve a prefab/asset GUID from its .meta file; NEED_PREFAB_GUID when absent, never a guess.
  • scene patch / scene suggest GUID auto-resolve--prefab-guid optional; resolved from .meta via --project.
  • refs (scene/prefab/asset) — read-only PPtr/GUID reference evidence, text + --json (with issues[] detail).
  • Uniform agent-facing contractBLOCKED/CHECK/REF/NEED_PREFAB_GUID prefixes, consistent JSON envelope (safety payload, patch_plan on blocked results), exit-code policy documented.

Install

go install github.com/Kubonsang/unity-ctx/cmd/unity-ctx@v0.6.0

Single static binary, no runtime dependencies.

🤖 Generated with Claude Code