Skip to content

feat(experimental): export Focus–Field recovery operator result - #286

Draft
safal207 wants to merge 2 commits into
mainfrom
agent/focus-field-operator-export-v0-1
Draft

feat(experimental): export Focus–Field recovery operator result#286
safal207 wants to merge 2 commits into
mainfrom
agent/focus-field-operator-export-v0-1

Conversation

@safal207

Copy link
Copy Markdown
Owner

Summary

Adds a minimal portable serializer for CML Focus–Field Recovery v0.2 so downstream Graph–Field consumers can consume a stable result shape without importing CML internals or duplicating CML trust gates.

Why

RESONANCE Graph–Field Operator Family now treats existing CML Focus–Field as its RecoveryOperator. The missing seam was a source-owned serialization contract.

This PR closes only that seam. It does not change the recovery scorer, weights, applicability logic, information-quality logic, or authority semantics.

Export contract

cml.experimental.focus_field_export.export_recovery_decision(...) emits:

source_contract = cml.focus-field.recovery-decision.v0.2
source_revision = <full Git SHA>
state
selected_anchor_id
score
rewind_steps_saved
trusted_continuation
ranked_candidates
mode = ADVISORY_ONLY
authority_granted = false

The exporter preserves reanchored_exploratory and trusted_continuation=false without promoting historical context into current trusted continuation.

Boundary

  • no RESONANCE import;
  • no downstream consumer import;
  • no new scorer;
  • no authority grant;
  • no execution/merge/deployment/payment/security effect;
  • current CML applicability and information-quality gates remain canonical.

A downstream consumer may normalize this data into its own advisory envelope, but must not reinterpret trusted_continuation as execution authority.

Validation

Adds focused tests for:

  • portable trusted result export;
  • exploratory-state preservation;
  • explicit ADVISORY_ONLY / authority_granted=false boundary;
  • full-hex source revision validation.

@github-actions

Copy link
Copy Markdown
Contributor

Relevant CML Memory

Deterministic retrieval for PR #286 at head d05b35d090ad against accepted memory on base 90c7fdaaf31a.

No publishable accepted memory matched this change

No publishable accepted memory met the relevance threshold.


Publishable candidates evaluated: 0 · selected: 0.
Public-repository policy surfaces only packs with visibility=public and contains_private_data=false.

CML memory is advisory: verify that the recorded constraints still apply. This comment grants no approval, execution, or merge authority.

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6a281c45-668d-4d05-8613-5e7979d0c451

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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