a2a-server does not load system settings (`system-defaults.json` / system `settings.json`) and reads `adminPolicyPaths` from the user settings file

Open
#30,327 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
53/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript

Research direction

Read packages/a2a-server/src/config/settings.ts around loadSettings() and compare its settings merge with docs/cli/enterprise.md:19-30; check how the CLI loads system settings and admin policy paths. The issue identifies packages/a2a-server/src/config/config.ts:362-363 as a consumer of the merged settings. Done means the server follows the documented system settings and policy behavior, or the enterprise documentation clearly explains that the A2A server is excluded.

Written by the indexing model from the issue text.

Description

status/need-triage

Package: packages/a2a-server (checked at main 4fa64e7, 2026-11-16)

What happens

  • loadSettings() in packages/a2a-server/src/config/settings.ts merges only two layers: the user file (USER_SETTINGS_PATH, settings.ts:23-24, read at :877) and the workspace file when trusted (:891-898). The merge at :909-915 has no system-defaults or system-override layer.
  • At settings.ts:917-921, policyPaths and adminPolicyPaths are both taken from userSettings.
  • The tool lists used by the server come from that merged result: coreTools: settings.tools?.core and excludeTools: settings.tools?.exclude (packages/a2a-server/src/config/config.ts:362-363).

Expected

docs/cli/enterprise.md:19-30 describes a system settings file (system-defaults.json plus settings.json overrides) that "apply to all users on a machine", with system overrides taking precedence. Tasks run through the A2A server would be expected to see the same system layer and the same admin policy locations as the CLI. If the A2A server is intentionally out of that model, the enterprise page could say so.

Notes

  • packages/a2a-server/README.md:3 marks the package as experimental. This is a consistency report, not a security report.
  • Related docs: docs/cli/enterprise.md:5-6, :19-30.
Dominant language
TypeScript
Stars
109k
Forks
15k
Avg merge
1d 1h
Merged PRs (30d)
106

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from google-gemini/gemini-cli

All issues in google-gemini/gemini-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.