diff --git a/Makefile b/Makefile index 5a36f4c63..8c7a5beae 100644 --- a/Makefile +++ b/Makefile @@ -344,10 +344,6 @@ releases-baseline-update: ## Grandfather the tags that shipped nothing and never releases-published-test: ## Test the tag/release reconciliation rule (hermetic; not part of `gate`) ./scripts/test-releases-published.sh -.PHONY: guard-sigpipe-test -guard-sigpipe-test: ## Test that the gate guards survive a reader that closes their pipe early (#1815; hermetic; not part of `gate`) - ./scripts/test-guard-sigpipe.sh - .PHONY: hooks hooks: ## Install the pre-push gate hook (runs `make gate`, scoped to the diff, on every push) git config core.hooksPath .githooks diff --git a/crates/stella-pipeline/src/pipeline/witness_stage.rs b/crates/stella-pipeline/src/pipeline/witness_stage.rs index 0b2546b12..bcd519a82 100644 --- a/crates/stella-pipeline/src/pipeline/witness_stage.rs +++ b/crates/stella-pipeline/src/pipeline/witness_stage.rs @@ -337,7 +337,7 @@ impl<'a> Pipeline<'a> { TurnOutcome::Aborted { reason, cost_usd, .. } => { - *total += cost_usd; + *spend.total += cost_usd; // A budget stop here is degradable too (#1789): the worker's // change is already complete in the candidate, and discarding // it because the SCAFFOLDING ran out of money threw away real @@ -346,7 +346,7 @@ impl<'a> Pipeline<'a> { // the next unaffordable call; what degrading buys is the // deterministically-resolvable endings (a warranted waiver, // an abstention) that need no further model spend at all. - if let Some(abort) = budget_abort(budget.evaluate()) { + if let Some(abort) = budget_abort(spend.budget.evaluate()) { return Err(WitnessAbort::degradable(format!( "witness authoring stopped by the budget ({}); the executed change \ stands unproven", @@ -433,10 +433,10 @@ impl<'a> Pipeline<'a> { TurnOutcome::Aborted { reason, cost_usd, .. } => { - *total += cost_usd; + *spend.total += cost_usd; // Degradable for the same #1789 reason as the author // turn's budget arm above. - if let Some(abort) = budget_abort(budget.evaluate()) { + if let Some(abort) = budget_abort(spend.budget.evaluate()) { return Err(WitnessAbort::degradable(format!( "witness repair stopped by the budget ({}); the executed change \ stands unproven",