Repository navigation
fix(server): diagnose learned-skill listing failures - #2644
Merged
Merged
Conversation
Record bounded operation and error-category diagnostics before ListLearnedSkills collapses backend errors. Preserve generic client responses and include captured diagnostics in matrix failures. Verify wrapped causes, configured sink delivery, and real publisher error identity. Co-authored-by: Mecatl <[email protected]>
Merged
2 tasks
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
ListLearnedSkillsfails during publication or repository listing, before the service replaces the backend error with its existing generic client response.Closes #1088.
Historical finding
#1230, merged September 8, already documented a reproduction of the matching
untrusted_project_ignored/ generic learned-skill error and fixed the missing publication lock across non-publishable partition writes. That PR had no linked closing issue, and #1088 remained open with its observability criteria unfinished.This PR completes those diagnostic criteria; it is not another synchronization fix and does not claim every possible generic learned-skill error has the same cause. The separate missing-skill evidence-backoff fix in #2640 and catalog investigation in #1223 are distinct.
Verification
task test(rerun after review follow-ups)task lint(rerun after review follow-ups)task test:race(rerun after review follow-ups)go run ./cmd/mecademo(tool call/result, permission ask/approval, terminal result)-race -count=20 -cpu=1,2,4-race -count=10 -cpu=1,2,4-race -count=20 -cpu=1,2,4Coverage includes:
Buildwith a test-owned malformed skill manifest: the configured diagnostic sink receives the failure, does not expose repository details, and listing recovers after repair.Panel review
Reviewed against
b78d227d3across independent Spec, Standards, Test adequacy, Security, Architecture, Library reuse, and Duplication reviewers.API compatibility
Compatible observability-only change. Client error text and mapping, gRPC status/details, HTTP error classification, request/response schemas, and ordering remain unchanged. No API-major or feature identifier change, no client upgrade, and no persisted-data changes. The shared generation-error sentinel is confined to the root module's internal server/composition callback contract; no public engine/module Go API changes.