Skip to content

Add behavior-preserving refactor task to Solo Dev Starter Suite #4

Description

@Jordak

Goal

Add a behavior-preserving refactor task to the Solo Dev Starter Suite.

Task shape

The task should ask the agent harness to improve structure, readability, or maintainability without changing externally visible behavior.

Acceptance criteria

  • The task uses a real external repository if possible.
  • The repo and commit are public and pinned.
  • Deterministic graders prove behavior is preserved.
  • The task has a verified reference_artifact.
  • The task card is generated and readable by humans and AI assistants.
  • Expected failure modes include risks such as over_edit, bad_local_fix, test_gap, and resource_inefficient where appropriate.
  • agentlab task verify-reference <task-bundle> passes.

Notes

Good candidates are small modules with duplicated logic, confusing naming, or overly tangled branching, where tests can prove behavior stayed stable.

Activity

  1. added this to the Solo Dev Starter Suite milestone on May 7, 2026
  2. Jordak commented on May 9, 2026

    @Jordak
    OwnerAuthor

    This was generated by AI during triage.

    Triage Notes

    Recommendation: enhancement / ready-for-agent.

    Agent brief:

    • Add a behavior-preserving refactor task to the Solo Dev Starter Suite.
    • Prefer a real public repository and a refactor in production code.
    • Avoid test-only, fixture-only, or docs-only refactors unless Jordan explicitly approves a fallback.
    • The task should improve structure, readability, or maintainability without changing externally visible behavior.
    • Deterministic graders must prove behavior is preserved before and after the reference patch.
    • Include a verified reference artifact, generated task card, expected failure modes, and passing reference verification.

    Clarification captured during triage: the earlier candidate question meant whether to preselect a repository versus let the agent scout one. The agent may scout, but the accepted task shape is production-code refactor work.

  3. added
    enhancementNew feature or request
    ready-for-agentFully specified and ready for an AFK agent
    and removed
    needs-triageMaintainer needs to evaluate this issue
    on May 9, 2026
  4. Jordak commented on May 9, 2026

    @Jordak
    OwnerAuthor

    This was generated by AI during triage.

    Triage Correction

    Correction from Jordan: the agent should not find its own repository for this task. Issue #4 should specify both the repository and the pinned starting commit before implementation begins.

    For #4 specifically, an agent may evaluate or prepare a task only after the issue or task brief names the repo and commit to work from. The accepted task shape remains a production-code behavior-preserving refactor, with deterministic graders proving externally visible behavior is unchanged.

  5. Jordak commented on May 9, 2026

    @Jordak
    OwnerAuthor

    Implemented and pushed the Issue #4 vertical slice on branch codex/issue-4-click-help-option-refactor.

    Commit: ac9a755bb3844d5f4f54421baeec36b1c09f1fe7

    Task:

    • Task id: click-help-option-refactor-001
    • Path: tasks/starter/click-help-option-refactor-001
    • Task shape: behavior-preserving production-code refactor
    • Upstream reference: pallets/click PR #2563, "Deduplicate --help option definition"

    Pinned repo:

    • Repo: https://github.com/pallets/click.git
    • Starting commit: 9aeb586cbc622c229bbf80ad948e590f596a8d3e
    • Reference commit inspected: 15644915e482b7c7bd7ee1aa77c9c2dbcd934330

    Reference verification:

    • Command: python3 -m agentlab task verify-reference tasks/starter/click-help-option-refactor-001
    • Result: passed
    • Files changed by reference artifact: 3 (src/click/__init__.py, src/click/core.py, src/click/decorators.py)
    • Report: tasks/starter/click-help-option-refactor-001/reference-report.md
    • Result JSON: tasks/starter/click-help-option-refactor-001/reference-result.json

    Codex smoke trial:

    • Command: python3 -m agentlab run --agent codex --task tasks/starter/click-help-option-refactor-001 --trials 1 --jobs 1
    • Result: fair passing smoke trial, 1/1 passed; pass@1=1.00; pass^1=1.00
    • Trial id: 20260508-214551-click-help-option-refactor-001-codex-682d7ba0
    • Trial report: runs/20260508-214551-click-help-option-refactor-001-codex-682d7ba0/report.md
    • Note: no larger batches were run.

    Validation/tests run:

    • python3 .agents/skills/task-card/scripts/render_task_cards.py tasks --check passed
    • python3 -m agentlab task validate tasks passed
    • python3 -m unittest tests.test_tasks tests.test_task_cards tests.test_reference passed, 23 tests
    • .githooks/pre-commit passed
    • git diff --check passed

    Limitations/follow-up:

    • This is intentionally one smoke trial only. Repeated-trial reliability is not measured yet.
    • The smoke trial passed but used a large token budget in this local Codex CLI configuration; later capability reporting should preserve that resource-usage evidence rather than overgeneralizing from the pass.
  6. Jordak commented on May 9, 2026

    @Jordak
    OwnerAuthor

    Closed after rebasing the Issue #4 branch onto current main, fast-forwarding main, and pushing the resolving commit to origin.

    Pushed main commit: be4f0f5a4a9ceb56130dfdd6209a2726d6168e4b

    Evidence remains as previously recorded:

    • Task id/path: click-help-option-refactor-001 at tasks/starter/click-help-option-refactor-001
    • Repo/start commit: https://github.com/pallets/click.git at 9aeb586cbc622c229bbf80ad948e590f596a8d3e
    • Reference verification: passed
    • One Codex smoke trial: passed, trial 20260508-214551-click-help-option-refactor-001-codex-682d7ba0
    • Rebase validation rerun: task-card check, task validation, focused unittest suite, pre-commit hook, and reference verification all passed.

    No larger batches were run.

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

    enhancementNew feature or requestready-for-agentFully specified and ready for an AFK agent

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions