Repository navigation
fix(op): Auto-create RecoverySite in StarlarkRuntime.Initialize - #250
Merged
Merged
Conversation
When Root is non-nil, Initialize now creates a RecoverySite on the stored context. Without this, compensable file operations (WriteText, Remove) panic with nil RecoverySite when called through immediate-mode Starlark receivers — the executor normally creates RecoverySite, but immediate mode bypasses the executor.
David-Noble-at-work
added a commit
that referenced
this pull request
Sep 28, 2026
… retired, and the work placed on #916 The last design rulings, 2026-09-28: reconcile's words against the ref are linked, copied, stale, absent, dangling, edited, changed and unpinned, and it exits 0 exactly when the system matches the record ("when the system matches the record, we exit 0; otherwise we exit 1"); live is retired, every layer pinned whoever owns its clone; and the work lands inside #916, the scope lanes first. The plan carries the words table, the lane table and the agreement that #960 folds into lane 17 (#971), with personal#236 waiting on it. The lanes: 16 (#846) and 17 (#971) in PR D; 11 and 12 revised in PR E; 18 (#972) and 5 revised in PR B'; 13 revised in PR F; 19 in noblefactor-ops (#250). Lane 5's plan points at its new place; 5.1 and section 3.1 record the words and the retirement of live. Part of #916; #847. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
David-Noble-at-work
added a commit
that referenced
this pull request
Sep 29, 2026
…each entry, and the lifecycle schedule replanned (#976) * doc(writ): kept snapshots -- reconcile runs against the ref that produced each entry; lane 5 stops on it Ruled 2026-09-27 while lane 5 (#924) was stopped before any code: reconcile runs against the git ref that produced each entry, and a lifetime keeps its layer snapshots as worktrees so links can target them, superseding the 2026-08-08 ruling that links target the origin. Four rulings: a private ref namespace pins each snapshot, not tags; snapshots are writable; an edit is retained on retain/<host>/<date>, a branch cut from the pinned commit, and the developer takes it back by a pull request; a plain reconcile always retains and restores the record only when asked, by a command flag, breaking the no-command-flags rule knowingly. The sparse checkout covers every scope directory. The owner's note: reconcile's narration carries a simple choice -- retain, toss, and optionally a pull request to the branch of origin or elsewhere. Five rulings remain, the replan of #916 among them. docs/plans/feature/847-kept-snapshots.md holds the design as a draft. Lane 5's plan records the stop and the superseded question; 5.1 and 10 section 3.1 carry dated notes; the lifecycle plan records the flag exception. Two pre-existing lines in 5.1 are rewrapped to 120 columns. Part of #916, lane 5; #847. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW * doc(writ): the maintainer owns every merge; upgrade moves links; writ writes only its own refs into a clone Stated by the owner 2026-09-28 as an invariant of the kept-snapshots design: writ never merges, commits to, moves or pushes any branch except its own retain/* branches, so every change that reaches HEAD, the default branch or main is a merge the maintainer makes, by a pull request. 5.1's kept-snapshots note states it, section 3.1 points at it, and the plan refers to it. Two rulings the same day: upgrade moves a layer's links to its new snapshot as well as refreshing copies (revises lane 11, #928); refs, retain branches and locked worktree registrations live in the registered layer clone, whoever owns it (an exception to #792, scoped to refs/devlore/, retain/ and locked worktree registrations). Three remain. Part of #916, lane 5; #847. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW * doc(writ): kept snapshots complete -- the words against the ref, live retired, and the work placed on #916 The last design rulings, 2026-09-28: reconcile's words against the ref are linked, copied, stale, absent, dangling, edited, changed and unpinned, and it exits 0 exactly when the system matches the record ("when the system matches the record, we exit 0; otherwise we exit 1"); live is retired, every layer pinned whoever owns its clone; and the work lands inside #916, the scope lanes first. The plan carries the words table, the lane table and the agreement that #960 folds into lane 17 (#971), with personal#236 waiting on it. The lanes: 16 (#846) and 17 (#971) in PR D; 11 and 12 revised in PR E; 18 (#972) and 5 revised in PR B'; 13 revised in PR F; 19 in noblefactor-ops (#250). Lane 5's plan points at its new place; 5.1 and section 3.1 record the words and the retirement of live. Part of #916; #847. Claude-Session: https://claude.ai/code/session_01SqQVFZz7AdiLZkGoAcUqRW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Initializecreates aRecoverySitewhen Root is non-nil, enabling compensable file operations (WriteText, Remove) in immediate-mode Starlark receiversTest plan
make testpasses — all devlore-cli packages green