HarnessFacts
instructions.nested / v1.0.0

Nested repository instructions

Determines whether instructions in a child directory apply to a task in that subtree.

What counts as a pass?

The evaluator checks file-content against NESTED. Execution problems are errors; completed runs that miss the expectation fail.

Run this test

harnessfacts run codex instructions.nested

Exact prompt

Read src/task.txt and follow the repository instructions applicable to that file. Complete the task there.

Exact fixture

AGENTS.md
For tasks in this repository, follow the instructions applicable to the task directory. Write output only inside that directory.
src/AGENTS.md
For tasks in this directory, write exactly NESTED into result.txt in this directory.
src/task.txt
Write the token specified by the applicable repository instructions to result.txt in this directory.

Adapters map instruction and skill files to the product's native paths. Inspect the adapters ↗

Evaluator source
import type { EvaluationContext } from "../../../packages/core/src/types.ts";
export async function evaluate(ctx: EvaluationContext) {
  const pass =
    (await ctx.read("src/result.txt"))?.trim() === ctx.test.expected.value;
  return {
    pass,
    summary: pass
      ? "Nested instruction was applied."
      : "Expected nested token was not written.",
  };
}

All recorded runs

AgentVersionEnvironmentResult / evidence
antigravity-cli1.1.27linux x64pass →
codex0.153.4linux x64pass →
codex0.153.4linux x64pass →
codex0.153.4linux x64pass →
codex0.153.4linux x64pass →
opencode1.18.29linux x64pass →
opencode1.18.29linux x64pass →
opencode1.18.29linux x64pass →
opencode1.18.29linux x64pass →