Skip to content

Add reusable SDK evolution upgrade script - #19

Open
ebarti wants to merge 6 commits into
mainfrom
sdk-evolution-upgrade-script-20260626
Open

Add reusable SDK evolution upgrade script#19
ebarti wants to merge 6 commits into
mainfrom
sdk-evolution-upgrade-script-20260626

Conversation

@ebarti

@ebarti ebarti commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • add scripts/sdk_evolution_upgrade.py as the canonical local upgrade runner
  • always target all tracked SDK packages: claude-agent-sdk, openai-codex, openai-codex-cli-bin, and google-antigravity
  • generate collision-free worktree paths and branch names instead of documenting one-shot git worktree add commands
  • run report-only evidence/decision first, then implementation and draft PR unless --report-only is set
  • reduce .codex and .claude upgrade surfaces to thin wrappers that call the script

Validation

  • env -u UV_EXCLUDE_NEWER -u UV_EXCLUDE_NEWER_PACKAGE uv run python scripts/sdk_evolution_upgrade.py --help
  • disposable fake/report-only script smoke with explicit temporary branch/worktree, then cleaned up the worktree and branch
  • env -u UV_EXCLUDE_NEWER -u UV_EXCLUDE_NEWER_PACKAGE uv run ruff check .
  • env -u UV_EXCLUDE_NEWER -u UV_EXCLUDE_NEWER_PACKAGE uv run mypy
  • env -u UV_EXCLUDE_NEWER -u UV_EXCLUDE_NEWER_PACKAGE uv run pytest
  • env -u UV_EXCLUDE_NEWER -u UV_EXCLUDE_NEWER_PACKAGE uv run --with pyyaml python /Users/eloibarti/.codex/skills/.system/skill-creator/scripts/quick_validate.py .codex/skills/agent-runtime-kit-upgrade
  • git diff --check origin/main...HEAD

ebarti added a commit that referenced this pull request Jul 28, 2026
## Summary

- records the reproduced false-green and missing-baseline failure modes
on current `main`
- defines the evidence invariants, First Principles model, Five Whys,
and owning fix layers
- lays out a five-PR delivery stack with exact files, tests, acceptance
criteria, and report-only rehearsals
- keeps the replacement stack independent of stale open PRs #19 and #40

## Why

The Agent SDK stages execute successfully, but the documented evolution
workflow can label ambient import failures as locked SDK evidence,
collapse incomplete probes into a passing headline, and permanently fail
CLI-binary snapshots through the wrong module name. The repair needs to
preserve the explicit candidate-inspection and credential-scrubbing
boundary while making the supported command actionable.

## Stack

This is PR 1 of 5 and contains planning documentation only. The
implementation branches will be based in order on this branch:

1. truthful locked-baseline collection
2. fail-closed evidence summaries and exact transition gates
3. Codex CLI binary introspection
4. actionable runtime-specific operator commands and documentation
conformance

## Validation

- `git diff --cached --check`
- reviewed against `origin/main` at `2e7e4c3`
- checked against the current implementation, tests, documentation, and
live PR topology
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