Skip to content

Add two-level FractalContext backend service - #576

Open
Ivan-VHS wants to merge 8 commits into
mainfrom
feat/fractal-context-backend
Open

Ivan-VHS wants to merge 8 commits into
mainfrom
feat/fractal-context-backend

Conversation

@Ivan-VHS

@Ivan-VHS Ivan-VHS commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

Introduce a deterministic, UI-independent backend model for Reaper Studio's two-level FractalContext.

Included

  • Four canonical root axes: action, relations, transform and state.
  • Terminal depth-two micro-scenes with context-specific action catalogues for words/text blocks, code, table columns, media and generic objects.
  • Read-only preview descriptors driven by bounded local snapshot metadata.
  • Typed ActionIntent resolution with expected document revision, active object/range identity, explicit confirmation metadata, capability requirements and deterministic idempotency keys.
  • Fail-closed checks for missing indexes, non-editable targets, disallowed effects, missing host capabilities, forged scenes, stale document revisions and changed selections.
  • Bounded inputs and serialized scenes/intents that do not include selected text or a content-derived public hash.
  • Focused contract tests and Studio documentation of the backend/UI boundary.

Verification

  • python -m unittest discover -s tests -p 'test_context_fractal.py' -v — 17 tests passed locally against the new module.
  • python -m compileall -q reaper/context_fractal.py tests/test_context_fractal.py — passed locally.

Explicit boundary

This PR implements the backend context model and intent contract only. It does not yet bind pointer/hover events in reaper/desktop.py, render cascading Tk menus, implement pointer-trajectory grace periods, or provide execution handlers for each action. Returned intents must be routed through separately authorized handlers. The full Reaper suite and Studio UI acceptance checks have not been run as part of this focused implementation.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-12-03T01:28:52.526454Z
We couldn’t complete this review. Comment @codex review to try again.
d8a0da7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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.

1 participant