82 Commits

Author SHA1 Message Date
d-robotics
a6b2325862 🐛 Freeze acceptance trace cutoff with evidence 2026-11-19 14:24:12 +08:00
d-robotics
5678afcd55 🐛 Restore source history in final acceptance trace 2026-11-19 11:35:20 +08:00
d-robotics
433a3b6a63 ✨ Prioritize acceptance work by temporary supplier policy 2026-11-16 19:23:47 -08:00
Codex
708b9bae3d ⚡ Add independent query database projection and guarded reads 2026-11-12 10:56:54 -08:00
Codex
a35e84163a 🛡️ Guard work availability and preserve release verification evidence 2026-11-11 22:28:17 -08:00
Codex
6b42476962 ♻️ Make annotator deletion handoffs recoverable 2026-11-11 03:51:18 -08:00
Codex
d93c04d852 ⚡ Stream authorized pool counts and batch admin metadata reads 2026-11-10 07:16:49 -08:00
Codex
4562296985 ⚡ Optimize acceptance pool search reads 2026-11-10 04:57:09 -08:00
Codex
88526258c9 ⚡ Optimize task pool reads and scoped reporting 2026-11-09 02:03:30 -08:00
Codex
d93fb5f0dd 🐛 Recover missing pre-package acceptance items in release sweeper 2026-11-03 09:53:59 -08:00
Codex
d6dac755b9 🐛 Fix human release sweeper timeouts and duplicate unstarted capture prefix conflicts 2026-11-03 09:35:03 -08:00
Codex
63714753a9 🛡️ Gate invalid source tasks and fix complete review pool search 2026-11-02 02:36:30 -08:00
d-robotics
ca58c2582e ⚡ Filter obsolete authored history before mine pool reads 2026-10-28 19:38:19 -07:00
d-robotics
8cc5cfc0a8 ⚡ Batch lightweight run metadata for human task displays 2026-10-28 19:04:29 -07:00
d-robotics
219bb75fc5 ⚡ Hydrate pool payloads only after candidate filtering 2026-10-28 18:26:05 -07:00
d-robotics
80bdcee9b4 ⚡ Load rejection history on demand with bounded cursor pages 2026-10-28 02:23:11 -07:00
d-robotics
7c014ce79c 🛡️ Open reviewer records and block self-review claims 2026-10-27 21:42:24 -07:00
d-robotics
4bc9c9d2c0 🛡️ Add review trace and bound review queue work 2026-10-26 15:44:16 +08:00
d-robotics
4d6203fbc5 🧊 Give each request-cache lookup its own copy of the human item
annotationReadCache handed the same *HumanItemRecord to every lookup in a
request, and write handlers mutate the item they load (version, status,
assignment, payload keys) before the versioned write. After a failed or
conflicting write, later lookups in that request would see unsaved state.
Keep the single store read per request but return a copy per lookup, with
the payload, assignment and processing-job input maps cloned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 23:39:38 +08:00
d-robotics
7b739fd4c6 ⚡ Optimize annotation sidebar and progress reads 2026-10-17 13:11:00 +08:00
d-robotics
9289a95d04 🐛 Recover annotation saves and separate pending task views 2026-10-16 16:13:41 +08:00
d-robotics
2b81adf2bf 🐛 Distinguish prior review decisions from current rework tasks 2026-10-16 10:32:16 +08:00
d-robotics
aa729a62c9 🛠️ Fix workspace navigation, pool latency and retained slice retries 2026-10-15 18:23:46 +08:00
d-robotics
58e0e50570 🧪 Retro 2026-10-12: CI gate, known-failure baselines, devboot regression test, workbench smoke, review standards
Six follow-ups from the round8-12 hotfix retrospective:

- web-ci.yml: lint + Go/frontend tests on every push and PR (nothing ran
  app checks before; the round10 dev-mode regression shipped green)
- tests/known-failures.json + check-test-baseline.mjs: gate by exact
  failing-test id instead of hand-counted failure totals (14 frontend,
  70 Go upstream debts recorded from the dev tip)
- devboot.test.mjs: boots the real Vite dev server and pins the movi
  loader contract that broke round10 (query-less DEV url, /vendor stays
  off the module pipeline)
- scripts/local/smoke-workbench.mjs: pre-release smoke covering the
  seven recurring acceptance points (login/pool/claim/play-while-loading/
  captions/4x/playhead), 3x green against the local replica
- docs/CODING_STANDARDS.md + AGENTS pointer: eligibility flags are
  server-shipped, the UI renders them (rounds 9+12 lesson)
- vendor README host-element quirks section, HANDOFF gate pointers and
  movi-path verification rule, perf-audit report pinned with the
  post-round12 production 500 observation
- husky pre-commit: lint-staged (repo prettier scope) + tsc + gofmt
- gofmt: restore lint:go green on the dev tip (drift shipped silently
  in the perf merge and round12 because nothing gated it)
2026-10-12 18:07:02 +05:30
d-robotics
d744f30a31 🐛 Make review random-claim eligibility server-authoritative for quality reviewers
The review workspace counted the available pool server-side but guessed
claim eligibility client-side. In the project-scoped workspace that guess
depends on listMembers data (review-only accounts skip the fan-out), so
absent or empty member data emptied the random-claim candidates while the
pool tab still showed claimable items — exactly the reported 可领取3但领取不了.

The pool listing now computes canClaim for quality reviewers exactly like
it already did for acceptance reviewers, and canClaimHumanItem resolves
batches through the request-scoped list-read cache (the listing's N+1
guard test stays green). The frontend honors server canClaim first, and
the empty-candidates notice now distinguishes no-permission from no-tasks.

Also fixes a dev-only regression from the rate-cap hotfix: the ?v=
cache-bust query on the vendored movi import defeats Vite's public-dir
resolver and hard-blocks every dev page with an error overlay. Dev now
injects a module script tag on the query-less path; built deployments
keep the cache-busted import URL.
2026-10-12 16:40:24 +05:30
d-robotics
9d1c225293 🐛 Fix review workspace loading: pool stage pushdown, task pool-item join, claim-count batched batch reads
User report on production: reviewers saw 正在加载任务… for a long time and
then 任务关联数据缺失,请联系管理员核查; annotator loading slow; acceptance
fast. Production traces showed three distinct causes:

1. /api/human-items available pool 12-14s: the role pools filtered stages
   only in-memory, so Mongo sorted the whole 17,220-doc unassigned backlog
   (~7s per fetch round, up to 6 rounds) before the handler dropped nearly
   every row. Acceptance was fast because its query already pushed stageId.
   Fix: HumanItemQuery.StageIDs  pushdown (parseHumanItemQuery accepts
   stageIds=a,b,c merged with stageId); the quality/clip-quality/acceptance
   workspaces send their stage set; review pool joins no longer depend on
   the backlog sort.

2. 任务关联数据缺失 regression (introduced by the round4 task-list
   pagination): review pool pages reference tasks across the whole backlog,
   but the tasks fetch took a newest-first 200 window — only 60/500 pool
   items could find their task. Fix: review workspaces (reviewOnly) fetch
   tasks by the pool page's legacyTaskIds via the new ids= parameter
   (id_unique ); ListAnnotationTasksFiltered gains an IDs mode in both
   stores; the misleading 任务关联数据缺失 empty-state is scoped to
   non-review workspaces (review pool loading shows its own message).

3. claim-count 3.4s: one per-candidate GetHumanBatch point lookup over
   12,009 legacy batches. Fix: single ListHumanBatchAccessRecords  read;
   its projection now also carries status (the completed check read a
   missing field before).

Verified on the 17k-item stress replica: pool 421→308ms with stage pushdown;
ids join returns 500/500 pool items in 78ms (was 0/440 outside the window);
claim-count 128ms. Full suites: 65 failures = the 65 pre-existing upstream
debt, no new.
2026-10-12 06:57:27 +05:30
d-robotics
da446d13b5 ⚡ Fix slow page loading: static gzip, list pagination, auth cache, dashboard aggregation, video direct link
- C1/S3: build-time precompressed .gz served by spaHandler (writeBundle plugin), motion-vendor chunk rule fix
- C3/S1: /api/runs default cursor pagination (byte-compatible), /api/human-items limit/cursor + Mongo projection + filter pushdown
- C2/S5: in-process principal TTL cache (45s) with full invalidation paths; /api/users limit+q with org isolation
- C4/S2: dashboard counter pushdown ($group/CountDocuments), 45s response/snapshot caches, production stats snapshot cache
- C5: BOS presigned direct-link video preview (307) with background pre-transcode, /tmp cache TTL+LRU, gzip bypass, sync=1 rollback
- S4/S6: POC readiness point queries, human-batches GET no longer writes (60s sweeper), admin ops page N+1 fan-out removed
- Fixes found en route: BSON cursor self-reference recursion, backfill loop cursor advance, supplier cascade session flush
- Frontend: nextCursor passthrough (human-loop/users), acceptance pool no longer truncated at 500

Co-authored-by: AgentTeams slow-page-fix
2026-10-09 17:45:27 -07:00
d-robotics
2335bf16f3 ✨ Add supplier authorization and shared final acceptance pool 2026-09-29 22:04:45 -07:00
d-robotics
478326722b 🔎 Reflect downstream acceptance state in review history 2026-09-28 02:25:41 -07:00
d-robotics
0291e919a2 🔎 Add read-only history for completed quality reviews 2026-09-28 02:22:07 -07:00
d-robotics
79a827e7b8 ⚡ Batch review list reads without changing authorization 2026-09-27 21:35:51 -07:00
d-robotics
8888bac685 ✨ Add scoped supplier project authorizations and public task pool 2026-09-27 09:06:33 -07:00
d-robotics
d739cfd8d9 🩺 Add read-only customer connection diagnostics and request tracing 2026-09-26 06:18:49 -07:00
d-robotics
a108e8f6df ✨ Add focused review workspaces and durable review workflows 2026-09-22 19:26:33 +08:00
eust-w
c92bca168d 👥 Unify supplier account management and enforce single account roles 2026-09-21 11:30:03 +08:00
eust-w
8c71ebd189 ⚡ Reduce review task loading and reuse scoped evidence indexes 2026-09-20 15:39:47 +08:00
eust-w
f339c3f011 ⚡ Reduce annotation operation latency and reuse verified slice media 2026-09-17 14:42:45 +08:00
eust-w
af7c405f24 🔒 Enforce human workflow dictionary and task ownership rules 2026-09-17 11:32:40 +08:00
eust-w
29ed9d2475 🗂️ Add reviewable slice discard policy and filtered delivery 2026-09-16 20:44:46 +08:00
eust-w
e3ccf5f5f2 🎯 Add project-scoped random claims and lock annotator task ownership 2026-09-16 04:00:55 +08:00
eust-w
add1b0e7ac 🔒 Fix employee supplier ownership at creation and simplify membership routing 2026-09-14 15:47:44 +08:00
eust-w
2c705d2a0a 🐛 Support explicit internal annotation membership and task routing 2026-09-14 13:54:37 +08:00
eust-w
62b5737d71 ✨ Add isolated raw-data human-loop delivery template 2026-09-11 18:06:30 +08:00
eust-w
ff07319b8a 🐛 Resolve rejected acceptance previews to current Capture evidence 2026-09-09 04:53:04 +08:00
eust-w
8a575849d6 ✨ Redesign final acceptance workspace with shared media review 2026-09-08 23:19:12 +08:00
eust-w
8095e213ee 🐛 Preserve submitted audit revisions when releasing rework 2026-09-08 06:37:19 +08:00
eust-w
cf7cea84dd 🐛 Freeze sampling across all Capture submission endpoints 2026-09-06 16:39:00 +08:00
eust-w
933307f544 🐛 Apply frozen acceptance sampling to new manual Captures 2026-09-06 16:23:15 +08:00
eust-w
0152c93a97 ✨ Add role-scoped workflow acceptance settings and submission snapshots 2026-09-06 16:02:15 +08:00
eust-w
03527532a5 🐛 Enforce issue-free quality approval on generic API 2026-09-06 12:37:08 +08:00