MCPcopy Create free account
hub / github.com/cli/cli / contamination

Function contamination

evals/src/core/observer.ts:165–168  ·  view source on GitHub ↗
(value: unknown, hiddenPaths: string[])

Source from the content-addressed store, hash-verified

163}
164
165export function contamination(value: unknown, hiddenPaths: string[]): string | undefined {
166 const text = JSON.stringify(value);
167 return hiddenPaths.find(path => text.includes(path) || text.includes(path.replaceAll("/", "\\/")));
168}
169
170/** Returns enabled skills the runtime offered the agent beyond those the trial intends. */
171export function unexpectedSkills(events: unknown[], expected: string[]): string[] {

Callers 2

harness.test.tsFile · 0.85
trialMethod · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected