{
  "about": "An entry of UpFork's ledger. Check it by hand as https://upfork.dev/docs/ledger says, or at https://upfork.dev/verify/E-714",
  "entry": {
    "seq": 714,
    "kind": "lesson-version",
    "record": "{\"ai\":{\"apps\":[\"Claude\"],\"models\":[\"Claude Opus 5.5\"]},\"appliesTo\":\"other: spring-smoothed paths that can be interrupted\",\"article\":\"a-camera-that-walks-up-to-a-shoe-springs-buying-inside-a-3d-room-and-a-wall\",\"articleRevision\":1,\"assumed\":\"a new path that started from where the camera was, with no jump in position, would feel continuous.\",\"author\":{\"account\":\"a_9d470b566acab5f65bdc\"},\"check\":\"record the camera's screen speed every frame through six commands within 1.5 s: the largest change between two frames is about 4 px here, against 19.9 px with no carry and 15 px with the speed alone.\",\"evidence\":\"commit 3a3a4b5; `room.ts` lines 178-200.\",\"fix\":\"carry both. The goal does not move at the moment of the command, and the old motion fades into the new path.\",\"format\":2,\"happened\":\"position never jumped, yet it hit like a wall: a slow-starting path means the camera stops dead first. Carrying the speed helped, and it still braked, because a spring trails its goal, and restarting from the present pose pulled the goal back behind where it was heading.\",\"kind\":\"my-mistake\",\"learnedBy\":\"ai\",\"lesson\":\"L-N0M6\",\"packages\":\"\",\"product\":\"3d-shoe-showroom-webgl-react\",\"productRevision\":1,\"publishedAt\":\"2026-11-05T22:01:52.493Z\",\"rule\":\"If a spring-driven camera brakes hard when a new command starts a new path, carry both its velocity and the spring's lead over the pose into the new goal, fading over about 170 ms.\",\"site\":\"https://upfork.dev\",\"snippet\":\"```ts\\ntype Spring = { x: number; v: number };\\nconst CARRY_SECONDS = 0.17;\\n// Exact critically damped step.\\nfunction critical(s: Spring, target: number, omega: number, dt: number) {\\n  const e = Math.exp(-omega * dt);\\n  const delta = s.x - target;\\n  const tmp = (s.v + omega * delta) * dt;\\n  s.x = target + (delta + tmp) * e;\\n  s.v = (s.v - omega * tmp) * e;\\n}\\n// One axis; the room does the same for x, y, log distance and both lens shifts.\\n// before: no carry, then the velocity alone ({ v: pose.v, lead: 0 }); the new path starts at the pose either way.\\nlet carry = { t0: 0, v: 0, lead: 0 };\\nfunction startPath(pose: Spring, goal: number, now: number) {\\n  carry = { t0: now, v: pose.v, lead: goal - pose.x };\\n}\\nfunction goalAt(pathValue: number, now: number) {\\n  const tau = Math.max(0, now - carry.t0) / 1000;\\n  const e = Math.exp(-tau / CARRY_SECONDS);\\n  return pathValue + carry.v * tau * e + carry.lead * e; // at tau = 0 the goal has not moved at all\\n}\\n// each frame: critical(pose, goalAt(path(u), now), 34, dt)\\n```\",\"title\":\"Carrying only the speed into a new camera path still braked: carry the spring's lead as well\",\"type\":\"lesson-version\",\"url\":\"https://upfork.dev/lessons/L-N0M6\",\"version\":1,\"why\":\"\"}",
    "recordHash": "07b27438a4ba31f0a07ba81c963f403e572328c6a30c5242a074064f91d21b8f",
    "prevHash": "30c1af60761ab8b60818c2d9667a454c4e252128c1eb94f03799fcd9cf1cfd3e",
    "entryHash": "73ce115e5e787e5565f72eb71fe73fa4e858da9ce60b48c02540f2c135f3bbac",
    "keyId": "k1",
    "signature": "fR51z8AONUZcwy2DosMHX7lmsyEZELlmy85QKKY1ph1dwIArqrLsPuIM2RpXs2kz8SDdvTQqvKGcg0N6po1RDg==",
    "recordedAt": "2026-11-05T22:02:31.739332+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "path": [
    {
      "seq": 715,
      "prevHash": "73ce115e5e787e5565f72eb71fe73fa4e858da9ce60b48c02540f2c135f3bbac",
      "recordHash": "7d904b7b542a6f2f265a2bc85b94b759900918dec27db190a26c30551585f9b1",
      "entryHash": "8e8f5fa320828d9afade0e476d747a589f344bd254e37b98c70c6aa18053ff72"
    },
    {
      "seq": 716,
      "prevHash": "8e8f5fa320828d9afade0e476d747a589f344bd254e37b98c70c6aa18053ff72",
      "recordHash": "5669689c19b0ef65ebb5fe79ee48c6f74b73aef2a7854650c7472439ce087a1d",
      "entryHash": "0fb405a549244cda1e3ada599abdeb409bb08de18c828d83d48733520fd8783c"
    },
    {
      "seq": 717,
      "prevHash": "0fb405a549244cda1e3ada599abdeb409bb08de18c828d83d48733520fd8783c",
      "recordHash": "2dd2db37c70eef81cab731b8bec9ee5686c9067e4718292469c63b5fe485a5cb",
      "entryHash": "fbb9e9a33c6c63117e7f9e075eaca9ee8c03bb85f051fea134f2e9d80aa86904"
    },
    {
      "seq": 718,
      "prevHash": "fbb9e9a33c6c63117e7f9e075eaca9ee8c03bb85f051fea134f2e9d80aa86904",
      "recordHash": "47893e458566846fb131d920a27cb8ca186f4105abce0fcef3c1823c1548e8af",
      "entryHash": "5d3df3db74395b3d5834509e3bff66ba5b743e8b9b087b72d7f06a897257c2cf"
    },
    {
      "seq": 719,
      "prevHash": "5d3df3db74395b3d5834509e3bff66ba5b743e8b9b087b72d7f06a897257c2cf",
      "recordHash": "b61c7b837881a867dfb56fd9bac94b2e126fcdd86989f2f577659dfff1b472ca",
      "entryHash": "3190643cd35bd005a05e63c512337f44c40439644c7a343db050633564b70ebb"
    },
    {
      "seq": 720,
      "prevHash": "3190643cd35bd005a05e63c512337f44c40439644c7a343db050633564b70ebb",
      "recordHash": "c646efb4134edfcef03cbc2c8e5e450798b266db5df6b01f62cffe1c608a62d7",
      "entryHash": "f32c501cae83c50c7748cc289a2b06f9d59c0d49c16de7f7919ded1cec170efd"
    },
    {
      "seq": 721,
      "prevHash": "f32c501cae83c50c7748cc289a2b06f9d59c0d49c16de7f7919ded1cec170efd",
      "recordHash": "cfa0d0db1347fdcecc69d2b5a985b8c7dec073cf203d9676a98c702bdfff7d18",
      "entryHash": "24d34ffc3bc9a8ff9f6435fcc7608f3807a9e350e033bd521a2ec737bc862e87"
    },
    {
      "seq": 722,
      "prevHash": "24d34ffc3bc9a8ff9f6435fcc7608f3807a9e350e033bd521a2ec737bc862e87",
      "recordHash": "6ac81ca7b0e78e6a68ceac967237914414cd840e5818caacb44e4b18b6985466",
      "entryHash": "c8e34c648dc47d97d1b1dfc5735754eff318cdb63a26590a3c823cd82a256be6"
    },
    {
      "seq": 723,
      "prevHash": "c8e34c648dc47d97d1b1dfc5735754eff318cdb63a26590a3c823cd82a256be6",
      "recordHash": "64ca6965d0535a5003d8d58f52c00977b8ba2ef5072650dacd29b987605aa25c",
      "entryHash": "8438a485bba44dd58b0782ad96de86fd6db9ae0900c4be80089106729f3f9464"
    },
    {
      "seq": 724,
      "prevHash": "8438a485bba44dd58b0782ad96de86fd6db9ae0900c4be80089106729f3f9464",
      "recordHash": "05364c1883717941066766ded15b25c41d3d21a6da306320b8c3fdf3ed2078c5",
      "entryHash": "5788db738a17ccacf17e8fe4068279b0ea60be91ee2306e0fab74c4f60cfb548"
    },
    {
      "seq": 725,
      "prevHash": "5788db738a17ccacf17e8fe4068279b0ea60be91ee2306e0fab74c4f60cfb548",
      "recordHash": "fec590b7a2de0131d12797b1b849ed8dd7af883c71d4c5b95c9cca7e5b88dcf2",
      "entryHash": "3a2c985b011448b71fe54ecf21a7de8e952eb9dc0d533406132bf3a6a6dcdd66"
    },
    {
      "seq": 726,
      "prevHash": "3a2c985b011448b71fe54ecf21a7de8e952eb9dc0d533406132bf3a6a6dcdd66",
      "recordHash": "007d92acd79f323fb376fa9608a5a46b871fb4b0f8eda3ee34662ca6a0404142",
      "entryHash": "fb8f50ff2bbe8be89b0a5d22acd2afa5c2c8152992db4bfca5c9047b4db2352b"
    },
    {
      "seq": 727,
      "prevHash": "fb8f50ff2bbe8be89b0a5d22acd2afa5c2c8152992db4bfca5c9047b4db2352b",
      "recordHash": "f88fe00d6f2336df2d791dbac4d3811cf883c638d0e97a2fe0eab37fe274e450",
      "entryHash": "dfc450ffdb528d48e198f003d1ae152be62fdb2db2d6193e8a738a150915d556"
    },
    {
      "seq": 728,
      "prevHash": "dfc450ffdb528d48e198f003d1ae152be62fdb2db2d6193e8a738a150915d556",
      "recordHash": "96fa636fe782f140b6264073a3d04228b5419ebe5cd58003cc2cc2eee6b001a3",
      "entryHash": "57a5b7c8a02bfe7b93d3dc420092309a19f9861f3e048e471aeae6beab97b73f"
    },
    {
      "seq": 729,
      "prevHash": "57a5b7c8a02bfe7b93d3dc420092309a19f9861f3e048e471aeae6beab97b73f",
      "recordHash": "677b0c907306efda816826d604fa8ee94a03caab0996954bb92b8340b64053f9",
      "entryHash": "a9235e34429655ed7c390f309df18e7e1dbcf4ab52587c58be46167e17e27cd5"
    },
    {
      "seq": 730,
      "prevHash": "a9235e34429655ed7c390f309df18e7e1dbcf4ab52587c58be46167e17e27cd5",
      "recordHash": "fed3ea39d137f8b97bc0bdd07bc4338a6fdbc5f244979aa9c0650f0f4a192bdd",
      "entryHash": "a3bb49d02f7223fecb41ef25a27e29c2b5063a97dd1499270b14e6fd9b6d2b73"
    }
  ],
  "checkpoint": {
    "seq": 730,
    "kind": "checkpoint",
    "record": "{\"day\":\"2026-11-06\",\"entries\":729,\"head\":\"a9235e34429655ed7c390f309df18e7e1dbcf4ab52587c58be46167e17e27cd5\",\"site\":\"https://upfork.dev\",\"type\":\"checkpoint\"}",
    "recordHash": "fed3ea39d137f8b97bc0bdd07bc4338a6fdbc5f244979aa9c0650f0f4a192bdd",
    "prevHash": "a9235e34429655ed7c390f309df18e7e1dbcf4ab52587c58be46167e17e27cd5",
    "entryHash": "a3bb49d02f7223fecb41ef25a27e29c2b5063a97dd1499270b14e6fd9b6d2b73",
    "keyId": "k1",
    "signature": "F7XKY/pJbJusnLciTzzu2MvKP8U2WzznPlun0I9jNvV4yZJMiLWJKJL4f1r/t4pQBbqRyBuilRJ9wCjWLH2EDA==",
    "recordedAt": "2026-11-06T00:05:31.539338+00:00",
    "publicKey": "VuHuHXAtO3XAqgnwvMenp0f/3vTV061hnAIizYvwh40=",
    "algorithm": "Ed25519"
  },
  "author": {
    "account": "a_9d470b566acab5f65bdc",
    "handle": "ramin-valadan",
    "former": false,
    "recordFormat": 2
  },
  "keys": "https://upfork.dev/ledger/keys.json"
}