You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "terrymanu (via GitHub)" <gi...@apache.org> on 2026/06/18 12:35:05 UTC
[PR] Remove opaque capability fingerprints [shardingsphere]
terrymanu opened a new pull request, #38869:
URL: https://github.com/apache/shardingsphere/pull/38869
Remove opaque fingerprint metadata from MCP capability and runtime payloads. Delete unused descriptor catalog hash helpers and stop LLM E2E artifacts from recording capability fingerprints.
Update MCP unit tests, E2E contract baselines, production runtime assertions.
For ##35294.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove opaque capability fingerprints [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #38869:
URL: https://github.com/apache/shardingsphere/pull/38869
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Remove opaque capability fingerprints [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on PR #38869:
URL: https://github.com/apache/shardingsphere/pull/38869#issuecomment-4742434546
### Summary
- **Merge Decision: Mergeable**
- **Reason:** The latest PR head removes opaque capability fingerprint fields from the MCP capability/runtime/artifact paths, updates the corresponding contract baselines and assertions, and passes scoped local verification.
### Evidence
- `mcp/support/src/main/java/org/apache/shardingsphere/mcp/support/descriptor/MCPDescriptorCatalogPayloadBuilder.java:50` now builds the catalog payload without adding `fingerprints`; the payload returns after `protocolAvailability` at line 76.
- `mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/resource/handler/capability/RuntimeStatusHandler.java:58` builds the runtime payload without `capability_fingerprint`.
- Focused contract assertions now verify the removed fields stay absent:
- `mcp/core/src/test/java/org/apache/shardingsphere/mcp/core/resource/handler/capability/ServerCapabilitiesHandlerTest.java:54`
- `mcp/core/src/test/java/org/apache/shardingsphere/mcp/core/resource/handler/capability/RuntimeStatusHandlerTest.java:50`
- `mcp/support/src/test/java/org/apache/shardingsphere/mcp/support/descriptor/MCPDescriptorCatalogIndexTest.java:134`
- `test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/llm/conversation/artifact/LLME2EArtifactWriterTest.java:53`
- `test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/programmatic/HttpTransportContractE2ETest.java:72`
- `test/e2e/mcp/src/test/java/org/apache/shardingsphere/test/e2e/mcp/runtime/production/AbstractProductionMySQLRuntimeE2ETest.java:295`
- `test/e2e/mcp/src/test/resources/baseline-contract/model-contract/capabilities.yaml:172` now moves from `protocolAvailability` directly to `resources`, so the model-facing baseline no longer records fingerprint metadata.
- Scope is consistent with the PR goal. The remaining `SHA-256`/hash references found under `mcp` and `test/e2e/mcp` are unrelated SQL execution trace or LLM model image metadata, not capability catalog fingerprints.
- PR body references `#35294`, which is an umbrella MCP discussion/design issue. This PR does not claim to close the whole issue, and the narrow cleanup is consistent with the MCP model-facing contract direction.
### Review Details
- **Reviewed Scope:** PR #38869 latest head `1f014ae0ff929909220b9151e56704ce620e7d2e`; local merge-base `1c909657db77046e3ef8fe8fb369cf7d35b8ba86`; reviewed all 21 files reported by GitHub `/pulls/38869/files`, covering `mcp/core`, `mcp/support`, `test/e2e/mcp`, and the capability baseline. The local diff file list matched GitHub's file list.
- **Not Reviewed Scope:** GitHub Actions/check-run status was intentionally not used; no full-repository build was run; Docker-gated live HTTP/production MySQL E2E coverage beyond the locally invoked tests was not executed because those tests are conditionally skipped without Docker.
- **Verification:** `./mvnw -pl mcp/core,mcp/support,test/e2e/mcp -am -DskipITs -Dspotless.skip=true -Dcheckstyle.skip=true -Dtest=RuntimeStatusHandlerTest,ServerCapabilitiesHandlerTest,CoreResourceHandlerSurfaceTest,MCPPerformanceBudgetSmokeTest,MCPDescriptorCatalogIndexTest,LLMMCPConversationArtifactsTest,LLMMCPConversationRunnerTest,LLME2EArtifactWriterTest,LLMUsabilitySuiteRunnerTest,LLMUsabilityMetricCalculatorTest,HttpTransportBaselineContractE2ETest,HttpTransportContractE2ETest -Dsurefire.failIfNoSpecifiedTests=false test` exited `0` with `BUILD SUCCESS`; `HttpTransportContractE2ETest` and `HttpTransportBaselineContractE2ETest` were skipped by their Docker condition. `./mvnw -pl mcp/core,mcp/support,test/e2e/mcp -am -DskipTests -DskipITs checkstyle:check -Pcheck -T1C` exited `0` with 0 Checkstyle violations. `./mvnw -pl mcp/core,mcp/support,test/e2e/mcp -am -DskipTests -DskipITs spotless:check -Pcheck -T1C` exited `0` with `BUILD SUCCESS`.
- **Release Note / User Docs:** Not required for this narrow split PR. The removed fields are opaque capability/runtime metadata, current user docs do not document them, and the model-facing baseline contract was updated in this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org