{
 "id": "session-refresh",
 "title": "How we refresh a session",
 "status": "review",
 "brief": {
  "from": "Dinis Cruz, 28 November 2026, in c.conductor's and c.productions's sessions",
  "text": "this is a great opportunity for us to create a complete new video to explain exactly how we do it here ... I think it's a great example of a video for us to create. Those data are really cool, the savings that you get.",
  "document": "how-we-refresh-a-session/ (data: document.json)",
  "link": "production.json"
 },
 "so_what": "A long chat re-reads itself every turn, so it gets dearer the longer it lives. Writing a short note and starting fresh cut one agent's context by 86%.",
 "data_to_show": [
  "One message costs in proportion to the context it lands in; the total goes with the square (document.json, 'The maths').",
  "One measured session: 597,635 tokens of context, 95.2 million tokens re-read, 96% of all it used (document.json, measured).",
  "One measured hand-over: 859,600 to 118,600 tokens; conversation 781,000 to 43,900; a floor of about 75,000 that a hand-over does not shrink (document.json, measured_handover).",
  "The model: the same work handed over at 300,000 re-reads 49% less; at 150,000, 70% less. Label it a model.",
  "The rule: hand over before 300,000. Every evidenced hand-over happened at 484,000 to 845,000."
 ],
 "beats_to_storyboard_first": [
  "Hook: the number. A scroll that re-reads itself from the top on every turn, growing; the counter of tokens re-read racing past the counter of tokens written.",
  "Why: a straight line per message, a curve in total. Draw the curve from the real data.",
  "The moment: a gauge crosses the 300,000 line and nobody stops.",
  "What the old session writes: a few pages go on a shelf in the repository; scratch tools fade on the desk.",
  "What the new one reads: an empty room, one line spoken, a new light reads the shelf in order and never opens the old scroll.",
  "What is lost and what carries: a new key is cut, the old stamped retired; sealed envelopes re-addressed and checked to open.",
  "Did it work: two slips saying 'what is next' are compared and match.",
  "The saving: the before and after bars, 859,600 and 118,600, and the floor that stays.",
  "The lesson: write it early; keep state in files; load only what you need."
 ],
 "rules": "Storyboard before any scene (Dinis: think like a storyboard). Same house look as the Agile lab scenes. Agents are lights, never figures. Every number on screen is in document.json with its source. Voice labelled as made by AI. Aim for 60 to 90 seconds. Vertical first.",
 "made_by": "c.productions, an AI agent (Claude), with a cell of scene-building and critic sub-agents",
 "storyboard": "storyboard/ (data: storyboard.json), first pass 28 November 2026 by the successor session; scenes wait on the owner reading it",
 "format": "Vertical, 720 by 1280, from the start (Dinis Cruz, 28 November 2026: 'plan it as vertical from the beginning'). A wide version can follow.",
 "summary": "How a long AI agent session is handed over to a fresh one, and what it saves: a vertical film of about 110 seconds: a cover, nine scenes and the team that made it drawn with WebGL in your browser, every number from one measured session and one measured hand-over, with a voice made by AI.",
 "status_note": "Version v0.8 ends on the agile cell and 'This is how we scale.' Nobody has signed it. Nothing is published anywhere.",
 "approvers": [],
 "versions": [
  {
   "version": "v0.1",
   "date": "2026-11-28",
   "status": "review",
   "notes": "First pass, vertical (720 by 1280). Nine beats from the storyboard as five lab scenes built by five scene-smith sub-agents working at once, then the credits. One AI voice (Mistral Voxtral). No music or effects yet."
  },
  {
   "version": "v0.2",
   "date": "2026-11-28",
   "status": "review",
   "notes": "Second pass, after two critics judged v0.1 (a critic sub-agent and an outside model through OpenRouter; their notes are in v0.1/notes/critics.json). The keys scene is cut to keep one story; what is lost at a hand-over stays on the document page. Narration trimmed: about 76 seconds, nine scenes. Every lab scene had one more round: the first frame is no longer empty, 'tokens' is on screen, the 300,000 line is a bar that gets broken, the new light is larger and passes the rolled scroll, the test starts clean, '86% less' is the biggest thing in the film, and the lesson shows one phrase at a time. Still no music or effects."
  },
  {
   "version": "v0.3",
   "date": "2026-11-28",
   "status": "review",
   "notes": "From Dinis Cruz's first feedback on v0.2 (28 November 2026): a cover that opens the film by saying what it is about and why (\"if you're burning too many tokens ... this is how we recycle our sessions\", and that this is Claude); a brand line on every scene; the credits name it a Sovereign Website production. The nine scenes after the cover are v0.2's. On the review and storyboard pages, speaking a comment now pauses the film and shows the words in the box as they are spoken, kept in view."
  },
  {
   "version": "v0.4",
   "date": "2026-11-28",
   "status": "review",
   "notes": "From Dinis Cruz's second feedback and five synthetic test viewers of v0.3, who all asked for the practical thing: a line of context on every scene that glues the pictures into steps (the problem, why, our rule, step 1, step 2, step 3, the result, copy this); the voice now says what we do as three steps; the last scene is the team that made the film, with its models, in place of flat credits; the voice no longer says that it is made by AI (the label on every frame does). The pictures are v0.3's."
  },
  {
   "version": "v0.5",
   "date": "2026-11-28",
   "status": "review",
   "notes": "From Dinis Cruz's notes of 28 November after reading the reviews: the key message is compaction we control, a formal workflow run by the conductors and maestros, and not lessons learnt; the keys scene is back, as what underpins it (every agent has its own pair of keys, for one session only); the new session is shown loading the agent behaviour policies. The cover now says that Claude compacts a long session for you and that we compact ours on purpose. Eleven scenes; the pictures are the same lab scenes, and no new scene was built for this cut."
  },
  {
   "version": "v0.6",
   "date": "2026-11-28",
   "status": "review",
   "notes": "The Sovereign Website logo Dinis Cruz chose (direction B, SWS, by design.c) replaces the brand line at the top of every scene, and its square mark sits on the cover; he is named in the team scene, as he agreed; the team scene adds the reviewers and the lead's change of model. Otherwise v0.5."
  },
  {
   "version": "v0.7",
   "date": "2026-11-28",
   "status": "review",
   "notes": "From Dinis Cruz's review of v0.6 (28 November): the words now appear in the frame as they are spoken, the word being said in amber, so the film works without sound; each chapter line moves to the top under the logo. The opening previews what is coming, as live thumbnails of the film's own scenes (lab/refresh-trailer), and the last scene shows the team as an agile cell that will be archived when the film is done (lab/refresh-cell). After Dinis's look at it on his iPad: the logo moved to the bottom right corner, the chapter line to the very top, and the AI label shows only on the last scene."
  },
  {
   "version": "v0.8",
   "date": "2026-11-28",
   "status": "review",
   "notes": "From Dinis Cruz's notes on v0.7 (28 November): the ending now says that saving tokens is a side effect and that scale is the gain. The agile cell shows each agent's model (Fable, Opus, Gemini, GPT, Mistral) across two accounts; then everything fades, the files stream into a library labelled as the repository, the source of truth, with a small vault for big encrypted files, and the film ends on 'This is how we scale.' About 125 seconds. Later the same day, from Dinis's notes: the opening starts on a headline, 'How to manage your Claude sessions, and re-read 86% less on every turn', then zooms into the scroll and the agenda, and the last frame of the opening (the still shown before Play, and the cover for social media) carries the headline over the full agenda. Captions never take more than two lines, and the opening and the agile cell survive a switch between portrait and landscape. The lesson scene's voice now speaks each of the three lessons as it appears in the picture, without the gap at the end that Dinis heard."
  }
 ],
 "links": [
  {
   "label": "The one-page document",
   "url": "how-we-refresh-a-session/"
  },
  {
   "label": "The storyboard",
   "url": "storyboard/"
  },
  {
   "label": "The data",
   "url": "document.json"
  }
 ],
 "pages": [
  {
   "label": "The document",
   "url": "/productions/session-refresh/how-we-refresh-a-session/"
  },
  {
   "label": "First sketches",
   "url": "/productions/session-refresh/storyboard/"
  },
  {
   "label": "Briefs",
   "url": "/productions/session-refresh/briefs.json"
  }
 ],
 "owner_feedback": [
  {
   "text": "That explanation that you have at the end is absolutely brilliant ... make everything fade away, and you just leave the files ... a big representation of our library ... this is how we scale ... this is not just good for tokens ... spending less tokens is a good positive side effect of us now gaining scalability ... the use of very different types of agents ... work this across multiple accounts ... the GitHub repo is the source of truth ... a little mention of the vaults.",
   "from": "Dinis Cruz, 28 November 2026, on v0.7",
   "done": "Done in v0.8."
  },
  {
   "text": "We need to make sure that the transcription is there ... showing the transcription as it is being spoken, because this has to also work without sound ... add the same carousel that you added to the other one ... show what is about to come with a little screenshot of each one ... a quick animation visualization of the agents that we had working here ... you can say that this is an agile cell ... one of those ephemeral cells that is basically going to be archived as soon as we finish.",
   "from": "Dinis Cruz, 28 November 2026, on v0.6",
   "done": "Done in v0.7."
  },
  {
   "text": "Yes, name me. I like the B SWS one ... don't mention skills ... this is not commercial use at all, right? It's just posting on social media.",
   "from": "Dinis Cruz, 28 November 2026",
   "done": "v0.6 names him and carries logo B; the film does not mention skills; the music brief records his words on use."
  },
  {
   "text": "This is not a video about lessons learned. This is a video about showing the power of our self-compaction, our self-archiving, and having our workflow where our maestros and our conductors control this ... a formalized workflow for compacting is the key message here ... But the PKI, I think, is also what underpins all this ... every agent has a public and private key that only lasts for that session.",
   "from": "Dinis Cruz, 28 November 2026, after reading the reviews",
   "done": "Done in words in v0.5: the cover and the steps are framed as compaction we control, run by conductors and maestros, and the keys scene is back. Not yet done in pictures: a scene that zooms into the key pair and into what the note holds."
  },
  {
   "text": "I think the animations are great. I think we're just missing a bit of context to glue them ... the audience is the people who are burning tokens, the people who keep maxing out ... we kind of want to show them what we do. It has to be very practical.",
   "from": "Dinis Cruz, 28 November 2026, on v0.3",
   "done": "The synthetic viewers said the same. The next cut shows the real note and the one line that starts a new session."
  },
  {
   "text": "We need the first slide that explains what we're going to talk about ... why are we doing this ... if you're burning too many tokens ... this is how we recycle our sessions ... We also need a cover page, and some branding on all slides.",
   "from": "Dinis Cruz, 28 November 2026, on v0.2",
   "done": "Done in v0.3: a cover that says what and why, and a brand line on every scene."
  }
 ]
}
