Rework evidence agent into structured assessor
Replace the free-text evidence describer with an assessor that emits a structured assessment (status plus rationale) so downstream code can act on the verdict instead of parsing prose.
Rename the evidencedescriber package and worker to evidenceassessor and introduce a dedicated EvidenceAssessment coredata model backed by an assessment status enum. Split the schema changes into focused migrations and scope the FAILED transition to the status columns so unrelated evidence fields are left untouched.
Realign the surrounding configuration and wiring: rename the config to EvidenceAssessmentConfig, update probod aliases and builders, add a Thinking budget to the LLM agent config, and extract an OutputType.DecorateEnum helper. Bind jsonRawMessageOrNull through driver.Valuer so raw JSON assessments persist cleanly.
Summary by cubic
Replaced the free-text evidence describer with a structured assessor that outputs a JSON assessment and explicit status. Added an EvidenceAssessment model and updated the worker, services, and configs so downstream code can act on verdicts without parsing prose.
Coredata +336 -173
- Added
assessment JSONBandEvidenceAssessmentStatus; renameddescription_*toassessment_*via 3 migrations. - New helpers:
Evidence.SetAssessment,GetAssessment, andSetAssessmentFailed; addeddriver.Valuerfor raw JSON nulls. - Renamed loaders/reset to assessment; switched to
EvidenceFileID.
Service +303 -198
- Introduced
pkg/evidenceassessorandevidence-assessmentworker; removedpkg/evidencedescriber. - Persist JSON assessment and derive
DescriptionfromSummary; failure only touches status columns. - Added
OutputType.DecorateEnumand enforced enum forconfidence; addedThinkingbudget toLLMAgentConfig. - Updated wiring and configs to
EvidenceAssessmentConfig; adjusted services toEvidenceFileIDand new statuses.
Tests +145 -8
- Added assessment round‑trip and status enum tests; schema decoration test for
confidence. - Updated builder tests to the new assessor.
GraphQL API +2 -2
- Switched console evidence type to use
EvidenceFileID.
Other +58 -58
- Bumped GitHub Actions pins (runner, Docker, Helm, cosign, upload/download‑artifact, setup‑node) with no functional changes.
Written for commit 75a131e5fb066931e84ea546ef733ba106824de5. Summary will update on new commits.