Skip to content

investigate: Clarify parallel vs sequential execution behavior #174

Closed

Description

@admarble

Summary

The run command config shows "sequential": false but issues appear to run in order. Clarify whether "parallel" means concurrent execution or "don't stop on failure".

Problem

From verbose run review:

{
  "config": {
    "sequential": false
  }
}

But issues processed in order: #113 → #114 → #115

Possible Interpretations

Interpretation Behavior
A: Concurrent execution Issues run simultaneously in separate processes
B: Don't stop on failure Issues run sequentially but continue if one fails
C: Bug Parallel mode not implemented

Acceptance Criteria

  • AC-1: Document the intended behavior of sequential: false
  • AC-2: If interpretation A, implement or document why not implemented
  • AC-3: If interpretation B, rename to stopOnFailure or similar for clarity
  • AC-4: Update docs/run-command.md with clear explanation
  • AC-5: Add test case verifying expected behavior

References

  • Run command: src/commands/run.ts
  • Run command docs: docs/run-command.md
  • Config schema: src/lib/workflow/run-log-schema.ts

Activity

  1. added
    documentation
    on Jan 23, 2026
  2. added
    auto-ready
    ai-in-progress
    on Feb 16, 2026
  3. admarble commented on Feb 21, 2026

    @admarble
    ContributorAuthor

    Spec Plan — Issue #174

    Investigation Finding

    Answer: Interpretation B — sequential: false means "continue processing on failure" (not parallel execution). Issues always execute one at a time. The code at src/commands/run.ts:2699-2700 explicitly confirms this:

    // Parallel execution (for now, just run sequentially but don't stop on failure)
    // TODO: Add proper parallel execution with listr2
    

    AC Checklist

    • AC-1: Document the intended behavior of sequential: false — clarify it means "continue on failure", not parallel execution
    • AC-2: Document that true parallel execution is not implemented (TODO exists for listr2)
    • AC-3: Add --stop-on-failure CLI alias + stopOnFailure settings alias for clarity; deprecate misleading names
    • AC-4: Update docs/reference/run-command.md with clear explanation of failure modes
    • AC-5: Add test case verifying continue-on-failure vs stop-on-failure behavior

    Verification Criteria

    AC Method Scenario
    AC-1 Manual Test Read updated docs; behavior is unambiguous
    AC-2 Manual Test Docs mention parallel is not yet implemented
    AC-3 Unit Test --stop-on-failure accepted by CLI; stopOnFailure accepted in settings
    AC-4 Manual Test docs/reference/run-command.md explains failure modes clearly
    AC-5 Unit Test Given 3 mock issues where #2 fails: default mode runs all 3; --stop-on-failure stops after #2

    Non-Goals

    • Full internal rename of sequential → stopOnFailure across all 55 files (separate cleanup issue)
    • Implementing actual parallel execution (tracked by existing TODO)
    • Changing run-log schema (backwards compatibility)

    Implementation Plan

    Phase 1: CLI + Settings Aliases (AC-3)

    1. Add --stop-on-failure option in bin/cli.ts alongside --sequential
    2. Add stopOnFailure field to RunSettings in src/lib/settings.ts
    3. Wire stopOnFailure → sequential resolution in src/commands/run.ts
    4. Update display output at line 2383 to show "stop-on-failure" / "continue-on-failure"

    Phase 2: Documentation (AC-1, AC-2, AC-4)
    5. Rewrite docs/reference/run-command.md failure mode section
    6. Add "Failure Handling" section explaining the two modes clearly
    7. Note that true parallel execution is not yet implemented

    Phase 3: Tests (AC-5)
    8. Add test in src/commands/run.test.ts for continue-on-failure behavior
    9. Add test for --stop-on-failure CLI alias acceptance

    Recommended Workflow

    Phases: exec → qa
    Quality Loop: disabled
    Reasoning: Focused clarification issue with well-defined scope; docs + small code changes

    Scope Assessment

    Metric Value Status
    Feature count 1 ✅
    AC items 5 ✅
    Directory spread 4 ⚠️

    Verdict: ✅ SCOPE_OK — single focused clarification

    Label Review

    Current: documentation, auto-ready, ai-in-progress
    Recommended: documentation, auto-ready, ai-in-progress (no changes needed)

  4. removed
    ai-in-progress
    on Feb 21, 2026
  5. added a commit that references this issue on Feb 22, 2026
  6. added a commit that references this issue on Feb 22, 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

    auto-readydocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions