Remove deprecated DIFC resource API and colocate schema cache - #11685
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Removes obsolete DIFC APIs and colocates custom-schema caching with its validator.
Changes:
- Removes deprecated
Resourceconstructors and tests. - Moves
customSchemaCacheintovalidation_server.go.
Show a summary per file
| File | Description |
|---|---|
internal/difc/resource.go |
Removes deprecated resource API. |
internal/difc/resource_test.go |
Removes obsolete API tests. |
internal/config/validation_shared.go |
Retains only the shared logger. |
internal/config/validation_server.go |
Colocates the schema cache with its consumer. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Balanced
🔒 mcpg Read-Only Stress — default AWFSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE
No writes leaked. All attempted reads succeeded. Gateway tool catalog is fully read-only for this runtime. References: §32585964425
|
🔒 mcpg Read-Only Stress — gVisorSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE
No writes succeeded. No FAIL condition triggered.
|
🔒 mcpg Read-Only Stress — docker-sbxSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE
No writes leaked in any part. The INCONCLUSIVE designation reflects methodology gaps (no write-capable backend path reached mcpg's DIFC layer; gh unauthenticated), not a security failure. Run: §32585964423
|
The DIFC package retained an unused deprecated resource type, while the custom-schema cache was separated from its sole production consumer.
DIFC cleanup
Resource,NewResource, andEmptyResource.LabeledResourceas the canonical resource representation.Configuration organization
customSchemaCacheintovalidation_server.go.