Repository navigation
Open
Labels
Description
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_unavailablegaps. - Child agents not observed during a
delegate_taskcall producesubagent_spawn_unattributed. - Provider-specific
reasoning_detailsremain opaque and producereasoning_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_unavailablebecause 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
- Identify stable upstream Hermes events or APIs for hook registration, child-spawn attribution, reasoning details, and context compaction.
- Normalize additional reasoning evidence only when its semantics can be represented losslessly in Gym's schema.
- Associate compaction summaries and adjacent model calls only through exact identifiers or unambiguous boundaries.
- Preserve explicit gaps whenever upstream evidence is absent, opaque, or ambiguous.
- Validate observation collection through the managed-runtime process boundary introduced by chore(hermes_agent): evaluate replacing the fork commit with a named upstream release #2672.
- Coordinate sandbox lifecycle and resource telemetry with feat(agents): support SandboxProvider for standalone Hermes and OpenClaw harnesses #2669 rather than duplicating SandboxProvider integration here.
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
Labels
Type
Projects
- StatusShow more project fieldsDev Todo
Activity