Character Authoring Manual

This manual covers creating a package by hand, including V11 fields, artwork, and testing in Studio.

1. Decide identity and scope

Choose a package ID, package version, Character ID, localized name, and a small action repertoire the artwork can communicate. Use stable IDs instead of display order. Start with only behaviors that the real application can support. V11 repertoire examples are activate-host-surface, visit-host-surface, inspect, emote, and rest.

2. Create package resources

my-character/
├── manifest.json
├── character/definition.json
└── assets/
    ├── primary.png
    ├── fallback.png
    ├── idle-01.png
    ├── walk-01.png
    └── action frames...

List each declared image in manifest.json with a unique package-scoped Asset ID, kind: "image", actual mediaType, and package-relative path. Every definition reference must resolve to an asset declared by the package. The package loader treats content as untrusted data and does not execute scripts.

3. Author neutral render and fallback

Select a neutral primary image for the normal render path. Add a fallback when the consuming renderer has a defined fallback behavior. Set the normalized anchor at the intended attachment point (for a standing character, often bottom-center); do not assume that a particular numeric scale or pixel size is universal. The Consumer controls the actual placement and scale.

4. Create motion/reaction assets

Plan role clips before generating frames:

Role Authoring question
Idle Does the loop feel alive without jitter?
Locomotion Are direction and leg/body sequence readable?
Activation Is attention/response distinct from idle?
Touch Is user interaction visibly acknowledged?
Recovery Does the finite reaction return naturally to idle?
Custom action Does the action's semantic meaning read at the real display size?

For each sequence, keep canvas, baseline, silhouette, and face position coherent. Use finite clips for action/reaction/recovery and loops for roles intended to persist. Four-frame example sequences are not a requirement for every character.

5. Author V11 definition

The Character Definition guide explains the V11 fields. Here is an example:

{
  "schemaVersion": 11,
  "id": "example.simple-cat:cat",
  "display": { "name": { "en-US": "Example Cat" } },
  "render": {
    "primaryAsset": "example.simple-cat:primary",
    "anchor": { "x": 0.5, "y": 1 },
    "defaultScale": 1
  },
  "behavior": {
    "enabled": true,
    "actionPreferences": {
      "activate-host-surface": 1,
      "visit-host-surface": 0.5
    }
  },
  "capabilities": {
    "autonomousActions": ["activate-host-surface", "visit-host-surface"]
  }
}

This excerpt shows fields from the current schema; a production package also declares all referenced assets and may add Personality, scheduling, Presentation Behavior, clips, and bindings. capabilities.autonomousActions says what this Character can do. It does not assert any target exists.

6. Set Personality and scheduling

Personality values adjust selection and timing policies. A trait does not directly command an action. Scheduling fields are enabled, meanOpportunityIntervalMs, minimumIdleDurationMs, postActionCooldownMs, and opportunityIntervalJitterRatio. See the parameter reference for valid values and validate the finished package.

The action preference keys for activate-host-surface and visit-host-surface live in Behavior's action preferences. V11 characterActionPreferences is for inspect, emote, and rest. Use zero/missing carefully: it affects mass, while repertoire/capability and applicability are separate concerns.

7. Bind Presentation semantically

Define clips in presentation.clips, then bind them in presentation.bindings. Common roles are idle, locomotion, action phases, reactions, and V11 autonomousActions. Bind character-touched to a reaction clip and interaction-context-invalidated to Recovery when the Character authors those states. A recovery clip needs the matching binding.

Add Presentation Behavior stances only for authored context suppression constraints. Stances normal, calm, and alert are not the same as Runtime-owned idle, locomotion, touch, or Recovery lifecycle lanes.

8. Validate the package

Load with the Public V11 Content API and inspect structured issues:

import { loadCharacterContentV11 } from "@charaweave/content";
const result = await loadCharacterContentV11({ reader, characterId });
if (!result.ok) {
  throw new Error(`Character package has ${result.issues.length} validation issue(s)`);
}

Fix missing asset IDs, path errors, schema shape, or invalid bindings at their source. Do not silence validator errors or cast the untrusted JSON to a TypeScript type.

9. Inspect in Studio

Start Studio from the workspace and import/select the package. Confirm:

  1. identity and role assets load;
  2. Package validation passes;
  3. authored values match the definition;
  4. repertoire/capability matches authored intent;
  5. current target fixtures make the expected actions applicable;
  6. the runtime reports effective weights and the selected action;
  7. clips advance at real preview size and finite lifecycle returns to idle;
  8. touch and target invalidation exercise reaction and Recovery;
  9. .chara export and re-import preserve authored values.

See the Studio Manual for fault isolation.

10. Prepare for a real Consumer

Before integration, decide which product object can be a target, its stable semantic ID/role/capabilities, which business action the Consumer executes, and which renderer owns asset loading and clip terminals. A valid package alone does not provide DOM discovery, target registration, or product behavior. Follow the Consumer Integration Manual.

Authoring checklist