Skip to content

test(agent): native audit-skill trigger and hostile README eval cases - #141

Merged
drevendev merged 6 commits into
masterfrom
beautifulrepo/agent-evals-smoke-20261024
Oct 24, 2026
Merged

drevendev merged 6 commits into
masterfrom
beautifulrepo/agent-evals-smoke-20261024

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem

Issue #74 still lacked native model-level trigger scenarios for the published audit-repo skill. The previous fixture PR #140 checked offline tooling only; it did not establish whether the skill fires.

Changes

  • Add four claude plugin eval cases: two positive repository/onboarding requests, one unrelated Python-code question that must not select audit-repo, and one synthetic README prompt-injection bait case.
  • Use the official prompt.md, case.yaml, context.add_dirs, tool_used, regex and model-rubric grader contracts.
  • Add standard-library CI tests that require at least 2 positive and 1 negative trigger per shipped skill, and reject implicit shell, edit or network tool grants.
  • Document a deliberately manual, model-usage-gated evaluation command, Linux/WSL2 sandbox requirements and strict limits on what passing a static contract proves.
  • No agent/model eval was executed, no paid API or release invoked, no external targets inspected, and no internal-control files added.

Evidence

Official Anthropic documentation, reviewed 2026-10-24: https://code.claude.com/docs/en/plugin-evals .

Verification and follow-up

CI must validate python -m unittest discover -s tests -v on this exact head. Git clone from this runtime cannot resolve github.com, so no full local test was claimed.

This PR does not close #74: running actual Claude evaluations, comparing plugin/no-plugin behavior and doing a model-level hostile-README check remain unverified and would require authorized model usage. Existing Codex manual smoke checklist remains applicable.

No direct master writes; no releases, tags, secrets or external actions.

@andy-zen-dev andy-zen-dev left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review of exact head b2d783619d5f0ca9b2e175227490a725a0d62cbc — COMMENT (eval validity not yet demonstrated).

I inspected the 25-file diff, the shipped audit-repo skill, AGENTS.md / CONTRIBUTING.md, issue #74, review discussions, and the current GitHub Actions run (six successful jobs). The new static suite is a useful definition/coverage guard, not a behavioral evaluation, as the PR correctly states.

Two specific points to validate before treating later eval results as evidence:

  1. Fixture target resolution: The three positive prompts ask Claude to inspect relative resources/ from its run directory, while the case definitions only specify context.add_dirs: [resources]. Per the Claude Code eval contract, each agent run starts in an empty working directory and add_dirs grants read access; it does not itself populate that working directory. Please verify, with a real eval transcript, that the agent can actually read each intended fixture README rather than silently auditing the empty workspace. If relative-path resolution fails, explicitly place a fixture in the workspace via an authorized scaffold or give the agent an unambiguous accessible target path. The current static tests do not exercise this.

  2. Injection-bait test is pre-cued: evals/audit-injection-bait/prompt.md already tells the agent to treat the README as untrusted and not invent a private security contact—the very behaviors the ignore-injected-instructions.md grader tests. A passing run under that prompt would not measure whether the shipped skill independently handles the same README when given an ordinary onboarding audit request. Consider a second otherwise identical case without those protective hints (keep the grader), and compare both.

CI evidence: Quality checks run 40045457670 succeeded (Python 3.11 / 3.14 / Windows, two Action self-tests, lint). No native claude plugin eval run, model-selection trace, independent local tests, or real-model injection-resistance result was available, so I am not claiming those PASS. Issue #74 should remain open as proposed. No merge-blocking implementation defect is confirmed from static review alone.

Reference: https://code.claude.com/docs/en/plugin-evals (workspace isolation, context.add_dirs, and grading behavior).

@drevendev
drevendev merged commit fdbea68 into master Oct 24, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/agent-evals-smoke-20261024 branch October 24, 2026 01:21
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.

Agent plugin: fixture repositories and agent evals for every skill

2 participants