fix(zero-trust): record Unverified agents' results + follow-up test coverage - #148
Conversation
…lts recorded; legacy tests migrated 🤖 Built with SMT <smt@agora.build>
🤖 Codex Code ReviewNo findings. Reviewed the PR diff against I did not run the test suite in this read-only/no-approval environment. |
🤖 Claude Code ReviewI reviewed the merge ref ( VerdictThe core fix is correct and well-scoped. Swapping the recording gate from
The Minor points1. The new guard can never be false — 2. Behavior change on shared-tier settlement worth confirming. A shared job dispatched while its agent's listing was active, whose agent then loses its region before claiming (targeted claims are trust-exempt), now completes with a result → 3. Test residue in the shared dev DB — 4. Test robustness nits. |
Follow-ups to the zero-trust agent region merge (#143).
What
server/routes.ts). The pre-existingjob.siteId != nullguard meant "never claimed" under the old model — under zero trust a job claimed by an Unverified agent also hassiteId: null, so its results were silently dropped and the My Evals "Unverified" bucket never received route-produced data. The gate now checksjob.evalAgentId != null;siteIdflows through as NULL intoeval_results(nullable, already handled by theunverifiedmetrics scope).eval_resultsrow withsiteId NULL(tests/zero-trust-dispatch.test.ts).upsertListing(region: null)persists an inactive row; a laterupdateListingRegionactivates it with the detected region (tests/shared-agents-listing.test.ts) — covering the null-region path feat: zero-trust agent region — observed, verified, never self-asserted #143 introduced.visibilityfield intests/session-dispatch.test.tsreplaced with the realdispatchTier.Verification
npm run checkclean; eslint 0 errors on touched files.Generated with SMT smt@agora.build