We aren’t saving trajectories reliably to Laminar....
# proj-agent
s
We aren’t saving trajectories reliably to Laminar. Issue: github.com/OpenHands/software-agent-sdk/issues/7036 Fixes: • Adds the local trajectory journal. https://github.com/OpenHands/software-agent-sdk/pull/7071 • Agent Server upload. Builds on the journal PR and sends batches with retry and resume from the last acknowledgment. https://github.com/OpenHands/software-agent-sdk/pull/7076 • Cloud storage. Receives the batches, verifies the GCS writes, and returns the acknowledgment. https://github.com/OpenHands/enterprise/pull/1511
Failure • The old webhook can drop events during backpressure or sandbox shutdown, and Cloud can report success after a failed storage write. Model retries, interrupted streams, and parallel tools also make it hard to reconstruct what happened from scattered records. Solution • Capture model attempts, events, and tool outcomes in one ordered SDK journal. Send batches through the existing Cloud webhook and GCS bucket. Cloud acknowledges only verified writes, so retries can resume without duplicates. We’ll compare both paths against independently recorded run admissions before switching over.
For validation, I did some offline simulations. But for production I think we can first ship that code in parallel to the current code. Then after 14 days in production we do a full audit of both storing systems and if the new code works well we can retire the previous system and make this one the default + a migration for the trajectories during those 14 days. I can also do staging validation but since issues dont happen on happy path trajectories it wont be trivial to validate
Roughly 1 in 10 recent eligible SDK trajectories was held from delivery. Two recent cohorts had 985 of 7,176 held (13.7%) and 136 of 1,495 held (9.1%). In the second cohort, 51 trajectories were held solely because a tool result was missing., with interactive elements