ADORSYS-GIS / ADORSYS-GIS/ai-helm

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

Abierto
#553 0 comentarios 0 reacciones 2 asignados Reclamado por @Koufan-De-King Ver en GitHub
opencode ticket
Lenguaje dominante
Go Template
Estrellas
3
Forks
1
Merge medio
19 h 24 min
PR fusionados (30 d)
80

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
helm, kubernetes
Área
devops, infrastructure, testing-qa
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.