Skip to content

[CF-DATAPLANE][CPEX] Run resource hooks for resource reads - #128

Open
lucarlig wants to merge 2 commits into
mainfrom
user/luca/issue-6253-cpex-typed-extensions
Open

[CF-DATAPLANE][CPEX] Run resource hooks for resource reads#128
lucarlig wants to merge 2 commits into
mainfrom
user/luca/issue-6253-cpex-typed-extensions

Conversation

@lucarlig

@lucarlig lucarlig commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add cmf.resource_pre_fetch and cmf.resource_post_fetch to the existing global CPEX runtime
  • convert canonical resource requests and results to CMF while rejecting route changes and lossy response mutations
  • run the hooks around resources/read
  • use one supported-hook authority for runtime validation and factory registration
  • use one named CMF invocation path and one shared MCP-resource-to-CMF converter
  • verify direct and namespaced password-resource redaction with the bundled secrets-detection plugin

This intentionally keeps runtime configuration version 1 and the existing request-local PluginContextTable behavior. Scoped plugin bindings, trusted typed extensions, catalogs, caches, and runtime revisions are excluded. Those can be evaluated separately after IBM/mcp-context-forge#6252 defines the producer contract.

Part of IBM/mcp-context-forge#6253.

Verification

  • cargo nextest run --workspace --all-features
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo fmt --all -- --check
  • cargo deny check
  • cargo shear
  • repository pre-commit suite

Protocol-specific coverage is isolated in stacked PR #129.

Signed-off-by: lucarlig <luca.carlig@ibm.com>
@lucarlig
lucarlig force-pushed the user/luca/issue-6253-cpex-typed-extensions branch from 34a2c5b to e4193e9 Compare September 3, 2026 09:52
@lucarlig lucarlig changed the title [CF-DATAPLANE][CPEX] Resolve scoped bindings and typed extensions [CF-DATAPLANE][CPEX] Run resource hooks for resource reads Sep 3, 2026
@lucarlig
lucarlig marked this pull request as ready for review September 3, 2026 09:59
Signed-off-by: lucarlig <luca.carlig@ibm.com>
@lucarlig
lucarlig marked this pull request as draft September 3, 2026 10:23
@lucarlig
lucarlig marked this pull request as ready for review September 3, 2026 10:27
@lucarlig
lucarlig requested a review from dawid-nowak September 3, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants