v0.6.0 — YAML Safety Integration
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) andtemp_check(candidate bytes before commit) — a blockingERRORreturnsBLOCKED code=GRAPH_CHECK_FAILED(exit 0) and never touches the file, including dry-run.final_check(re-read after a committed write) — failure returnsERROR WRITE_COMMITTED ... backup=<path>(exit 1) with the rollback path.WARNfindings are surfaced (CHECKlines) but do not block.
meta guid— resolve a prefab/asset GUID from its.metafile;NEED_PREFAB_GUIDwhen absent, never a guess.scene patch/scene suggestGUID auto-resolve —--prefab-guidoptional; resolved from.metavia--project.refs(scene/prefab/asset) — read-only PPtr/GUID reference evidence, text +--json(withissues[]detail).- Uniform agent-facing contract —
BLOCKED/CHECK/REF/NEED_PREFAB_GUIDprefixes, consistent JSON envelope (safetypayload,patch_planon blocked results), exit-code policy documented.
Install
go install github.com/Kubonsang/unity-ctx/cmd/unity-ctx@v0.6.0Single static binary, no runtime dependencies.
🤖 Generated with Claude Code