feat: add confirm_identity API endpoint

- Add POST /api/v1/agents/identity/confirm endpoint
- Calls confirm_identity.py to bind trace to identity
- Updates TKG, Qdrant _faces, PG face_detections, _seeds
- Optional Round 2 propagation after confirmation
- Fix trace_id=0 check in confirm_identity.py (use 'is not None')
- Document API endpoint in 08_identity_agent.md
This commit is contained in:
Accusys
2026-06-26 08:30:03 +08:00
parent 615f9da2df
commit 6cbc11efda
3 changed files with 274 additions and 7 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ def main():
if args.json:
result = batch_confirm_from_json(args.file_uuid, args.json, propagate)
elif args.trace_id and args.identity_id and args.identity_uuid and args.name:
elif args.trace_id is not None and args.identity_id is not None and args.identity_uuid and args.name:
result = confirm_single_trace(
args.file_uuid,
args.trace_id,