Skip to content

behaviourtest: dispatch-assertion and jobs-listing reliability (split from #9084) #9128

Closed

Description

@dhshah13

What

The behaviour-test reliability work originally carried by #9084, reverted there in 7fae148f7 ("refactor(behaviourtest): restore main's dispatch assertions and jobs listing"):

  • Dispatch-count pagination, decisive-match caching, and completed-attempt reuse in settleHarnessDispatchCount
  • Jobs-listing error handling: preserve errors with repository/run/page details, return 404s immediately, and the first-page not-found sentinel (ErrJobsListingNotFoundFirstPage) with first-page/later-page classification
  • Waiting-run classification: classifyJobsError(status, err) → skip / retryLater / fatal, shared by the count and negative-assertion paths, with the count path keeping retryable runs pending and the one-shot negative path failing closed
  • Negative-assertion fan-out over every matching job, and the not-started-run jobs-read skip

Why

Both independent reviews of #9084 flagged this slice as scope drift (~14% of the diff): it neither implements nor enables trace-context admission, and every late review round landed in it (waiting-run drift between the two paths, sentinel naming and evidence scope). #9084 is the trace-context foundation only; this work needs its own PR where the E2E-driven failure modes it fixes can be validated on their own.

Where the work lives

The full implementation and its RED/GREEN regressions are in #9084's branch history, most recently at 920f4dbb6 ("refactor(behaviourtest): classify jobs listing errors in one place"). Recovery path: branch off #9084's post-revert head and revert 7fae148f7, or cherry-pick the slice commits (fc0e995b0, 77219ca1a, 2fd281e72, 72247c9ee, 89f0c04ee, 920f4dbb6, plus the earlier pagination/caching commits) onto main.

Validation carried by the history

Each fix has a RED reproduction and a targeted regression; the full Linux Go target passed at 2fd281e72, 72247c9ee (184s), 89f0c04ee (192s), and 920f4dbb6 (186s). ListWorkflowRunJobs and runNotStarted/classifyJobsError held 100% function coverage.

Related

Activity

  1. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 4:35 PM UTC · Completed 4:37 PM UTC

    Commit: 7d0eb20 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.14

  2. added
    ready-to-code
    on Nov 5, 2026
  3. fullsend-ai-triage commented on Nov 5, 2026

    @fullsend-ai-triage

    This looks ready to implement. The work is a re-landing of a slice that already exists in #9084's branch history, so the main task is a clean port to main plus reconciling any drift since the split.

    Checks run

    Proposed test case

    Fake forge client scenarios:
    - page-1 404 on a not-started run: count path stays pending; negative path fails closed
    - later-page 404: classified differently from first-page 404
    - other errors: fatal, with repo/run/page in the message
    - multi-page dispatch listing: fully paginated; decisive match cached
    - negative assertion: evaluates every matching job
    - not-started run: jobs read skipped
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  4. fullsend-ai-coder commented on Nov 5, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 4:39 PM UTC · Completed 4:49 PM UTC

    Commit: 7d0eb20 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.16

  5. added a commit that references this issue on Nov 6, 2026
  6. added a commit that references this issue on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-to-code

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions