chore(sf): more docstring tweaks in auto/phases + bootstrap/write-gate

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mikael Hugo 2026-05-02 01:49:03 +02:00
parent 3dfc60e04b
commit 229ade7e45
2 changed files with 4 additions and 1 deletions

View file

@ -1970,7 +1970,7 @@ export async function runUnitPhase(
prefs?.safety_harness as Record<string, unknown> | undefined,
);
if (safetyConfig.enabled && safetyConfig.evidence_collection) {
resetEvidence(unitId, s.basePath);
resetEvidence();
const { milestone: eMid, slice: eSid, task: eTid } = parseUnitId(unitId);
loadEvidenceFromDisk(s.basePath, eMid, eSid ?? "", eTid ?? "");
}

View file

@ -122,6 +122,9 @@ export interface WriteGateSnapshot {
pendingGateId: string | null;
}
/**
* Check whether write gate snapshots should be persisted to disk.
*/
function shouldPersistWriteGateSnapshot(
env: NodeJS.ProcessEnv = process.env,
): boolean {