Skip to content

Add comprehensive backward-compatibility checks#108

Open
Strajk wants to merge 1 commit intomarcus:mainfrom
Strajk:backward-compat/checks
Open

Add comprehensive backward-compatibility checks#108
Strajk wants to merge 1 commit intomarcus:mainfrom
Strajk:backward-compat/checks

Conversation

@Strajk
Copy link
Copy Markdown

@Strajk Strajk commented Apr 10, 2026

Summary

  • Add backward-compatibility tests across 5 packages (tasks, config, providers, agents, orchestrator) to pin the public API surface
  • Extended existing config backward_compat_test.go with Copilot provider, custom task validation, struct field stability, default constants, helper methods, and validation error sentinel checks
  • New test files verify task type strings, categories, cost tiers, JSON serialization keys, interface shapes, and provider names remain stable across versions
  • All 41 new backward-compat tests pass alongside the full existing test suite

Test plan

  • go test ./... passes (all packages)
  • All BackwardCompat tests pass in tasks, config, providers, agents, orchestrator
  • No existing tests broken by new additions
  • Review that pinned values match expected v0.3.4 behavior

🤖 Generated with Claude Code

Extend backward-compat test coverage to pin the public API surface:
- tasks: task type strings, categories, cost tiers, token ranges, intervals
- config: struct fields, defaults, constants, validation errors, Copilot provider, custom tasks, helper methods
- providers: interface shape, names, cost methods, JSON serialization (StatsCache, CopilotUsageData, CodexRateLimits)
- agents: interface, ExecuteOptions/ExecuteResult fields, DefaultTimeout
- orchestrator: TaskStatus values, JSON keys for TaskResult/PlanOutput/ImplementOutput/ReviewOutput, constants

Nightshift-Task: backward-compat
Nightshift-Ref: https://github.com/marcus/nightshift

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant