test(daemon): bound values in idle cleanup evidence

Merged
TH
3d ago
+9-2

Summary

Bound the values appended to an idle-reap assertion failure. Parsed log fields are untrusted: registration reasons now match the five current declined states, and codes match the existing KNOWN_APP_ERROR_CODES vocabulary. Unknown strings and objects are omitted while the selected phase remains visible.

One test file changed. Original assertions, runtime behavior, ownership fences and budgets are unchanged. Follow-up to the optional #4090 review; refs #4086 and #4045. The single-use catch stays local.

Validation

Head: fb0dc518e3927a907492b119bd2a4dd2f117f147; base: 3c6673a2b960a6607bac1e080f635a133b86c3d3.

  • Frozen install/build, full format and all seven entrypoint tests passed.
  • Disposable forced-failure proof retained known reason/code and omitted unexpected strings/objects. Removing the filter exposed three sentinel values; restoring the checkout passed the idle test. Same command/default workers; disposable removed and reviewed source preserved.
  • Independent source review found no findings; reviewer ran no checks.
  • Exact affected validation passed all five selected checks (format, lint, typecheck, Fallow and related tests; seven passed). Receipt run-JnVNMA has exactCommit: true and checkoutChanged: false. CI coverage/integration remain obligations. This observability follow-up does not diagnose the original intermittent failures.