Integrating Logical Chain-of-Thought Planning with Agentic Context Engineering for Self-Improving LLM Agents

Loading...
Thumbnail Image

Journal Title

Journal ISSN

Volume Title

Publisher

University of El Oued جامعة الوادي

Abstract

Large Language Models (LLMs) have demonstrated strong capabilities in generation and reasoning, yet their effectiveness in long-running agentic settings remains limited by the absence of reliable mechanisms for preserving validated experience across interactions. In practice, such systems often repeat unsuccessful behaviors, rediscover previously solved tasks, and remain dependent on transient context rather than accumulating stable operational knowledge. This thesis addresses this limitation through the Curated Persistent Context (CPC) framework, a structured memory architecture for self-improving LLM agents. CPC stores only verified and reusable knowledge units, called Learning Atoms, and integrates them into an operational loop that combines retrieval, generation, verification, and persistent update. To strengthen the reliability of the framework, its core behavior is also studied through the formal perspective of Temporal Logic of Actions (TLA+), which enables the specification of system states, transitions, and key correctness properties. The proposed framework is evaluated through controlled experimental tasks and progressive use cases comparing CPC against a memory-less baseline. The analysis focuses on success rate, execution effciency, memory growth, and long-term stability. The results show that curated persistent memory improves consistency, reduces redundant exploration, and moves agent behavior from purely probabilistic generation toward more deterministic and reusable problem solving.أظهرت النماذج اللغوية الكبيرة قدرات قوية في التوليد والاستدلال، إلا أن فعاليتها في البيئات الوكيلية طويلة الأمد ما تزال محدودة بسبب غياب آليات موثوقة لحفظ الخبرات المتحقق منها عبر التفاعلات المتعددة. عملياً، تميل هذه الأنظمة إلى تكرار السلوكات غير الناجحة، وإعادة اكتشاف مهام سبق حلها، والاعتماد على سياق عابر بدل بناء معرفة تشغيلية مستقرة. تعالج هذه المذكرة هذا القيد من خلال إطار السياق الدائم المنقح ، (CPC) وهو بنية ذاكرة منظمة موجهة للوكلاء المعتمدين على النماذج اللغوية الكبيرة والقادرين على التحسن الذاتي. يخزن هذا الإطار وحدات المعرفة المتحقق منها والقابلة لإعادة الاستخدام فقط، والتي تسمى ذرات التعلم، ويدمجها ضمن حلقة تشغيلية تجمع بين الاسترجاع والتوليد، والتحقق، والتحديث الدائم. ولتعزيز موثوقية الإطار، تتم دراسة سلوكه الأساسي أيضاً من منظور منطق الأفعال الزمني ، (+TLA) مما يسمح بتوصيف حالات النظام، وانتقالاته، وخصائص الصحة الأساسية. يتم تقييم الإطار المقترح من خلال مهام تجريبية مضبوطة وحالات استعمال تدريجية تقارن CPC بخط أساس لا يعتمد على ذاكرة دائمة. يركز التحليل على معدل النجاح، وكفاءة التنفيذ، ونمو الذاكرة، والاستقرار على المدى الطويل. وتبين النتائج أن الذاكرة الدائمة المنقحة تحسن الاتساق، وتقلل الاستكشاف المكرر، وتنقل سلوك الوكيل من التوليد الاحتمالي البحت نحو حل مشكلات أكثر حتمية وقابلية لإعادة الاستخ

Description

مذكرة ماستر إعلام الي

Citation

دباب، هبه الرحمان.بالطاهر، سعيدة.Molecular Spectroscopy. Pedagogical publication.Department of computer science.Faculty of Exact Sciences.University of El Oued, 2025

Endorsement

Review

Supplemented By

Referenced By