agent-zero/extensions/python/agent_init
Alessandro fe24597a6a Fix plugin precedence in subordinate profile settings
The profile-settings hook merged a priority-first lookup list with
last-value-wins updates, allowing bundled settings to overwrite community
plugins and higher user/project scopes.

Merge plugin-wide settings, bundled profile, plugin profiles, user profile,
project settings and project profile from low to high priority. Use the
existing stable root-priority sort within each plugin layer, preserving
same-root discovery order, activation scope and cached lookup lists.

Add a failing-before/passing-after regression for both plugin layers,
scoped overrides, fallback, malformed settings and profile/MCP inheritance.
Strengthen metadata override tests with community plugins enabled and
update the agent-init contract.

Validation: 207 focused local tests and 18 precedence tests in the Docker
framework runtime passed. Two isolated fresh-context initialization smoke
checks passed in Docker. git diff --check passed.
2026-10-08 16:42:58 +02:00
..
.gitkeep BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
_10_initial_message.py Add LLMResult.non_llm sentinel and apply frdel review findings 2026-09-04 17:44:40 +03:00
_15_load_profile_settings.py Fix plugin precedence in subordinate profile settings 2026-10-08 16:42:58 +02:00
AGENTS.md Fix plugin precedence in subordinate profile settings 2026-10-08 16:42:58 +02:00