diff --git a/README.md b/README.md index d41bf54..4b88539 100644 --- a/README.md +++ b/README.md @@ -36,14 +36,12 @@ schema_version: 1 id: output_file_exists type: deterministic description: Verify that output.json was generated. -target_paths: - - output.json script: | import json, sys from pathlib import Path ctx = json.loads(Path(sys.argv[1]).read_text()) - target = ctx["targets"][0] - assert target["exists"], f"{target['path']} not found" + output = Path(ctx["project_root"]) / "output.json" + assert output.exists(), "output.json not found" ``` ### Harness judge check @@ -53,10 +51,8 @@ schema_version: 1 id: summary_is_accurate type: harness_judge description: The generated summary accurately reflects source data. -target_paths: - - summary.txt - - source_data.json instructions: | + Read summary.txt and source_data.json. Compare the summary against the source data. Score 1 if accurate, 0 if it contains fabricated claims. ``` diff --git a/docs/check-format.md b/docs/check-format.md index eccfba4..2b0cfc4 100644 --- a/docs/check-format.md +++ b/docs/check-format.md @@ -14,12 +14,11 @@ All check types share these fields: | `id` | string | Yes | Unique identifier (`[a-zA-Z0-9_-]` only) | | `type` | string | Yes | One of: `deterministic`, `harness_judge` | | `description` | string | Yes | Human-readable description | -| `target_paths` | list[string] | No | Files/directories the check operates on | | `tags` | list[string] | No | Tags for filtering (future use) | ## Deterministic checks -Run a Python script that asserts conditions about target files. +Run a Python script that asserts conditions about project files. | Field | Type | Required | Description | |---|---|---|---| @@ -30,11 +29,10 @@ Exactly one of `script` or `script_path` must be set. ### How it works -1. Target paths are resolved relative to the project root -2. A `context.json` file is written with check metadata and resolved targets -3. The script runs as `python