fix/jev-triage-antiloop #69

Merged
clawdie merged 2 commits from fix/jev-triage-antiloop into main 2026-11-15 18:13:34 +01:00
Owner
No description provided.
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.
fix(hooks): evaluate resource-watchdog scope per shell clause and allow child ai repos
All checks were successful
format-check / gates (pull_request) Successful in 2s
524181d11e
- Split shell commands on unquoted clause separators (;, newline, &&, ||, |, background &) while preserving quoted Python/shell snippets and redirections (2>&1, &>)
- Tighten ~/ai root matching so unbounded recursive scans on ~/ai, ~/ai/, or ~/ai/** remain blocked while scoped child-repo commands (/ai/<repo>) and shallow find (-maxdepth <= 2) are allowed
- Avoid false-positive dotdir matches on repo-tracked skel paths (e.g. panel-skel/.config) and built-in grep pattern strings
clawdie deleted branch fix/jev-triage-antiloop 2026-11-15 18:13:34 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
clawdie/agent-skills!69
No description provided.