mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-15 04:35:29 +02:00
Four defects found by running the repository's own checks and one more trial against it. ESLint rejected an unused `armSettings` import in intent-eval.js; the caller supplies `armSettingsByName` already. A timeout was lost whenever a later turn came back clean: `a || b ? c : false` evaluates the condition first, so `timedOut` was recomputed from the new turn instead of being kept. Isolating each trial's config directory, to stop persisted sessions piling up under the projects folder, puts the credentials out of reach. Every turn then returns "Not logged in", and the harness graded that as a coverage-hole - an auth failure recorded as a finding. Keep the real config directory and delete only the session folders this run's work root created, and adopt lib.js's own guards: a trial that is unauthenticated, or whose gated arm edited files with no metrics line and no denial, stops the run instead of being recorded. Record denials per turn as well as in total. The hook marks a file checked once per session and --resume keeps one session id for the conversation, so a zero after a non-zero is the latch rather than the gate staying quiet, and silence-hole has to be read with that column in view. Verified: a real trial authenticates, produces a graded silence-hole, and leaves the projects directory at the same count it started with.