From d34bcae145042d53d40231dc85223c90c461c595 Mon Sep 17 00:00:00 2001 From: Accusys Date: Wed, 13 May 2026 05:00:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20M4=20api=5Ftest=20v2=20compatibility=20?= =?UTF-8?q?=E2=80=94=20chunk=20ID=20format=20+=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix chunk/0-01 → chunk/0 (v2.0 sequential chunk IDs) - Identity UUID 2b0ddefe (Cary Grant) confirmed working in v2.0 - api_test.sh: 39/39 passed - Response doc to M4_HANDOVER/ + M4_workspace/ --- ...5-13_api_test_v2_compatibility_response.md | 40 +++++++++++++++++++ docs_v1.0/M4_HANDOVER/api_test.sh | 2 +- ...5-13_api_test_v2_compatibility_response.md | 40 +++++++++++++++++++ 3 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 docs_v1.0/M4_HANDOVER/2026-05-13_api_test_v2_compatibility_response.md create mode 100644 docs_v1.0/M4_workspace/2026-05-13_api_test_v2_compatibility_response.md diff --git a/docs_v1.0/M4_HANDOVER/2026-05-13_api_test_v2_compatibility_response.md b/docs_v1.0/M4_HANDOVER/2026-05-13_api_test_v2_compatibility_response.md new file mode 100644 index 0000000..c35b56f --- /dev/null +++ b/docs_v1.0/M4_HANDOVER/2026-05-13_api_test_v2_compatibility_response.md @@ -0,0 +1,40 @@ +# M4 Compatibility Response + +**Date**: 2026-05-13 +**From**: M5 +**To**: M4 +**Re**: [2026-05-13_api_test_v2_compatibility.md](2026-05-13_api_test_v2_compatibility.md) + +--- + +## Resolution + +| # | Issue | Status | Fix | +|---|-------|:--:|------| +| 1 | `GET /api/v1/identity/2b0ddefe...` → 404 | ✅ Resolved | UUID `2b0ddefe` = Cary Grant (TMDB, confirmed). Exists in v2.0. Working. | +| 2 | `GET /api/v1/file//chunk/0-01` → 404 | ✅ Fixed | Updated test to `chunk/0` (v2.0 format). `api_test.sh` now 39/39. | + +## Test Results + +``` +========================================== + Results: 39 passed, 0 failed +========================================== +``` + +## v2.0 Data Format Changes + +| Field | v1.0.3 | v2.0 | +|-------|--------|------| +| `chunk_id` | `0-01`, `1-03` (parent-correction) | `0`, `1`, `2`... (sequential) | +| identity UUIDs | Auto-generated per-file | Preserved across re-imports | +| `chunk_index` field | Present in API response | **Removed** (chunk_id is sufficient) | + +## Known Server Setup Issue + +Server must be started from project root directory: +```bash +cd /Users/accusys/momentry_core_0.1 +cargo run --bin momentry_playground -- server --port 3003 +``` +Otherwise `.env.development` won't load and `DATABASE_SCHEMA` defaults to `public`. diff --git a/docs_v1.0/M4_HANDOVER/api_test.sh b/docs_v1.0/M4_HANDOVER/api_test.sh index aa14761..f409a41 100644 --- a/docs_v1.0/M4_HANDOVER/api_test.sh +++ b/docs_v1.0/M4_HANDOVER/api_test.sh @@ -176,7 +176,7 @@ test_get "GET /api/v1/agents/5w1h/status" "/api/v1/agents/5w1h/status" # ── Chunk detail endpoint ── title "Chunk detail" -test_get "GET /api/v1/file/$UUID/chunk/0-01" "/api/v1/file/$UUID/chunk/0-01" +test_get "GET /api/v1/file/$UUID/chunk/0" "/api/v1/file/$UUID/chunk/0" test_get "GET /api/v1/file/$UUID/chunk/nonexistent" "/api/v1/file/$UUID/chunk/nonexistent" 404 # ── Specific search tests for chunk_id format ── diff --git a/docs_v1.0/M4_workspace/2026-05-13_api_test_v2_compatibility_response.md b/docs_v1.0/M4_workspace/2026-05-13_api_test_v2_compatibility_response.md new file mode 100644 index 0000000..c35b56f --- /dev/null +++ b/docs_v1.0/M4_workspace/2026-05-13_api_test_v2_compatibility_response.md @@ -0,0 +1,40 @@ +# M4 Compatibility Response + +**Date**: 2026-05-13 +**From**: M5 +**To**: M4 +**Re**: [2026-05-13_api_test_v2_compatibility.md](2026-05-13_api_test_v2_compatibility.md) + +--- + +## Resolution + +| # | Issue | Status | Fix | +|---|-------|:--:|------| +| 1 | `GET /api/v1/identity/2b0ddefe...` → 404 | ✅ Resolved | UUID `2b0ddefe` = Cary Grant (TMDB, confirmed). Exists in v2.0. Working. | +| 2 | `GET /api/v1/file//chunk/0-01` → 404 | ✅ Fixed | Updated test to `chunk/0` (v2.0 format). `api_test.sh` now 39/39. | + +## Test Results + +``` +========================================== + Results: 39 passed, 0 failed +========================================== +``` + +## v2.0 Data Format Changes + +| Field | v1.0.3 | v2.0 | +|-------|--------|------| +| `chunk_id` | `0-01`, `1-03` (parent-correction) | `0`, `1`, `2`... (sequential) | +| identity UUIDs | Auto-generated per-file | Preserved across re-imports | +| `chunk_index` field | Present in API response | **Removed** (chunk_id is sufficient) | + +## Known Server Setup Issue + +Server must be started from project root directory: +```bash +cd /Users/accusys/momentry_core_0.1 +cargo run --bin momentry_playground -- server --port 3003 +``` +Otherwise `.env.development` won't load and `DATABASE_SCHEMA` defaults to `public`.