Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor
Document the runtime compatibility policy for agents
shinshin86df17c3bde04d
diff --git a/AGENTS.md b/AGENTS.mdindex 9641570..789731c 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -24,5 +24,20 @@ uv run tools/test_agent_tools.py```The numerical deformation regression must remain 0 px (physics has floating-point tolerance).++## Runtime compatibility++The `mesh-avatar` runtime has existing users. Add features without breaking them:++- Make new avatar features optional data, such as new sprite names or optional rig fields.+ An avatar without that data must render exactly as before; the regression stays 0 px.+- Older runtimes must keep working with avatars made for newer ones. They ignore sprite+ names and rig fields they do not know, so add new ones instead of changing the meaning or+ format of existing fields, sprite names and files.+- Keep the public API compatible: exports of `packages/runtime/src/index.ts`, its types,+ `createMeshAvatar` options and methods such as `setExpression` and `setEmotion`. Add+ optional parameters or new methods instead of changing existing ones.+- Add a changeset: `minor` for a new feature, `patch` for a fix. Ask the person before any+ breaking (`major`) change.Use `npm run validate-rig -- projects/<name>/rig.draft.json` before building and`npm run render-poses -- projects/<name>` to produce local review images.