Manuscript Offprint
arXiv:2610.30405VisCurate: Evaluating Behavioral Equivalence of Visual Skills
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Modern vision-based agents have shifted toward skill-based problem-solving, where a skill is an executable image-to-image operation, e.g., cropping, thresholding, or edge detection. As these skill libraries grow, they accumulate duplicated, mislabeled, and defective skills. The signals normally used to curate them (a skill's name, description, or source code) say little about how the skill visually changes the image. We present VisCurate, a framework and benchmark that curates visual skill libraries from observed execution rather than from text. VisCurate runs each candidate skill pair on a shared probe battery and assigns one of six behavioral relations, each tied to a library edit that is safe to make. The benchmark injects seven defect types into a clean library at controlled rates, producing 300 reproducible instances with ground-truth relations and repairs. While text baselines accept up to five of six false merges on hard negatives, our verifier accepts none and recovers 51.2% of the pairs that are truly mergeable. On two real, uncurated libraries, VisCurate finds that 92% of the skills a package shares with its downstream copy are redundant, while execution confirms only 10 of 17 published equivalence claims. The curation problem also remains open, as the strongest of the nine automated curators recovers only about half of the repairs. We emphasize that visual skill libraries should be curated by behavior, not by description.
1. Introduction
Behind every impressive vision-based agent system is an unglamorous dependence on a library of executable skills that must be maintained. These skills serve as executable vision tools that can power visual systems, such as VisProg [11], Visual ChatGPT [31], MM-ReAct [35], Chameleon [18], and CLOVA [7]. While the libraries are conventionally crafted and maintained by hand, can these agents autonomously maintain their vision-skill libraries as these libraries evolve over time?
A visual skill is a deterministic function that transforms an input image into an output image, implemented with standard image-processing libraries such as OpenCV [3], PIL , and NumPy [12]. Stochastic and neural operators are an extension of the same definition ( ). An agent's effectiveness depends not only on its underlying model but also on the quality of its accessible skill library.
Maintaining a growing library is difficult as independent contributions introduce duplicate, near-duplicate, obsolete, and faulty skills. Repositories with large skill collections may contain redundancy, with 137,470 analyzed skills corresponding to approximately 56,043 distinct skill concepts [41], yet prior work mostly focuses on skill acquisition [1, 9, 29, 33, 39]. Curation hinges on deciding whether two skills are equivalent, and the signals normally used to decide that are unreliable. Similar descriptions can hide different outputs, causing a silent merge, while different implementations can behave identically, causing a missed consolidation [13, 37, 41]. We therefore compare the executed visual outputs instead of relying on descriptors.
We introduce VisCurate, a framework and benchmark for output-grounded visual-skill curation (Fig. 1, Sec. 3). VisCurate executes candidate pairs on a shared probe battery and assigns relations that map onto safe library actions. We validate the framework itself at every layer by testing the central claim against an eight-rung ladder of name, embedding, description, and source-code baselines, and score the verifier against ground-truth relation graphs. On two real, uncurated libraries, the verifier finds most of the surface a package shares with its downstream copy to be exactly redundant, whereas published cross-library equivalence claims often fail at runtime. Output-derived screening turns quadratic pairing near-linear. However, curation itself remains hard as the strongest of nine language-model curators recovers only about half of the required repairs. Our contributions are:
• Output-grounded visual equivalence. A framework that relates two visual skills by executing both on shared probes, with a behavioral taxonomy in which each relation corresponds to one safe curation action.

Figure 1. Overview of the VisCurate pipeline: (a) A noisy seed skill library is evaluated through an output-grounded equivalence verifier, which executes candidate skills on shared probes and certifies their behavioral relations from the resulting outputs. (b) These verified relations guide the structural edits proposed by the curation agent, which are validated before updating the library. The process repeats until a compact and organized skill library is produced.
• Corruption benchmark. We introduce seven types of defects into a clean reference library at configurable rates, creating 300 reproducible instances with known ground-truth relations and curation actions.
• Framework validation. A comparison against eight text, embedding, and source-code baselines, verifier self-validation against ground-truth graphs, audits of two real uncurated libraries, and a measured out-of-distribution certificate-flip rate.
• Cost and curation studies. A scalability analysis showing near-linear candidate growth with measured per-repair token costs, and an extensive evaluation of nine language-model curators showing that reliable and autonomous library repair remains an open problem.
2.1. Skill Libraries for Visual Agents
Compositional visual agents established that libraries of executable skills are the right substrate for complex tasks, e.g., VisProg [11] and ViperGPT [30] compose predefined vision and language modules into programs, CUA-Skill [5] retrieves parameterized skills for graphical-interface tasks, VisualSkill [14] keeps visual content so computer-use agents can verify states, and PolySkill [36] separates a skill's goal from its implementation to generalize better. All of these treat the library as fixed or append-only. A second line manages growth, e.g., Skill2Mem [2] shows that uncurated public skills harm agent memory, the Agent Skills survey [33] reports heavy redundancy in public collections, and clone detection [41], SkillOS [22] and SkillComposer [37] find and manage skills through text, code, or downstream utility, while ContractSkill [19], GraSP [32], Toolformer [27], and HuggingGPT [28] repair, organize, or add individual tools. None of these methods can tell from text, code, or delayed rewards whether two visual skills apply the same transformation. VisCurate differs by deciding every library edit from executed outputs rather than from what a skill says about itself.
2.2. Program Equivalence and Library Learning
Library-learning methods seek reusable abstractions and face the same equivalence question in symbolic form. DreamCoder [6] builds and compresses symbolic libraries, LILO [9] uses documentation to guide synthesis and compression, and ReGAL [29] refactors programs while checking that their outputs are preserved, making it the closest method to ours. All operate on domains where equivalence can be read from program structure or exact return values.
VisCurate instead compares existing visual operations by their image outputs, where similar code or descriptions can still hide different behavior, and turns each verified relation into a concrete, safe library edit.
3. Methodology
The literature on agents and tool use has defined skill in many ways, usually meaning the description of a workflow [16, 40]. We instantiate a skill as a workflow over audited visual operations, each a single deterministic image-to-image function. Fixing the input and output modalities is what makes behavioral equivalence decidable by execution on a probe battery rather than by text.
3.1. Problem Formulation
Skills. Let denote the space of images across resolutions and channel layouts. A skill is a tuple : an identifier , a textual name , a natural-language description , a deterministic visual transformation , and a typed parameter schema with concrete values . A skill is retrieved via its text attributes , and seeded-stochastic skills take the seed as part of the input, making them deterministic conditioned on it. A relation graph labels each skill pair with a relation from the equivalence taxonomy ( ).
Environment and agent. A corrupted library (Sec. 4) is the environment of a partially observable Markov decision process whose hidden state is the set of injected defects. The curation agent, in this work a frozen language model used as-is, is a policy over the observable history that proposes actions from a fixed set (add, remove, modify, retrieve, merge, split, parameterize, end). Every structural edit passes a verifier check that belongs to the environment rather than to the agent: an edit takes effect only if the output-grounded verifier certifies a relation that permits it. Episodes are scored against an ideal-action key derived from the injected defects, by an oracle reward the agent never observes, so the agent is the only thing that varies while the environment, the corruptions, and the checks stay fixed.
Skill library and corruption. A skill library is an ordered collection of skills , where . A log entry is the reproducible record a corruption emits when applied. It records the corruption defect , the skills it altered , the configuration that produced it, the edits the defect induces on the relation graph, , and the ideal curative action that repairs it, . The ordered entries form the corruption log, from which every corrupted artifact and its ground truth can be replayed. We define
as the aggregate edit the log induces on the graph, so that . Each defect induces a function factory . Given a config , made up of a target ID , a seed , and corruption parameters , it returns a corruption function with
where is the corrupted library. We note that, since depends only on L and , re-applying under the same seed reproduces exactly.
Environment. The library is the environment of the curation agent, formalized as a partially observable Markov decision process . The state is the current (possibly corrupted) library . The injected defects are part of the state but hidden from the agent, which is the source of partial observability. The action set holds the library operations of Tab. 1, is the observation space, the observation function, and the deterministic transition function. A non-structural action such as retrieve leaves unchanged and only surfaces information. A structural edit passes through a verifier check, which asks the output-grounded verifier for a certifying relation and applies the edit only if permits it, leaving the library unchanged otherwise. This check belongs to the environment, not to the agent. The action END moves to a terminal state. is the initial-state distribution, and is an oracle reward scored against the ideal action in the corruption log.
Curation agent. The agent is a policy over the observable history ,
choosing from the admissible actions. It maintains a belief over the hidden corruption and conditions its actions on it. Policies are compared by the return
which is an evaluation objective. Here is a language model used as-is, so no policy is trained against J.
3.2. The Equivalence Taxonomy
We classify each ordered pair into exactly one of seven output-grounded relations. The classifier is hierarchical and stop-at-first (Alg. 1). It evaluates relations cheapest-and-strictest first and returns the first that holds, so a stronger, more actionable relation is never masked by a weaker one. COMPLEMENTARY is the sole exception, as it is an advisory annotation and does not affect edit decisions. The perceptual and semantic stages use pluggable learned backends: LPIPS [38] for perceptual distance, and DINO ViT [4] and CLIP [24] feature spaces for semantics.
Algorithm 1 Classifying an output pair . pc, sm flag the perceptual / semantic backends.
Require: tolerances , , and band
1: if then 2: return EXACT 3: else if pc then 4: return PERCEPTUAL 5: else if pc then 6: return UNCERTAIN 7: else if then 8: return SUBSUMPTION 9: else if sm then 10: return SEMANTIC-PRESERVING 11: else if sm then 12: return UNCERTAIN 13: else 14: return DISTINCT 15: end if
Parameter grid. Because most skills are parameterized, e.g., a blur skill has a kernel size, we never compare at a single operating point. We evaluate over a matched grid and aggregate by worst case
where canonicalizes outputs and ranges over the probe battery (§3.3). The worst case is what blocks spurious merges between skills that coincide on part of their domain: a Gaussian blur and a box blur agree at small kernels but diverge at large ones, and the max over the grid surfaces that divergence rather than averaging it away.
Relations. (i) Exact: outputs are identical across the battery at every shared parameter setting, up to a negligible tolerance. (ii) Perceptual relaxes exactness to human-indistinguishability, worst-case LPIPS below with a structural SSIM floor guarding LPIPS blind spots. Like EXACT, it permits a merge. (iii) Subsumption is directional: holds when some setting of reproduces every setting of within perceptual tolerance, certified by searching 's parameter schema (a fixed-angle rotation is subsumed by rotate-by-degrees). (iv) Semantic-preserving captures pairs that are neither pixel- nor perceptually-identical but occupy the same region of a learned feature space, e.g., two edge detectors, certified by DINO cosine distance (p90 cross-checked against the mean, robust to isolated feature-space outliers). It permits parameterization, never an outright merge. (v) Complementarity captures pairs that compose into a meaningful pipeline, e.g., dilation and erosion, requiring non-triviality of both skills and an executed composition-effect test; advisory only. (vi) Distinct is the default verdict by elimination, including spatial-extent mismatches with no subsumption certificate. (vii) Uncertain is an intentional abstention: a pair whose deciding distance clears a calibrated threshold too narrowly (within a band ) is routed to human review instead of being pushed into an unwarranted merge.
Table 1. Description of the action space of the curation agent.
| Action | Meaning |
|---|---|
| add | Add a new skill |
| remove | Remove a skill |
| modify | Modify metadata/schema or function behavior |
| retrieve | Retrieve/query a skill |
| merge | Merge redundant skills |
| split | Split one skill into multiple skills |
| parameterize | Fold a specialization into a more general parameterized skill |
| end | Stop the episode |
3.3. Behavioral Signatures and Canonicalization
A probe battery , with each , spans input images, channel layouts (grayscale, RGB, RGBA), bit depths, and degenerate cases. For a skill evaluated at a parameter value , the behavioral signature is
where maps outputs into a comparison space . Equivalence is decided over signatures, so instead of “are equivalent?”, we ask “do and agree under a relation-specific metric?”.
Canonicalization removes representational noise, i.e., differences in channel layout, format, or encoding, so that distance reflects behavior rather than how an output happens to be stored. Two safeguards keep the comparison reliable. A shape check sets the distance whenever two outputs differ in spatial extent, so a resolution-changing skill is never merged with a resolution-preserving one. A content hash over the canonical form fires only for byte-identical outputs and never across shapes.
Three skill classes need care and are handled explicitly: (a) seeded-stochastic skills (e.g., additive noise) are deterministic at a fixed seed and are compared only at matched seeds, (b) precision-sensitive skills (e.g., FFT round-trips) are compared with perceptual rather than exact tolerance, and (c) platform-sensitive skills (e.g., seeded -means quantization) are compared within-platform only. These classifications are recorded with the library and asserted in tests.
4. Experimental Setup
4.1. Base Library
We hand-author a clean base library of 100 skills spanning geometric/canvas, photometric, signal/morphology, and mask/reconstruction families, with a designed ground-truth relation graph validated for DAG and transitive-closure consistency. embeds known relations across the classes curation depends on: directional subsumptions, complementary pairs, and engineered hard negatives (e.g., Gaussian vs. box blur, nearest vs. bilinear vs. bicubic resize) that must not be merged. enumerates 944 designed ordered pairs, is fixed before any metric runs and never derived from the metrics under test, and any unlisted pair is DISTINCT by default.
4.2. Corruption
To emulate realistic library decay, we inject defects into at a controlled rate and composition . Seven defect types are implemented as named, replayable function factories: (i) an implementation bug that silently corrupts outputs, (ii) a metadata mislead that rewrites name and description while leaving behavior intact, (iii) a duplicate (exact or perceptual copy), (iv) a subsumption (fixed-parameter specialization of a more general skill), (v) a parameter-schema drift, (vi) a domain-scoped bug that misbehaves only on some inputs, and (vii) a dead/identity skill. A deterministic planner apportions the defect budget under a composition vector (UNIFORM, DUPLICATE-HEAVY, METADATA-HEAVY), and a pure replay reconstructs the corrupted library , its relation graph , and an ideal-action key specifying the curative action each defect warrants. Corrupted skills masquerade as built-in, so a defect is observable only through behavior. Sweeping , the 3 compositions, 5 seeds, and mode gives 300 exactly reproducible instances.
4.3. Curation Protocol
A curation agent works through one episode over a corrupted library . It sees only redacted summaries of the skills and may propose up to 200 actions. Code-bearing actions run inside the hardened sandbox so that their effects can be observed, and no structural edit reaches the library until the verifier has certified a relation supporting it. Actions the verifier turns down still cost the agent budget. Throughout the agent study, we run the verifier in its deterministic configuration with the learned backends switched off, so only EXACT, SUBSUMPTION, and DISTINCT can support an edit. This is the most conservative merge policy available to us, and it reaches the same decision every time, so all 2,700 episodes replay exactly, and every agent sees the same 300 instances.
4.4. Equivalence Benchmark
Separately from the curation-agent study, we evaluate the output-grounded verifier directly against a ladder of text and source-code baselines on the designed relation graph , isolating the equivalence decision from the agent that consumes it. The metadata-mislead defect rewrites the text surface that every text baseline reads and that the text-blind verifier never sees. All numbers come from deterministic runs over the 100-skill library, its 944 designed ordered pairs, and the 177-probe battery. Because only EXACT and PERCEPTUAL permit a merge, the binary mergeable decision is the common ground on which every method can be compared directly.
Baselines. We arrange eight baselines by how much of the skill they read: (1) name-match token overlap, (2) TF-IDF cosine, (3) sentence-embedding cosine over name and description, (4) code-embedding cosine over source, (5a/5b) AST similarity in structure-only and semantics-preserving variants, (6) an LLM judge reading descriptions, (7) an LLM judge reading source, and (8) the output-grounded verifier (lpips-alex, DINO ViT-B/16, CLIP ViT-B/32 backends). Each rung emits a mergeable decision at a matched operating point, e.g., the lowest threshold keeping precision on non-equivalence at with merge recall , falling back to defaults where that rule cannot bind (full rung definitions in §C.1). Because a clean reference graph designates no true duplicates, supports the safety comparison only, and merge recall is measured against the corrupted graphs (§5.2).
Metrics. In curation, a wrong merge is far more costly than a missed one. We lead this principle with safety on non-equivalence, which is the false-merge rate on truly-DISTINCT pairs, reported over all distinct pairs and separately over the hard-negative slice. Per-relation precision, recall, and F1 then quantify how well a method recovers the taxonomy. Curation-agent metrics are defined in §B.2.
5. Experiments and Results
We organize the evaluation around five questions, one per layer of the framework. RQ1: Do names, descriptions, or source code tell us how a skill behaves (§5.1)? RQ2: How many of the truly redundant pairs does the verifier find, and how often does it get one wrong (§5.2)? RQ3: Does that result hold on a larger set of hard negatives (§5.3)? RQ4: Does the framework carry over to real, uncurated libraries (§5.4)? RQ5: How well do current automated pipelines using LLM-based agents curate a decaying library (§5.5), and what does it cost (§5.6)?
5.1. Text and Code do not predict Visual Behavior
If names, descriptions, or source code told us how a skill behaves, a matcher built on them should make safe merge
Table 2. The baseline ladder on the 944 designed pairs of at matched operating points. : false-merge rate on truly-DISTINCT pairs, in percent. : false merges accepted on the six engineered hard negatives. VisCurate abstains on of decisions; no baseline abstains. The source-reading LLM judge is scored on a 120-pair subsample (mean of three repeats), so its FPR is not directly comparable and is omitted. Exact CIs for every count are in the appendix §C.1.
| Method | Reads | (%) ↓ | ↓ |
|---|---|---|---|
| Name match | name | 5.40 | 5 |
| TF-IDF cosine | description | 0.21 | 0 |
| Sentence embedding | description | 5.61 | 5 |
| Code embedding | source | 1.80 | 4 |
| AST (structural) | source | 0.00 | 0 |
| AST (semantic) | source | 0.00 | 0 |
| LLM judge | description | 0.11 | 1 |
| LLM judge | source | - | 0 |
| VisCurate (ours) | outputs | 0.00 | 0 |
decisions on 's 944 designed pairs. Since designates no true duplicates, every merge proposed on it is false by construction. Tab. 2 reports each method's false-merge rate on truly-DISTINCT pairs and false-merge count on the six engineered hard negatives.
Surface similarity over-merges. Name matching and sentence embeddings each accept five of the six possible false merges on the hard negatives, and the code embedding accepts four. The output-grounded verifier accepts none anywhere on the graph, and abstains on of decisions.
Stronger baselines stay structurally blind. The description-reading LLM judge merged one hard negative in this run, and a rerun with a newer judge produced zero, so we rest no claim on strong judges over-merging. However, every method except ours emits only a merge-vs-distinct split, so none can represent the subsumption direction, semantic preservation, or complementarity, and no text method is, in principle, sensitive to the metadata-mislead defect. On a six-pair slice, a perfect 0/6 still bounds the false-merge rate only at (one-sided ), which is why RQ3 expands the slice by an order of magnitude.
Source code fails in both directions at once. Duplicates enter libraries as thin delegating wrappers. A wrapper executes identically to its donor yet shares almost no source text with it, while two wrappers of unrelated skills are nearly identical as source. On one fully corrupted instance, of cross-original clone pairs are byte-identical in source while wrapping different skills, so a source-similarity method is wrong both ways at once; output grounding is immune by construction (§C.1).
Fine-grained taxonomy. Only the verifier resolves the full Table 3. Verifier self-validation against ground-truth graphs (300 instances, 13,658 pairs). The binary merge decision scores recall 0.512 (exact CI [0.495, 0.530]) at precision 1.000 (tp/fp/fn = 1,696/0/1,614).
| Relation | Support | Recall | Precision |
|---|---|---|---|
| EXACT | 1,640 | 0.968 | 1.000 |
| PERCEPTUAL | 1,670 | 0.046 | 0.704 |
| SUBSUMPTION | 4,672 | 0.758 | 0.996 |
| SEMANTIC-PRESERVING | 3,424 | 0.319 | 0.278 |
| COMPLEMENTARY | 310 | 0.000 | 0.000 |
| DISTINCT | 1,942 | 0.384 | 0.188 |
six behavioral relation taxonomy (Fig. A.1). SUBSUMPTION, the relation behind parameterization, is recovered well (F1 0.750). SEMANTIC-PRESERVING is the weak point (precision 0.037), though it is not a safety failure. The distinct pairs it misses are labels that permit no merging.
5.2. Redundancy recovered by the Verifier
The corrupted graphs carry known relations by construction, including injected duplicates. So they support what cannot, i.e., measuring how much real redundancy the verifier recovers. We replay the verifier over all 300 corruption instances, scoring 13,658 labeled pairs with 3,310 truly mergeable positives (EXACT PERCEPTUAL), zero unresolved execution errors, and zero verdict disagreements across re-run shards (§C.2).
Safety holds everywhere. The verifier finds of the pairs that are truly mergeable and makes no false merges (Tab. 3). That count stays at zero at each corruption rate taken on its own (per-rate table in §C.2), so safety does not decay as the library gets dirtier, and a 34-instance pilot agreed (recall 0.493).
The misses sit one threshold away. Byte-identical duplicates are found almost always (EXACT recall 0.968) and near-duplicates almost never (PERCEPTUAL recall 0.046), because 1,594 of 1,670 PERCEPTUAL pairs are labeled SEMANTIC-PRESERVING, one conservative notch below the label that would allow their merge.
5.3. Scaling Hard-Negatives
The six designed hard negatives support only a weak bound, so we expand the slice to 69 engineered pairs spanning the same trap families (resampling kernels, border modes, quantization variants). The verifier makes 0/69 false merges, and pairs checked independently by more than one shard agree in every case (c.f. §C.3).
5.4. Performance on Real Libraries
Synthetic corruption provides ground truth but not external validity, so we take the verifier, thresholds frozen (Tab. A.1),
Table 4. Performance of nine curation agents on the corrupted-library benchmark. Every cell aggregates the same 300 instances, with instance-clustered bootstrap 95% CIs (2,000 resamples). : mean per-episode precision, recall, and F1. mF1: micro F1. IS: Intrinsic Score. AC: action cost. CR: compression ratio. Comp.: mean compression. Pred.: mean predicted actions. Higher CR, Comp., and Pred. are not better on their own and carry no arrow, since they are only meaningful alongside precision or F1. Metric definitions are in §B.2. Per- breakdowns and action outcomes are in §D.
| Model | μP↑ | μR↑ | μF1↑ [95% CI] | mF1↑ | IS↑ | AC↓ | CR | Comp. | Pred. |
|---|---|---|---|---|---|---|---|---|---|
| Llama 3.2 1B [20] | 0.000 | 0.000 | 0.000 [0.000, 0.000] | 0.000 | 0.000 | 152.11 | -0.001 | -0.11 | 0.01 |
| Llama 3.2 3B [20] | 0.443 | 0.013 | 0.024 [0.019, 0.028] | 0.018 | 0.012 | 200.00 | 0.008 | 1.05 | 1.05 |
| Llama 3.1 8B [17] | 0.615 | 0.061 | 0.095 [0.085, 0.106] | 0.070 | 0.049 | 200.00 | 0.030 | 3.67 | 4.08 |
| Qwen 3.5 2B [23] | 0.134 | 0.008 | 0.013 [0.009, 0.018] | 0.006 | 0.007 | 128.35 | 0.005 | 0.57 | 0.59 |
| Qwen 3.5 4B [23] | 0.290 | 0.098 | 0.109 [0.097, 0.122] | 0.089 | 0.063 | 185.37 | 0.098 | 11.48 | 11.48 |
| Qwen 3.5 9B [23] | 0.357 | 0.074 | 0.101 [0.085, 0.117] | 0.065 | 0.060 | 171.52 | 0.034 | 3.92 | 3.92 |
| Qwen 3.5 27B [23] | 0.662 | 0.423 | 0.505 [0.490, 0.521] | 0.515 | 0.358 | 109.59 | 0.222 | 29.31 | 37.90 |
| Gemma 4 12B [8] | 0.777 | 0.204 | 0.290 [0.275, 0.306] | 0.266 | 0.159 | 172.23 | 0.103 | 13.02 | 13.15 |
| GPT-5.5 [21] | 0.735 | 0.531 | 0.587 [0.572, 0.601] | 0.605 | 0.496 | 78.86 | 0.130 | 16.47 | 41.42 |
to two real, uncurated libraries.
Cross-version. We take two versions of the same codebase: pilgram 2.0.0 and pilgram 2.0.10 . They share 25 filter names, and neither package has methods to find overlaps. Of the 25 shared filters, 23 are byte-identical on all 177 probes and certified EXACT, so 92% of the shared surface can be merged. The other two have really diverged, and the verifier correctly declines to merge them. The two copies differ visibly (LPIPS 0.246) yet are semantically indistinguishable (DINO p90 distance 0.0008), so a perceptual-only test would call it divergence while a semantic-only test merges it.
Cross-library. Corpus A holds 93 implementations of common operations across 20 families from widely used packages (OpenCV, PIL, scikit-image, torchvision, Kornia, Albumentations), giving 182 within-family pairs, with all 93 passing the self-pair check. Published documentation tables group 17 of these pairs as directly equivalent, yet execution certifies only 10 of 17 (0.588, exact 95% CI [0.33, 0.82]) as mergeable at aligned parameters, or 10 of 14 among fully alignable pairs. We read this as documentation grouping operations by category rather than by behavior, and not as a maintainer error. It is also the situation that motivates output grounding. While independent reimplementations of a single operation drift apart, copied packages remain identical. In neither case does anyone run the two side by side.
Oracle for real libraries. Because Corpus A has no designed answer key, we build a mechanical differential oracle (dense parameter sweeps with representation-derived tolerances, §C.4) that labels all 182 pairs with zero ambiguous

Figure 2. Mean F1 by corruption rate for the four strongest curators ( episodes per cell). Difficulty is not monotone in as GPT-5.5 improves as defects multiply, Qwen 3.5 27B stays flat, and the smaller models collapse. Full results in Tab. A.4.
cases. The oracle is the independent ground truth for the text and code baselines. It never executes anything, only performs an exhaustive-versus-approximate check for our verifier, and it is labeled as such wherever it appears. Its labels ship with the benchmark, which gives later matching methods something to score precision and recall against on real libraries rather than on synthetic graphs alone (§C.1).
5.5. Performance of LLM Agent Curation
We evaluate nine language-model curators from four families: Llama 3.1 and 3.2, Qwen 3.5, and Gemma 4 at multiple sizes as open-source models, and GPT-5.5 as the closed-source representative. Inference settings are reported in §B.1, and metrics in §B.2.
The best model recovers about half the repairs. GPT-
https://github.com/akiomik/pilgram/tree/v2.0.0
https://github.com/mgineer85/pilgram2/tree/v2.0.10
5.5 leads on recall (0.531), mean F1 (0.587), and Intrinsic Score (0.496), and it does so while attempting the fewest actions per episode, most of which are productive (Tab. 4). Qwen 3.5 27B is the only open model near it, with the best precision-recall balance in its tier and the largest real compression (Tab. 4). Gemma 4 12B is the most precise model in the study (0.777) but acts too rarely, repairing only a fifth of the faults. Performance scales with size within every family, and the smallest models do very little, e.g., Llama 3.2 1B never produces a correct action.
Difficulty does not simply rise with the corruption rate. Fig. 2 shows mean F1 across the corruption sweep, and which way a model moves depends on the model. GPT-5.5 rises from 0.420 at to 0.641 at and holds there, Qwen 3.5 27B stays flat, and Gemma 4 12B and Qwen 3.5 4B fall by roughly 0.18. A capable curator gets more scorable repair opportunities as defects multiply, while a weaker one is simply overwhelmed by them.
Spending the budget is not the same as using it. Llama 3.2 3B and 3.1 8B burn through all 200 actions and still predict only 1 – 4 repairs, while the strongest models reach far higher prediction counts at a lower action cost. Intrinsic Score is below the mean F1 for every model, because much of the budget goes to actions the library never accepts.
5.6. Cost and Scalability
Running skills and comparing their outputs are computationally expensive. We measure where that cost goes and how it grows, using 262,833 telemetry events.
Screening makes pairing near-linear. A cheap output-derived fingerprint proposes candidate pairs before the verifier runs. Sweeping the screen’s grid over ten corrupted instances shows that the neighbor count is what matters, and the radius almost never does. Recall of mergeable pairs reaches 1.000 at while still discarding 95.1% of all pairs ( ). The sweep also told us that our original default of was a poor choice, since it dropped 3.75% of mergeable pairs and bought nothing for it, so we now use . Across nested library subsamples, the candidate count fits against the exponent 2 of exhaustive pairing; extrapolated to (beyond the fit’s support), screening proposes about candidates instead of exhaustive pairs.
Where the time and memory go. The stop-at-first cascade settles 54.9% of pairs before any learned backend runs, and the signature cache serves 78.2% of executions. A pair takes 401 ms to decide at the median, and the p95 of 64.5 s comes almost entirely from subsumption searches. Memory constrains a deployment more than time does, as caching raw output sets costs 214.8 MB per skill and reaches 2.1 TB at skills, while caching only backend features costs 5.4 GB at the same scale, a saving. Evicting from that cache changes the wall-clock but never a verdict ( ).
Cost per correct repair. On identical instrumented episodes, GPT-5.5 spends 9,202 tokens per correct repair, with numerator and denominator from the same 41 telemetry-instrumented episodes, since mixing scopes distorts the ratio by up to .
6. Discussion and Limitations
VisCurate separates two questions: whether two skills behave alike, and whether the library should change. The verifier answers the first from the executed outputs, the agent answers the second, and an edit goes through only once the verifier certifies the required relation. We measure the verifier's safety rather than assert it, and it made zero false merges everywhere we looked. The verifier's caution costs about half of the mergeable pairs, and the curation agents remain far from solving the task.
Two skills with identical outputs can still differ in compute cost, dependency weight, and maintainability, and a malicious skill can match a benign one on every probe while carrying a harmful payload. Cost and maintainability are complementary inputs that the agent can weigh alongside the relation certificate, and side effects belong to the sandbox, which confines execution and blocks unauditable code. Output comparison also sees a domain-scoped bug only when the probes cover that domain, and it cannot flag a misleading description or an unused but correct skill.
Several extension studies of our work have also been covered in §F on neural and stochastic skills, out-of-distribution probes, and probe battery ablation.
7. Conclusion
We introduce VisCurate, an output-grounded framework for curating executable visual skill libraries. A metadata-blind verifier certifies behavioral relations, and a taxonomy translates them into safe edits. The verifier makes zero false merges, while surface baselines produce up to five of six, and the strongest of nine curators repairs only about half the faults. Behavioral equivalence requires execution, and VisCurate provides both the verifier and the benchmark. Our work reemphasizes that visual skills should be curated by their visual behavior, not by text descriptions. VisCurate also opened several new directions to improve the performance of curation agents on visual skill libraries.
Acknowledgements
We thank Didhiti Nahid for her helpful feedback on an earlier draft of this paper. Md. Farhan Ishraq, in particular wants to thank his parents, Md. Shah Alam and Afia Khatun Mily, for everything.
References
[1] Salaheddin Alzubi, Noah Provenzano, Jaydon Bingham, Weiyuan Chen, and Tu Vu. EvoSkill: Automated skill discovery for multi-agent systems. arXiv preprint arXiv:2603.02766, 2026. 1
[2] Anonymous. Skill2Mem: A diagnostic study of negative transfer from public skills to LLM agent memory. In Submitted to ACL Rolling Review – March 2026, 2026. Under review. 2
[3] Gary Bradski. The OpenCV library. Dr. Dobb's Journal of Software Tools, 25(11):120–123, 2000. 1
[4] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9630–9640, 2021. 3
[5] Tianyi Chen, Yinheng Li, Michael Solodko, Sen Wang, Nan Jiang, Junheng Hao, Tingyuan Cui, Jongwoo Ko, Sara Abdali, Suzhen Zheng, Pashmina Cameron, Justin Wagle, and Kazuhito Koishida. CUA-Skill: Developing computer using agents with a skill framework. In 2nd Workshop on Compositional Learning: Safety, Interpretability, and Agents at ICML, 2026. 2
[6] Kevin Ellis, Catherine Wong, Maxwell Nye, Mathias Sablé-Meyer, Lucas Morales, Luke Hewitt, Luc Cary, Armando Solar-Lezama, and Joshua B. Tenenbaum. DreamCoder: Bootstrapping inductive program synthesis with wake-sleep library learning. In Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation, pages 835–850, 2021. 2
[7] Zhi Gao, Yuntao Du, Xintong Zhang, Xiaojian Ma, Wenjuan Han, Song-Chun Zhu, and Qing Li. CLOVA: A closed-loop visual assistant with tool usage and update. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13258–13268, 2024. 1
[8] Gemma Team, Google DeepMind. Gemma 4 technical report. arXiv preprint arXiv:2607.02770, 2026. 7
[9] Gabriel Grand, Lionel Wong, Maddy Bowers, Theo X. Olausson, Muxin Liu, Joshua B. Tenenbaum, and Jacob Andreas. LILO: Learning interpretable libraries by compressing and documenting code. In International Conference on Learning Representations, 2024. 1, 2
[10] Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. Journal of Machine Learning Research, 13: 723–773, 2012. 5
[11] Tanmay Gupta and Aniruddha Kembhavi. Visual programming: Compositional visual reasoning without training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14953–14962, 2023. 1, 2
[12] Charles R. Harris, K. Jarrod Millman, Stéfan J. van der Walt, Ralf Gommers, Pauli Virtanen, David Cournapeau, Eric Wieser, Julian Taylor, Sebastian Berg, Nathaniel J. Smith, Robert Kern, Matti Picus, Stephan Hoyer, Marten H. van Kerkwijk, Matthew Brett, Allan Haldane, Jaime Fernández del Río, Mark Wiebe, Pearu Peterson, Pierre
Gérard-Marchant, Kevin Sheppard, Tyler Reddy, Warren Weckesser, Hameer Abbasi, Christoph Gohlke, and Travis E. Oliphant. Array programming with NumPy. Nature, 585(7825):357–362, 2020. 1
[13] Wentao Hu, Zhendong Chu, Yiming Zhang, Junda Wu, Ming Jin, Xiangyu Zhao, Yilei Shao, Yanfeng Wang, and Qing-song Wen. SkillBrew: Multi-objective curation of skill banks for LLM agents. arXiv preprint arXiv:2605.29440, 2026. 1
[14] Ziyan Jiang, Li An, Yujian Liu, Jiabao Ji, Qiucheng Wu, Jacob Andreas, Yang Zhang, and Shiyu Chang. VisualSkill: Multimodal skills for computer-use agents. arXiv preprint arXiv:2606.18448, 2026. 2
[15] Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, Jun Zhu, and Lei Zhang. Grounding DINO: Marrying DINO with grounded pre-training for open-set object detection. In European Conference on Computer Vision, pages 38–55, 2024. 5
[16] Yuxuan Liu, Zhaochen Su, Lingyun Xie, Yuhao Zhang, Qing Zong, Jiahe Guo, Zhongwei Xie, Yiyan Ji, Yauwai Yim, Hongyu Luo, Xiyu Ren, Chenyu Ruan, Haoran Li, and Yangqiu Song. SkillRevise: Improving LLM-authored agent skills via trace-conditioned skill revision. In Findings of the Association for Computational Linguistics: EMNLP 2026, 2026. 3
[17] Llama Team, AI @ Meta. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. 7
[18] Pan Lu, Baolin Peng, Hao Cheng, Michel Galley, Kai-Wei Chang, Ying Nian Wu, Song-Chun Zhu, and Jianfeng Gao. Chameleon: Plug-and-play compositional reasoning with large language models. In Advances in Neural Information Processing Systems, pages 43447–43478, 2023. 1
[19] Zijian Lu, Yiping Zuo, Yupeng Nie, Xin He, Weibei Fan, Lianyong Qi, and Shi Jin. ContractSkill: Repairable contract-based skills for multimodal web agents. arXiv preprint arXiv:2603.20340, 2026. 2
[20] Meta AI. Llama 3.2: Revolutionizing edge AI and vision with open, customizable models. https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/, 2024. Model release announcement and model cards. 7
[21] OpenAI. GPT-5.5 system card. https://openai.com/index/gpt-5-5-system-card/, 2026. 7
[22] Siru Ouyang, Jun Yan, Yanfei Chen, Rujun Han, Zifeng Wang, Bhavana Dalvi Mishra, Rui Meng, Chun-Liang Li, Yizhu Jiao, Kaiwen Zha, Maohao Shen, Vishy Tirumalashetty, George Lee, Jiawei Han, Tomas Pfister, and Chen-Yu Lee. SkillOS: Learning skill curation for self-evolving agents. arXiv preprint arXiv:2605.06614, 2026. 2
[23] Qwen Team. Qwen3.5: Towards native multimodal agents. https://qwen.ai/blog?id=qwen3.5, 2026. Model release announcement and model cards. 7
[24] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, pages 8748–8763, 2021. 3
[25] Nikhila Ravi, Valentin Gabeur, Yuan-Ting Hu, Ronghang Hu, Chaitanya Ryali, Tengyu Ma, Haitham Khedr, Roman Rädle, Chloe Rolland, Laura Gustafson, Eric Mintun, Junting Pan, Kalyan Vasudev Alwala, Nicolas Carion, Chao-Yuan Wu, Ross Girshick, Piotr Dollár, and Christoph Feichtenhofer. SAM 2: Segment anything in images and videos. In International Conference on Learning Representations, 2025. 5
[26] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022. 5
[27] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Eric Hambro, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. In Advances in Neural Information Processing Systems, pages 68539–68551, 2023. 2
[28] Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. HuggingGPT: Solving AI tasks with ChatGPT and its friends in Hugging Face. In Advances in Neural Information Processing Systems, pages 38154–38180, 2023. 2
[29] Elias Stengel-Eskin, Archiki Prasad, and Mohit Bansal. REGAL: Refactoring programs to discover generalizable abstractions. In Proceedings of the 41st International Conference on Machine Learning, pages 46605–46624, 2024. 1, 2
[30] Dídac Surís, Sachit Menon, and Carl Vondrick. ViperGPT: Visual inference via Python execution for reasoning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 11888–11898, 2023. 2
[31] Chenfei Wu, Shengming Yin, Weizhen Qi, Xiaodong Wang, Zecheng Tang, and Nan Duan. Visual ChatGPT: Talking, drawing and editing with visual foundation models. arXiv preprint arXiv:2303.04671, 2023. 1
[32] Tianle Xia, Lingxiang Hu, Yiding Sun, Ming Xu, Lan Xu, Siying Wang, Wei Xu, and Jie Jiang. GraSP: Graph-structured skill compositions for LLM agents. arXiv preprint arXiv:2604.17870, 2026. 2
[33] Renjun Xu and Yang Yan. Agent skills for large language models: Architecture, acquisition, security, and the path forward. In Agent Skills Workshop at the ACM Conference on AI and Agentic Systems (CAIS), 2026. arXiv:2602.12430. 1, 2
[34] Lihe Yang, Bingyi Kang, Zilong Huang, Zhen Zhao, Xiaogang Xu, Jiashi Feng, and Hengshuang Zhao. Depth anything V2. In Advances in Neural Information Processing Systems, 2024. 5
[35] Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Ehsan Azarnasab, Faisal Ahmed, Zicheng Liu, Ce Liu, Michael Zeng, and Lijuan Wang. MM-REACT: Prompting ChatGPT for multimodal reasoning and action. arXiv preprint arXiv:2303.11381, 2023. 1
[36] Simon Yu, Gang Li, Weiyan Shi, and Peng Qi. PolySkill: Learning generalizable skills through polymorphic abstraction for continual learning. In International Conference on Learning Representations, 2026. 2
[37] Qi Zhang, Zhaopeng Feng, Xiaonan Shi, Xiaomeng Hu, Chu Liu, Pengjun Xie, Xiaobin Wang, Jieping Ye, Bryan Hooi, Haobo Wang, and Junbo Zhao. SkillComposer: Learning to evolve agent skills for specification and generalization. arXiv preprint arXiv:2606.06079, 2026. 1, 2
[38] Richard Zhang, Phillip Isola, Alexei A. Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 586–595, 2018. 3
[39] Boyuan Zheng, Michael Y. Fatemi, Xiaolong Jin, Zora Zhiruo Wang, Apurva Gandhi, Yueqi Song, Yu Gu, Jayanth Srinivasa, Gaowen Liu, Graham Neubig, and Yu Su. SkillWeaver: Web agents can self-improve by discovering and honing skills. arXiv preprint arXiv:2504.07079, 2025. 1
[40] Yingli Zhou, Wang Shu, Yaodong Su, Wenchuan Du, Yixiang Fang, and Xuemin Lin. A comprehensive survey on agent skills: Taxonomy, techniques, and applications. arXiv preprint arXiv:2605.07358, 2026. 3
[41] Jiaying Zhu, Lyuye Zhang, Wenbo Guo, and Yang Liu. Latent reuse in agent skills: Multi-modal clone detection at ecosystem scale. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering, 2026. 1, 2
VisCurate: Evaluating Behavioral Equivalence of Visual Skills
Supplementary Material
Table A.1. Calibrated operating point of the output-grounded verifier (seed 1234), frozen before evaluation and reused unchanged in every study.
| Threshold | Value | Role |
|---|---|---|
| (exact ) | 1/255 | numerical-equality tolerance |
| (LPIPS) | 0.05 | worst-case perceptual bound |
| SSIM floor (1-SSIM) | 0.10 | LPIPS blind-spot guard |
| (DINO, p90) | 0.15 | semantic-preserving bound |
| complementary (LPIPS) | 0.05 | composition-effect tolerance |
| abstention | 0.05 | UNCERTAIN-band width |
A. Additional Methodology Details
A.1. Threshold Calibration
The thresholds , , and the band width are calibrated rather than hard-coded. We fit them on a labeled split of 713 pairs from eight operator families, maximizing precision on the non-equivalence (DISTINCT) decision under a recall floor on true equivalence, so the operating point prefers refusing a good merge over accepting a bad one. The split is cluster-disjoint from the evaluation set, so no skill family appears in both, and 100 held-out pairs from further disjoint families confirm that no family leaks across the boundary. We freeze the split with its hash and date recorded before any test metric is computed, which closes the main source of leakage in equivalence benchmarks. The resulting operating point (Tab. A.1) is carried unchanged through every experiment in this paper, with no recalibration on evaluation data. Calibration reproduces byte-identically on an independent re-run, and the verifier's relation output matches on 943 of 944 pairs across independent re-executions of the full benchmark.
A.2. Candidate Generation
Running the full comparator stack over all pairs is wasteful. We therefore compute a cheap, purely output-derived fingerprint per skill, a low-dimensional summary of its signature that combines a perceptual (average) hash with a mean DINO feature over a small screening sub-battery. Only pairs whose fingerprints lie within a generous radius become candidates, and same-family pairs and the engineered hard negatives are always kept, so boundary cases are never pruned. The full hierarchical classifier then judges each candidate. Fingerprints are computed from outputs, never from the skill's text , so two skills with unrelated descriptions but identical behavior still collide and get verified, and the modality boundary holds end-to-end, including at candidate generation.
A.3. Curation Under Output Checks
Curation operates on a deliberately redacted view of the skill library, and structural edits never take effect directly. Each edit passes through a check that asks the verifier for a certifying relation and then applies a fixed relation-to-action policy. EXACT and PERCEPTUAL permit merge into a single canonical skill. SUBSUMPTION in the correct direction (the specialization folded into the generalizer, never the reverse) permits parameterize. SEMANTIC-PRESERVING permits parameterize or merge. COMPLEMENTARY and DISTINCT permit no structural edit, and UNCERTAIN goes to human review.
An edit that no certifying relation supports is rejected with a structured reason carrying the relation, the deciding distances, and admissible alternatives. Rejected or blocked edits still consume budget. Usage acts as a secondary constraint, so a heavily used skill resists destructive consolidation even when a relation would allow it. A separate trust boundary governs agent-authored code. Any action that introduces or edits a skill's function, such as SPLIT or an ADD/MODIFY that supplies source, runs only inside a hardened sandbox that isolates the child process. Only code that clears the sandbox can be output-verified, and anything the sandbox cannot admit is blocked and consumes budget without changing the library. The verifier behind the check sees only a comparator view plus an output provider, so the output-grounded path stays text-blind through the curation loop as well.
B. Experimental Setup Details
B.1. Inference and Serving
No model is trained or fine-tuned in this work. Every curator is a frozen language model used as-is, so the agent is the only thing that varies while the environment, the corruptions, and the verifier checks stay fixed. The open-weight curators (Llama 3.1/3.2, Qwen 3.5, Gemma 4) are served locally with vLLM 0.24 at tensor-parallel size 1, one model per NVIDIA A800 GPU, with a 40,960-token context window and GPU memory utilization 0.85. Up to 12 curation clients share one server, each holding a byte-bounded verifier cache (22 GB per worker) so per-worker memory stays predictable. The hosted curators (GPT-5.5, GPT-5.6-luna) are queried through their provider API with a 2,048-token reply cap.
Every episode runs the same 200-action budget over the same 300 corruption instances, and completed instances are skipped on resume, so no episode is ever re-scored. The verifier's learned backends (lpips-alex, DINO ViT-B/16, CLIP ViT-B/32) run on GPUs separate from the serving GPU, with the calibrated thresholds of Tab. A.1 loaded read-only. The LLM baseline judges of the ladder (Sec. C.1) are queried at temperature 0 with a 512-token reply cap for one-word determinism.
B.2. Curation-Agent Metrics
Mean Precision ( P): average per-episode fraction of predicted repair actions that were correct.
Mean Recall ( R): average per-episode fraction of required repair actions the model found.
Mean F1 ( F1): average per-episode harmonic mean of precision and recall.
Micro F1 (mF1): F1 after pooling all true positives, false positives, and false negatives across episodes. This weights larger and harder episodes more than mean F1.
Action Cost (AC): number of non-END actions attempted per episode.
Compression Ratio (CR): fractional library shrinkage per episode. If the episode ends at step T, . Higher means the curated library got smaller, which is only good alongside high precision or F1.
Mean Compression (Comp.): raw library-size reduction .
Mean Predicted (Pred.): number of predicted repair actions per episode. Very low values indicate under-acting and very high values can indicate over-acting.
Intrinsic Score (IS): mean F1 discounted for budget wasted on non-productive actions. With AC the number of non-END actions and u the number of those that were rejected, blocked, or invalid,
clipped to and set to 0 when AC = 0. The penalty keeps the score independent of downstream query success while punishing policies that spend budget without improving the library.
C. Verifier Validation Details
C.1. Baseline Ladder
Rung definitions. Name-match takes the Jaccard token overlap over the union of name and identifier tokens and merges when the overlap is at least 0.5, acting as a renamed-duplicate detector. TF-IDF cosine embeds the concatenated name and description with deterministic TF-IDF (smoothed IDF, -normalized) and merges at cosine 0.6. Sentence-embedding cosine replaces TF-IDF with a pretrained sentence encoder at the same matched threshold. Code-embedding cosine embeds the skill source with a pretrained code encoder and merges at cosine 0.9. The AST rungs compare abstract syntax trees at in two variants. The structure-only variant canonicalizes literals and is therefore blind to parameter-default drift by construction, while the semantics-preserving variant normalizes only meaning-preserving rewrites and is the fairest source-code baseline. The LLM judges are fixed, strong instruction-tuned models queried with reasoning disabled for one-word determinism. Each sees either both descriptions or both source bodies and must return exactly one relation word, and unparseable replies are treated conservatively as DISTINCT. The description judge scores all 944 pairs, while the source judge scores a 120-pair stratified subsample with three repeats for cost reasons. Both judges are deliberately distinct from every curation-subject model. The matched operating point for each threshold rung is the lowest threshold keeping precision on non-equivalence at 0.99 with merge recall 0.5, falling back to the shipped default where the rule cannot bind.
Reading the safety table. On the false-discovery rate on merges is trivially 1.000 for every rung that merges anything, because the clean graph contains no true duplicates. The main text therefore reports the false-positive rate on distinct pairs and the hard-negative count instead. For the same reason, precision-recall curves for the mergeable class are undefined on , and a 0/6 hard-negative result bounds the false-merge rate only at 39.3% (one-sided 95%). The exact 95% CIs for the hard-negative counts in Tab. 2 are [0.36, 1.00] for 5/6, [0.22, 0.96] for 4/6, [0.00, 0.64] for 1/6, and [0.00, 0.46] for 0/6.
The wrapper confound, in full. The corruption harness inserts duplicate skills as delegating wrappers. On one fully corrupted instance, 64 synthesized skills collapse to only 4 distinct source strings, and 519 of 2,016 cross-original synthesized pairs (25.7%) are byte-identical in source while wrapping different skills. Any code-similarity rung therefore scores a clone as maximally dissimilar from its own donor while scoring clones of unrelated skills as perfect duplicates, wrong in both directions at once. Description rungs remain viable on the corrupted graphs, with the caveat that the harness copies the donor description verbatim, which hands them an easier task than a real library, where a duplicate is typically re-described. The output-grounded verifier is immune by construction, since a delegating wrapper executes identically to its donor.
Ladder against oracle labels. The differential oracle of Sec. C.4 supplies mergeable-class labels for all 182 Corpus-A pairs and ships with the benchmark. This supports properly scored precision-recall curves for matching methods on real data for the first time, since on the mergeable class is empty and on the wrapper representation analyzed above makes the source rungs unusable. We there-
Per-relation Quality of the Output-grounded Verifier on (one-vs-rest)

Relation
Figure A.1. Per-relation precision, recall, and F1 of the output-grounded verifier on (one-vs-rest). EXACT and PERCEPTUAL have no support in a clean reference graph and are omitted.
fore report the ladder at matched operating points and release the labels, noting that our harness currently enumerates only built-in skills, so scoring third-party implementations through it requires an extension rather than a run. Any such evaluation must label the output-grounded verifier's row approximation-versus-exhaustive rather than independently validated, since the oracle and the verifier execute the same skills.
C.2. Verifier Self-Validation
Answer-key repair. The corruption log records the relations a defect injects but not the incidental relations cloning creates (a clone of skill a inherits a's relations to every other skill). Audited over all 300 instances, 1,546 incidental relations were unrecorded against 12,790 recorded ( 12%), touching 280 of 300 instances. Because unlabeled pairs default to DISTINCT, scoring against the raw key would have penalized the verifier on roughly 1,500 pairs it labels correctly. We repair by soundness rather than convenience. Relations inherited through EXACT clones transfer exactly, since the outputs are byte-identical, and are materialized. Relations inherited through PERCEPTUAL clones are threshold-based and can flip, so those pairs are excluded rather than guessed (740 of 14,506 labeled pairs over the full grid). The repaired key was recomputed independently from scratch with identical results.
Per-rate safety. Tab. A.2 shows that the zero-false-merge property holds at all ten corruption rates separately, with no monotone trend in recall. The instance-clustered bootstrap interval for overall merge recall is [0.497, 0.528], consistent with the exact interval in the main text.
Table A.2. Merge safety by corruption rate on the full replay ( instances). False merges are zero at every rate.
| ρ | pairs | mergeable | merge recall | false merges |
|---|---|---|---|---|
| 0.1 | 838 | 60 | 0.433 | 0 |
| 0.2 | 950 | 120 | 0.450 | 0 |
| 0.3 | 1,070 | 180 | 0.544 | 0 |
| 0.4 | 1,196 | 240 | 0.550 | 0 |
| 0.5 | 1,300 | 300 | 0.527 | 0 |
| 0.6 | 1,440 | 370 | 0.535 | 0 |
| 0.7 | 1,550 | 420 | 0.529 | 0 |
| 0.8 | 1,652 | 480 | 0.496 | 0 |
| 0.9 | 1,784 | 540 | 0.504 | 0 |
| 1.0 | 1,878 | 600 | 0.497 | 0 |
Pilot versus full grid. A stratified 34-instance pilot (four per rate) preceded the full run, scoring 1,639 pairs with 436 mergeable and merge recall 0.493 [0.445, 0.541] at precision 1.000. The full 300-instance grid scores 13,658 pairs and moves the point estimate to 0.512 while narrowing the interval roughly threefold, so the pilot was not a small-sample artifact. Two pilot-level readings did not survive scale and are corrected here. First, the pilot emitted UNCERTAIN zero times, suggesting the abstention band was dead code. The full grid emits it twice in 13,658 pairs, so the accurate statement is effectively never, quoted with the count. Second, the pilot attributed 99.1% of missed consolidations to the PERCEPTUAL-TO-SEMANTIC-PRESERVING confusion. At scale, EX-ACT loses 52 pairs rather than 2 (32 to PERCEPTUAL, which still permits the merge, 14 to SUBSUMPTION, and 6 to SEMANTIC-PRESERVING), putting the share at 98.8%. The merger deduplicates by (instance, pair) and lets a successful verdict repair an error row. Two successful verdicts that disagree would be reported as a determinism bug, and zero occurred.
C.3. Hard-Negative Expansion and Adjudication
The expanded slice contains 69 engineered hard-negative pairs spanning resampling kernels, border modes, and quantization variants. The verifier makes zero false merges (exact 95% CI [0.000, 0.052], one-sided 95% upper bound 4.25%), and pairs checked independently by more than one shard agree in every case. On the six original designed pairs, the verifier assigns DISTINCT to one and SEMANTIC-PRESERVING to the other five (the three resize pairs, the padding pair, and the posterize/quantize pair), reproduced identically across two independent runs. Since SEMANTIC-PRESERVING does not permit a merge, the safety claim is unaffected, but we state the labels so the claim cannot be over-read.
Twenty-six of the 69 pairs receive such non-mergeable, non-DISTINCT labels. Whether the design intent (distinct) or the verifier's softer label better matches human judgment is a call for independent people, so a ready-to-run blinded adjudication package ships with the benchmark. It contains 26 pairs prepared for three annotators, 723 rendered probe images, pair order and left/right side shuffled per annotator with recorded seeds, the verdict stored out of band, difference maps carrying their per-probe amplification factor (125 of 241 probes needed none), CANNOT-TELL as a first-class label, and scoring code for Fleiss and both bounds. We deliberately did not substitute an automated annotator for this step. The agreement statistic is the point of running three judges, three passes from one model are correlated draws that would inflate , and any system that has read our result reports already knows these 26 pairs are the ones under adjudication. We therefore report both readings of the bound, 4.25% against the designed labels (0/69), rising to 6.7% (0/43) if adjudicators side with the verifier on all 26. Every disputed label is non-mergeable under either reading, so the zero-false-merge result is unaffected.
C.4. Real-Library Studies
Provenance of the copied package. The two divergent filters (aden, perpetua) were independently flagged by a single random-probe smoke test before the 177-probe run, which returned the same two. The alignment file is generated rather than hand-authored, and because the filters take no parameters, there is no alignment choice an observed output could contaminate. The corpus header states the authoring order explicitly. The measured distances are LPIPS 0.2464 with DINO p90 0.0008 for perpetua, and LPIPS 0.0472 with DINO p90 0.0250 for aden.
Corpus A composition. Corpus A holds 93 implementations across 20 operation families, giving 182 within-family pairs, with thresholds carried over from Tab. A.1 and not recalibrated. Of the 17 pairs that published documentation tables group as directly equivalent, execution certifies 6 EXACT (hash-identical on every matched probe, such as horizontal/vertical flips and posterize across Kornia and torchvision), 4 PERCEPTUAL (such as Gaussian blur and grayscale), 3 COMPLEMENTARY, and 4 DISTINCT (such as CLAHE and histogram-equalization variants with worst-case up to 0.94). Nineteen pairs allow an alternative defensible parameter alignment, and a divergence visible under only one alignment variant is reported as an alignment artifact rather than a behavioral finding.
The differential oracle. Corpus A has no designed answer key, and the verifier's own output cannot ground-truth itself. We therefore built a mechanical oracle from dense parameter sweeps, with tolerances derived from the representation rather than from any observed agreement rate ( , one 8-bit quantization step plus float round-trip, and ). The oracle labels all 182 pairs with a 0.000 ambiguity rate, entirely at its cheap pixel tier (75 EQUIVALENT, 107 DISTINCT). Its checks pass where they are meaningful. All 93 Corpus-A self-pairs certify EQUIVALENT, and on it certifies 100/100 self-pairs EQUIVALENT and 6/6 engineered hard negatives DISTINCT. The hard-negative check cannot run on Corpus A itself, since the engineered pairs do not exist among its skill identifiers, and we flag that rather than imply both checks ran there. Against text and code baselines, the oracle is independent ground truth. Against the output-grounded verifier, it is an exhaustive-versus-approximate check, and it is labeled as such wherever it appears.
D. Curation-Agent Supplementary Results
Tab. A.3 breaks the per-episode action budget into applied, rejected, blocked, and invalid outcomes, and Tab. A.4 reports mean F1 at every corruption rate for all nine curators.
The hard-tail stratum. GPT-5.6-luna was evaluated only on the 41 hardest instances (all of plus the tail) and scores mean F1 0.6201 [0.5946, 0.6471] there, with precision 0.800, recall 0.517, Intrinsic Score 0.506, and action cost 148.7. On the same stratum, Qwen 3.5 27B scores about 0.48 and every model at or below 9B is under 0.035. We keep this row out of the main table because a 41-
Table A.3. Mean per-episode action outcomes. Applied actions changed the library, while rejected, blocked, and invalid actions were discarded by VisCurate's validation checks. GPT-5.5 as in Tab. 4.
| Model | Applied | Rejected | Blocked | Invalid |
|---|---|---|---|---|
| Llama 3.2 1B | 0.12 | 7.32 | 8.83 | 135.84 |
| Llama 3.2 3B | 1.05 | 4.14 | 0.00 | 194.81 |
| Llama 3.1 8B | 4.08 | 7.34 | 0.00 | 188.21 |
| Qwen 3.5 2B | 0.60 | 3.41 | 0.05 | 124.25 |
| Qwen 3.5 4B | 11.48 | 46.66 | 0.00 | 127.15 |
| Qwen 3.5 9B | 3.92 | 134.15 | 0.00 | 33.44 |
| Qwen 3.5 27B | 37.90 | 69.96 | 0.00 | 1.56 |
| Gemma 4 12B | 13.15 | 158.82 | 0.00 | 0.21 |
| GPT-5.5 | 41.42 | 24.41 | 0.00 | 0.01 |
instance hard-tail cell and a 300-instance full-grid cell are not comparable at face value.
Run completion. Fig. A.2 reports how often each model ends its episode with an explicit END action. GPT-5.5 ends of its runs, the Qwen family rises with scale from 0.157 to 0.743, and the two mid-size Llama variants never end an episode, exhausting the budget instead.
E. Cost and Scalability Details
Fig. A.3 reports the screening sweep behind the operating point, Fig. A.4 the near-linear growth of the candidate set, Tab. A.5 which cascade stage decides each pair, and Fig. A.5 the cache footprint that motivates caching features instead of raw outputs.
Three accounting rules are followed for Tab. A.6. First, the numerator and denominator must come from the same episodes. Dividing all-grid repairs by instrumented-episode tokens understates the true cost by up to , which we verified by making that mistake and correcting it. Second, cost per repair is undefined, not large, for a model with zero correct repairs (Llama 3.2 1B spends a nonzero budget and buys zero repairs). Third, telemetry was instrumented after the eight self-hosted cells of the main table ran, so their token costs are not reported. Re-running episodes solely to backfill a cost column would change the cells' provenance, and we prefer the stated gap. Verifier-side telemetry covers 262,833 events across 156 files, with a signature-cache hit rate of (184,824/236,305) and a per-pair decision latency of median 401 ms and p95 64.5 s. Eviction from the byte-bounded cache never changes a verdict, only wall-clock, so memory can be traded for time freely.
F. Extension Studies
Our executable core is deliberately restricted to deterministic classical operations, while modern agent ecosystems also lean on stochastic and neural tools [15, 25, 26, 34]. The three studies below extend the protocol to such skills, measure certificate stability on out-of-distribution probes, and ablate the probe battery.
F.1. Neural and Stochastic Skills
Protocol, fixed before any result. (1) Comparison is conditional per probe, never over pooled distributions, since a model applying blur to and sharpen to and one doing the reverse have identical pooled output distributions while behaving differently, so pooling would manufacture a false merge by construction. (2) Equality is tested by a permutation null rather than a naive bootstrap, because the unbiased MMD estimator [10] can be negative and degenerates under the null, exactly where equivalence decisions live. (3) Depth outputs get per-image affine (scale and shift) alignment so output conventions are not measured as behavior. (4) We do not claim the deterministic 0.99 precision calibration transfers, and report counts with exact bounds. The errors of this path are the errors of a hypothesis test rather than the tolerance-bounded verdicts of the deterministic path.
Setup and validity checks. We compare six neural skills over 40 probes, with 16 stochastic draws per probe, 2,000 permutations, and . The skills are SAM 2.1 hiera large and small for promptable segmentation, Depth Anything V2 large and small for monocular depth, and two purpose-built hard negatives, a disparity variant and a semantic-mask variant. Both validity checks pass. All 6/6 self-pairs are not distinguishable from themselves (the noise floor), and both 2/2 hard negatives are distinguished (exact CI [0.16, 1.00], wide because ).
Findings. The two depth models are distinguishable on all 40 probes (Tab. A.7). SAM 2 large and small separate on synthetic patterns (13 of 38 probes reject) but not on object-bearing images (0 of 10), so two capacities of the same architecture are not distinguishable at this power exactly where segmentation is defined. A non-rejection is absence of evidence, never equivalence. The instance-vs-semantic negative cannot show up on object-free inputs, where masks collapse to one region and make “best mask” and “union of masks” identical by construction, and with 137 of 177 probes synthetic, the default battery is not a valid domain for segmentation skills. Both domains are reported, and we disclose that the restriction to object-bearing images was chosen after seeing the full-battery result. The disparity variant was distinguishable from itself because explodes near zero depth, letting one-LSB jitter dominate the normalized map. It was fixed with a 5th-percentile floor, the unstable run is archived, and we corrected a tally of the validity checks that had silently dropped the depth-vs-disparity row, reporting 1/1 instead of 2/2.
Table A.4. Mean F1 by corruption rate ( episodes per cell). Difficulty is not monotone in , and the direction is model-dependent.
| Model | ρ=0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1.0 |
|---|---|---|---|---|---|---|---|---|---|---|
| GPT-5.5 | 0.420 | 0.521 | 0.579 | 0.596 | 0.621 | 0.641 | 0.624 | 0.628 | 0.625 | 0.612 |
| Qwen 3.5 27B | 0.457 | 0.476 | 0.522 | 0.559 | 0.523 | 0.512 | 0.524 | 0.519 | 0.484 | 0.474 |
| Gemma 4 12B | 0.378 | 0.384 | 0.356 | 0.353 | 0.321 | 0.252 | 0.231 | 0.209 | 0.210 | 0.206 |
| Qwen 3.5 4B | 0.216 | 0.226 | 0.185 | 0.160 | 0.120 | 0.068 | 0.048 | 0.033 | 0.017 | 0.018 |
| Qwen 3.5 9B | 0.332 | 0.229 | 0.176 | 0.098 | 0.055 | 0.043 | 0.025 | 0.007 | 0.027 | 0.018 |
| Llama 3.1 8B | 0.205 | 0.186 | 0.124 | 0.118 | 0.079 | 0.067 | 0.049 | 0.053 | 0.038 | 0.028 |
| Llama 3.2 3B | 0.067 | 0.032 | 0.021 | 0.016 | 0.024 | 0.021 | 0.020 | 0.014 | 0.014 | 0.007 |
| Qwen 3.5 2B | 0.049 | 0.039 | 0.020 | 0.006 | 0.005 | 0.005 | 0.002 | 0.003 | 0.002 | 0.001 |
| Llama 3.2 1B | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 | 0.000 |
Ended Rate by Model Family

Figure A.2. Percentage of runs that the models have ended using the END action.
Table A.5. Which cascade stage decides each pair (12,745 decisions). A majority is settled before any learned backend runs.
| Deciding stage | n | share |
|---|---|---|
| residual (distinct by elimination) | 6,020 | 47.2% |
| semantic | 2,672 | 21.0% |
| subsumption | 2,032 | 15.9% |
| complementary | 938 | 7.4% |
| exact | 918 | 7.2% |
| perceptual | 110 | 0.9% |
| abstention band | 55 | 0.4% |
F.2. Out-of-Distribution Certificate Flips
holds 31 probes across six classes absent from the shipped distribution (extreme aspect ratios, HDR, medical, satellite, saturated, tiny), with thresholds carried over un-
Table A.6. Token cost per correct repair on the 41 telemetry-instrumented episodes shared by both hosted models. The denominator is correct repairs, not actions applied.
| Model | actions | applied | correct | tokens (in/out) | tok./repair |
|---|---|---|---|---|---|
| GPT-5.5 | 4,233 | 2,537 | 2,200 | 18.3M / 1.96M | 9,202 |
| GPT-5.6-luna | 6,122 | 2,994 | 2,338 | 22.5M / 2.39M | 10,667 |
changed. The headline metric is the certificate-flip rate, the fraction of pairs certified EXACT or PERCEPTUAL on that diverge on . Of the 74 merges the verifier accepted on the real libraries (Sec. 5.4), exactly 1 flips. The pair alb.gaussian_blur vs cv2.GaussianBlur drops from PERCEPTUAL to SEMANTIC-PRESERVING, a flip rate of 0.0135 (exact CI [0.0003, 0.0730], one-sided upper bound ). The structural concern is therefore real, and its magnitude on this corpus is about . The subjects are real certified merges, so a flip means
Screening trade-off across neighbourhood size (radius = 0.05)

Figure A.3. Screening trade-off across neighbor count at radius 0.05, over ten corrupted instances (80 mergeable positives, 76,031 pairs). Merge recall saturates at while 95.1% of pairs are still discarded, and the curves are insensitive to radius from 0.05 to 2.0.
Candidate-set growth over nested random subsamples of

Figure A.4. Candidate-set growth over nested random subsamples of . The log-log fit is close to linear, and the share of all pairs that screening proposes falls from 66.7% at to 8.2% at .
a skill that behaves differently on unseen inputs would have been consolidated away. The study runs in the refutation direction only, since agreement on more data is not evidence of equivalence. No reverse-flip statistic is computed, because a DISTINCT pair looking mergeable on new inputs would be a threshold artifact rather than a discovery.
F.3. Probe-Battery Ablation
We test twenty-one configurations over the 24 designed pairs, including the six engineered hard negatives. They cross battery sizes with three selection strategies, plus backend ablations at full size. Subsets are nested, so any change is attributable to size alone, and every strategy is data-independent (class, index, or seed only), so selection cannot leak. Accuracy on the designed relations is flat in battery size (every interval overlaps every other at , roughly 0.33 to 0.58 across all cells), so there is no knee to report and none is invented.
Safety is not flat, and that is the result (Tab. A.8). The battery is ordered by probe class, so “first N” means all probes from one class, and that selection produces a hard-negative false merge that persists to while stratified
Cache footprint by library size
(a) Raw output cache

(b) Features-only cache

Figure A.5. Cache footprint by library size for (a) raw output sets and (b) backend features only. The measured unit is 214.8 MB per skill for raw outputs over the 177-probe battery (median of 8 builtin skills), against an analytic features-only cache, a saving at skills.
Table A.7. Distributional comparison of neural skills (permutation-null MMD, per probe). “Applicable” restricts to object-bearing images, the domain where segmentation is defined.
| Comparison | Domain | Verdict | min p |
|---|---|---|---|
| DAv2-Large vs DAv2-Small | full | distinguishable | 0.0005 |
| SAM2-Large vs SAM2-Small | full | distinguishable | 0.0005 |
| SAM2-Large vs SAM2-Small | applicable | not disting. | 0.0355 |
| depth vs disparity (hard neg.) | full | distinguishable | 0.0005 |
| instance vs semantic (hard neg.) | applicable | distinguishable | 0.0010 |
Table A.8. Hard-negative false merges by battery size and probe-selection strategy. Single-class selection (“first”) produces a false merge that stratified and random selection never do.
| Strategy | 16 | 32 | 64 | 128 | 177 | |
|---|---|---|---|---|---|---|
| stratified | 0 | 0 | 0 | 0 | 0 | 0 |
| first (single-class) | 1 | 1 | 1 | 1 | 0 | 0 |
| random | 0 | 0 | 0 | 0 | 0 | 0 |
and random selection never do. What protects merge safety is the diversity of the battery, not its size. The practical rule is to stratify probes by class rather than select them by index. In the backend ablation at full size, pixel-only matches the full stack on designed-relation accuracy (0.50 vs 0.46) with zero hard-negative false merges in every configuration, consistent with the cascade analysis showing of pairs decided before any learned backend runs. Throughout, the full battery is a reference rather than an oracle. A smaller battery that disagrees is less-evidenced, not wrong, and the designed relations are the only correctness signal.
G. Auditing Untrusted Repositories
Auditing an uncurated open-source skill collection can involve community repositories such as ComfyUI node packs. Importing such a pack executes its code, leaving no safe inspection phase beforehand. Our sandbox policy therefore rejects untrusted code on shared infrastructure by design. Rather than weakening this policy, we specify the audit protocol for an isolated environment instead.
Containment requires a disposable VM or container with no network access, a read-only root, a non-root user, and no host credentials or volume mounts. The VM is destroyed after the audit. An audit hook alone does not provide this level of isolation. We fix the measurement protocol in advance using stratified sampling, reporting results separately for the popular and long-tail strata, since the number of popular skills reflects deployment frequency rather than the size of the overall ecosystem. Each pack runs in its own isolated environment, with contract violations failing the check rather than being clamped, since clamping can produce false merges. Compression is estimated by simulated sequential curation that re-checks each step, not from connected components, since PERCEPTUAL is not transitive. The exclusion funnel (packs that fail import, execution, or contract) would itself be a reportable finding. We leave this audit to deployments with the required isolation, and note that the two real-library studies of Sec. 5.4 already answer the external-validity question it targets.