Commit Graph
14 Commits
Author SHA1 Message Date
linkliti 98c18e17d9 feat(memory): unify memory tools under one action-based memory tool
The four memory tools memory_load, memory_save, memory_delete, and memory_forget collapse into one memory tool whose action arg selects load, save, delete, or forget, matching the action-dispatch shape of other tools. The tool keeps the numeric threshold and limit coercion, the destructive-confirmation guidance, and the exact-match cleanup of forget, and rejects unknown actions through a plugin prompt file. Memory messages now log as a single memory type with icon verb headlines and a dedicated MEM badge matching the behavior adjustment brain pink accent. Update the tool prompt, the Responses schema and prompt tests, the auto-recall and consolidation imports, the orchestrator skill and README references to the new tool, and the plugin DOX and README.

Validation: pytest tests/test_responses_tools.py plugins/_memory/tests/test_memory_tool_ui.py tests/test_tool_action_contracts.py plugins/_orchestrator/tests/test_status_adapters.py
2026-10-21 23:37:32 +03:00
linkliti a85406de86 feat(plugins): extract behavior adjustment into _behavior_adjustment plugin
Move the behavior adjustment tool, rules prompt, merge templates, and DOX into a _behavior_adjustment plugin so durable behavior, personality, style, and response-format rules ship as a standard plugin. Rules persist in the memory subdirectory, the system-prompt extension injects them at the front, and normalization keeps merged rulesets deduplicated. The tool prompt drops the stale promptinclude guidance that no longer matches how the tool writes rules. The tool logs its message as its own `behavior_adjustment` type with an `icon://psychology Adjusting behavior` headline rendered through a BEH badge handler in the brain pink accent.

Validation: pytest tests/test_tool_action_contracts.py tests/test_responses_tools.py tests/test_behavior_tool_ui.py
2026-10-21 23:37:31 +03:00
Alessandro 3400beccac Hide disabled capabilities from system prompts
Move configurable tool and delegation guidance out of always-on and profile prompts so policy-filtered tool prompts remain the source of truth. Gate live Browser context by profile policy and add regression coverage across bundled profiles.
2026-08-31 01:55:40 +02:00
Alessandro baa97dcb87 Make bundled memory behavior reliable
Carry delayed recall results across prompt objects without crossing profile, project, or memory-store scope, and reuse one query embedding across the memory and solution searches.

Expose every bundled memory operation to native Responses models and cover the recall, vector-search, and prompt contracts with regressions.
2026-08-23 14:15:51 +02:00
Alessandro dbe87ee184 Keep capability discovery aligned with runtime
Humanize MCP catalog labels with their server names while preserving canonical IDs. Suppress skill discovery prompts when skills_tool is unavailable and move the behaviour_adjustment prompt under the Memory plugin so disabling its implementation also removes its instructions.
2026-08-12 14:34:15 +02:00
Alessandro afff2e3c05 Harden scoped tool policy enforcement
Resolve effective policy through inherited layers without letting empty upper configs shadow restrictions, and carry canonical tool identities through local and MCP execution.

Enforce required policy hooks and parent delegation checks at runtime, keep installed connector capabilities configurable while disconnected, and remove complete blocked-tool examples from rendered prompts.

Use the canonical tool prompts for concise catalog descriptions and add regressions for plugin activation, dotted local names, MCP calls, layered policies, and parallel subordinate paths.
2026-08-12 14:34:15 +02:00
Alessandro 120d55d271 Guide memory staleness with timestamps
Add prompt-only guidance that treats memory timestamps as soft recency signals instead of hard TTLs. Encourage newer/current facts to win for mutable conflicts while preserving old durable preferences or project facts unless current evidence shows they are stale, false, superseded, duplicated, or unwanted.
2026-06-02 11:13:41 +02:00
Alessandro 9f10e82e52 more explicit memory_forget usage guidance
From testing and benchmarks, telling the agent what memory_forget is for more explicitly helps with memory consolidation, which lacks part of the awareness about stale (duplicates are usually well-covered).
2026-06-02 10:15:50 +02:00
Alessandro a0a815943a Improve auto-memory extraction quality
Filter passive fragment memories before consolidation so action history, temporary artifacts, local runtime coordinates, and personal absolute paths do not get saved automatically.

Tighten memory utility prompts toward durable preferences, stable project facts, recurring constraints, and reusable solutions while keeping explicit memory_save behavior unchanged. Add focused tests for fragment quality gating.
2026-06-02 09:42:47 +02:00
Alessandro 6ba1f30dca fix: make memory cleanup update stale fragments 2026-05-11 11:51:58 +02:00
Silver Zachara f5e21b9871 Fix typos in memory.solutions_sum.sys.md 2026-04-12 16:34:16 +02:00
Alessandro 1cbecc241e memory: harden FAISS integrity and consolidation scoring
- Add FAISS index integrity checks using a SHA-256 sidecar (`index.faiss.sha256`) and write hash on save.
- Harden `memory_load` filter evaluation with input validation (allowlist + length cap) and `simple_eval(..., functions={})`.
- Add score-preserving similarity search and use real relevance scores in consolidation (including best-score dedupe by memory id).
- Prevent utility-model context overflows by truncating memorize input history for fragments and solutions.
2026-04-08 14:02:05 +02:00
Alessandro 54362bf8ee prompts: adopt compact defaults and rebalance guidance
Promote the a0_small prompt work into the shipped default stack.

Token count for default prompt, accounting for tools, plugins, secrets placeholders, inactive project, etc: 2996 tokens.

- migrate compact prompt fragments into core prompts, plugin-owned prompts, and the agent0 overlay
- remove the obsolete a0_small profile and rename the tool-call knowledge reference to a generic framework file
- keep a small set of high-value JSON examples while preserving key guardrails for tool names, tool args, and method-style calls
- bake balanced conciseness into default response behavior without changing the initial greeting
- drop the call_sub prompt-side loader and keep call_sub guidance self-contained
- restore essential secrets/security guidance, preserve inactive-project messaging, and rebalance the A2A prompt
- add a regression test that verifies the assembled default agent0 prompt stays under the token budget and retains critical guardrails
2026-03-30 21:44:20 +02:00
frdel 6515626242 refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00