Skip to content

Relax short activity card validation#333

Open
Laksh-star wants to merge 1 commit into
JerryZLiu:mainfrom
Laksh-star:agent/processing-validation-tolerance-pr
Open

Relax short activity card validation#333
Laksh-star wants to merge 1 commit into
JerryZLiu:mainfrom
Laksh-star:agent/processing-validation-tolerance-pr

Conversation

@Laksh-star

@Laksh-star Laksh-star commented Jul 22, 2026

Copy link
Copy Markdown

Summary

Relax activity-card duration validation so short transition cards do not fail an otherwise usable timeline batch.

Why

Some providers occasionally return coherent short transition cards in the middle of a capture window. Previously, cards under 10 minutes caused the entire batch to fail, even when the generated timeline was otherwise useful. This could create unnecessary "Processing failed" cards and force manual retry.

Changes

  • Reject only invalid or near-zero middle cards under 1 minute.
  • Preserve validation for invalid card ranges.
  • Update provider validation tests to cover short transitions and invalid ranges.

Validation

  • xcodebuild test -project Dayflow/Dayflow.xcodeproj -scheme Dayflow -destination 'platform=macOS' -derivedDataPath DerivedDataUpstreamPR CODE_SIGNING_ALLOWED=NO -only-testing:DayflowTests

Note: a full local test run reached unit tests but hit an unrelated DayflowUITests-Runner bootstrap crash.

@Laksh-star
Laksh-star marked this pull request as ready for review July 22, 2026 00:17
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.

1 participant