I know that in durative effects, I can compute based on #t, which is some flavor of elapsed time. But from the examples I see, it seems to be more like the duration of the effect itself: for instance, boil water, and heat it by a certain amount for the time it boils. Whereas, I want to have a cost that factors in total elapsed time since the start of the entire plan. Is that a different variable?
I tried (increase (total-cost) (* #t (num-not-yet-fixed ?group)))
Where the num-not-yet-fixed goes down over time, and the idea is to increase the cost by a higher value if more things being "fixed" are fixed later rather than earlier. But (a) popf rejected the use of #t here, it seems, and (b) it seems like even if it worked, it would be for the fixed duration of the durative effect, and not since the start of execution.