Refactor dental dictionary into manage.py CLI

Reorganize .smallclaw/databases/ around a single entry point with
subcommands (add-terms / add-images / verify / reassign / stats),
absorb pmc_reassign.py into reassign, and route every image source
through inline vision-model verification before commit.

Layout
  config.py          paths, endpoints, API-key locations (no more
                     hard-coded absolute paths in source files)
  manage.py          argparse dispatcher
  workflow_terms.py  seed-JSON import (JSONC supported, dedupes on
                     korean/english)
  workflow_images.py renamed from dental_image_workflow.py; main()
                     converted to run(verify=True, ...)
  workflow_verify.py validate_image() / verify_db() + verify_updates()
                     gate used by every add-images source
  seeds/             recovered seed_all.json, seed_periodontics.json
  scratch/           ad-hoc work area replacing the /tmp habit
                     (only README.md is tracked)
  docs/howto.md      moved + expanded
  docs/archive_image_rounds/   one-off round scripts + their results
  docs/archive_validation/     model-comparison + validation history

Verification
  - VERIFY_MODEL defaults to qwen3.5:397b-cloud (50-image test on
    procedure-heavy sample: 9.8s/img avg, zero timeouts, Kimi-level
    rigor — see archive_validation/).
  - Prompt strengthened: in-image text/captions are not valid grounds
    for "적합"; technique terms require visible procedure steps, not
    generic device/anatomy photos.
  - All 9 add-images sources gated through verify_updates() before
    commit; --no-verify escape hatch for bulk runs.

.gitignore: API key files, dental_images/, __pycache__/, scratch/*
(README.md kept).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
kim
2026-05-15 11:58:53 +09:00
co-authored by Claude Opus 4.7
parent ff6627bc25
commit e11ddd7f3e
37 changed files with 19956 additions and 644 deletions
+8
View File
@@ -12,6 +12,14 @@
.smallclaw/config.json
.smallclaw/credentials/
.smallclaw/vault/
.smallclaw/*_api_key.txt
.smallclaw/*_api_token.txt
# --- DENTAL DICT PROJECT (.smallclaw/databases/) ---
.smallclaw/databases/dental_images/
.smallclaw/databases/__pycache__/
.smallclaw/databases/scratch/*
!.smallclaw/databases/scratch/README.md
# --- RUNTIME DATA ---
.localclaw/sessions/