Skip to content

enhancement(hermes_agent): improve rollout observability fidelity #2741

Open

Description

@cwing-nvidia

Summary

Follow up on the explicit Hermes evidence boundaries documented in #2117 after the upstream-runtime migration in #2672.

The Hermes adapter correctly reports unavailable evidence as ObservationGap records, but it does not currently recover every potentially useful detail from the upstream runtime. This issue should determine which gaps can now be eliminated using exact evidence from the pinned upstream release without estimating or weakening Gym's observability contract.

Current boundaries

  • Missing private Hermes hooks produce hermes_hook_unavailable gaps.
  • Child agents not observed during a delegate_task call produce subagent_spawn_unattributed.
  • Provider-specific reasoning_details remain opaque and produce reasoning_details_unavailable; plain reasoning is normalized.
  • Context compaction does not expose its summary or exact adjacent model-call boundaries. Failed compactions do not report a post-compaction token count.
  • Host-local terminal execution produces no_sandbox_runtime.
  • Non-local Hermes terminal backends produce sandbox_observation_unavailable because Gym does not receive their lifecycle or resource telemetry.

PR #2672 preserves these behaviors while moving Hermes into its pinned managed Python 3.11 runtime. Its child-safe collector transports raw JSON events to the Gym parent, which projects them into the canonical observation models.

Proposed investigation

Acceptance criteria

  • Each current gap is classified as recoverable from the pinned upstream release, dependent on separate infrastructure, or genuinely unavailable.
  • Recoverable evidence is projected into Gym's canonical observation models without inference or synthetic identifiers.
  • Missing or ambiguous evidence continues to produce explicit gaps.
  • Hook and event compatibility is tested against the actual managed Hermes runtime, not only test doubles.
  • Child attribution, opaque reasoning, successful and failed compaction, and observation-failure isolation have regression tests.
  • A real correlated Hermes rollout confirms model-call ownership, tool timing, conversation ordering, and the expected remaining gaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions