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.nestedExact 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
| Agent | Version | Environment | Result / evidence |
|---|---|---|---|
| antigravity-cli | 1.1.27 | linux x64 | pass → |
| codex | 0.153.4 | linux x64 | pass → |
| codex | 0.153.4 | linux x64 | pass → |
| codex | 0.153.4 | linux x64 | pass → |
| codex | 0.153.4 | linux x64 | pass → |
| opencode | 1.18.29 | linux x64 | pass → |
| opencode | 1.18.29 | linux x64 | pass → |
| opencode | 1.18.29 | linux x64 | pass → |
| opencode | 1.18.29 | linux x64 | pass → |