fix(client): refuse unsafe credential and replay inputs
Summary
Reject credentials before non-loopback cleartext HTTP requests. Keep remote artifacts in client-owned destinations. Bound Maestro selectors while preserving literal, multiline, and long exact matches. Bind trace and performance destinations to client-minted capture IDs. Prove bundled dependencies in the packed artifact.
This PR is stacked on #5245, which must merge first.
Before / after
- Non-loopback HTTP requests could carry a bearer token; they now fail before transport.
- A pathless capture stop could reuse a stale destination. Live capture IDs authorize saved paths. Typed refusals, mismatches, later starts, and delayed close replies now settle the correct client record.
- Unsafe selector regexes could exhaust CPU. Nested quantified alternatives are refused before execution; bounded multiline matching preserves short-value behavior. Long regex-shaped selectors use exact normalized equality across all candidates. Ordered interactions remain fail-closed when a match is uncertain. Failure suggestions omit unsafe or indeterminate selectors so the original step failure remains reportable.
- A malicious authenticated daemon could replay a client-minted ID to select a previously caller-authorized path under the documented trust assumption. An old daemon without the ID echo gets a unique client destination.
Validation
At 7f9c92c2e8, the Maestro failure-suggestion test file passed 18/18; capture tests passed 33/33 at the preceding source commit. Independent review found no issues. Earlier closure 28/28, proxy 3/3, selector 33/33 passed. Current-head code checks passed; Runner Build fails before compilation in concurrent actions/cache/restore setup. The capture certainty Fallow finding is fixed. No live remote trace or perf run was performed.