feat(task): add structured validation reports - #249
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BobbyZhouZijian
marked this pull request as ready for review
August 21, 2026 12:50
This was referenced Aug 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Issue #242 proposes frontend-independent task inspection and validation that can be shared by the CLI, TUI, and future web clients. This PR implements the smallest backward-compatible part of that roadmap: structured diagnostics for the existing static task checks.
Refs #242.
Changes
coral.task.validationwith immutableValidationDiagnosticandValidationReporttypes, stable diagnostic codes, severity, path context, and dictionary serialization.coral.cli.validation.validate_task()as a compatibility adapter returning the existinglist[str]shape, preservingcoral validateandcoral startbehavior.coral/task/package inCLAUDE.md.AGENTS.mdis unchanged because no contribution rule or agent-specific guidance changed.Authored with assistance from Codex. The submitting human should read every changed line and be able to defend the design before marking this PR ready for review.
Test plan
.venv/bin/python -m pytest tests/ -v— 697 passed, 1 skipped..venv/bin/ruff check .— passed..venv/bin/ruff format --check .— 139 files already formatted..venv/bin/mypy --follow-imports=skip coral/task/validation.py coral/cli/validation.py— passed.Affected areas
coral/agent/(runtime, manager, heartbeat, warmstart)coral/grader/(daemon, TaskGrader, subprocess grader, loader)coral/hub/(attempts, notes, skills, checkpoint)coral/workspace/(project setup, worktrees, grader env)coral/cli/(commands, helpers)coral/hooks/(post_commit / submit_eval)coral/template/(CORAL.md, bundled skills/agents)coral/gateway/(LiteLLM gateway)coral/web/(dashboard)examples/(new or modified task)docs/(docs site)Checklist
devbranch (notmain).feat:,fix:,docs:,refactor:, ...).uv run pytest tests/ -vpasses locally.uv run ruff check .anduv run ruff format --check .pass.tests/for any behavior change.docs/content/, README, or relevant skill under.claude/skills/) for any user-visible or contract change.examples/<task>/:coral validate <task>succeeds and a smoke run produces at least one finalized score. No hidden answer keys committed underseed/.The migration-path and new-example checklist items are not applicable. The AI-assisted human-review item is intentionally left unchecked while this PR remains a draft.