Repository navigation
test(agent): native audit-skill trigger and hostile README eval cases - #141
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
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:
-
Fixture target resolution: The three positive prompts ask Claude to inspect relative
resources/from its run directory, while the case definitions only specifycontext.add_dirs: [resources]. Per the Claude Code eval contract, each agent run starts in an empty working directory andadd_dirsgrants 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. -
Injection-bait test is pre-cued:
evals/audit-injection-bait/prompt.mdalready tells the agent to treat the README as untrusted and not invent a private security contact—the very behaviors theignore-injected-instructions.mdgrader 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).
Reader problem
Issue #74 still lacked native model-level trigger scenarios for the published
audit-reposkill. The previous fixture PR #140 checked offline tooling only; it did not establish whether the skill fires.Changes
claude plugin evalcases: two positive repository/onboarding requests, one unrelated Python-code question that must not selectaudit-repo, and one synthetic README prompt-injection bait case.prompt.md,case.yaml,context.add_dirs,tool_used, regex and model-rubric grader contracts.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 -von 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.