Skip to content

feat(assessment): batch adjudication and support skill-file follow-ups - #116

Merged
scotluns merged 12 commits into
mainfrom
feat/assessment-kit-batched-adjudication
Dec 2, 2026
Merged

scotluns merged 12 commits into
mainfrom
feat/assessment-kit-batched-adjudication

Conversation

@scotluns

Copy link
Copy Markdown
Collaborator

Why

Large finding sets can produce unwieldy adjudication responses, while reviewing only SKILL.md leaves relevant supporting code unavailable. Assessment callers also need consistent execution limits and actionable failure messages.

What changed

  • Review findings in batches of at most 20, validate their original identities, and assemble one adjudication. Preserve validated results from earlier batches if a later batch fails, without marking the assessment complete.
  • Allow one request for supporting files per batch, restricted to the selected skill directory, and share supplied contents with subsequent batches. Expose documented assess() and adjudicate() Python entry points.
  • Require SkillSpector >=2.11.2,<3. Default to a 600-second process/request timeout, a scanner workflow deadline at 90% of that timeout unless overridden, and a configurable 32,768-token adjudication allowance. Honor configured reasoning effort.
  • Share repeated option names and defaults with their actual readers and argparse definitions. Deadline errors report the configured limit and suggest recovery. Preserve native report bytes, existing report readability, and incomplete-result handling.

How to verify

  • Passed all 236 Python tests and Ruff checks. Coverage includes batch boundaries and finding identities, supporting-file requests, partial failures, report preservation, and CLI guidance.
  • Built and installed the wheel in an isolated environment and exercised its public Python interface.
  • A live model-gateway check completed a multi-batch adjudication and a supporting-file follow-up while preserving the original scanner report.
uv run --extra test pytest
uv run --extra test ruff check maintainer products
uv build --wheel products/assessment-kit

Known gaps

Live gateway verification covered one OpenAI-compatible endpoint; the other supported gateway protocols were exercised through automated tests.

scotluns and others added 12 commits November 11, 2026 10:39
Review findings in batches of twenty, preserving original identities and
combining validated results into one adjudication. Allow one supporting-file
request per batch and share supplied context with subsequent batches.

Expose the assessment and adjudication workflows to Python consumers.
Align scanner deadlines, raise the configurable completion allowance, and
keep CLI option definitions and recovery guidance consistent.

Validation: 236 Python tests, Ruff, installed-wheel checks, and a live gateway
smoke test covering batched adjudication and a supporting-file follow-up.
Apply the repository's single-line prose formatting to the added README
paragraphs without changing their content.

Validation: npm run markdown:check, npm run markdown:lint, and git diff --check.
Require both package-defined Markdown checks with lockfile-installed tools whenever Markdown changes.

Validation: npm run markdown:check; npm run markdown:lint; git diff --check.
Preserve actionable, sanitized timeout causes for urllib connection failures. Extend public failure coverage and remove the hypothetical option-renaming test.

Check the scanner prerequisite once on each fresh or reused assessment path.

Validation: 237 tests passed with a compatible scanner, including static integration; Ruff and diff checks passed. Independent follow-up review found no further issues.
Group validated findings by determination even when a later batch fails. Keep uncertain and unadjudicated findings unresolved and preserve the incomplete-assessment safety warning.

Strengthen the existing partial-failure workflow test with mixed determinations and summary counts. The regression failed before the fix; all 22 batch and summary tests now pass. Full Python suite: 236 passed, one real-scanner prerequisite failure also reproduced on the unchanged PR revision. Ruff and diff checks pass.

Skills: implement, durable-behavior-tests, code-review. Reviewed 20 changed lines against the reported behavior and repository standards; no additional findings or checkpoint additions to remove. No maintainer corrections yet. Scanner/model boundaries are mocked for the regression; no live gateway exercised.
Use the combined verdict and finding totals for new multi-batch assessments. Extend the existing batch test to cover an early approval followed by a caution.
Keep the existing batch, follow-up, and failure tests as the regression coverage for new reviews. Continue with readable evidence and retry only the interrupted request once.
@scotluns
scotluns merged commit a6a6c69 into main Dec 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants