Skip to content

Check agent-baselines against Asta image changes - #151

Open
gas2own wants to merge 3 commits into
mainfrom
ci-agent-baselines-compat
Open

gas2own wants to merge 3 commits into
mainfrom
ci-agent-baselines-compat

Conversation

@gas2own

@gas2own gas2own commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Check proposed Asta images and skills against agent-baselines' inspect_swe skill resolver and image-version gate. The check now exercises the usual asta-tools plus asta-assistant stack, the alternative asta-tools plus asta-flows stack, and the assistant stack with the internal asta-dev extra. It also verifies the expected skills for each stack. The plugin README now describes these roles accurately.

Pull requests use a known-good agent-baselines commit, while weekly and manual runs follow its main branch and run its solver tests. This catches compatibility breaks without letting an unrelated upstream change turn Asta pull requests red. The existing devcontainer smoke job checks the TeX image itself.

Dependency before merge: agent-baselines PR 37 adds the current plugin shortcut and group composition. Pin this workflow to its merged commit and rerun the compatibility check.

Validation: the local standard-library-only resolver probe found 23 assistant-stack skills, 17 flows-stack skills, and 25 assistant-plus-dev skills; git diff --check passed. All GitHub CI checks passed on 3a1eb0d.

Tracked by gas2own issue 1312.

Reviewer requested: jbragg

Suggested-by: @jbragg

@gas2own

gas2own commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Automated review status

  • claude review of f29b089 (job gas2own-c33ed0573ac8) — findings posted; follow-up on executor dispatch-2efe79af62454633
  • codex review of 448ad85 (job gas2own-401b6db3584c) — findings posted; follow-up on executor dispatch-63b5b9303b114ff6

Now: follow-up triaging the latest findings (executor dispatch-63b5b9303b114ff6); fixes or a re-review may follow.

@gas2own

gas2own commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Claude)

Automated review of the PR by a separately invoked Claude reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

None.

P1 (should fix)

  • .github/workflows/agent-baselines-compat.yml:44-56: The script runs agent_baselines from source with the Asta image's python3, using only PYTHONPATH. Any third-party imports in agent_baselines.skills.* or its package __init__ (for example yaml, pydantic, inspect_ai) must already be installed in the Asta image. If they are not, the job fails for reasons unrelated to compatibility. Fix: confirm the import closure is stdlib-only and add a comment saying so. Otherwise, install the needed deps into a throwaway venv inside the container, or run the resolver on the host via uv run --project solvers/inspect-swe against skills copied out with docker cp.
  • .github/workflows/agent-baselines-compat.yml:44: sed -n 's/^PLUGIN_VERSION=//p' keeps any quotes or trailing comments. For example, PLUGIN_VERSION="1.2.3" produces ASTA_IMAGE=ghcr.io/allenai/asta:v"1.2.3", and test -n still passes. Fix: strip quotes and whitespace, e.g. sed -nE 's/^PLUGIN_VERSION=["'\'']?([^"'\'' #]+).*/\1/p'. Also validate the result with [[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]].
  • .github/workflows/agent-baselines-compat.yml:26-30: allenai/agent-baselines is checked out at default-branch HEAD on every pull_request. Any upstream regression or rename then turns this repo's PRs red even when nothing local is at fault. Fix: on pull_request, pin ref: to a known-good SHA or tag. Keep tracking HEAD only for schedule and workflow_dispatch, e.g. ref: ${{ github.event_name == 'pull_request' && env.BASELINES_REF || '' }}.

P2 (nits)

  • .github/workflows/agent-baselines-compat.yml:32-40: This step only runs agent-baselines' own unit tests and never touches the image built from this PR. It adds runtime and upstream flakiness without testing the change. Fix: drop it, or limit it to the scheduled run.
  • .github/workflows/agent-baselines-compat.yml:55: The script depends on the private _check_plugin_image_version_match, which upstream can rename silently. Fix: ask upstream for a public entry point, or add a comment noting the coupling.
  • .github/workflows/agent-baselines-compat.yml:4-11: The paths filter misses other build-context inputs (for example CLI source under src/ and other files the Dockerfile COPYs). Changes that alter the image contents will not trigger the check. Fix: add those paths, or trigger on everything except docs.
  • .github/workflows/agent-baselines-compat.yml:22,26,31: Actions are pinned to tags rather than SHAs, and setup-uv@v4 is outdated. Fix: pin to commit SHAs and bump setup-uv.
  • .github/workflows/agent-baselines-compat.yml:24: The cold docker build runs on every triggering PR. Fix: use docker/setup-buildx-action plus docker/build-push-action with cache-from/cache-to: type=gha.
  • .github/workflows/agent-baselines-compat.yml:20: There is no timeout-minutes and no concurrency group. Fix: add timeout-minutes: 30 and concurrency: { group: ${{ github.workflow }}-${{ github.ref }}, cancel-in-progress: true }.

Recommendation: approve-with-nits

@gas2own

gas2own commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Review of the independent findings, at commit 448ad85:

  • P1, resolver imports: The imported agent_baselines.skills modules use only Python's standard library at the pinned revision. The container probe now runs with python3 -S, so it fails if that assumption changes. The equivalent local probe resolved all 16 Asta skills and passed the image version check.
  • P1, version parsing: The workflow now accepts only the canonical PLUGIN_VERSION=X.Y.Z line. A quoted or annotated value fails the job instead of silently bypassing the image version check.
  • P1, moving upstream HEAD: Pull requests test the known-good agent-baselines commit 2d426de (the merged tag-check fix). Weekly and manual runs test main to catch later upstream changes.
  • P2, upstream unit tests: These run on weekly and manual checks; the pull-request run focuses on the proposed image.
  • P2, private version-check helper: The probe intentionally calls the same helper used by the agent-baselines solver. The weekly main run exposes an upstream rename, and the PR pin keeps unrelated upstream changes from breaking proposed Asta image changes.
  • P2, path filter: Added src/** and uv.lock; the existing filter covers the Dockerfile, Python package metadata, skills, and plugin version hook.
  • P2, action pins: Left the existing repository convention of major action tags unchanged. SHA pinning is a separate workflow-wide maintenance choice.
  • P2, build caching: Left the simple build in place; the prior compatibility job completed in 42 seconds.
  • P2, timeout and concurrency: Added a 30-minute timeout. Left concurrency unchanged because this workflow runs on the selected PR changes and once weekly.

Local validation: workflow YAML parsed, git diff --check passed, strict version parsing behaved as expected, and the resolver/version probe passed with python3 -S. GitHub CI is re-running on this commit.

@gas2own

gas2own commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Independent AI code review (Codex)

Automated review of the PR by a separately invoked Codex reviewer. Prioritised P0/P1/P2; treat as advisory input for the human reviewer, not a merge gate.

P0 (blocking)

  • .github/workflows/agent-baselines-compat.yml:29 — docker build --target asta will fail: the Dockerfile has no asta stage. Build the default image or add a named stage.

P1 (should fix)

  • .github/workflows/agent-baselines-compat.yml:54 — The probe resolves only asta-tools/skills, while the inspect-swe solver’s documented skill source is asta-preview/skills. Compatibility can pass while the skills the solver loads are broken. Resolve the solver’s actual skill tree.

P2 (nits)

None.

Recommendation: request-changes

@gas2own

gas2own commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Review of the latest independent findings at 448ad85:

  • Docker target: No change. The Dockerfile starts with FROM node:20-slim AS asta; docker build --target asta is valid, and the PR's inspect-swe CI job passed.
  • Skill source: The finding exposed a real issue in agent-baselines, rather than in the resolver probe: its install_asta_skills shortcut still lists the removed asta and asta-preview groups, while the current image ships asta-tools. agent-baselines PR 37 changes the solver's accepted groups, examples, and tests; 94 focused tests passed. This PR's probe already resolves the current asta-tools tree, but its pinned agent-baselines revision predates that fix. After PR 37 merges, this workflow needs to pin the merged commit and rerun before merge.

No change to this PR's diff is warranted yet. Its checks pass. The AI review cycle ended without a clean pass, so human review is the next gate; the cross-repo pin update remains open.

@gas2own
gas2own requested a review from jbragg October 1, 2026 23:16
@gas2own
gas2own marked this pull request as ready for review October 1, 2026 23:17

This branch has not been deployed

No deployments
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