Skip to content

feat: plugin context handle with cache and invalidation - #583

Merged
wesleysimplicio merged 1 commit into
mainfrom
plugin-v1/m02
Aug 14, 2026
Merged

feat: plugin context handle with cache and invalidation#583
wesleysimplicio merged 1 commit into
mainfrom
plugin-v1/m02

Conversation

@wesleysimplicio

Copy link
Copy Markdown
Owner

Summary

Plugin consumers fetch task context by a stable content-addressed handle instead of resending files.

Behavior

  • Handle identity includes repo/ref/dirty flag, file hashes, task digest, budget and fidelity
  • Warm identical request is a cache hit
  • One-file change and dirty overlay isolate from the origin handle
  • Unknown or tampered digest is rejected
  • Runtime is not given MapperStore write access

Tests

python -m pytest tests/python/test_plugin_context_handle.py -q → 6 passed

Closes #578

Tasks receive PluginContextHandle/v1 with bounded spans and provenance.
Identical task/ref hits the existing context cache; a one-file change
or dirty overlay produces a new handle. Stale or tampered fetches fail
closed. Runtime only keeps the digest.

Closes #578
@wesleysimplicio
wesleysimplicio merged commit 943e357 into main Aug 14, 2026
1 check failed
@wesleysimplicio
wesleysimplicio deleted the plugin-v1/m02 branch August 14, 2026 04:32
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Simplicio - Mapper Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[P0][Plugin v1][M02] ContextPack handle, cache e invalidação para tasks/sessões

1 participant