Skip to content

Reopen kept binary drafts from the CLI with fresh edit admission - #106

Merged
vanedaltro merged 1 commit into
mainfrom
feat/binary-draft-cli-recovery
Nov 3, 2026
Merged

vanedaltro merged 1 commit into
mainfrom
feat/binary-draft-cli-recovery

Conversation

@vanedaltro

Copy link
Copy Markdown
Contributor

Kept binary drafts can now be reopened directly with cyber hex <path> --session <original-session> --recover <document>, preserving staged bytes and undo/redo without changing the source file or starting inference.

  • Check the expected project root before journal access and verify the returned file path before loading bytes. Preserve the resource-bound recovery checks merged in Add scoped model binary receipt recovery and reconciliation #105.
  • Open recovered drafts in view mode. Require a fresh explicit F2 admission before editing, history changes, discard or save; status/reconciliation cannot renew admission. Honor --read-only.
  • Display the recovery identity on keep-and-close and offer only permitted close actions. Update README, feature guide, approved OpenSpec artifacts, generated CLI docs, OpenAPI and SDK helpers.

Validation before rebase: 79 CLI tests, 16 hex TUI tests and the production-router closed-dirty-draft recovery regression passed; CLI/TUI/server/app all-target Clippy passed. The regression rejects a mismatched expected root before successfully reopening the retained draft. After rebasing onto merged #105: OpenAPI regeneration/check, SDK typecheck and 127 tests passed (10 external tests skipped), strict OpenSpec validation passed all 114 items. All 16 combined hex TUI tests and the production-router recovery regression passed again. Local runtime verification is macOS; platform CI remains pending.

Follow-up to #94. Configured retention/checkpoint/rewind and broader UX/performance acceptance remain unfinished. This PR does not claim complete binary-editor acceptance. The user has prioritized #93 next; delivery guidance and the daily-coding proposal/design/tasks record that scheduling override while retaining unresolved #92/#94 dependencies.

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