Conversation
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…ing method' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…ing method' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…eption'' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…eption'' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Resolved fred-core rename conflict (fred-core/ → libs/fred-core/). Regenerated libs/fred-core/uv.lock after merge. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add RuntimeErrorEvent(kind="execution_error", message) to fred-sdk:
RuntimeEventKind enum, class, and RuntimeEvent union. Before this, the
exception handler yielded {"error": str(exc)} with no kind field —
silently ignored by any SSE client dispatching on kind.
- Wire RuntimeErrorEvent in fred-runtime _iterate_runtime_event_payloads
exception handler (replaces bare dict yield).
- Update TurnPersistedEvent docstring: explicitly documented as NOT emitted
live over the SSE stream; final remains the only reliable end-of-turn
signal. Type kept for future use.
- Update /agents/execute/stream docstring: document stream termination
(connection close after final), RuntimeErrorEvent as the error signal,
and TurnPersistedEvent non-delivery.
- Update RuntimeExecuteRequest.runtime_context description: note that
user_id defaults to "unknown" in agent_id direct mode unless explicitly
provided.
- Regenerate frontend runtimeOpenApi.ts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add section 0 with a plain HTTP SSE sequence diagram, the two execution paths (managed vs direct), session continuity rule, and the error signal. Update section 5 to reflect RuntimeErrorEvent (replaces bare-dict gap note) and clarify TurnPersistedEvent as schema-only, not emitted over SSE. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add section 0.1 with a step-by-step sequence diagram of the managed execution path (bootstrap → agent list → prepare-execution → runtime SSE), explaining why control-plane is in the middle for prepare-execution but not for streaming, and what ExecutionGrant contains. Update section 8 (SSE contract gaps) from open issues to resolved, referencing commit eedbc61. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mark all four 3b.6 SSE contract corrections as fixed (commit eedbc61). Add 3b.8: in no-security/standalone mode (security_enabled=false), team_id must default to "personal" automatically in fred-runtime and fred-agent-chat when not explicitly provided. Without this, checkpoints, KPIs, and history rows have no team identity even in the simplest single-user deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…mode (3b.8) In no-security mode (security_enabled=False) the runtime now implicitly resolves team_id to "personal" when the caller omits it, so standalone deployments behave correctly without requiring the client to pass team_id on every request. Thread security_enabled through _stream → _iterate_runtime_event_payloads. CLI client also defaults effective_team_id to "personal" when no login config is present. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…sonal default Bug: _stream() was passing raw team_id=None to _emit_turn_completed() and _write_turn_history() while the "personal" default lived only inside _iterate_runtime_event_payloads(), invisible to the caller. Fix: move team resolution to _stream() before any downstream call. Remove security_enabled from _iterate_runtime_event_payloads() (only purpose was team resolution; caller now owns it). Also: - CLI startup banner now prints active team: "[chat] team : personal" - Test renamed + rewritten to assert the resolved team_id arriving at _iterate - RUNTIME-EXECUTION-CONTRACT.md: standalone/no-security paragraph in section 0 - BACKLOG.md: 3b.8 fully done; 3b.9 checkpoint retention policy added Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…dd error counter Three production KPI corrections in _emit_turn_completed(): 1. Strip session_id, exchange_id, user_id, agent_instance_id from Prometheus dims — these are per-turn UUIDs that would create one time-series per turn (cardinality bomb). They remain available in history rows and SSE logs. 2. Set finish_reason="error" when execution_error is emitted instead of final, making the histogram queryable by outcome without raw label inspection. 3. Add agent.turn_error_total counter emitted only on error turns, enabling Prometheus alerting on error rate without histogram label filtering. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…entory Covers fred-runtime, fred-sdk, and fred-agent-chat CLI across 13 feature areas with status, source files, known gaps, and a standalone validation checklist. Records 6 known defects (KD-1 through KD-6) with severity ratings. Supersedes ad-hoc per-session gap discovery. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-policy knowledge flow local policy
…-documents-scrlling-arrows feature/frontend-adds-display-documents-scrlling-arrows
…cy limit is reached (#1640) * feat: Cap traffic on fred-agents via uvicorn by throwing 503 when concurrency limit reached * Update __main__.py * fix: code-quality * fix: code-quality * fix: make update-runtime-api + npm audit fix * Update docs/swift/data/id-legend.yaml
…s of progresses in the new chat UI
…iable prompts for specific MCP servers (#1649) * feat: Move base prompts to McpServerConfiguration to enforce non negotiable prompts for specific MCP servers * merge swift in 1648-move-tool-behavioral-contracts-to-mcp_catalog-agent_instructions * Revert "merge swift in 1648-move-tool-behavioral-contracts-to-mcp_catalog-agent_instructions" This reverts commit 8b2b586. * fix: code quality * fix: RTK slices generation in frontend makefile * impr: Add target to update all apis * impr: update mcp rfc * impr: PMO workflow * fix: code-quality-fix on all the services and apps * fix: Add slices to prettierignore to avoid fails in the code-quality-fix make step
* Expose agent tags in EvalTrace * Document agent tags in EvalTrace * fix: update runtime openapi slices --------- Co-authored-by: Simon Cariou <simon.cariou@thalesgroup.com>
| if len(sessionIDs) > 0 { | ||
| sessionID = sessionIDs[i] | ||
| sessionID := cfg.SessionID | ||
| if cfg.Protocol != "sse" && len(wsSessionIDs) > 0 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Describe what changed and why.
Mandatory Checklist
docs/platform/DEVELOPER_CONTRACT.md.make code-qualityin every touched project.make testin every touched project.@pytest.mark.integration.Validation Notes
Paste the exact commands and short results.
Risk / Rollback
State main risk and rollback approach.