Skip to content

id: design: tick & intent data model — inputs, state updates, per-user function views, intent sources #5968

Open

Description

@dezren39

Part of the worlds design program: #5955. Statements S52–S58 of the 2026-11-04 brief.

Requirement (Drew, in substance)

Specify the per-tick data flow between world, clients, and user functions:

  • What can be seen is a mixture of data passed in for that given tick and state stored in the world.
  • The world gets the inputs — this user went left, this other user went right — updates their positions on the map and any calculations.
  • The world then provides that data for client-side presentation, and also to the user's own function.
  • The user's function reads its view: you are now at X, Y; you have a field of view of Z radius; there are three enemies within your line of sight, at these XY positions — and whatever other information the world wants to provide.
  • The user function uses the provided interface to decide and pass on the intent for the next tick.
  • Intents might come from users' inputs on the client, from users' functions passing them directly, or both.
  • The mixed case is canonical: a human is moving around as Sonic, and they have an AI playing Tails following them around — one entity's intent is human, its partner's is computed, in the same tick loop.

Design points to settle

  • The view is a projection, not the world state: per-user visibility (FOV, line of sight, team knowledge) is computed by the world and is an anti-cheat boundary — a user function must not be able to read what its view doesn't contain. Say how this composes with the capability model (is the view a capability?).
  • Intent schema: per-entity, per-tick, with what validity window? Late intents (function timed out — see the mapping design child) fall back how?
  • Precedence/blending when both a human input and a function intent target the same entity in the same tick.
  • Replay/determinism: the tick inputs + intents are the log from which a match replays (connects to the deterministic-testing split #5779).
  • Presentation data vs function view: same projection at different fidelity, or two separate projections owned by different layers?

Related

  • Per-user function mapping child of #5955
  • Deterministic testing over time: #5779
  • Existing capability protocol in the examples (RocCap.roc: worlds answer with subscribe/requests) — the tick model must extend it, not replace it silently

Done looks like

A design doc with the tick sequence specified step-by-step, the view-projection rules, the intent schema and blending rules, and the replay story.

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. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

  5. removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  6. 158 remaining items

  7. added
    epic/id-programReprioritization program epic (2026-11-12)
    and removed
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  8. added this to the ID platform program milestone on Nov 12, 2026
  9. added
    user/escalatedRequires a Drew decision or access
    and removed
    user/reviewNeeds a user-look: Muse reviews first and handles what it can
    on Nov 17, 2026
  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (bulk-intake concurrence) — design doc delivered; its two flagged Drew calls now ledger-delivered

  11. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    Blocked for Drew decisions (escalated-to-user). Please decide: (1) when human client input and a user-function intent target the same entity in one tick, which takes precedence (or how are they blended)? (2) are per-user projections shared across users or separately owned/computed per user? Design work remains blocked until these are settled.

  12. removed their assignment
    on Nov 20, 2026
  13. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    Decided: Human input wins over a function intent for the same entity and tick, except where the world explicitly marks that entity as delegated; the world owns one per-user visibility projection, with presentation and function channels applying channel-specific shaping rather than independently recomputing visibility.
    Why: These are the design document’s stated defaults: they preserve human agency unless delegation is explicit, and keep anti-cheat visibility consistent while allowing different channel fidelity.
    Undo: A later design revision can change either rule by updating the tick/intent design and its replay and visibility tests before implementation depends on it.
    By: repo-worker-code / code-h

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/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions