From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender6-of-o51.zoho.com (sender6-of-o51.zoho.com [165.173.180.51]) by hrrol.systemreboot.net (OpenSMTPD) with ESMTPS id 6809b00e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 19 Nov 2026 14:29:08 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1795098543; cv=none; d=zohomail.com; s=zohoarc; b=LR92LSr+WpaIYRT0H9AaJCKq8u4JxqBKcC/9//BzSxq8+whYzR8vFQcxv1OaIDzrNww5gJZKm3RakkDL7o8TCb2Y/okjPlactequF/UqmModjjtTnRrMnbpIplWDzZGsULTMkUDzJ1hIzPZI/5GhgWnVeS1uJwBKavRL7cZN9vw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795098543; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=iZVpbDdeal1AuhWEJjjr4YH1kb6cVocSwtQODSPDx9k=; b=MxJLW8OvljrZagwzsO2SeYpPnn738vJ7/lDmOgORv/kczWeBgU9lH7mRZcueAOuyBOOVgILP6kFhf9s4uSVtff51caSvobUbnqL/pzrUgtX1td7gdheRmEmmt42LergzhOYumEbXzff3/wNF320BDRp3Hp0FeKJk2SnS3ICvhzU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=Qp9QAq5wPZev8gZ4HbMvE+JAdhHaFYnGjpsaWnNkIB87joYt6gPFKzyC6w7Nrt9YW4QIyYXNb11Q1FDB7ZCUkWXVU/pdUsv5Wa0ngkxQbEA1Jy/ZXbaxrbalMoTXm8u0N/QFQftZ8movUFEv7GkzZiVJFLbDsGLSv96TYabg8cg=; c=relaxed/relaxed; s=zoho; d=elephly.net; v=1; bh=iZVpbDdeal1AuhWEJjjr4YH1kb6cVocSwtQODSPDx9k=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1795098539313334.11071655969454; Thu, 19 Nov 2026 06:28:59 -0800 (PST) From: Ricardo Wurmus To: Arun Isaac Cc: Ricardo Wurmus , kaagum@systemreboot.net Subject: Re: [PATCH v2 0/5] Context compaction In-Reply-To: <20261115044752.5595-1-arunisaac@systemreboot.net> References: <87ik20nycd.fsf@systemreboot.net> <20261115044752.5595-1-arunisaac@systemreboot.net> User-Agent: mu4e 1.14.4; emacs 31.1 Date: Thu, 19 Nov 2026 15:28:55 +0100 Message-ID: <87wlq851zs.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External List-Id: Hi Arun, > Here's a new v2 patchset. I think this is looking pretty close=20 > to > completion. Let me know what you think. Thank you for the patches. Unfortunately, it looks like=20 (compaction-request-context-length effect) doesn't return the=20 context length in my case. --8<---------------cut here---------------start------------->8--- WARNING: (kaagum web): imported module (rnrs conditions) overrides=20 core binding `&error' Backtrace: In ice-9/boot-9.scm: 1791:12 11 (with-exception-handler _ _ #:unwind? _=20 #:unwind-for-type _) In unknown file: 10 (apply-smob/0 #) In ice-9/boot-9.scm: 740:2 9 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 8 (_ #(#(#))) In ice-9/boot-9.scm: 161:2 7 (with-fluid* _ _ _) In ice-9/ports.scm: 439:17 6 (call-with-output-file _ _ #:binary _ #:encoding _) In ice-9/boot-9.scm: 161:2 5 (with-fluid* _ _ _) In kaagum/tea.scm: 1021:6 4 (tea-loop _ "https://llm.example.com" "sk-bf-..."=20 (("vllm/Qwen/Qwen3.8-27B" . #< name: #f description: #f=20 context-length: #f>) ("vllm/Aleph-Alpha/Kolibri-1" . #<=20 name: #f description: #f context-length: #f>)=20 ("vllm/google/medgemma-27b-it" . #< name: #f=20 description: #f context-length: #f>)=20 ("vllm/onprem-ai/Apertus-v1.5-70B-FP8" . #< name: #f=20 description: #f context-length: #f>)) (("read" . #<=20 description: =E2=80=A6>) =E2=80=A6) =E2=80=A6) In srfi/srfi-1.scm: 789:15 3 (append-map #=20 (#< session-id: "session-0" model:=20 "vllm/Qwen/Qwen3.8-27B" messages: (#< content:=20 "hello">) tokens: 0 context-length: #f>)) 702:17 2 (map1 (#< session-id: "session-0"=20 model: "vllm/Qwen/Qwen3.8-27B" messages: (#<=20 content: "hello">) tokens: 0 context-length: #f>)) In kaagum/tea.scm: 1091:11 1 (do-effect #< session-id:=20 "session-0" model: "vllm/Qwen/Qwen3.8-27B" messages:=20 (#< content: "hello">) tokens: 0 context-length:=20 #f> "https://llm.example.com" "sk-bf-..." _ #) In kaagum/compacters.scm: 110:11 0 (_ (#< content: "hello">) #:tokens _=20 #:context-length _) kaagum/compacters.scm:110:11: In procedure /: Wrong type argument=20 in position 2: #f --8<---------------cut here---------------end--------------->8--- That's on the very first prompt after launching kaagum. --=20 Ricardo