Skip to content

AutoDiscovery skill: one file per mode, and the explore loop - #320

Open
charliemcgrady wants to merge 1 commit into
charliem/stack/03-workspace-skillfrom
charliem/stack/04-autodiscovery-skill
Open

charliemcgrady wants to merge 1 commit into
charliem/stack/03-workspace-skillfrom
charliem/stack/04-autodiscovery-skill

Conversation

@charliemcgrady

Copy link
Copy Markdown
Contributor

Part 04 of 9 in a stack (00 to 08); review it against the PR below it.

The skill says how to run AutoDS hosted, with the CLI on your own key, or as a library in a coding agent, in one file each.
It says how to describe the data, including data behind a login, which the person downloads with their own credentials.
It says how to read the results, including the service's surprise count, which reads 0.
It says how to seed the next round with the surprising experiments.
A hosted run's results.json is downloaded into the run's folder, so its panel works offline.

Testing

  • make check-skills and make test-plugins pass.
  • skill-runs ran AutoDS in library and CLI mode from these files.
  • A hosted data-driven run followed it end to end.

🤖 Generated with Claude Code

https://claude.ai/code/session_018g2sXoMhotXTAexAjPxh98

@gas2own

gas2own commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Automated review status

  • codex review of 7d1229b (job gas2own-2312b63f8c58) — findings posted
  • codex review of b8796fb (job gas2own-211db4e6e94d) — findings posted; follow-up on executor dispatch-85be3c947fc54e3c done

Now: automated cycle open — it closes once two different reviewer backends have posted a whole-PR review of the same head (b8796fb).

@gas2own

gas2own commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

🤖 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)

None.

P1 (should fix)

  • plugins/asta-tools/skills/autodiscovery/library.md:55 — The first save_mcts_node call fails because OUT has not been created. Create the directory before saving; the upstream save function opens the file directly.
  • plugins/asta-tools/skills/autodiscovery/library.md:119 — nodes_to_csv(OUT, "nodes.csv") passes a directory where the function expects a list of nodes. Import it and pass loaded node data instead.

P2 (nits)

  • plugins/asta-tools/skills/autodiscovery/scripts/run_relaxed.py:82 — A trailing extra flag raises IndexError at argv[i + 1]. Validate that it has a value and return a clear usage error.

Recommendation: request-changes

The skill holds the how-to for running AutoDS hosted, with the CLI on your
own key, or as a library in a coding agent, one file each. It says how to
describe the data and write the prompt, how to read the results, and how
to seed the next round with the surprising experiments.
@charliemcgrady
charliemcgrady force-pushed the charliem/stack/04-autodiscovery-skill branch from 7d1229b to b8796fb Compare November 16, 2026 20:21
@charliemcgrady

Copy link
Copy Markdown
Contributor Author

@gas2own please run the independent AI code review (s2-ai-review) again on this PR's latest commit; the findings from the last round have been addressed across the stack.

@gas2own

gas2own commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Started async job gas2own-211db4e6e94d (9/10 slots in use). I’ll post its result here when it finishes.

@gas2own

gas2own commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

@charliemcgrady I've started a new independent Codex review of the PR's latest commit, b8796fb (job gas2own-211db4e6e94d). When it finishes, its findings will appear here as a PR comment, word for word. The job runner was full when I first tried, so it was queued on the fourth retry.

I chose Codex because the PR description says Claude Code generated the diff, and the review process prefers a model that didn't write the code. The automated cycle only closes once two different reviewer models have reviewed the same commit, so a clean Codex result won't close it by itself. If you want the second review, ask for Claude (it would overlap with the code's author) or Gemini (only run when someone asks for it by name).

ran via Claude (claude-opus-5-5, xhigh)

↪ Superseded by the later reply

@gas2own

gas2own commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

🤖 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)

None.

P1 (should fix)

  • plugins/asta-tools/skills/autodiscovery/SKILL.md:41 — The default 50-experiment run can cost about $100 with the CLI’s listed Anthropic model, without a budget check. Ask for a spending limit before starting a paid run, or start with a small pilot.
  • plugins/asta-tools/skills/autodiscovery/library.md:11 — Committing the whole run can publish restricted row-level data captured in experiment code output, despite the instruction to keep such data out of git. Commit only reviewed, sanitized artifacts.
  • plugins/asta-tools/skills/autodiscovery/SKILL.md:4 — Unrestricted Write, Edit, Bash(python3 *), and Bash(git *) grant broad file and command access while processing untrusted datasets. Narrow the preapproved tools to the actions this skill needs.

P2 (nits)

  • plugins/asta-tools/skills/autodiscovery/cli.md:35 — The example uses cat, and the resume recipe uses cp and find, but none are in allowed-tools. Align the examples and allowlist so the documented workflow runs without unexpected permission prompts.

Recommendation: request-changes

@gas2own

gas2own commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The latest review of b8796fb recommends changes: no P0 blockers, three P1 findings, and one P2. My triage:

  • Cost: supported by the documentation’s estimates—50 experiments at about $2 each implies roughly $100, without a required initial budget check.
  • Restricted data in git: valid ambiguity. The library instructions require committing experiment files containing code output, which could include restricted rows. No actual disclosure was demonstrated.
  • Broad tool permissions: confirmed, but the severity needs qualification. This is a hardening recommendation; the review demonstrates no exploit, and library mode requires execution and file writes.
  • Allowlist mismatch: confirmed. The documented commands use cat, cp, and find, which are absent from the skill’s allowlist.

The PR remains open at the reviewed commit. This was a review-only request; I changed no files and launched no further review.

ran via Codex (gpt-6.1-sol, high)

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.

2 participants