Skip to content

Autopilot: Add deterministic test + fix flaky behavior (safe-small) #8

@OgeonX-Ai

Description

@OgeonX-Ai

Objective

Autopilot must create a PR that adds a deterministic unit test and fixes one flaky/fragile behavior.

Required behavior

  1. Scan the repo for an existing test framework and pick ONE:
    • Python: pytest
    • Node: jest/vitest
    • .NET: xUnit/NUnit
  2. Add ONE new test that:
    • is deterministic
    • runs fast
    • proves a bug fix or prevents regression
  3. Apply a minimal code change to satisfy the test.
  4. Run the test suite locally (best effort) and post results.

Retry rules (must be implemented)

  • If tests fail after your first fix:
    • Retry once (try-2) with expanded context:
      • include failing output
      • include files touched
  • If second attempt fails:
    • Label this issue human and explain precisely what blocks you.

Constraints

  • Keep diff minimal.
  • No refactors unless needed for fix.
  • Never ask me anything. Either fix, retry, or escalate to human.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions