Skip to content

fix(op): Auto-create RecoverySite in StarlarkRuntime.Initialize - #250

Merged
David-Noble-at-work merged 1 commit into
developfrom
fix/initialize-recovery-site
Mar 18, 2026
Merged

David-Noble-at-work merged 1 commit into
developfrom
fix/initialize-recovery-site

Conversation

@David-Noble-at-work

Copy link
Copy Markdown
Contributor

Summary

  • One-line fix — Initialize creates a RecoverySite when Root is non-nil, enabling compensable file operations (WriteText, Remove) in immediate-mode Starlark receivers

Test plan

  • make test passes — all devlore-cli packages green
  • Verified via noblefactor-ops local replace: lint-copyright fix mode (WriteText) no longer panics

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
David-Noble-at-work merged commit e0b9261 into develop Mar 18, 2026
2 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/initialize-recovery-site branch March 18, 2026 04:57
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
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