tickJob();'); $compensation = strpos( $tick, '$compensationWorked = $this->compensations->tick();' ); $assert($job !== false && $compensation !== false && $job < $compensation, 'A compensation failure may prevent ordinary Agent work in the same tick.'); $assert(str_contains($tick, 'if (!$this->policyOnly && !$this->vpcBatchOnly)') && $compensation > strpos( $tick, 'if (!$this->policyOnly && !$this->vpcBatchOnly)' ), 'Policy-only or VPC-only workers may execute service compensation.'); $assert(str_contains( $tick, "\$this->observedErrors[] = 'service_compensation_failed';" ) && str_contains($tick, 'catch (\\Throwable $error)') && str_contains($tick, '|| $compensationWorked'), 'Compensation work or its stable observation error is not projected.'); $assert(substr_count( $tick, '$compensationWorked = $this->compensations->tick();' ) === 1 && !str_contains($tick, 'while ($this->compensations') && !str_contains($tick, 'do { $this->compensations'), 'One worker tick may claim more than one compensation item.'); echo "Service compensation worker contracts passed.\n";