Ξ-W2-T1: the resample bake chain — instrument renders, extension banks, one click re-points and resets

This commit is contained in:
2026-08-01 16:26:28 -04:00
parent 6c982cd617
commit 60308a3655
52 changed files with 2212 additions and 55 deletions
+13
View File
@@ -204,6 +204,19 @@ bool deleteOrphanFile(const std::string& absPath, bool& outUsedTrash,
} // namespace
tracking::Answer ReaSamplerSession::tiedUsageFor(const std::string& capturePath,
const std::string& ownUsageKey) const {
// The SECOND consumer of the same gather the prune scan above runs — deliberately
// next to it, so "both answers come out of one TrackingState" is structural rather
// than a rule two files have to remember.
std::string rppPath;
void* proj = readActiveProject(rppPath);
if (!proj) return tracking::Answer::Indeterminate;
const wire::UsageFoldResult usage = scanInstanceUsage(proj);
const tracking::TrackingState state{trackingStatus_, tracking_, usage};
return tracking::tiedUsageExists(state, capturePath, ownUsageKey);
}
reclaim::PruneReport ReaSamplerSession::pruneDryRun() const {
const PruneScan scan = scanPruneOrphans(book_, tracking_, trackingStatus_);
reclaim::PruneReport report =