Add a unified scorer that watches all active iterations simultaneously.
CURRENT: Each iteration needs its own watch_scoring process started manually. If you forget to start one, predictions pile up unscored. If a scorer dies, that iteration stops getting scored.
DESIRED: One command that finds all active iterations and scores them all:
python -m evals.watch_scoring_all
APPROACH:
Add a new script evals/watch_scoring_all.py (~50 lines)
It scans results/auto-improve/ for iteration dirs with _task_manifest.json
For each active iteration (has pending/claimed tasks OR unscored predictions), run scoring
Loop: poll all iterations, score any new predictions, sleep, repeat
Reuse the existing _score_single_prediction function from watch_scoring.py
Write to each iteration's own _watch_scores.json (same format, same location)
KEEP IT SIMPLE:
Single-threaded — score one prediction at a time across all iterations
Batch framing:
- Execute batch 1 of 2.
- Actionable task IDs for this batch: ['T1']
- Already completed task IDs available as dependency context: []
Actionable tasks for this batch:
[
{
"id": "T1",
"description": "Create evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main() with argparse. Must import and reuse _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring. Use a per-iteration run_id (not a single session-level one) to avoid FLAG-WSA-002 log scoping collision. Each iteration gets its own run_id like the existing watch_and_score does. Single-threaded Modal-only scoring. Round-robin across iterations, re-discover each loop. Print progress with iteration name prefix. Exit on all_done + no scorable or timeout. Handle KeyboardInterrupt cleanly.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Assistant
{"output":"Implemented batch task T1 by adding evals/watch_scoring_all.py, a standalone unified scorer that re-discovers active iterations, reuses the existing watch-scoring helpers, assigns per-iteration run_ids, and scores one prediction at a time in round-robin order. A best-effort batch checkpoint was written to , and the new module passed a lightweight syntax check.","files_changed":["evals/watch_scoring_all.py",".megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_1.json"],"commands_run":["python -m py_compile evals/watch_scoring_all.py","wc -l evals/watch_scoring_all.py","python - <<'PY'\nimport json\nfrom pathlib import Path\npath = Path('.megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_1.json')\njson.loads(path.read_text())\nprint('ok')\nPY","git status --short -- evals/watch_scoring_all.py .megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_1.json"],"deviations":[],"task_updates":[{"task_id":"T1","status":"done","executor_notes":"Added with , , , and . Verified the module compiles, stays under 100 lines, reuses the existing watch-scoring helpers instead of duplicating scoring execution, uses per-iteration run_ids to isolate log/report paths, and handles with a clean interrupted exit path.","files_changed":["evals/watch_scoring_all.py"],"commands_run":["python -m py_compile evals/watch_scoring_all.py","wc -l evals/watch_scoring_all.py"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC1","executor_note":"Confirmed the new module imports and calls , , , and from ; scoring execution stays centralized in the existing watcher helpers."},{"sense_check_id":"SC2","executor_note":"Confirmed run IDs are stored per iteration path via a map and generated as , avoiding a shared session-level run_id and the associated log/report collisions."},{"sense_check_id":"SC3","executor_note":"Confirmed is 98 lines and catches , emits an interrupted stop line, and returns exit code 130."}]}
User
Assistant
Batch 2 is verification-only. I’m checking module importability, module CLI help output, and the evals package marker before writing the batch checkpoint.
Assistant
The requested verification passed as-is: import resolution, --help, and evals/__init__.py. No code changes are needed for batch 2, so I’m recording the checkpoint artifact next.
Assistant
{"output":"Verified batch task T2 for evals.watch_scoring_all. The module import check succeeded, python -m evals.watch_scoring_all --help exited 0 and showed the expected CLI options, and evals/__init__.py exists. No fixes were required. A best-effort checkpoint was written to .megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_2.json.","files_changed":[".megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_2.json"],"commands_run":["python -c "from evals.watch_scoring_all import discover_active_iterations; print('OK')"","python -m evals.watch_scoring_all --help","test -f evals/init.py && echo exists","python - <<'PY'\nimport json\nfrom pathlib import Path\npath = Path('.megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_2.json')\njson.loads(path.read_text())\nprint('ok')\nPY","git status --short -- .megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_2.json evals/watch_scoring_all.py evals/.py"],"deviations":[],"task_updates":[{"task_id":"T2","status":"done","executor_notes":"Verified that imports cleanly, that exits 0 with , , and , and that exists. No implementation changes were needed.","files_changed":[],"commands_run":["python -c "from evals.watch_scoring_all import discover_active_iterations; print('OK')"","python -m evals.watch_scoring_all --help","test -f evals/.py && echo exists"]}],"sense_check_acknowledgments":[{"sense_check_id":"SC4","executor_note":"Confirmed exited 0 and displayed , , and ."}]}
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[]
Prior batch deviations (address if applicable):
None
Batch-scoped sense checks:
[
{
"id": "SC1",
"task_id": "T1",
"question": "Does the script import _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring without duplicating any scoring logic?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T1",
"question": "Does each iteration get its own run_id (not a shared session-level one) to avoid log directory collisions per FLAG-WSA-002?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T1",
"question": "Is the script under ~100 lines and does it handle KeyboardInterrupt for clean exit?",
"executor_note": "",
"verdict": ""
}
]
code
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main() with argparse. Must import and reuse _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring. Use a per-iteration run_id (not a single session-level one) to avoid FLAG-WSA-002 log scoping collision. Each iteration gets its own run_id like the existing watch_and_score does. Single-threaded Modal-only scoring. Round-robin across iterations, re-discover each loop. Print progress with iteration name prefix. Exit on all_done + no scorable or timeout. Handle KeyboardInterrupt cleanly.",
"depends_on": [],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Verify the implementation: (1) Run python -c \"from evals.watch_scoring_all import discover_active_iterations; print('OK')\" to confirm imports resolve. (2) Run python -m evals.watch_scoring_all --help and confirm it exits 0 with usage text. (3) Confirm evals/init.py exists. Fix any issues found.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"FLAG-WSA-001: Do NOT use watch_scoring_all alongside per-iteration watch_scoring launched by run_experiment. They will race on _watch_scores.json. This script is for manual/standalone use only.",
"FLAG-WSA-002: Use per-iteration run_ids (generate a new run_id for each iteration, not one shared session run_id). This prevents log directory collisions when the same instance_id appears in multiple iterations.",
"FLAG-WSA-003: No auto-restart or _scorer_status.json writing. The dashboard won't show status for this unified scorer. Acceptable for v1 \u2014 operator can wrap externally.",
"DEBT scoring-orchestration: Do not wire watch_scoring_all into run_experiment or parallel.py. Keep it a standalone manual tool.",
"DEBT scoring-log-scoping: Per-iteration run_id is the mitigation. Each iteration's scoring logs land in their own run_id directory.",
"DEBT scorer-lifecycle: Acknowledged \u2014 no restart wrapper. Document in script docstring that it can be restarted manually.",
"Keep script under ~100 lines total.",
"Reuse functions from watch_scoring.py \u2014 do NOT duplicate scoring logic."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the script import _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring without duplicating any scoring logic?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T1",
"question": "Does each iteration get its own run_id (not a shared session-level one) to avoid log directory collisions per FLAG-WSA-002?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T1",
"question": "Is the script under ~100 lines and does it handle KeyboardInterrupt for clean exit?",
"executor_note": "",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T2",
"question": "Does python -m evals.watch_scoring_all --help exit 0 and show --base-dir, --poll-interval, --timeout options?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "This is a straightforward single-file addition. Key judgment calls:\n\n1. Per-iteration run_id (FLAG-WSA-002 mitigation): The plan says "generate a single run_id for the session" but this causes log collisions when the same instance_id appears in multiple iterations. Instead, maintain a dict mapping iteration path -> run_id, generating a new one per iteration on first encounter. This matches the existing watch_and_score behavior where each invocation gets its own run_id.\n\n2. find_scorable replicates logic from watch_and_score lines 56-97: Load manifest, get done_ids, glob predictions, compute retryable/exhausted sets, return scorable list. This is orchestration logic, not scoring logic \u2014 it must be replicated since watch_and_score bundles it into its main loop rather than exposing it as a function.\n\n3. No integration with run_experiment (FLAG-WSA-001): This is a standalone manual tool. Do not modify parallel.py or run_experiment.py.\n\n4. The _format_progress_line function from watch_scoring.py can be reused for progress output \u2014 just prefix with iteration name.\n\n5. Score one prediction per loop iteration across all iterations \u2014 find all scorable across all iterations, score the first one found, then re-loop. This naturally round-robins since discover_active_iterations returns sorted paths.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Create evals/watch_scoring_all.py with discover_active_iterations, find_scorable, watch_all, main, and main guard",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Confirm evals package has init.py and script is runnable as module",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Verify implementation with import check, --help check, and brief run",
"finalize_task_ids": [
"T2"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All 3 plan steps are covered. Steps 2 and 3 are both verification steps combined into T2. The brief live run with --timeout 5 from Step 3 is included in T2 verification but may not find active iterations \u2014 the import and --help checks are the primary validation.",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the planned response parsing against the real trace outputs. the final critique messages in the repository commonly contain prose followed by a json object, but the implementation section reduces parsing to case-insensitive substring search over the raw response text. that is weaker than the requested 'try to extract json' behavior and can miscount a keyword that appears outside the actual findings payload. (flagged 2 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the revised parsing approach against the real trace outputs. the repository’s saved critique responses are not plain json strings; they include prose prefixes, and at least one target trace (django__django-10973) wraps the json in a fenced code block. a case-insensitive substring scan over the whole response can still credit a model for mentioning a keyword anywhere in wrapper text without proving the keyword appeared in the actual critique findings, so the core comparison logic remains weaker than the requested 'extract json and inspect findings' behavior. (flagged 2 times across 1 plans)
[DEBT] config-reproducibility: openrouter_params (temperature, top_p) are recorded in config but cannot be applied because neither hermes aiagent nor the megaplan cli expose inference parameter controls. (flagged 1 times across 1 plans)
[DEBT] critique-schema-validation: json schema alone cannot enforce exactly one of each check id — duplicates could pass schema validation. (flagged 1 times across 1 plans)
[DEBT] critique-severity-mapping: hard-coded likely-significant severity for all flagged checks may over-weight minor findings in gate scoring. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: improvement #1 (patch filter) is not implemented in this plan — only documented as a hermes-agent follow-up. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: plan delivers 3 of 4 requested improvements. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: highest-priority fix downgraded to documentation-only follow-up. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: hermes-agent _extract_planned_files() and score() not touched. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: success criteria don't include a must-have for improvement #1. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: checked the user requirement 'parse the response — try to extract json' against the revised step 1 implementation. the plan explicitly declines json extraction and keeps raw substring search instead, even though the saved django__django-10973 critique trace shows a prose preamble followed by a fenced ```json block, so this requirement is still only partially covered. (flagged 2 times across 1 plans)
[DEBT] docker-sandbox-init: file_tools.py does not forward docker_mount_cwd_to_workspace when creating the docker sandbox, so if read_file/write_file is the first tool call, the host workspace bind mount may not be set up. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-change-a-function-with-multiple-callers-would-the-change-break-any: does the plan change a function with multiple callers? would the change break any?: flagged. the validation path is shared across three runtime callers, not just the two workers.py sites named in the plan: claude at megaplan/workers.py:765-767, codex at megaplan/workers.py:841-843, and hermes at megaplan/hermes_worker.py:291-299. if the new critique-completeness validation/retry is only wired in workers.py, hermes critique runs will still accept incomplete payloads and behave differently. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-follow-what-the-issue-hints-suggest: does the plan follow what the issue/hints suggest?: flagged. the plan does not match the requested contract from the user notes. it assumes the wrong two new checks (error_handling and test_coverage instead of correctness, scope, all_locations, callers, conventions, issue_hints, verification), keeps extra issues under flags instead of additional_concerns, models each check as a single finding string instead of a findings list of {detail, flagged}, and only proposes a gate summary even though the notes require the gate to see the full checks array. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-touch-all-locations-where-this-bug-pattern-exists: does the plan touch all locations where this bug/pattern exists?: flagged. the file/test inventory is incomplete. there is no tests/test_handlers.py; the handler coverage lives in tests/test_megaplan.py:1121-1245. gate coverage is in tests/test_evaluation.py:782-990, and critique schema coverage is in tests/test_schemas.py:107-116. if flags is renamed to additional_concerns, more code paths need updates than the plan lists, including megaplan/handlers.py:278-280,924,958, megaplan/evaluation.py:253-256, megaplan/prompts.py:661,773, and megaplan/workers.py:346-369. hermes also appends its own schema-derived json template at megaplan/hermes_worker.py:135-140, so prompt-prefill work is not isolated to prompts.py. (flagged 1 times across 1 plans)
[DEBT] execute-loop-control-flow: the 'all tasks done but state stuck on finalized' break path at line 562 would skip verify if verify is inserted after the execute block. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: finalize validation block is advisory and can become stale after _ensure_verification_task() mutates the task list post-model-output. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: validation block can be wrong immediately after finalize returns due to _ensure_verification_task() appending tasks after model output. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: step 4 under-budgets handler work as optional when it requires explicit validation-consistency logic. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: missing test coverage for handle_finalize() path where _ensure_verification_task() appends a task and validation block must be updated. (flagged 1 times across 1 plans)
[DEBT] finalize-validation-schema: plan_steps_covered uses singular finalize_task_id but finalize allows one-to-many plan-step-to-task mapping. (flagged 1 times across 1 plans)
[DEBT] handler-routing: handler layer hardcodes planned→critique transitions that the plan doesn't explicitly enumerate for update. (flagged 1 times across 1 plans)
[DEBT] handler-routing: manual megaplan research cli invocation can strand plans in state_researched with no workflow exit transition. (flagged 1 times across 1 plans)
[DEBT] hermes-config: availability check references ~/.hermes/config.yaml for api keys, but hermes stores them in ~/.hermes/.env. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-appropriate: is the scope appropriate?: flagged. the plan is under-scoped for the requested data-model change. update_flags_after_critique() currently only understands check['finding'] and appends into critique['flags'] at megaplan/handlers.py:268-280; handle_critique() still counts and summarizes flags at megaplan/handlers.py:924,958; compute_recurring_critiques() still compares flags only at megaplan/evaluation.py:253-256; and build_gate_signals() does not currently carry critique checks at megaplan/evaluation.py:507-530. supporting findings[], additional_concerns, and full gate visibility needs broader handler/evaluation changes than the plan budgets. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the verification story is still incomplete for the parser itself. the dry run verifies field stripping, and the live run verifies that responses come back, but there is still no planned repo-local check that the keyword matcher behaves correctly on the actual saved response shape already present in the traces, including prose preambles and fenced json. that leaves the most judgment-sensitive part of the script to manual eyeballing after the fact. (flagged 2 times across 1 plans)
[DEBT] join-workflow: the --join cli has no enforced source of truth for original run settings, so a mismatched config could attach wrong models/workspace layout to an existing manifest. (flagged 1 times across 1 plans)
[DEBT] module-layout: hermes_worker.py importing workerresult from workers.py while workers.py imports run_hermes_step from hermes_worker.py creates a circular import. (flagged 1 times across 1 plans)
[DEBT] module-layout: the evals/ top-level package is outside the distributable module set and won't be included in wheel builds. (flagged 1 times across 1 plans)
[DEBT] orchestrator-lifecycle: the manifest.all_done() polling loop can hang indefinitely if a worker crashes and leaves tasks in 'claimed' state with no timeout or reclaim mechanism. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: no new test assertions for the execute prompt wording additions. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: no test coverage for _ensure_verification_task() description text. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: test_swe_bench.py validates an unused helper, not active runtime. (flagged 1 times across 1 plans)
[DEBT] research-prompt: plan omits the brief's explicit 'compare against at least 2 search results' requirement. (flagged 1 times across 1 plans)
[DEBT] response-parsing: response parsing: the revised plan still keeps raw substring matching over the full response text instead of trying to extract the json findings first. the target traces already show prose-prefixed and fenced-json outputs, so this can mis-credit or miss findings when the experiment is supposed to compare critique judgment rather than mere token presence. (flagged 2 times across 1 plans)
[DEBT] response-parsing: substring search may mis-credit keywords from prose context (flagged 1 times across 1 plans)
[DEBT] response-parsing: user said 'try to extract json' but plan uses substring search (flagged 1 times across 1 plans)
[DEBT] response-parsing: substring search weaker than json extraction (flagged 1 times across 1 plans)
[DEBT] response-parsing: prose-prefixed responses could cause false keyword attribution (flagged 1 times across 1 plans)
[DEBT] review-schema-contract: plan keeps issues required contrary to the idea's request to deprecate it. (flagged 1 times across 1 plans)
[DEBT] review-schema-contract: no defined rule for keeping issues and rework_items in sync — two caller populations could see different defect summaries. (flagged 1 times across 1 plans)
[DEBT] schema-validation: proposed framework_versions object schema will be rejected by the strict additionalproperties:false rewriter. (flagged 1 times across 1 plans)
[DEBT] schema-validation: prompt wording alone cannot prevent empty or content-free consideration entries since the schema only requires severity. (flagged 1 times across 1 plans)
[DEBT] scorer-lifecycle: scorer lifecycle: the plan explicitly drops the restart/status wrapper, but the current repo's operator path depends on that behavior. a unified scorer without equivalent restart handling and per-iteration status updates creates a single point of failure and removes the dashboard's reliable health signal for active iterations. (flagged 1 times across 1 plans)
[DEBT] scoring-backend: watch scoring is docker-only; modal scoring is not supported. (flagged 1 times across 1 plans)
[DEBT] scoring-consolidation: consolidate.py scans a global logs/run_evaluation/ path and could pick up stale reports from prior iterations running the same 20 instance ids. (flagged 1 times across 1 plans)
[DEBT] scoring-diffing: git diff head~1 fails when the workspace has only one initial commit before execution begins. (flagged 1 times across 1 plans)
[DEBT] scoring-diffing: scoring diffing: the step 1 patch-filter change does not reliably contain dirty-workspace or test-file contamination, because score() falls back to the full git diff whenever the filtered diff is empty and existing finalize artifacts already show files_changed can be empty. (flagged 1 times across 1 plans)
[DEBT] scoring-log-scoping: scoring log scoping: the plan's single session-level run_id is incompatible with the current per-iteration log model. this repo treats _watch_scores.json[run_id] as iteration-scoped; using one shared run_id across iterations can collide reports for repeated task/model pairs and can also bleed unrelated reports into an iteration's scoped consolidation. (flagged 1 times across 1 plans)
[DEBT] scoring-normalization: score_experiment.py normalization path does not yet copy error_category through to scores.json, which step 8's regression analysis depends on. (flagged 1 times across 1 plans)
[DEBT] scoring-orchestration: scoring orchestration: auto_improve.run_experiment already launches per-iteration watch scoring via run_parallel_workers(..., scoring_mode="watch"), and evals.parallel starts watch_and_score(results_root) in a background thread. the plan adds evals.watch_scoring_all but does not disable or reroute that path, so the supported auto-improve flow can end up with two scorers hitting the same iteration, duplicating swe-bench runs and racing on _watch_scores.json. (flagged 1 times across 1 plans)
[DEBT] session-lifecycle: _cleanup_hermes_sessions() hard-codes path.home() / '.hermes' / 'sessions', ignoring hermes_home. parallel workers may delete session files from the default location. (flagged 2 times across 1 plans)
[DEBT] swebench-harness-invocation: verify runs full instance evaluation via run_evaluation rather than targeting individual test ids. (flagged 1 times across 1 plans)
[DEBT] swebench-harness-invocation: read_prompt() has no caller in this repository yet, so fail_to_pass test ids won't reach megaplan prompts until a follow-up wires it in. (flagged 1 times across 1 plans)
[DEBT] task-set-validation: representative_sample was authored alongside swe-bench_lite code paths but the plan uses swe-bench_verified — no explicit check that all 20 ids exist in verified. (flagged 1 times across 1 plans)
[DEBT] test-coverage: plan references wrong test files for workflow assertions. (flagged 1 times across 1 plans)
[DEBT] test-coverage: test_schemas.py:119-161 not in the explicit test update list despite directly asserting finalize/review schema shapes. (flagged 1 times across 1 plans)
[DEBT] trace-collection: session log path is ~/.hermes/sessions/ not ~/.hermes/logs/, and sessions are reused across megaplan phases, so naive reads return cumulative history rather than phase-isolated snapshots. (flagged 1 times across 1 plans)
[DEBT] trace-instrumentation: the plan captures normalized session logs and aggregate cost/token counters from run_conversation(), not raw http request/response payloads or openrouter response headers. (flagged 1 times across 1 plans)
[DEBT] validation: validation: the plan's execution/validation path does not actually measure the stated success target. it proposes a 5-task eval subset, but the success criteria require demonstrating 75%+ on a 15-task run. (flagged 1 times across 1 plans)
[DEBT] validation-assets: validation assets: step 7 depends on an 'existing workspace from iteration-003' to exercise _extract_planned_files(), but this repository does not currently contain the required finalize artifacts there, so the validation step cannot be executed as written. (flagged 1 times across 1 plans)
[DEBT] verification: no repo-local test of keyword matcher on real response shapes (flagged 1 times across 1 plans)
[DEBT] verify-artifact-isolation: multiple verify attempts may leave stale result artifacts that _check_resolved() picks up, causing false positives. (flagged 1 times across 1 plans)
[DEBT] verify-artifact-isolation: startup cleanup and restart idempotency are in tension — cleaning the run_id's artifacts on startup would delete reports that the restart logic wants to re-verify. (flagged 1 times across 1 plans)
[DEBT] watch-scoring: watch scoring: critical: the plan targets the wrong root cause for the early-stop issue. the proposed 'manifest all_done before predictions flush to disk' race contradicts the current repository flow, where predictions are written during benchmark.score() before the task is marked done in the manifest. (flagged 1 times across 1 plans)
[DEBT] worker-contract: plan's sample workerresult constructor uses non-existent fields (output, input_tokens, output_tokens) instead of actual fields (payload, raw_output). (flagged 1 times across 1 plans)
[DEBT] worker-dispatch: plan's sample function signature (phase, prompt, schema_dir, model) doesn't match the actual worker signature (step, state, plan_dir, *, root, ...). (flagged 1 times across 1 plans)
[DEBT] worker-dispatch: research on non-hermes agents silently falls back to stale training data instead of fresh web searches. (flagged 1 times across 1 plans)
[DEBT] workflow-enforcement: handle_plan accepts both state_initialized and state_prepped, so a manual cli invocation could skip prep on heavy robustness. (flagged 2 times across 1 plans)
[DEBT] workspace-cache-isolation: per-iteration workspace dirs share a parent-level _repo_cache, so bare-repo clones are shared across iterations. (flagged 1 times across 1 plans)
[DEBT] workspace-lifecycle: stale per-worker prediction dirs from crashed prior runs could be globbed into a subsequent run's combined_predictions.jsonl. (flagged 2 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: light.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T1]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC1, SC2, SC3]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/hermes-agent/.megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_1.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
Add a unified scorer that watches all active iterations simultaneously.
CURRENT: Each iteration needs its own watch_scoring process started manually. If you forget to start one, predictions pile up unscored. If a scorer dies, that iteration stops getting scored.
DESIRED: One command that finds all active iterations and scores them all:
python -m evals.watch_scoring_all
APPROACH:
Add a new script evals/watch_scoring_all.py (~50 lines)
It scans results/auto-improve/ for iteration dirs with _task_manifest.json
For each active iteration (has pending/claimed tasks OR unscored predictions), run scoring
Loop: poll all iterations, score any new predictions, sleep, repeat
Reuse the existing _score_single_prediction function from watch_scoring.py
Write to each iteration's own _watch_scores.json (same format, same location)
KEEP IT SIMPLE:
Single-threaded — score one prediction at a time across all iterations
Batch framing:
- Execute batch 2 of 2.
- Actionable task IDs for this batch: ['T2']
- Already completed task IDs available as dependency context: ['T1']
Actionable tasks for this batch:
[
{
"id": "T2",
"description": "Verify the implementation: (1) Run python -c \"from evals.watch_scoring_all import discover_active_iterations; print('OK')\" to confirm imports resolve. (2) Run python -m evals.watch_scoring_all --help and confirm it exits 0 with usage text. (3) Confirm evals/init.py exists. Fix any issues found.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
]
code
Completed task context (already satisfied, do not re-execute unless directly required by current edits):
[
{
"id": "T1",
"description": "Create evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main() with argparse. Must import and reuse _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring. Use a per-iteration run_id (not a single session-level one) to avoid FLAG-WSA-002 log scoping collision. Each iteration gets its own run_id like the existing watch_and_score does. Single-threaded Modal-only scoring. Round-robin across iterations, re-discover each loop. Print progress with iteration name prefix. Exit on all_done + no scorable or timeout. Handle KeyboardInterrupt cleanly.",
"depends_on": [],
"status": "done",
"executor_notes": "Added evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main(). Verified the module compiles, stays under 100 lines, reuses the existing watch-scoring helpers instead of duplicating scoring execution, uses per-iteration run_ids to isolate log/report paths, and handles KeyboardInterrupt with a clean interrupted exit path.",
"files_changed": [
"evals/watch_scoring_all.py"
],
"commands_run": [
"python -m py_compile evals/watch_scoring_all.py",
"wc -l evals/watch_scoring_all.py"
],
"evidence_files": [],
"reviewer_verdict": ""
}
]
Full execution tracking source of truth (`finalize.json`):
{
"tasks": [
{
"id": "T1",
"description": "Create evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main() with argparse. Must import and reuse _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring. Use a per-iteration run_id (not a single session-level one) to avoid FLAG-WSA-002 log scoping collision. Each iteration gets its own run_id like the existing watch_and_score does. Single-threaded Modal-only scoring. Round-robin across iterations, re-discover each loop. Print progress with iteration name prefix. Exit on all_done + no scorable or timeout. Handle KeyboardInterrupt cleanly.",
"depends_on": [],
"status": "done",
"executor_notes": "Added evals/watch_scoring_all.py with discover_active_iterations(), find_scorable(), watch_all(), and main(). Verified the module compiles, stays under 100 lines, reuses the existing watch-scoring helpers instead of duplicating scoring execution, uses per-iteration run_ids to isolate log/report paths, and handles KeyboardInterrupt with a clean interrupted exit path.",
"files_changed": [
"evals/watch_scoring_all.py"
],
"commands_run": [
"python -m py_compile evals/watch_scoring_all.py",
"wc -l evals/watch_scoring_all.py"
],
"evidence_files": [],
"reviewer_verdict": ""
},
{
"id": "T2",
"description": "Verify the implementation: (1) Run python -c \"from evals.watch_scoring_all import discover_active_iterations; print('OK')\" to confirm imports resolve. (2) Run python -m evals.watch_scoring_all --help and confirm it exits 0 with usage text. (3) Confirm evals/init.py exists. Fix any issues found.",
"depends_on": [
"T1"
],
"status": "pending",
"executor_notes": "",
"files_changed": [],
"commands_run": [],
"evidence_files": [],
"reviewer_verdict": ""
}
],
"watch_items": [
"FLAG-WSA-001: Do NOT use watch_scoring_all alongside per-iteration watch_scoring launched by run_experiment. They will race on _watch_scores.json. This script is for manual/standalone use only.",
"FLAG-WSA-002: Use per-iteration run_ids (generate a new run_id for each iteration, not one shared session run_id). This prevents log directory collisions when the same instance_id appears in multiple iterations.",
"FLAG-WSA-003: No auto-restart or _scorer_status.json writing. The dashboard won't show status for this unified scorer. Acceptable for v1 \u2014 operator can wrap externally.",
"DEBT scoring-orchestration: Do not wire watch_scoring_all into run_experiment or parallel.py. Keep it a standalone manual tool.",
"DEBT scoring-log-scoping: Per-iteration run_id is the mitigation. Each iteration's scoring logs land in their own run_id directory.",
"DEBT scorer-lifecycle: Acknowledged \u2014 no restart wrapper. Document in script docstring that it can be restarted manually.",
"Keep script under ~100 lines total.",
"Reuse functions from watch_scoring.py \u2014 do NOT duplicate scoring logic."
],
"sense_checks": [
{
"id": "SC1",
"task_id": "T1",
"question": "Does the script import _score_single_prediction, _load_scores_data, _refresh_scores_summary, _write_incremental_results from evals.watch_scoring without duplicating any scoring logic?",
"executor_note": "Confirmed the new module imports and calls , , , and from ; scoring execution stays centralized in the existing watcher helpers.",
"verdict": ""
},
{
"id": "SC2",
"task_id": "T1",
"question": "Does each iteration get its own run_id (not a shared session-level one) to avoid log directory collisions per FLAG-WSA-002?",
"executor_note": "Confirmed run IDs are stored per iteration path via a map and generated as , avoiding a shared session-level run_id and the associated log/report collisions.",
"verdict": ""
},
{
"id": "SC3",
"task_id": "T1",
"question": "Is the script under ~100 lines and does it handle KeyboardInterrupt for clean exit?",
"executor_note": "Confirmed is 98 lines and catches , emits an interrupted stop line, and returns exit code 130.",
"verdict": ""
},
{
"id": "SC4",
"task_id": "T2",
"question": "Does exit 0 and show --base-dir, --poll-interval, --timeout options?",
"executor_note": "",
"verdict": ""
}
],
"meta_commentary": "This is a straightforward single-file addition. Key judgment calls:\n\n1. : The plan says "generate a single run_id for the session" but this causes log collisions when the same instance_id appears in multiple iterations. Instead, maintain a dict mapping iteration path -> run_id, generating a new one per iteration on first encounter. This matches the existing watch_and_score behavior where each invocation gets its own run_id.\n\n2. : Load manifest, get done_ids, glob predictions, compute retryable/exhausted sets, return scorable list. This is orchestration logic, not scoring logic \u2014 it must be replicated since watch_and_score bundles it into its main loop rather than exposing it as a function.\n\n3. : This is a standalone manual tool. Do not modify parallel.py or run_experiment.py.\n\n4. for progress output \u2014 just prefix with iteration name.\n\n5. \u2014 find all scorable across all iterations, score the first one found, then re-loop. This naturally round-robins since discover_active_iterations returns sorted paths.",
"validation": {
"plan_steps_covered": [
{
"plan_step_summary": "Step 1: Create evals/watch_scoring_all.py with discover_active_iterations, find_scorable, watch_all, main, and guard",
"finalize_task_ids": [
"T1"
]
},
{
"plan_step_summary": "Step 2: Confirm evals package has .py and script is runnable as module",
"finalize_task_ids": [
"T2"
]
},
{
"plan_step_summary": "Step 3: Verify implementation with import check, --help check, and brief run",
"finalize_task_ids": [
"T2"
]
}
],
"orphan_tasks": [],
"completeness_notes": "All 3 plan steps are covered. Steps 2 and 3 are both verification steps combined into T2. The brief live run with --timeout 5 from Step 3 is included in T2 verification but may not find active iterations \u2014 the import and --help checks are the primary validation.",
"coverage_complete": true
}
}
code
Debt watch items (do not make these worse):
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the planned response parsing against the real trace outputs. the final critique messages in the repository commonly contain prose followed by a json object, but the implementation section reduces parsing to case-insensitive substring search over the raw response text. that is weaker than the requested 'try to extract json' behavior and can miscount a keyword that appears outside the actual findings payload. (flagged 2 times across 1 plans)
[DEBT] are-the-proposed-changes-technically-correct: are the proposed changes technically correct?: checked the revised parsing approach against the real trace outputs. the repository’s saved critique responses are not plain json strings; they include prose prefixes, and at least one target trace (django__django-10973) wraps the json in a fenced code block. a case-insensitive substring scan over the whole response can still credit a model for mentioning a keyword anywhere in wrapper text without proving the keyword appeared in the actual critique findings, so the core comparison logic remains weaker than the requested 'extract json and inspect findings' behavior. (flagged 2 times across 1 plans)
[DEBT] config-reproducibility: openrouter_params (temperature, top_p) are recorded in config but cannot be applied because neither hermes aiagent nor the megaplan cli expose inference parameter controls. (flagged 1 times across 1 plans)
[DEBT] critique-schema-validation: json schema alone cannot enforce exactly one of each check id — duplicates could pass schema validation. (flagged 1 times across 1 plans)
[DEBT] critique-severity-mapping: hard-coded likely-significant severity for all flagged checks may over-weight minor findings in gate scoring. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: improvement #1 (patch filter) is not implemented in this plan — only documented as a hermes-agent follow-up. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: plan delivers 3 of 4 requested improvements. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: highest-priority fix downgraded to documentation-only follow-up. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: hermes-agent _extract_planned_files() and score() not touched. (flagged 1 times across 1 plans)
[DEBT] cross-repo-scope: success criteria don't include a must-have for improvement #1. (flagged 1 times across 1 plans)
[DEBT] did-the-work-fully-address-the-issue-hints-user-notes-and-approved-plan-requirements: did the work fully address the issue hints, user notes, and approved plan requirements?: checked the user requirement 'parse the response — try to extract json' against the revised step 1 implementation. the plan explicitly declines json extraction and keeps raw substring search instead, even though the saved django__django-10973 critique trace shows a prose preamble followed by a fenced ```json block, so this requirement is still only partially covered. (flagged 2 times across 1 plans)
[DEBT] docker-sandbox-init: file_tools.py does not forward docker_mount_cwd_to_workspace when creating the docker sandbox, so if read_file/write_file is the first tool call, the host workspace bind mount may not be set up. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-change-a-function-with-multiple-callers-would-the-change-break-any: does the plan change a function with multiple callers? would the change break any?: flagged. the validation path is shared across three runtime callers, not just the two workers.py sites named in the plan: claude at megaplan/workers.py:765-767, codex at megaplan/workers.py:841-843, and hermes at megaplan/hermes_worker.py:291-299. if the new critique-completeness validation/retry is only wired in workers.py, hermes critique runs will still accept incomplete payloads and behave differently. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-follow-what-the-issue-hints-suggest: does the plan follow what the issue/hints suggest?: flagged. the plan does not match the requested contract from the user notes. it assumes the wrong two new checks (error_handling and test_coverage instead of correctness, scope, all_locations, callers, conventions, issue_hints, verification), keeps extra issues under flags instead of additional_concerns, models each check as a single finding string instead of a findings list of {detail, flagged}, and only proposes a gate summary even though the notes require the gate to see the full checks array. (flagged 1 times across 1 plans)
[DEBT] does-the-plan-touch-all-locations-where-this-bug-pattern-exists: does the plan touch all locations where this bug/pattern exists?: flagged. the file/test inventory is incomplete. there is no tests/test_handlers.py; the handler coverage lives in tests/test_megaplan.py:1121-1245. gate coverage is in tests/test_evaluation.py:782-990, and critique schema coverage is in tests/test_schemas.py:107-116. if flags is renamed to additional_concerns, more code paths need updates than the plan lists, including megaplan/handlers.py:278-280,924,958, megaplan/evaluation.py:253-256, megaplan/prompts.py:661,773, and megaplan/workers.py:346-369. hermes also appends its own schema-derived json template at megaplan/hermes_worker.py:135-140, so prompt-prefill work is not isolated to prompts.py. (flagged 1 times across 1 plans)
[DEBT] execute-loop-control-flow: the 'all tasks done but state stuck on finalized' break path at line 562 would skip verify if verify is inserted after the execute block. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: finalize validation block is advisory and can become stale after _ensure_verification_task() mutates the task list post-model-output. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: validation block can be wrong immediately after finalize returns due to _ensure_verification_task() appending tasks after model output. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: step 4 under-budgets handler work as optional when it requires explicit validation-consistency logic. (flagged 1 times across 1 plans)
[DEBT] finalize-handler-mutation: missing test coverage for handle_finalize() path where _ensure_verification_task() appends a task and validation block must be updated. (flagged 1 times across 1 plans)
[DEBT] finalize-validation-schema: plan_steps_covered uses singular finalize_task_id but finalize allows one-to-many plan-step-to-task mapping. (flagged 1 times across 1 plans)
[DEBT] handler-routing: handler layer hardcodes planned→critique transitions that the plan doesn't explicitly enumerate for update. (flagged 1 times across 1 plans)
[DEBT] handler-routing: manual megaplan research cli invocation can strand plans in state_researched with no workflow exit transition. (flagged 1 times across 1 plans)
[DEBT] hermes-config: availability check references ~/.hermes/config.yaml for api keys, but hermes stores them in ~/.hermes/.env. (flagged 1 times across 1 plans)
[DEBT] is-the-scope-appropriate: is the scope appropriate?: flagged. the plan is under-scoped for the requested data-model change. update_flags_after_critique() currently only understands check['finding'] and appends into critique['flags'] at megaplan/handlers.py:268-280; handle_critique() still counts and summarizes flags at megaplan/handlers.py:924,958; compute_recurring_critiques() still compares flags only at megaplan/evaluation.py:253-256; and build_gate_signals() does not currently carry critique checks at megaplan/evaluation.py:507-530. supporting findings[], additional_concerns, and full gate visibility needs broader handler/evaluation changes than the plan budgets. (flagged 1 times across 1 plans)
[DEBT] is-there-convincing-verification-for-the-change: is there convincing verification for the change?: the verification story is still incomplete for the parser itself. the dry run verifies field stripping, and the live run verifies that responses come back, but there is still no planned repo-local check that the keyword matcher behaves correctly on the actual saved response shape already present in the traces, including prose preambles and fenced json. that leaves the most judgment-sensitive part of the script to manual eyeballing after the fact. (flagged 2 times across 1 plans)
[DEBT] join-workflow: the --join cli has no enforced source of truth for original run settings, so a mismatched config could attach wrong models/workspace layout to an existing manifest. (flagged 1 times across 1 plans)
[DEBT] module-layout: hermes_worker.py importing workerresult from workers.py while workers.py imports run_hermes_step from hermes_worker.py creates a circular import. (flagged 1 times across 1 plans)
[DEBT] module-layout: the evals/ top-level package is outside the distributable module set and won't be included in wheel builds. (flagged 1 times across 1 plans)
[DEBT] orchestrator-lifecycle: the manifest.all_done() polling loop can hang indefinitely if a worker crashes and leaves tasks in 'claimed' state with no timeout or reclaim mechanism. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: no new test assertions for the execute prompt wording additions. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: no test coverage for _ensure_verification_task() description text. (flagged 1 times across 1 plans)
[DEBT] prompt-test-coverage: test_swe_bench.py validates an unused helper, not active runtime. (flagged 1 times across 1 plans)
[DEBT] research-prompt: plan omits the brief's explicit 'compare against at least 2 search results' requirement. (flagged 1 times across 1 plans)
[DEBT] response-parsing: response parsing: the revised plan still keeps raw substring matching over the full response text instead of trying to extract the json findings first. the target traces already show prose-prefixed and fenced-json outputs, so this can mis-credit or miss findings when the experiment is supposed to compare critique judgment rather than mere token presence. (flagged 2 times across 1 plans)
[DEBT] response-parsing: substring search may mis-credit keywords from prose context (flagged 1 times across 1 plans)
[DEBT] response-parsing: user said 'try to extract json' but plan uses substring search (flagged 1 times across 1 plans)
[DEBT] response-parsing: substring search weaker than json extraction (flagged 1 times across 1 plans)
[DEBT] response-parsing: prose-prefixed responses could cause false keyword attribution (flagged 1 times across 1 plans)
[DEBT] review-schema-contract: plan keeps issues required contrary to the idea's request to deprecate it. (flagged 1 times across 1 plans)
[DEBT] review-schema-contract: no defined rule for keeping issues and rework_items in sync — two caller populations could see different defect summaries. (flagged 1 times across 1 plans)
[DEBT] schema-validation: proposed framework_versions object schema will be rejected by the strict additionalproperties:false rewriter. (flagged 1 times across 1 plans)
[DEBT] schema-validation: prompt wording alone cannot prevent empty or content-free consideration entries since the schema only requires severity. (flagged 1 times across 1 plans)
[DEBT] scorer-lifecycle: scorer lifecycle: the plan explicitly drops the restart/status wrapper, but the current repo's operator path depends on that behavior. a unified scorer without equivalent restart handling and per-iteration status updates creates a single point of failure and removes the dashboard's reliable health signal for active iterations. (flagged 1 times across 1 plans)
[DEBT] scoring-backend: watch scoring is docker-only; modal scoring is not supported. (flagged 1 times across 1 plans)
[DEBT] scoring-consolidation: consolidate.py scans a global logs/run_evaluation/ path and could pick up stale reports from prior iterations running the same 20 instance ids. (flagged 1 times across 1 plans)
[DEBT] scoring-diffing: git diff head~1 fails when the workspace has only one initial commit before execution begins. (flagged 1 times across 1 plans)
[DEBT] scoring-diffing: scoring diffing: the step 1 patch-filter change does not reliably contain dirty-workspace or test-file contamination, because score() falls back to the full git diff whenever the filtered diff is empty and existing finalize artifacts already show files_changed can be empty. (flagged 1 times across 1 plans)
[DEBT] scoring-log-scoping: scoring log scoping: the plan's single session-level run_id is incompatible with the current per-iteration log model. this repo treats _watch_scores.json[run_id] as iteration-scoped; using one shared run_id across iterations can collide reports for repeated task/model pairs and can also bleed unrelated reports into an iteration's scoped consolidation. (flagged 1 times across 1 plans)
[DEBT] scoring-normalization: score_experiment.py normalization path does not yet copy error_category through to scores.json, which step 8's regression analysis depends on. (flagged 1 times across 1 plans)
[DEBT] scoring-orchestration: scoring orchestration: auto_improve.run_experiment already launches per-iteration watch scoring via run_parallel_workers(..., scoring_mode="watch"), and evals.parallel starts watch_and_score(results_root) in a background thread. the plan adds evals.watch_scoring_all but does not disable or reroute that path, so the supported auto-improve flow can end up with two scorers hitting the same iteration, duplicating swe-bench runs and racing on _watch_scores.json. (flagged 1 times across 1 plans)
[DEBT] session-lifecycle: _cleanup_hermes_sessions() hard-codes path.home() / '.hermes' / 'sessions', ignoring hermes_home. parallel workers may delete session files from the default location. (flagged 2 times across 1 plans)
[DEBT] swebench-harness-invocation: verify runs full instance evaluation via run_evaluation rather than targeting individual test ids. (flagged 1 times across 1 plans)
[DEBT] swebench-harness-invocation: read_prompt() has no caller in this repository yet, so fail_to_pass test ids won't reach megaplan prompts until a follow-up wires it in. (flagged 1 times across 1 plans)
[DEBT] task-set-validation: representative_sample was authored alongside swe-bench_lite code paths but the plan uses swe-bench_verified — no explicit check that all 20 ids exist in verified. (flagged 1 times across 1 plans)
[DEBT] test-coverage: plan references wrong test files for workflow assertions. (flagged 1 times across 1 plans)
[DEBT] test-coverage: test_schemas.py:119-161 not in the explicit test update list despite directly asserting finalize/review schema shapes. (flagged 1 times across 1 plans)
[DEBT] trace-collection: session log path is ~/.hermes/sessions/ not ~/.hermes/logs/, and sessions are reused across megaplan phases, so naive reads return cumulative history rather than phase-isolated snapshots. (flagged 1 times across 1 plans)
[DEBT] trace-instrumentation: the plan captures normalized session logs and aggregate cost/token counters from run_conversation(), not raw http request/response payloads or openrouter response headers. (flagged 1 times across 1 plans)
[DEBT] validation: validation: the plan's execution/validation path does not actually measure the stated success target. it proposes a 5-task eval subset, but the success criteria require demonstrating 75%+ on a 15-task run. (flagged 1 times across 1 plans)
[DEBT] validation-assets: validation assets: step 7 depends on an 'existing workspace from iteration-003' to exercise _extract_planned_files(), but this repository does not currently contain the required finalize artifacts there, so the validation step cannot be executed as written. (flagged 1 times across 1 plans)
[DEBT] verification: no repo-local test of keyword matcher on real response shapes (flagged 1 times across 1 plans)
[DEBT] verify-artifact-isolation: multiple verify attempts may leave stale result artifacts that _check_resolved() picks up, causing false positives. (flagged 1 times across 1 plans)
[DEBT] verify-artifact-isolation: startup cleanup and restart idempotency are in tension — cleaning the run_id's artifacts on startup would delete reports that the restart logic wants to re-verify. (flagged 1 times across 1 plans)
[DEBT] watch-scoring: watch scoring: critical: the plan targets the wrong root cause for the early-stop issue. the proposed 'manifest all_done before predictions flush to disk' race contradicts the current repository flow, where predictions are written during benchmark.score() before the task is marked done in the manifest. (flagged 1 times across 1 plans)
[DEBT] worker-contract: plan's sample workerresult constructor uses non-existent fields (output, input_tokens, output_tokens) instead of actual fields (payload, raw_output). (flagged 1 times across 1 plans)
[DEBT] worker-dispatch: plan's sample function signature (phase, prompt, schema_dir, model) doesn't match the actual worker signature (step, state, plan_dir, *, root, ...). (flagged 1 times across 1 plans)
[DEBT] worker-dispatch: research on non-hermes agents silently falls back to stale training data instead of fresh web searches. (flagged 1 times across 1 plans)
[DEBT] workflow-enforcement: handle_plan accepts both state_initialized and state_prepped, so a manual cli invocation could skip prep on heavy robustness. (flagged 2 times across 1 plans)
[DEBT] workspace-cache-isolation: per-iteration workspace dirs share a parent-level _repo_cache, so bare-repo clones are shared across iterations. (flagged 1 times across 1 plans)
[DEBT] workspace-lifecycle: stale per-worker prediction dirs from crashed prior runs could be globbed into a subsequent run's combined_predictions.jsonl. (flagged 2 times across 1 plans)
code
Note: User explicitly approved this plan at the gate checkpoint.
Robustness level: light.
Requirements:
- Execute only the actionable tasks in this batch.
- Treat completed tasks as dependency context, not new work.
- Return structured JSON only.
- Only produce `task_updates` for these tasks: [T2]
- Only produce `sense_check_acknowledgments` for these sense checks: [SC4]
- Do not include updates for tasks or sense checks outside this batch.
- Keep `executor_notes` verification-focused.
- Best-effort progress checkpointing: if `/Users/user_c042661f/Documents/hermes-agent/.megaplan/plans/add-a-unified-scorer-that-20260401-0554/execution_batch_2.json` is writable, checkpoint task and sense-check updates there (not `finalize.json`). The harness owns `finalize.json`.
init
evals.watch_scoring_all
python -m evals.watch_scoring_all --help
--base-dir
--poll-interval
--timeout
evals/__init__.py
init
python -m evals.watch_scoring_all --help
--base-dir
--poll-interval
--timeout
Not yet included in a published release.
_score_single_prediction
_load_scores_data
_refresh_scores_summary
_write_incremental_results
evals.watch_scoring
run_ids
hermes-watch-<iteration>-<timestamp>
evals/watch_scoring_all.py
watch_all()
KeyboardInterrupt
python -m evals.watch_scoring_all --help
Per-iteration run_id (FLAG-WSA-002 mitigation)
find_scorable replicates logic from watch_and_score lines 56-97
No integration with run_experiment (FLAG-WSA-001)
The _format_progress_line function from watch_scoring.py can be reused
Score one prediction per loop iteration across all iterations