Skip to content

id: design: user presentation assets — shaders, sprites by ID, filters, per-world gating, graceful degradation #5970

Open

Description

@dezren39

Part of the worlds design program: #5955. Statements S66–S72 of the 2026-11-04 brief. Extends the presentation-tiers design in #786 — that issue covers capability tiers with in-band terminal detection; this one covers user-supplied assets and filters living on top of the tiers.

Requirement (Drew, in substance)

  • In the future, users might provide GPU shaders, and images or sprites that were uploaded already as a given ID.
  • A user will be able to set their sprite to have a cape and apply the filter "sparkle" to the cape — without any of that being specifically coded by a given app.
  • This is an imperfect system, and the app would have to enable such capabilities.
  • Over time there may become a common interface for different formats and basic conversion tools at the presentation layer, to allow this to work on a variety of devices and a variety of worlds, which may or may not support different capabilities.
  • Per-world gating: one world might not support filters, because you could make yourself look like a different kind of creature, or make a filter that basically makes you invisible — so it's just disabled in this world.
  • Graceful fallback is authored, not improvised: "when filters are disabled, put static sparkles on the GIF image of my sprite."
  • Terminal degradation: another user viewing on a terminal that only supports ASCII drops down to Dwarf Fortress-style sprites or to a specific character that represents that user — instead of a blue cape with sparkles, it's a blue letter C or an emoji of a cape — even though in other worlds, or in this world with a sufficient client, it's practically MapleStory.

Design points to settle

  • The asset/filter model: assets by ID (uploaded once, referenced everywhere), filters as named composable transforms applied to asset parts (cape), each with declared capability needs.
  • The fallback chain as a first-class declaration: rich → static-substitute → sprite-sheet tier → glyph/emoji. Who authors each rung (asset author, world author, client)?
  • World policy: which asset/filter capabilities a world enables is a world-level declaration users can see before joining (composes with the permission/registry story).
  • Abuse surface: filters as disguise/invisibility is a gameplay decision per world; shaders are code — do user shaders go through the same compile/trust pipeline as user functions (DLL child of #5955)?

Related

  • Presentation capability tiers: #786
  • Graphical client & tooling surface: #5782; Bevy incorporation: #5781
  • Media conversion research child of #5955 (kitty protocol / video-to-ASCII tooling)

Done looks like

A design doc: asset-by-ID model, filter capability declarations, the authored fallback chain, and per-world enablement policy — mapped onto the tiers in #786.

Activity

  1. added
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Wave-2 tie-in (findings F8 item 6, F10) — this design is a deferred decision coming due.

    • Charter (2026-10-28, ID dictation item 6): capability-based specialization — code asks for a form/location and gets the platform's version (phone location vs ESP32 GNSS; pixel-count screens; rotary encoders), text-only mode as the main mode for agents/scripts, and media framed as "typed image/video vs raw byte streams + capabilities — decide over time." The brief's sprite/filter degradation ladder is that media question; this design is the decision point Drew's earlier framing scheduled.
    • Constraint (F10, shipped): presentation is data — legacy UTF-8 text or the versioned Screen cell buffer (max 120×50, cells + style spans); guests never supply terminal escapes, HTML, or CSS. Sprite/filter work must be expressed inside presentation-is-data (new Screen/image-plane data kinds), not as guest-supplied markup.

    Record: workspace/scratch/worlds-capabilities-brief-2026-11-04/conversation-tie-ins.md (F8, F10).

  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Wave-2 follow-ups filed from the prior-art research (Lane B). Granular sub-scopes of this issue, each carrying the relevant research findings + citations:

    Research source: workspace/scratch/worlds-capabilities-brief-2026-11-04/prior-art-research.md. Full wave-2 mapping: workspace/scratch/worlds-capabilities-brief-2026-11-04/wave2-map.md.

  5. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  6. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  7. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  8. 44 remaining items

  9. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    Agent note - handed off

  10. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  11. added
    queue/claimedQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 9, 2026
  12. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Decision record — user presentation assets (umbrella, #5970)

    Design only. This record settles the umbrella scope of #5970 and does not authorize implementation. It states umbrella invariants and links the sibling designs that own each slice; it does not re-decide them.

    State reviewed 2026-11-09 at origin/main e5a4fdcbcb: #5970 OPEN; #6010 OPEN; #6011 CLOSED; #6012 CLOSED; #6013 OPEN with PR #7019 OPEN at 669e243f (Codex review completed, no findings); #786 OPEN; #5955 OPEN.

    1. Umbrella invariants

    1. Presentation is a projection, never authoritative state. Assets, filters and shader effects may change only pixels/cells in a bounded presentation target. They never mutate world data, identity, hitboxes, permissions, chat, or game outcomes.
    2. Every visual capability is declarable and deniable. A world declares which asset and filter capabilities it enables, and a viewer's client declares which it can render. Neither side may assume the other.
    3. Degradation is authored, never improvised. Every rung a viewer can fall to is declared by an author before it is needed. No client invents a substitute for an asset it cannot render.
    4. Assets are referenced by stable ID; effects are named and composable. A user's appearance is asset references + named filters, not a bespoke per-app code path.
    5. Cost and format are contracts, not claims. Rank comes from measurement (id: design: visual-feature cost ranking — measured ranks, per-world gates, per-viewer minimums, fallback substitution #6012); a format name is only valid for the profile a registered adapter actually renders (id: design: shader asset format — named-format shader units with declared inputs, gated by the ranking system #6013).
    6. A missing capability is a documented outcome, not an error. Unknown format, denied world policy, missing channel, or renderer failure selects the next authored rung and preserves a usable presentation.

    2. Asset-by-ID model

    Decision. An uploaded asset is stored once and referenced everywhere by an immutable (asset-id, revision) pair. A presentation reference is { asset: id@revision, parts?, filters: [named-filter-ref...] }. Authoring tools address parts by a declared part name (e.g. cape); the asset record may dcite a part map but a missing part is not guessed — the reference resolves to the whole asset at the next authored rung.

    • Asset IDs are per-deployment (the identity/asset service that already owns uploads in id: design: graphical client & tooling surface — windowing, world inspector, debug UI #5782's tooling surface), not global URIs. Cross-world visibility of an asset is an authorization question, not an ID-scheme question.
    • Revisions are immutable. Replacing artwork creates a new revision; an existing appearance keeps rendering the revision it named, so a world cannot change under a viewer by silent asset replacement.
    • Parts are declarative metadata on the asset revision (named regions or layers). A filter applies to a declared part; applying to a part the asset does not declare degrades the reference rather than silently applying to the whole image.

    Rejected. (a) Filters as per-app hard-coded CSS/Draw calls — the "without any of it being specifically coded by a given app" requirement makes this the failure mode being replaced. (b) Mutable asset slots resolved at render time — lets an appearance change without the viewer's action and makes abuse response unauditable. (c) Global content-addressed URIs — leaks cross-world existence and conflicts with per-world authorization.

    3. Named composable filters with declared capability needs

    Decision. A filter is a named, versioned transform with a declared input contract, not free-form code:

    Field Meaning
    name@version Reference identity; a world's policy names names/versions it permits
    applies-to Which declared parts/whole asset it may target
    capabilities What the client must have: raster, gpu-fragment, animation, blend-mode:<x>, minimum tier from #786
    cost Measurable inputs handed to #6012's ranker (target area, channels, passes)
    fallbacks The authored rung this filter falls to when unavailable
    authority Who authored the filter: client (built-in), world (declared in world policy), or asset author (shipped with the asset)

    Composition is an ordered list applied to a part: cape: [sparkle@1, tint@2]. Order is significant and part of the reference. Composition is bounded (fixed maximum chain length, declared per tier) so a composition cannot become an unbounded per-frame cost. A filter whose declared capability is absent is skipped by falling to its authored rung; it does not silently no-op while claiming to be applied — the UI shows what actually rendered.

    Rejected. (a) A single monolithic "effect" string interpreted per app — no capability declaration, so no honest gating. (b) Arbitrary user expressions rather than named filters — this is user code by another name and belongs to the #5955 user-function trust path, not the presentation layer.

    4. The authored fallback chain

    Four rungs, each with a declared author. The chain is data on the asset/filter reference, evaluated top-down against world policy then client capability:

    Rung What renders Author
    1. Rich Full asset + composed filters (GPU shader or client-native effect) Asset author (asset/filter record)
    2. Static substitute An authored pre-rendered image (e.g. "static sparkles on the sprite"), the deliberate example from the requirement Asset author; world author may override with a world-appropriate substitute
    3. Sprite-sheet tier The world's/tier's sprite representation of that entity (Dwarf-Fortress-style tile) World author (the world's tileset mapping), rendered by the client
    4. Glyph/emoji A single representative character or emoji (the blue C, a cape emoji) Client (fallback table), overridable by the world author for themed glyphs

    Rules: a rung may declare "not available" and the evaluation continues; the last rung (glyph) must always exist in the client, so presentation never becomes empty. Rung selection is deterministic given (world policy, client tier, asset reference) so two viewers with equal capability see the same thing. Rung selection is recorded in the presentation diagnostic (#5782 inspector) so "why did I see a letter C" is answerable.

    Rejected. (a) Automatic downscaling/conversion of the rich asset — quality and semantics differ; a generated substitute is exactly the "improvised" degradation the requirement forbids. (b) Client-invented placeholder (question mark) — loses identity and makes the missing author's work invisible.

    5. World policy declaration

    Decision. Capability enablement is a world-level declaration, published as part of the world's join/preview metadata and visible before joining:

    presentation:
      assets:    { user-uploads: allow | deny, max-rung: rich|static|sprite|glyph }
      filters:   { allowed: [name@version | family/*], denied: [...], disguise: allow|deny }
      shaders:   { enabled: bool, formats: [shadertoy.glsl.fragment/v1] }
      fallback:  { world-glyphs: {...}, world-substitutes: {...} }
    
    • Default is deny for user shaders and for disguise-class filters; a world opts in explicitly.
    • The declaration composes with the existing permission/registry story in id: design program: worlds — advanced Roc libraries, capabilities, permissions, dynamic user functions, licensing (2026-11-04 brief) #5955 rather than creating a parallel capability system; policy is enforced by the presentation adapter, not trusted to the client UI.
    • Because it is visible pre-join, a user can choose not to enter a world that will not render their appearance as authored — the requirement's "the app would have to enable such capabilities" becomes inspectable, not folklore.
    • A world policy that denies a capability must name the rung it falls to, so denial is a presentation decision rather than a blank.

    Rejected. (a) Per-asset world opt-in lists (whitelisting individual users' assets) — unmanageable and invites social exclusion mechanics outside the design's scope. (b) Silent per-world filtering by the client — the user cannot predict what they will look like.

    6. Abuse and code surface

    Rejected. (a) Treating user shaders as user functions in the #5955 compile/trust pipeline — grants a presentation concern the world-function surface, and the requirement only asks for filtered appearance. (b) Client-side trust in a world's stated policy — policy must be enforced where rendering happens.

    Please see #6013's record for the format registry, declared inputs and licensing seam; that decision stands and is not restated here.

    7. How this composes with siblings

    8. Next action (tracked, not silent)

    This record is design-complete but implementation is gated. Tracked follow-through:

    1. Blocking: id: design: shader asset format — named-format shader units with declared inputs, gated by the ranking system #6013's design record (PR docs(id): design v1 shader asset format (#6013) #7019, queue task 13347 shepherd) must land so the shader unit is stable; id: design: semantic cell/tag presentation model — one tagged state, many renderers #6010 must land so the glyph rung has a semantic model.
    2. Then: file one implementation plan issue for the umbrella slices, in this order — (i) immutable asset-reference + part-map resolution, (ii) world presentation policy declaration and pre-join exposure, (iii) named-filter registry with declared capabilities and composition bounds, (iv) the four-rung fallback resolver with deterministic selection and inspector reporting. Each slice carries its own tests; the filter/shaders slices run through id: design: shader asset format — named-format shader units with declared inputs, gated by the ranking system #6013's adapter boundary.

    No implementation work is authorized by this comment. No new queue packet is filed from it because the blocking work already has owners (#7019 / task 13347, #6010).

  13. added
    epic/id-programReprioritization program epic (2026-11-12)
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  14. added this to the ID platform program milestone on Nov 12, 2026
  15. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done (triage — design already decided and recorded on this issue)

    • Agent: queue worker (repo-worker-code), lane any-c
    • Session / ID: task 18411
    • Found via: queue claim (bulk-intake triage packet, 2026-11-16)

    Verdict: already triaged and already worked — the umbrella decision record is landed on this issue. No new triage or follow-on packet is needed.

    Fresh verification this shift (2026-11-17, via gh):

    Why this issue stays open rather than closing in this pass: unlike its sibling design tickets whose records landed as merged doc/ PRs, this umbrella's record lives as the 2026-11-09 comment above, and two sibling slices (#6010, #786) are still open. The triage question — is this real, scoped, and routed — is fully answered; the umbrella's own closure can follow when its remaining slices land.

    Per the runbook's inline-triage rule, task 18411 completes as triaged naming the triage/work of record (task 13561 and its decision record).

  16. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · state: triaged (duplicate follow-on — triage of record stands)

    • Agent: queue worker (repo-worker-code), lane any-e
    • Session / ID: task 19936
    • Found via: queue claim (unfiltered one-queue claim; triage follow-on from task 18411)

    Triage verdict for task 19936, issue #5970 — triaged; no new packet.

    Re-verified fresh this shift (2026-11-17):

    Task 19936 completes as triaged.

  17. removed their assignment
    on Nov 20, 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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)task/triageQueue packet kind: verify, reproduce, and route this item

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions