mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
Follow-up hardening on top of the salvaged #66637 commits: - _insert_real_user_anchor could place the restored human turn directly next to user-role scaffolding (index-0 insert before a leading synthetic user turn, or a scaffolding-only transcript), breaking the strict alternation contract (#55677). Restoration now merges into trailing scaffolding (anchor text leads, synthetic flags cleared) and appends after a user-role compaction summary instead of inserting adjacent. - _is_real_user_message now also rejects user-role compaction summaries (the compressor pins the summary to role=user when the tail opens with an assistant turn), so a summary can no longer satisfy the human-anchor check and skip restoration. - _latest_user_task_snapshot reuses the same real-user predicate, so the deterministic task snapshot can no longer anchor on todo snapshots, truncation notices, or background-process reports. - The Historical Task Snapshot rewrite keeps the section terminated with a blank line; the previous replacement consumed the boundary newlines, gluing the next '## ' heading mid-line and deleting all later sections on the next iterative compaction. - Drop _length_continuation_synthetic (no producer anywhere). - AUTHOR_MAP entry for enzo-adami. |
||
|---|---|---|
| .. | ||
| ci | ||
| lib | ||
| tests | ||
| whatsapp-bridge | ||
| add_contributor.py | ||
| analyze_livetest.py | ||
| benchmark_browser_eval.py | ||
| build_model_catalog.py | ||
| build_skills_index.py | ||
| check-windows-footguns.py | ||
| check_subprocess_stdin.py | ||
| contributor_audit.py | ||
| dev-sandbox.sh | ||
| discord-voice-doctor.py | ||
| docker_config_migrate.py | ||
| docker_rebootstrap_nous_session.py | ||
| hermes-gateway | ||
| install.cmd | ||
| install.ps1 | ||
| install.sh | ||
| install_psutil_android.py | ||
| iso-certify.py | ||
| keystroke_diagnostic.py | ||
| kill_modal.sh | ||
| lint_diff.py | ||
| LIVETEST_README.md | ||
| profile-tui.py | ||
| release.py | ||
| run_tests.sh | ||
| run_tests_parallel.py | ||
| sample_and_compress.py | ||
| tool_search_livetest.py | ||