Repository navigation
Evidence: untracked-file contents, pytest summary parsing, optional runtime test-verification hook - #20
Evidence: untracked-file contents, pytest summary parsing, optional runtime test-verification hook#20tydinjarman wants to merge 4 commits into
Conversation
hermes workers write test files as UNTRACKED files (invisible to git diff)
and buffer their NDJSON output, so Jev never sees test evidence: on mraize
tests_sufficient flatlined at 0.05 for 16 assessments while tests passed
2/2. Two observation fixes:
- untracked_evidence: bounded head-of-content for up to 3 untracked text
files from git_status (skips binary/dirs, truncates large)
- test_results parsed from worker stdout pytest summary lines ('N passed',
'N failed, M passed') so executed-test evidence reaches the assessment
+6 tests. Full suite: 115 passed (2 pre-existing Windows failures).
With verify_tests_on_complete, foreman runs the repo's pytest suite itself after a coding worker completes (bounded by test_command_timeout) and emits a real TEST_RESULT event. This gives the supervisor hard, backend-independent test evidence — the missing channel for backends with buffered/silent output (hermes on Windows), where tests_sufficient could never converge. Failures are non-fatal (evidence-gathering, not a gate). +3 tests.
|
Thanks for documenting the evidence gap you observed. The core ideas here—showing bounded untracked-file content and extracting structured test evidence from worker output—are useful, but this branch is not ready to merge as-is. I reviewed it against current There are also a few correctness details that need tighter coverage. In particular, the runtime verification parser needs to handle normal failure-first pytest summaries such as Could you extract this into a fresh branch from current
That separation will let us review the security, observation-size, and process-lifecycle implications independently. |
|
Superseded by three focused PRs, rebuilt from current
No Hermes, policy, or session-script content. Closing this one. |
Title: Evidence: untracked-file contents, pytest summary parsing, optional runtime test-verification hook
Backends that buffer or summarize their output (Hermes Agent CLI on Windows,
in our case) leave the supervisor without executed-test evidence:
git diffnever shows untracked test files, and stdout may never contain a pytest
summary. Jev then scores
tests_sufficient~0.14 for a run that actuallypassed 2/2 (verified by direct pytest in the same working tree).
untracked_evidencein FactoryObservation: bounded head-of-content for upto 3 untracked text files (+4 tests).
test_results("N passed","N failed, M passed") (+4 tests).
FOREMAN_VERIFY_TESTS_ON_COMPLETE, defaultFalse): after a CODING worker completes, the runtime runs the repo's pytest
itself (bounded by
FOREMAN_TEST_COMMAND_TIMEOUT, default 120s) and emitsa real TEST_RESULT event. Backend-independent hard evidence; failures are
non-fatal — evidence-gathering, not a gate (+3 tests).
With the hook enabled we observed tests_sufficient climb 0.13 -> 0.57 across
a run (previously flatlined at ~0.14) and 3/3 FINISHes vs 4 prior ESCALATEs.