mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-23 16:36:23 +00:00
docs(compression): note acceptable false-positive path in zero-user provenance validator
This commit is contained in:
parent
7de7a073c6
commit
a269a5b38c
1 changed files with 6 additions and 0 deletions
|
|
@ -2796,6 +2796,12 @@ This compaction should PRIORITISE preserving all information related to the focu
|
|||
summary,
|
||||
)
|
||||
task_snapshot = match.group(1).strip() if match else ""
|
||||
# NOTE: the "User asked:" scan covers the WHOLE summary, so tool output
|
||||
# quoted verbatim in e.g. Completed Actions can false-positive in a
|
||||
# zero-user session. That is acceptable: the RuntimeError only rides
|
||||
# the existing retry/deterministic-fallback path (which emits the
|
||||
# no-user sentinel itself), so a rare false positive costs one retry
|
||||
# rather than letting fabricated user attribution persist.
|
||||
if (
|
||||
task_snapshot != _NO_USER_TASK_SENTINEL
|
||||
or re.search(r"\bUser\s+asked\s*:", summary, re.IGNORECASE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue