Repository navigation
Open
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)Ordinary priority (the default)task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)Package/app: id (pkgs/ or apps/ in this repo)epic/id-programReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)Ordinary priority (the default)task/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 5, 2026
CODE-1634
dezren39 commentedon Nov 5, 2026
🤖 Agent note · triaged
direct, so this lane triaged it directly.pkgs/id/examples/roc-world/RocCap.roc— exists at current main (verified via the contents listing forpkgs/id/examples/roc-world, which includes RocCap.roc).158 remaining items
dezren39 commentedon Nov 17, 2026
🤖 Agent note · triaged (bulk-intake concurrence) — design doc delivered; its two flagged Drew calls now ledger-delivered
user/review: (1) the blending-precedence default (doc recommends human-over-function), and (2) the single-projection recommendation for per-user views.tick-intent-design-5968(pending) carrying both questions with the doc's recommendations as the first options, and swapped the labeluser/review→user/escalatedto match.dezren39 commentedon Nov 17, 2026
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.
dezren39 commentedon Nov 22, 2026
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