Skip to content

Commit f6063e2

Browse files
committed
mark legacy renameAdmission API deprecated with removal timeline
decideRenameAdmission, planRenameAction, and RenameAdmissionDecision now carry @deprecated tags with removal target: next deletion pass after TraceSink second cluster (autophagy campaign 2). No production caller remains — only test coverage of the legacy decision matrix. Not deleting yet to avoid test churn in this pass.
1 parent 90f7183 commit f6063e2

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/sync/policy/renameAdmissionPolicy.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
import type { PathAdmission } from "./pathAdmissionPolicy";
1111
import type { PathSyncCategory } from "../../paths/pathCategory";
1212

13+
/**
14+
* @deprecated Remove after autophagy campaign 2. No production caller remains.
15+
* Only kept for test coverage of the legacy decision matrix.
16+
* Removal target: next deletion pass after TraceSink second cluster.
17+
*/
1318
export type RenameAdmissionDecision =
1419
| { kind: "rename"; oldPath: string; newPath: string }
1520
| { kind: "tombstone-old"; oldPath: string; newPath: string; reason: string }
@@ -18,7 +23,9 @@ export type RenameAdmissionDecision =
1823

1924
/**
2025
* Decide what to do with a rename given the admission status of both paths.
21-
* (Legacy API — use planCategoryRenameAction for new code.)
26+
*
27+
* @deprecated Remove after autophagy campaign 2. No production caller remains.
28+
* Use planCategoryRenameAction for new code.
2229
*/
2330
export function decideRenameAdmission(input: {
2431
oldPath: string;
@@ -83,7 +90,9 @@ export type RenameAction =
8390

8491
/**
8592
* Plan rename action from a RenameAdmissionDecision (legacy path).
86-
* Used by callers that still go through admitMarkdownPath + decideRenameAdmission.
93+
*
94+
* @deprecated Remove after autophagy campaign 2. No production caller remains.
95+
* Used only by tests exercising the legacy decision matrix.
8796
*/
8897
export function planRenameAction(decision: RenameAdmissionDecision): RenameAction {
8998
switch (decision.kind) {

0 commit comments

Comments
 (0)