4 Commits
Author SHA1 Message Date
morpheus f70c9b2054 **feat: refactor agent loop to state machine with dynamic trajectory checks**
- Replace hard-coded `MAX_REPL_STEPS` death-limit with a dynamic Checkpoint Interval.
- Introduce 4-phase state machine: `PLANNING`, `EXECUTING`, `TRAJECTORY_CHECK`, and `PIVOTING`.
- Add Trajectory Checks allowing the agent to self-assess progress against defined success criteria to extend its execution budget.
- Implement Hard (wipe strategy/kernel) and Soft (retry step) Pivoting logic.
- Establish persistent notebook-style kernel (flushed only on Hard Pivots).
- Upgrade sandbox safety with strict import whitelisting, dunder blocking, and taint tracking.

**bugfix:

- logging_config.py: Add markdown_it to suppressed logger list
- utils.py: Rewrite save_agent_trace for delta-based logging
- edge_rlm.py: Add last_trace_msg_count tracking and pass deltas at all 3 call sites
2026-07-18 20:47:44 +01:00
morpheus 834183807a Improved token counting for OpenAI endpoints (llama.cpp token count -> cached prompt_tokens from last output -> naive string estimate). Logger refactoring with JSON format debugging to log file. Various bugfixes. Removed unused templates.py 2026-07-17 21:26:24 +01:00
morpheus 07ee36da05 Refactor API llama.cpp native -> OpenAI compatible 2026-07-16 08:59:01 +01:00
algebra 5d94e292b8 Initial commit 2026-01-26 12:40:24 +00:00