Pre-flight Checks
Problem Description
The first read-only next-gen MCP milestone is now implemented and pushed, but Raven still needs follow-up work before the next-gen incident workflow is production-ready end to end.
Current state:
raven nextgen-mcp exposes read-only next-gen tools.
- Raven incident skill and agent setup docs exist.
- Unit tests cover the local client/server contract with fake HTTP servers.
- No live/staging next-gen validation, refresh-token flow, raw-size enforcement, or mutating next-gen actions exist yet.
Proposed Roadmap
Milestone 2 — end-to-end validation and hardening
Milestone 3 — Raven persistence safety
Milestone 4 — auth resilience
Milestone 5 — controlled mutating next-gen tools
Only after read-only behavior is validated:
Milestone 6 — setup automation
Recommended Test Plan
Short-term:
go test -count=1 ./...
go vet ./...
git diff --check
python3 -m json.tool .gemini/settings.json >/dev/null
python3 - <<'PY'
import tomllib
with open('.codex/config.toml','rb') as f:
tomllib.load(f)
PY
bash -n scripts/raven-ollama
Live/staging validation:
NEXTGEN_BASE_URL=https://<staging-nextgen> \
NEXTGEN_ACCESS_TOKEN=<redacted-ai-diagnostic-token> \
raven nextgen-mcp
Then exercise via an MCP client:
nextgen_list_events(status="ACTIVE")
nextgen_get_event(event_id="...")
nextgen_search_cis(query="...")
nextgen_get_ci_events(ci_id="...")
nextgen_get_ci_metrics(node_id="...")
nextgen_build_raven_event_candidate(event_id="...", canonical_ci_id="...")
Acceptance Criteria
References
docs/design/nextgen-mcp-contract.md
docs/design/raven-incident-workflow.md
docs/agent-setup.md
docs/ai-usage.md
internal/nextgen/
internal/nextgenmcp/
Pre-flight Checks
Problem Description
The first read-only next-gen MCP milestone is now implemented and pushed, but Raven still needs follow-up work before the next-gen incident workflow is production-ready end to end.
Current state:
raven nextgen-mcpexposes read-only next-gen tools.Proposed Roadmap
Milestone 2 — end-to-end validation and hardening
raven nextgen-mcpagainst a real or staging next-gen API with anAI_DIAGNOSTIC-style token.GET /api/events?status=<status>GET /api/events/{event_id}GET /api/nodes/search?q=<query>GET /api/events/related/{ci_id}GET /api/nodes/{node_id}/metricshttps://host/proxy/api/....Milestone 3 — Raven persistence safety
rawsize for Raven events.raven_record_event/raven event ingest.Milestone 4 — auth resilience
NEXTGEN_REFRESH_TOKEN.Milestone 5 — controlled mutating next-gen tools
Only after read-only behavior is validated:
nextgen_run_diagnosticnextgen_ack_eventnextgen_comment_eventnextgen_close_eventCausa raíz:andNota:where requiredMilestone 6 — setup automation
raven setup <agent>after the docs contract stabilizes.~/.gemini,~/.codex, or Ollama server env..gemini/settings.json,.codex/config.toml, Ollama Modelfile, and wrapper scripts.Recommended Test Plan
Short-term:
Live/staging validation:
Then exercise via an MCP client:
nextgen_list_events(status="ACTIVE")nextgen_get_event(event_id="...")nextgen_search_cis(query="...")nextgen_get_ci_events(ci_id="...")nextgen_get_ci_metrics(node_id="...")nextgen_build_raven_event_candidate(event_id="...", canonical_ci_id="...")Acceptance Criteria
References
docs/design/nextgen-mcp-contract.mddocs/design/raven-incident-workflow.mddocs/agent-setup.mddocs/ai-usage.mdinternal/nextgen/internal/nextgenmcp/