ADORSYS-GIS / ADORSYS-GIS/ai-helm

[Ticket]: Live-validate local MCP model — per-agent injection + env passthrough

オープン
#553 コメント 0 件 リアクション 0 件 担当者 2 名 @Koufan-De-King が担当を希望しています GitHub で見る
opencode ticket
主要言語
Go Template
スター
3
フォーク
1
平均マージ
19時間 24分
マージ済み PR(30日)
80

説明

Part of #549

## Type
Chore

## Summary
**Live-validate the local-MCP model** shipped in #548: (1) per-agent tool injection (the lean primary must NOT carry the new tool schemas; each subagent must), and (2) opencode merges a server's declared `environment` OVER the inherited process env (so `npx`/PATH still resolve for `memory`/`jira`/`confluence`).

## Intent
Confirm the security + correctness assumptions of ADR-0071/0072/0073 hold on a real opencode client before relying on them.

## Source of truth (links)
- ADR-0071/0072/0073 "live-validate" follow-ups; `docs/opencode-well-known.md`
- Merged: https://github.com/ADORSYS-GIS/ai-helm/pull/548

## Current Behavior
Validated only by `helm template` (render) — runtime behavior unverified on-cluster/client.

## Expected Behavior
A real `opencode auth login` against `ai.camer.digital` shows: primary lacks `memory_*`/`git_*`/`jira_*`/… ; each subagent has exactly its own; and `@memory`/`@atlassian` actually read/write (env passthrough works, no PATH/ENOENT break).

## Acceptance Criteria
- [ ] `opencode mcp list` / agent tool dumps confirm per-agent injection.
- [ ] `@memory` writes to `~/.local/share/opencode/memory.json` (no ENOENT).
- [ ] `@atlassian` authenticates with user env vars (passthrough confirmed).
- [ ] Findings recorded; any gap filed as a fix ticket.

## Out of Scope
- Adding new servers (other tickets).

## Technical Context
Declared `environment` vs inherited env is the key unknown; if opencode REPLACES rather than merges, `npx`/PATH could break for servers that declare env.

## Risks
- If injection/passthrough assumptions are wrong, primary leakage or broken servers.

## Test Plan
- Fresh login on a clean machine; inspect tool sets per agent; exercise memory + atlassian.

## Human accountable owner
@stephane-segning

## AI Usage Declaration
AI drafted this validation ticket; human owns intent + verification.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Read ADR-0071/0072/0073 and docs/opencode-well-known.md, then use a fresh opencode auth login against ai.camer.digital. Run opencode mcp list and inspect each agent's tools, then exercise @memory and @atlassian with the clean machine's environment. Done means the acceptance checks pass, findings are recorded, and any gap becomes a fix ticket.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
helm, kubernetes
領域
devops, infrastructure, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。