Skip to content

Add the check-lockfile skill; version 0.2.0 - #6

Merged
orcamedia merged 1 commit into
mainfrom
feat/check-lockfile
Nov 13, 2026
Merged

orcamedia merged 1 commit into
mainfrom
feat/check-lockfile

Conversation

@orcamedia

Copy link
Copy Markdown
Collaborator

Version 0.2.0: the check-lockfile skill, using the check_dependencies tool that landed in openartifact/openartifact#473.

What the skill tells the agent

  1. Find the repository the project installs from, the /repos/<name> in its package manager config. A group is fine, since check_dependencies answers for one.
  2. Extract the pinned versions with jq, not by reading the lockfile into context. The filters apply the rules of oa check (feat(cli): oa check, the dependencies of a lockfile against a repository openartifact#476): path packages, links, bundled packages, workspace folders, and git or file dependencies are left out. There are instructions for when jq is missing, and for lockfileVersion 1.
  3. Call check_dependencies with at most 1000 entries per call.
  4. Report by status:
    • held, with the reason, rule id or until time, and the deciding repository;
    • not_found;
    • unknown, explained as "the proxy hasn't cached this package yet", not as a block.
  5. Suggest fixes that respect the registry, with no public-registry fallback, handing off to check-dependency for an available version.

Servers without the tool (any release before #473) get a check of the direct dependencies through check_availability, and the agent says the whole lockfile couldn't be checked.

Checked

  • I ran both jq commands exactly as written in the skill against the parser fixtures of #476. They return the same lists as the Go parser (4 and 5 dependencies).
  • End to end against a server built from current main: the extracted list from a composer.lock went to check_dependencies on a Composer group. Guzzle 6.5.8 came back held ("EOL, use 7.x"), 7.8.1 available, and two uncached packages unknown.
  • scripts/check-plugin.py passes and reuse lint reports compliance. CI's Agent Skills job validates the new skill.

Not tested: a full agent session using the skill. The tool is on main but not in a server release yet.

🤖 Generated with Claude Code

check-lockfile checks every dependency of a composer.lock or
package-lock.json against the registry with check_dependencies, also
through a group. jq filters extract the pinned versions with the rules of
oa check (path packages, links, bundled packages, workspace folders and
git or file dependencies are left out), the list goes to the tool in
calls of at most 1000, and the answer is reported by status: held with
its reason, not_found, and unknown as "not cached yet", not as blocked.
Servers without the tool get a check of the direct dependencies through
check_availability.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@orcamedia
orcamedia merged commit 7671e26 into main Nov 13, 2026
4 checks passed
@orcamedia
orcamedia deleted the feat/check-lockfile branch November 13, 2026 16:54
orcamedia added a commit that referenced this pull request Nov 13, 2026
)

An eval suite for the skills (`claude plugin eval`), stacked on #6
because one case covers `check-lockfile`.

## What it is

Four prompts that run in a real Claude Code session against **mocked**
OpenArtifact tools, so no server is needed. The tool schemas were saved
from a server built from `main`, and the answers are shaped like the
server's own, including its untrusted-data notice. Each case is scored
by free checks (which tool was called, a pattern in the answer or in the
files) and a few judged criteria.

| Case | Checks |
|---|---|
| `blocked-version` | a curation-blocked version is refused with the
reason and never worked around |
| `lockfile-unknown-is-not-blocked` | one `check_dependencies` call;
`unknown` is reported as "not cached yet", not as blocked |
| `blocked-repository-403` | a 403 from a blocked repository isn't
blamed on missing access |
| `configure-keeps-the-token-out` | setup never writes the token into a
file or repeats it in a command |

## It already found something

On its first run, `configure-keeps-the-token-out` failed. The agent kept
the token out of `composer.json`, but repeated the full token in the
command it told the user to run. `configure-project` now says never to
repeat a token the user pasted: write `<TOKEN>` and suggest replacing
it. After that change the case passed twice.

## Results

All four cases pass (score 1.00), single-arm, 1 to 2 runs each. Cost is
about $0.10 per run at list price.

## Not in CI

Runs use the caller's Claude credentials and cost money, so CI doesn't
run them. The README says how to run one case or the whole suite, and
asks for a run before a release and after changing a skill.
`evals/results/` is git-ignored, and `evals/**` is covered in
`REUSE.toml`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Areef <[email protected]>
Co-authored-by: Claude Fable 5.2 <[email protected]>
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