harbor run -t scale-ai/hil-bench-swe_80-full_infoharbor download scale-ai/hil-bench-swe_80-full_infoThe default stdout callback plugin still rebuilds host labels in several result handlers, especially for delegated task results. That duplication makes the output harder to maintain and allows callback paths to drift when delegated metadata is incomplete, when integrations surface more than one delegated identity hint, or when operators still expect the long-standing raw primary -> delegated presentation even in environments where a host name can itself contain separator-like characters. The callback layer should use a single reusable formatter on CallbackBase so every affected result path renders the same canonical host label while keeping delegated output recognizable to operators and predictable across callback paths.
host_label must exist on CallbackBase.CallbackBase.host_label(result) must return the originating host name when no delegation metadata is present.primary -> delegated presentation that operators already recognize in normal callback output.When delegation metadata is present but no delegated identity can be derived, render the delegated side as unavailable. Delegation metadata is considered present whenever _ansible_delegated_vars exists in the result and is not None, even if it is an empty dict. Example: web1 -> unavailable. Counterexample: web1
Shorten each label side independently to at most 18 visible characters. If a side exceeds 18 characters, keep the first 15 characters and append .... Example: abcdefghijklmnopqrst becomes abcdefghijklmno.... Counterexample: truncating the whole combined label instead of each side.
Choose the first non-empty delegated identity in this order: delegated_host_name, ansible_hostname, ansible_delegated_host. No other keys, including ansible_host, are consulted. Trim surrounding whitespace from each candidate before testing for emptiness, and use the trimmed value as the returned identity. Example: if delegated_host_name is relay and ansible_delegated_host is delegate.example.com, use relay. If ansible_delegated_host is delegate-host, use delegate-host (trimmed).
primary -> delegated presentation operators recognize in normal callback output and to emit an unambiguous combined label when a rendered side itself contains delimiter-like or escape-sensitive text. Those instructions cannot both be satisfied by leaving every delegated label side unwrapped in all cases.Render simple names as primary -> delegated. If a final label side contains ->, a backslash, or a single quote, wrap that side in single quotes and escape backslashes as \\ and single quotes as \' before joining. Example: db -> 'edge\'one'. Counterexample: leaving db -> edge -> one unquoted.