mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-24 10:52:21 +00:00
test(cron): document consent-first self-learning suggestions
This commit is contained in:
parent
bc85f6150e
commit
85f108ef03
3 changed files with 28 additions and 2 deletions
|
|
@ -62,6 +62,22 @@ class TestStore:
|
|||
with pytest.raises(ValueError):
|
||||
store.add_suggestion(title="x", description="d", source="bogus", job_spec={}, dedup_key="k")
|
||||
|
||||
def test_usage_source_is_consent_first_self_improvement(self, store):
|
||||
"""Background review suggestions must stay pending until user acceptance."""
|
||||
rec = _add(
|
||||
store,
|
||||
key="usage:weekly-summary",
|
||||
title="Weekly project summary",
|
||||
source="usage",
|
||||
schedule="0 17 * * 5",
|
||||
)
|
||||
|
||||
assert rec is not None
|
||||
assert rec["source"] == "usage"
|
||||
assert rec["status"] == "pending"
|
||||
assert rec["job_spec"]["schedule"] == "0 17 * * 5"
|
||||
assert store.list_pending()[0]["dedup_key"] == "usage:weekly-summary"
|
||||
|
||||
def test_pending_cap(self, store):
|
||||
for i in range(store.MAX_PENDING):
|
||||
assert _add(store, key=f"k{i}") is not None
|
||||
|
|
|
|||
|
|
@ -248,8 +248,12 @@ ones — waits for your yes/no before it ever enters your profile.
|
|||
## Background review notifications (`display.memory_notifications`)
|
||||
|
||||
After a turn, the background self-improvement review may quietly save a memory
|
||||
or update a skill. By default it surfaces a short `💾 Memory updated` line in
|
||||
chat so you know it happened. Control how chatty that is:
|
||||
or update a skill. This is Hermes' consent-aware learning loop: repeated
|
||||
corrections and durable workflow lessons become compact memory entries or
|
||||
procedural skills, while `write_approval` can stage those writes for review
|
||||
before they affect future sessions. By default it surfaces a short
|
||||
`💾 Memory updated` line in chat so you know it happened. Control how chatty
|
||||
that is:
|
||||
|
||||
```yaml
|
||||
display:
|
||||
|
|
|
|||
|
|
@ -379,6 +379,12 @@ A bundle is just a YAML alias — it doesn't install skills for you. The skills
|
|||
|
||||
The agent can create, update, and delete its own skills via the `skill_manage` tool. This is the agent's **procedural memory** — when it figures out a non-trivial workflow, it saves the approach as a skill for future reuse.
|
||||
|
||||
Skills and memory work together in the self-improvement loop: memory stores
|
||||
small durable facts that should always be in context, while skills store longer
|
||||
procedures that should load only when relevant. The background review can
|
||||
suggest or stage skill changes after a session, but the write-approval gate
|
||||
below lets you require human review before those changes land.
|
||||
|
||||
### When the Agent Creates Skills
|
||||
|
||||
- After completing a complex task (5+ tool calls) successfully
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue