Skip to content

Add observational predicate event tracking - #1457

Merged
peterd-NV merged 13 commits into
mainfrom
peterd/observational_progress_tracking
Oct 20, 2026
Merged

peterd-NV merged 13 commits into
mainfrom
peterd/observational_progress_tracking

Conversation

@peterd-NV

@peterd-NV peterd-NV commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Add named, recurring event tracking using ordered Arena predicate sequences. Record occurrences independently of task success, termination, and progress scores.

Why this change?

Failures such as missed grasps or dropped objects can happen multiple times during a rollout. Success criteria alone do not provide an independent log of these occurrences.

What changes?

  • Add TaskBase.get_tracked_events() and TrackedEventCfg to define named events.
  • Use one existing CompletionCriteriaRunner directly per event inside the main ProgressTracker, sharing its per-step predicate cache.
  • Record each sequence completion once. Wait for its final condition to become false, then reset that event’s progress and temporal counters. The full sequence starts again on the following step.
  • Preserve existing task-success behavior and keep event state independent. Events observe every subtask and stop advancing when their episode becomes inactive.
  • Include event names and completion steps in episode JSONL, with report timelines, counts, and video seeking.

Events support ordered sequences, including TrueForConsecutiveStepsCfg. Earlier predicates need not remain true when the sequence completes. Combine conditions that must hold simultaneously in one predicate.

Tasks with tracked events must also define success criteria. Event resets clear runner-owned history and counters; they do not reset private state inside predicate callables.

Usage example

Define events alongside the task’s existing success criteria:

def get_tracked_events(self):
    return [
        TrackedEventCfg(
            name="failed_grasp",
            predicate_sequence=[
                hand_open_near_object,
                TrueForConsecutiveStepsCfg(
                    closed_without_grasp,
                    required_steps=10,
                ),
            ],
        ),
    ]

The two checks are task-defined instantaneous predicates. This event records after observing an open gripper near the object followed by ten consecutive steps of empty closure. Sustained closure produces one occurrence; another occurrence requires clearing and repeating the sequence.

Validation

  • 102 focused tests passed across event tracking, temporal predicates, task success, and reporting.
  • Pre-commit and visualization checks passed.

@peterd-NV peterd-NV changed the title Draft: Add observational predicate event tracking Add observational predicate event tracking Oct 19, 2026
@peterd-NV
peterd-NV marked this pull request as ready for review October 19, 2026 22:40
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach task progress tracking and episode evaluation reports.

The PR appears safe to merge, with a non-blocking one-frame error in camera-video seeking.

Findings

  1. P2 Event links seek too late ▶

Summary

Adds named, recurring event sequences without changing task-success scores.

  • Tasks can record recurring observations without changing success.
  • Episode reports show when tracked events happened.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Control step] --> B[Shared predicate results]
  B --> C[Task success runners]
  B --> D[Active event runners]
  D --> E[Record occurrence]
  E --> F[Wait for final condition to clear]
  F --> D
  E --> G[Episode JSONL]
  G --> H[Report timelines and video links]
Loading

Reviews (1) · Last reviewed commit: "remove tracker wrapper class" · Reviewed by Greptile

@cvolkcvolk cvolkcvolk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@peterd-NV
peterd-NV merged commit c7f6611 into main Oct 20, 2026
12 of 13 checks passed
cvolkcvolk added a commit that referenced this pull request Oct 22, 2026
Merges these main pull requests:
- #1486 Call build_env_cfg in the seeding tests
- #1409 Add Newton gear insertion env with DROID teleoperation
- #1428 Add a skill for drafting pending PR reviews
- #1488 Disable CI GR00T E2E on Blackwell wo CUDA12.8
- #1457 Add observational predicate event tracking
- #1485 Clarify "normalize" and "plumbing" wording and add AGENTS.md guidance
- #1494 Remove RandomAroundSolution

The merge had no conflicts.

Signed-off-by: Clemens Volk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants