fix: M4 api_test v2 compatibility — chunk ID format + response
- 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/
This commit is contained in:
@@ -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/<uuid>/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`.
|
||||
@@ -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 ──
|
||||
|
||||
@@ -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/<uuid>/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`.
|
||||
Reference in New Issue
Block a user