Skip to content

feat(curation): selectable VLM and segmenter assist per run, cluster, sub-cluster, selection and box - #332

Merged
davidamacey merged 23 commits into
mainfrom
feat/selectable-assist
Oct 15, 2026
Merged

davidamacey merged 23 commits into
mainfrom
feat/selectable-assist

Conversation

@davidamacey

Copy link
Copy Markdown
Owner

Selectable VLM and segmenter assist: the VLM and the segmenter are chosen per run, never hard-coded, at every granularity (cluster, sub-cluster, selected crops, a single crop or box, a filter). Plan: docs/design/selectable_assist_plan.md (owner decisions D1 to D4 approved; deviations recorded at the end of the plan).

What it adds

  • POST /assist/runs (+ read, list, cancel, apply): targets crops, boxes, cluster (with optional cluster_subid), filter; actions classify, attributes, verify, segment; dry run first, fail-closed refusals.
  • Sampling: all, or a seeded representative sample sized min(n, max(8, min(64, ceil(2*sqrt(n))))), stratified by sub-cluster.
  • Cluster and sub-cluster label proposals with an agreement gate and an explicit apply (dry-run count, scope_changed refusal); applied labels are human (D2).
  • Attributes declared by the prompt pack, stored apart from class fields as suggestions, never over locked labels. The hard-coded make/model keys and fields are removed (D1).
  • Segmenter verification selectable per run and per project (region_verify), segment action with waiting_region.
  • Fixes /reprocess ignoring limit/sample for the region and vlm scopes with a filter; GET /crops?cluster_subid=.
  • Removes /vlm/label_cluster and /vlm/verify_regions.
  • Cropwright: assist dialog (cluster, sub-cluster, selection, crop, box, matching items), proposal card, attribute chips, region_verify switch, the sub-cluster tab on the server filter; docs guide and Cropwright page.

Tests

Targeted tests per wave (7,013 passed across the affected backend directories; vitest 4,860; stubbed e2e for the touched pages). Full offline suite and stubbed e2e run once here by CI. Live check on the dev stack follows in the PR thread.

…/selectable-assist

# Conflicts:
#	CHANGELOG.md
…r job poll; fold the proposal on the cluster page
@davidamacey
davidamacey merged commit abb2079 into main Oct 15, 2026
11 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.

1 participant