Skip to content

Spec: editable SVG Avatars with two families and truthful activity #748

Closed
1 of 1 issue completed
Closed

Description

@DoodleBears

Problem Statement

Humans need a recognizable PersonaBot Avatar that they can shape themselves and recognize both in the sidebar and in a larger view. Today's deterministic Blobatar and bounded custom image alternatives do not offer editable parts or geometry. An expressive Avatar must preserve the Human's chosen appearance while communicating real work and an independent need for Human attention across Bindings.

A temporary deformation must not erase appearance choices, and unavailable asset versions must not silently replace the character. Visual quality, truthful activity and accessibility need acceptance in both small and large views.

Solution

Add a composed Avatar alternative in the existing PersonaBot Profile flow. The first release includes two original Avatar Families: illustrated people inspired by Notion Faces, and abstract characters inspired by Grokbot/ChatGPT Dots. These are visual references, not reused artwork or a prescribed implementation protocol.

Humans choose compatible preset parts, freely select legal content colors, and adjust rich but bounded geometry with immediate local preview and explicit Save/Cancel. The Host validates and atomically persists one versioned Avatar Appearance recipe with its derived static snapshot. All Bindings read the same saved appearance.

Both families express the existing shared Bot-state semantics through their own face, gaze and overall poses. Abstract characters can briefly transform substantially into dots or symbols during transitions, then restore the complete configured character. Small Avatars move quietly; large views offer richer expression. Execution and Human attention remain independently visible. Missing compatible versions preserve the original recipe and display its snapshot with a clear temporary editing/character-animation limitation.

This is a specification deliverable. Runtime behavior is not delivered by this issue, and this planning session does not authorize implementation, implementation tickets or merge.

User Stories

  1. As a Human, I want to edit a PersonaBot's Avatar from its existing Profile, so that identity presentation has one discoverable home.
  2. As a Human, I want illustrated people and abstract characters in the first release, so that I can choose different visual forms without waiting for another release.
  3. As a Human, I want to select compatible parts within a family, so that the resulting character remains coherent.
  4. As a Human, I want separate front, back and side hair choices for illustrated people, so that hairstyle customization is more expressive than one whole-hair preset.
  5. As a Human, I want to adjust facial and head geometry, so that proportions, position, size, spacing and tilt can distinguish my PersonaBot.
  6. As a Human, I want bounded hair length and curvature controls, so that I can refine hair without drawing paths.
  7. As a Human, I want abstract-family shape controls appropriate to that family, so that it is not forced into human anatomy.
  8. As a Human, I want legal content colors to be freely selectable, so that I can create a recognizable palette.
  9. As a Human, I want accessories to cross families only when explicitly adapted, so that incompatible parts cannot produce broken combinations.
  10. As a Human, I want immediate preview of an unsaved draft, so that I can judge edits before changing the shared appearance.
  11. As a Human, I want Save to validate and persist the recipe and matching snapshot together, so that all views recover a consistent appearance.
  12. As a Human, I want Cancel to discard the draft, so that trying an edit does not change the saved character.
  13. As a Human, I want invalid or incompatible choices explained before persistence, so that I can correct them without silent replacement.
  14. As a Human, I want my Avatar restored after reload, reconnect and Host restart, so that customization survives a browser or process lifecycle.
  15. As a Human, I want the same saved appearance in the Roster and enlarged Profile view, so that I recognize one PersonaBot across Bindings.
  16. As a Human, I want legal extreme parameter combinations to remain intact through supported poses, so that an accepted edit cannot break during activity.
  17. As a Human, I want actual idle, thinking and tool activity expressed by the character, so that its motion corresponds to observable work.
  18. As a Human, I want searching, coding, executing and generic work to follow the shared projection, so that different surfaces do not invent different work states.
  19. As a Human, I want an independent native approval indicator while the PersonaBot continues other work, so that a need for me does not hide execution.
  20. As a Human, I want the approval indicator to clear from owning facts when resolved or cancelled, so that old requests do not appear live after restart.
  21. As a Human, I want different families to express the same activity meanings in their own poses, so that visual variety does not change the product semantics.
  22. As a Human, I want abstract characters to briefly become dots or symbols, so that transitions can be expressive while stable work poses remain recognizable characters.
  23. As a Human, I want accessories to return after temporarily hiding during deformation, so that motion never changes saved choices.
  24. As a Human, I want rapid work changes to continue from the displayed pose, so that transitions do not jump, queue obsolete motions or accumulate particles.
  25. As a Human, I want restrained small-avatar motion and richer large-avatar motion, so that both reading a sidebar and inspecting a character work well.
  26. As a Human, I want reduced motion to preserve readable activity and attention indicators, so that decorative movement is optional.
  27. As a Human, I want hidden or offscreen Avatars to stop unnecessary animation, so that long histories and many PersonaBots do not waste resources.
  28. As a Human, I want connection freshness clearly represented, so that a disconnected character does not misleadingly perform stale work or imply success.
  29. As a Human, I want missing asset/rig versions to show the original saved snapshot and preserve the recipe, so that compatibility loss does not change my PersonaBot's appearance.
  30. As a Human, I want deterministic Blobatar and bounded image choices to remain available, so that composed Avatars add a compatible presentation option.
  31. As a Human preparing explicit sharing, I want the selected recipe and fallback to be portable presentation, so that a fresh identity can retain the shared appearance under the sharing contract.
  32. As a Human, I want local Save and later Git updates to respect local presentation ownership, so that editing does not automatically publish and pulling Memory does not automatically overwrite my preferences.

Implementation Decisions

Authority and existing seams

  • Avatar Family and Avatar Appearance are application-defined PersonaBot concepts. The PersonaBot owning module/Registry owns durable appearance, selected default/image/composed presentation and canonical validation. The current Registry uses an atomically replaced record; the operational-database ADR is a target, not permission to create another store. Exact schema, revision handling and migration remain implementation design.
  • Use the existing Host capability through the Typert remote Service/API Gateway and existing Client Profile/Avatar composition boundaries. Host authorization derives the target PersonaBot through the established trusted context. Keep the API Gateway's single transport ownership.
  • Editor state is a local draft. Save validates stable part IDs, legal colors, finite bounded numbers, family compatibility, versions and resource limits before canonical persistence. Save succeeds only with a recipe and snapshot bound to the same appearance revision; a rejected/failed save leaves the previous committed appearance intact. Cancel discards the draft.
  • The snapshot is derived data, not an alternative editable recipe. Reuse the existing bounded raster policy: a 512×512 snapshot and decoded payload at most 128 KiB. Reuse authenticated lightweight asset reads and caching; routine roster/activity refreshes carry references rather than full snapshot bytes. Exact generation and transaction mechanics must be validated before coding.
  • Keep existing image validation and deterministic Blobatar fallback compatible. Composed recipes are a distinct validated data contract, not SVG markup disguised as an accepted image upload.

Catalog, geometry and motion

  • The first release contains both original families, detailed part/geometry editing, short abstract dot/symbol transitions and version fallback. Proving one family first is delivery ordering, not a reduction of the first-release scope.
  • Illustrated people support head/facial choices and separate front/back/side hair with position, size, spacing, tilt, length and curvature where appropriate. Abstract characters expose their own useful shape parameters. Combination is family-local except explicitly adapted accessories.
  • Each authored asset/rig contract declares stable IDs, anchors, layer/occlusion rules, parameter ranges, compatible parts and supported poses. Validate attachment, clipping and readability at legal extrema in every supported pose. Explain and constrain incompatible combinations rather than silently selecting defaults.
  • Start with a minimal visually meaningful original catalog per family; part counts, parameter ranges and tool-specific poses require visual/runtime validation. No fixed catalog size is promised. Simple illustration/light volume is sufficient; furry rendering is not required.
  • Share execution semantics and transition rules, with family-specific face, gaze and overall pose adapters. Hands and full-body gestures are not required in this release.
  • Parameterized poses with a bounded independent dot/symbol layer are the preferred candidate. Parts can hide during topology changes without altering the recipe and fully return at the stable pose. Dots/symbols principally serve short transitions, not an entire working phase. A universal rig or arbitrary-path interpolation is not required.
  • First validate controlled inline SVG in the existing React Client with stable nodes, ordinary transform/opacity motion and bounded pose sampling where needed. No new animation library is selected. Client renderers own transient pose/time state; frames do not cause per-frame RPC, SessionEvent writes, canonical appearance updates or whole-tree React reconstruction.
  • Retarget from the current displayed pose with bounded transition state. Dot/symbol capacity and identities remain stable and bounded; rapid events do not append particle lists or queue obsolete sequences. Decorative easing never delays truthful attention updates.
  • Multiple instances isolate SVG definitions/IDs. Trusted catalog artwork is rendered from validated data; recipes cannot inject scripts, external resources or arbitrary attribute strings.

Activity, attention and lifecycle

  • Consume the existing application-defined shared Activity Projection derived from DSH SessionEvents and explicit Session Ownership. The Avatar does not aggregate Sessions again or infer activity/attention from model text, tool arguments, local sends or background execution.
  • The first working slice covers existing idle/thinking/working and searching/coding/executing/generic-working effects, together with independent attention. Use the delivered native approval-count contract from the Bot activity: Orchestrator and Assignment aggregation #123 owner. The same revisioned snapshot/live stream supplies all consumers; no request IDs or private Tool data enter Avatar presentation.
  • Native approval attention is live/process-local. Its owning broker counts committed requests and clears them on decision, abort, ownership/scope invalidation or disposal; a new Host generation does not recreate live counts from historical cards. Preserve these semantics while rendering the count alongside execution.
  • Questions, other attention axes and explicit waiting-on-Assignment remain Bot activity: Orchestrator and Assignment aggregation #123 scope. Waiting-on-Assignment has no declared source at this baseline; do not fabricate it or independently implement the owner's contract. Completion/success/error expressions require later explicit result scope and owning facts.
  • Reuse the shared system/full/reduce motion policy. Reduced motion stops decorative loops and large deformations while readable execution/attention labels remain. Hidden/offscreen instances stop sampling, and unmount/mode exit cancels animations and releases observers/subscriptions/resources.
  • Add the presentation freshness behavior needed for disconnected/stale state, coordinated with the existing activity-live consumer. Preserve the last observed facts as such, disclose unavailable synchronization and stop misleading ongoing decorative motion; never translate connectivity loss into idle, success or failure. Recovery accepts the current Host generation/revision and resumes from truthful facts. This freshness presentation is a target, not a claim about the current Client.
  • If a required family/asset/rig/schema version is unavailable, retain the original recipe and show its revision-matched snapshot. Explain that editing and character animation are temporarily unavailable. Independent truthful outer Activity Frame indicators remain usable; never silently substitute compatible-looking parts or promote the snapshot into a recipe.

Sharing and delivery boundaries

  • Local Save does not commit to Memory Git or publish. Under Tracer: publish a Memory Git repo and import through a Bot link #17's explicit sharing preparation, selected portable presentation, recipe, assets/references and fallback must be committed before publication. Fresh-identity import preserves included appearance; omitted avatar uses normal local defaults. Ordinary Git pull does not automatically apply updated presentation.
  • Validate the recipe/snapshot portable round trip and import trust boundary without implementing the full publication service. Avoid dangling appearance references and executable renderer/configuration imports. Credentials, live grants/bindings and execution authority remain outside portable presentation. Identity-preserving Profile portability stays with Design: Profile Backup / Restore / Transfer UX #76.
  • After separate implementation authorization, first complete one family's production-shaped editor → Registry → bridge → Roster/large view → real tool activity plus delivered approval attention → recovery slice and obtain Human feedback. Then reuse the same semantics for the second family and complete the first-release geometry, transitions and fallback acceptance. No backend-only foundation or static preview counts as the complete tracer bullet.

Testing Decisions

The Human confirmed the following high-level behavior seam on 2026-10-03: Profile edit/Save → Registry → bridge re-read → identical saved appearance in sidebar and large view → real Tool activity drives motion with independent delivered attention → reconnect/restart recovery. Prefer this existing integration boundary to a second test API or appearance store. Automated tests assert visible/durable outcomes, not private renderer structure or mirrored implementation formulas.

  • Persistence/bridge/editor: prove Save, Cancel, failed validation/write, fresh Registry read and recovery through the actual owning boundary. Cover invalid IDs, nonfinite/out-of-range numbers, illegal colors, incompatible combinations and mismatched snapshot revisions. Prior art is existing Registry persistence, bridge Avatar validation and Client Profile interaction coverage.
  • Real activity and attention: verify shared projection changes drive both small and large views without modifying the recipe. Cover concurrent tools, mixed kinds, concurrent approvals clearing from two to one to zero, cancellation/scope cleanup and a new Host generation without historical attention resurrection. Reuse pending Tool activity, native approval broker and activity snapshot/live-stream test patterns. Do not recreate Bot activity: Orchestrator and Assignment aggregation #123 ownership tests as a new aggregator.
  • Family/geometry behavior: test both families, legal parameter extrema, hair/face/accessory compatibility, retained choices after temporary hiding and restoration, and small/large presentation. Assert two instances of the same Avatar cannot affect each other's SVG definitions. Use targeted visual evidence for geometry/readability rather than treating a whole-markup snapshot as behavioral acceptance.
  • Transition/lifecycle: exercise rapid mid-transition retargeting, bounded particle capacity, stable recovery to the character, shared motion-preference changes, hidden/offscreen pause, unmount cleanup and repeated mount/dispose. Follow existing Avatar, motion-policy and hidden/recovery live-stream tests; measure runtime continuity and resource release in the browser where unit tests cannot establish them.
  • Version/security/portability: remove a referenced compatible version and prove recipe retention, same-appearance snapshot fallback, clear temporary limitation and truthful outer indicators. Validate serialization/import round trips, missing references, malformed or excessive input and hostile executable/resource strings at the owning boundary. Recipe round-trip tests do not claim the full Tracer: publish a Memory Git repo and import through a Bot link #17 publication flow is delivered.
  • Freshness: disconnect during real work, distinguish stale observation from current facts, avoid fabricated idle/result states, and recover using generation/revision protection. Old replies must not overwrite a new baseline. Last-known approval information must not be presented as a newly live request while synchronization is unavailable.
  • Human runtime acceptance: provide an isolated verified DSH instance with actual editing, Save/Cancel, sidebar and genuinely enlarged view for each family in light/dark themes. Run an actual tool while a separate committed native approval is pending, then resolve/cancel it and inspect reload/reconnect/Host restart. Judge sidebar identity/readability and large-view expression separately. Static demos and backend tests alone cannot satisfy this acceptance.
  • Performance acceptance: record exact build revision, browser/device, visible counts, frame times, memory, SVG node/asset costs and bundle/gzip increment. Start measurements at 1/8/32 visible active Avatars, mixed families and repeated rapid transitions, then extend to the realistic supported limit with scrolling/hidden/reduce cases. These are measurement gradients, not proven limits or predetermined passing budgets. Agree measured numerical budgets before claiming performance acceptance; simplify decoration and offscreen work while preserving truthful status if necessary.

Out of Scope

Further Notes

  • Accepted authority: ADR-0118 on refreshed main. It is byte-identical to ADR-0116 from merged design PR #745, commit 2a8ebc59eba873aeb348c66e2569e2bd32d61e82; the later merge renumbered it to resolve a collision. This spec keeps the accepted decision, not the obsolete number.
  • Confirmed design interview and handoff carry Q1–Q20 evidence. This spec synthesizes those decisions and the newly confirmed test seam; it does not reopen the product interview.
  • Baseline refreshed on 2026-10-03: local source review at 2a8ebc59; remote main observed at b8f5caaa89ecc66fe241ef4b89bfc484950a9bce. The intervening merge changes external-IM report delivery and documentation/ADR numbering, not the Avatar Registry/renderer/activity contracts reviewed here. Concrete DTOs, migration and DSH APIs still require verification against the implementation revision and running Host before coding.
  • #740 is merged at bf4a4953dc3f9f2a86bbb4a833864a6e43d4c611. #123 owner outcome confirms native approval attention is delivered, while other attention kinds and declared waiting-on-Assignment remain open. This spec consumes the completed approval contract; it does not wait for the entire Bot activity: Orchestrator and Assignment aggregation #123 issue or take its remaining work.
  • Existing adjacent work: #120 shared Avatar/activity foundation and #58 bounded image avatars are closed; #124 Group activity, #130 Live2D hub, #17 sharing and #76 Profile portability keep their own scope. #743 is the completed design-document issue, not this implementation specification.
  • GitHub feature-label and title/body searches found no equivalent open composed SVG Avatar specification at publication preparation. No existing owner was superseded. ready-for-agent is the to-spec readiness label, not a task claim or implementation authorization from this session. Milestone and Project assignment are not inferred from adjacent features.
  • Remaining implementation validation: original artwork, catalog counts, rig ranges, safe migration/schema, snapshot generation, large-view composition, exact freshness behavior and measured browser budgets. These are validation work inside the accepted design, not grounds to silently narrow the first release.

Activity

  1. added
    enhancementNew feature or request
    ready-for-agentFully specified, ready for an AFK agent
    area:ui-uxInteraction and visual experience; may accompany a code-layer area
    feature:avatarPersonaBot avatar media and activity frame
    area:fullstackEnd-to-end Host and Client implementation
    scope:specNormative specification for follow-on slices
    on Oct 3, 2026
  2. DoodleBears commented on Oct 8, 2026

    @DoodleBears
    ContributorAuthor

    按本轮 Issue 整理结论关闭,本规格对应的实施与验收已完成。

    本次关闭不扩大已验收范围:Live2D #130、完整分享/备份,以及其他独立活动与 attention 功能保持各自范围。

  3. added this to the v1.1 milestone on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fullstackEnd-to-end Host and Client implementationarea:ui-uxInteraction and visual experience; may accompany a code-layer areaenhancementNew feature or requestfeature:avatarPersonaBot avatar media and activity frameready-for-agentFully specified, ready for an AFK agentscope:specNormative specification for follow-on slices

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions