fix: report server capabilities in OpAMP responses#6829
Merged
michel-laterman merged 4 commits intoelastic:mainfrom Apr 13, 2026
Merged
fix: report server capabilities in OpAMP responses#6829michel-laterman merged 4 commits intoelastic:mainfrom
michel-laterman merged 4 commits intoelastic:mainfrom
Conversation
Send the server capabilities bitmask (AcceptsStatus, AcceptsEffectiveConfig) in the first ServerToAgent response when an agent enrolls or reconnects from a non-active status (offline, disconnected). Active agents (online, error, degraded) do not receive capabilities on every message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
This pull request does not have a backport label. Could you fix it @michel-laterman? 🙏
|
Define disconnected status as a part of openapi.yml so that opamp agent checkin statuses are defined alongside existing statuses
a0c865d to
ec225a0
Compare
ycombinator
reviewed
Apr 13, 2026
ycombinator
approved these changes
Apr 13, 2026
mergify bot
pushed a commit
that referenced
this pull request
Apr 13, 2026
* feat: report server capabilities in OpAMP responses Send the server capabilities bitmask (AcceptsStatus, AcceptsEffectiveConfig) in the first ServerToAgent response when an agent enrolls or reconnects from a non-active status (offline, disconnected). Active agents (online, error, degraded) do not receive capabilities on every message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Define disconnected status as a part of openapi.yml Define disconnected status as a part of openapi.yml so that opamp agent checkin statuses are defined alongside existing statuses * Fix linter warnings * Silence linter --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> (cherry picked from commit bc20c8b) # Conflicts: # docs/opamp.md # internal/pkg/api/handleOpAMP.go # internal/pkg/api/handleOpAMP_test.go
6 tasks
michel-laterman
added a commit
that referenced
this pull request
Apr 14, 2026
…ses (#6832) * fix: report server capabilities in OpAMP responses (#6829) * feat: report server capabilities in OpAMP responses Send the server capabilities bitmask (AcceptsStatus, AcceptsEffectiveConfig) in the first ServerToAgent response when an agent enrolls or reconnects from a non-active status (offline, disconnected). Active agents (online, error, degraded) do not receive capabilities on every message. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Define disconnected status as a part of openapi.yml Define disconnected status as a part of openapi.yml so that opamp agent checkin statuses are defined alongside existing statuses * Fix linter warnings * Silence linter --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> (cherry picked from commit bc20c8b) # Conflicts: # docs/opamp.md # internal/pkg/api/handleOpAMP.go # internal/pkg/api/handleOpAMP_test.go * fix backport --------- Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
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.
What is the problem this PR solves?
The OpAMP spec requires the server to report its capabilities bitmask in the first
ServerToAgentresponse. Fleet-server was not setting this field, so agents could not discover what the server supports.How does this PR solve the problem?
Send the
serverCapabilitiesbitmask (AcceptsStatus,AcceptsEffectiveConfig) in theServerToAgentresponse when an agent enrolls or reconnects from a non-active status (offline, disconnected). Active agents (online, error, degraded) do not receive capabilities on every message to reduce response size. AnisActiveStatushelper determines which statuses are considered active.Design Checklist
Checklist
./changelog/fragmentsusing the changelog toolRelated issues