Skip to content

Fail agent-flow on missing onboarding side effects#4334

Merged
asim merged 1 commit into
masterfrom
codex/increment-4333
Jul 8, 2026
Merged

Fail agent-flow on missing onboarding side effects#4334
asim merged 1 commit into
masterfrom
codex/increment-4333

Conversation

@asim

@asim asim commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary:

  • Make the agent-flow harness wait for required workspace and notification side effects and exit non-zero if they are missing.
  • Add coverage for missing and completed onboarding side-effect checks.

Testing:

  • go build ./...
  • go test ./... (fails in this environment due existing loopback/credential limitations)
  • golangci-lint run ./...

Closes #4328
Closes #4333

Copilot AI review requested due to automatic review settings July 8, 2026 09:30
@asim asim added the codex label Jul 8, 2026
@asim asim merged commit 35d3d99 into master Jul 8, 2026
10 checks passed
@asim asim deleted the codex/increment-4333 branch July 8, 2026 09:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR strengthens the internal/harness/agent-flow harness by making it explicitly wait for required onboarding side effects (workspace creation + notification send) and fail the harness run if those side effects don’t occur within the deadline, preventing “successful” conformance runs with missing behavior.

Changes:

  • Added waitForOnboardingSideEffects polling helper with timeout-based failure.
  • Updated the harness main flow to exit non-zero when required side effects are missing.
  • Added unit tests covering both missing and completed side-effect cases.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/harness/agent-flow/main.go Adds side-effect waiting helper and makes the harness fail (exit 1) when onboarding side effects are missing.
internal/harness/agent-flow/main_test.go Adds focused tests for the new side-effect waiting helper (missing vs complete).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +191 to +195
select {
case <-ctx.Done():
return fmt.Errorf("agent-flow missing required onboarding side effects before timeout: workspaces=%d/1 notifications=%d/1", workspaces, notifications)
case <-ticker.C:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loop: build increment #135 Make agent-flow harness fail when onboarding side effects are missing

3 participants