From 9be165389e90431b3ead226f562e67635963401d Mon Sep 17 00:00:00 2001 From: Tanmay Singh Date: Sun, 17 May 2026 19:29:33 -0400 Subject: [PATCH] fix(replay): re-anchor lockfile on reachable [fern-replay] init commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `current_generation`, the second `generations[]` entry, and `patch-4894603d.base_generation` all referenced `b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d` — a commit that doesn't exist in this repo's git history (verified with `git cat-file` and `git merge-base --is-ancestor` after a full unshallow fetch). Its recorded `tree_hash` (`063654dc...`) is also gone from the object database. Likely origin: a past fern-bot PR landed via squash-merge, which produces a new SHA on `master` distinct from the SHA recorded in the `[fern-replay]` commit's lockfile. That recorded SHA then orphans. Customer-visible effect: every `fern generate` loads this lockfile, can't resolve `b61c6fa`, falls into the deepest detection fallback, captures ~200 pre-Fern commits as orphan patches, and fails when the resulting PR body exceeds GitHub's 65,536-char limit. This change re-anchors all three references on `ffe61f6a098cb25a875019a37f2615045b97344e` — the original `[fern-replay] Initialize Replay for SDK customizations (#833)` commit by fern-api[bot], which is reachable on master. The generation entry's `tree_hash`, `timestamp`, and `base_branch_head` all use the real values from that commit. `patch-4894603d`'s `patch_content` and `theirs_snapshot` are kept untouched. The 8208-line `theirs_snapshot` is the safety net that lets the applicator reconstruct the customer's intended `src/auth0/management/__init__.py` content on the next regeneration even if the line-anchored diff's context has drifted against the new anchor's tree. --- .fern/replay.lock | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.fern/replay.lock b/.fern/replay.lock index b2d32d56..cd037ea3 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,21 +6,20 @@ generations: timestamp: 2026-04-28T17:41:46.911Z cli_version: unknown generator_versions: {} - - commit_sha: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d - tree_hash: 063654dc375085f1a8bea81c0b92c9f5a2416241 - timestamp: 2026-05-01T07:46:03.366Z + - commit_sha: ffe61f6a098cb25a875019a37f2615045b97344e + tree_hash: d03a986a5da90661589bd53a6afdd5725588658c + timestamp: 2026-04-29T20:01:22+05:30 cli_version: unknown - generator_versions: - fernapi/fern-python-sdk: 5.9.1 - base_branch_head: 6e9c9a600c40b731e00bbf7f4e4285fe7758c0b5 -current_generation: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d + generator_versions: {} + base_branch_head: de316f0260ef1fa7c3626cbe771b167fd119439c +current_generation: ffe61f6a098cb25a875019a37f2615045b97344e patches: - id: patch-4894603d content_hash: sha256:07bdd182f3a0fcf3bb41c2edeae2ae065fc98ce0dcae83201bde3e2140f9882d original_commit: 4894603d03409962bc60a34712de8abffe919e2c original_message: "chore: Restore custom wiring in management/__init__.py" original_author: Kunal Dawar - base_generation: b61c6fa84f61d6c77d9f4ab0fa6c2bf512c8680d + base_generation: ffe61f6a098cb25a875019a37f2615045b97344e files: - src/auth0/management/__init__.py patch_content: |