fix/jev-triage-antiloop #69
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/jev-triage-antiloop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Four friction bugs from the 14.nov live recon, each one capable of sending an agent around the same ~20-turn loop. 1. `--out FILE` on `jev_probe` and `jev_eval` writes the parsed result document, byte-identical to stdout, for the live path, `--check`, and dry runs. `--dump-response` stays raw transport on purpose and now says so in `--help`: it stores `{"schema": ..., "results": {"...": "<raw HTTP JSON string>"}}`, so `data["answers"]` there is `None`/`KeyError`. Reading the wrong file was the loop trigger, not a model problem. 2. `jev_batch` accepts `--caller-attribution LABEL` and passes it to `jev_eval.evaluate`/`run_job_fit`, so a batch result carries the same attribution a single call would. 3. `jev_batch` no longer reads its own output as input: `*.result.json`, `matrix.json`, and `*.matrix.json` are skipped by name, anything already in `--out` is excluded, an explicitly named artifact is a usage error, and a result-shaped document (`answers`, dump envelope, batch summary, dry-run payload) fails its row with a clear reason. A rerun in a dirty directory can no longer score its own answers. 4. The packet secret scan is scoped: question ids and `choice` criteria option ids are schema, not caller field names, and a key whose value is a non-string primitive (`"api_keys": 0`, `"has_token": true`) is a count, so neither trips SECRET_KEY_NAMES any more. A probe that asks a question *about* secret scanning (`allow_bool_int_null_values_in_secret_scan`) used to exit 8 before any request went out. String values are still scanned everywhere, and string- or container-valued credential-shaped fields are still rejected. SKILL.md documents `--out` vs `--dump-response`, the anti-loop rule (read the exit code, the typed answer shape, and `--out` before re-sending; two follow-up probes maximum), and the calibrated question-shape rule: `noul` + anchored `score` + one negative-control `noul` + at most one mutually-exclusive *state* `choice`, never a counterfactual causal `choice` matrix (19/27 ambiguous cells and 0.81-0.84 self-contradiction versus conf 1.00 on the same material). Tests: 199 passed (`python3 -m unittest discover -s tests`), 14 of them fail on the previous code (checked by stashing the three tools), `py_compile` clean, and the Forge link check is 0 failures.