feat(study): Mac mini derived-worker (PR-MacMini-Derived-Worker-1) #21

Merged
hyungi merged 1 commits from feat/macmini-derived-explanation into main 2026-05-15 13:36:27 +09:00
Owner

GPU = RAG context provider, Mac mini = LLM 가공 공장.

GPU 측 변경:

  • app/api/internal_study.py: GET /internal/study/explanation-context/{qid}
    Bearer auth, gather_explanation_context + _render_envelope_prompt 재호출.
    204=evidence missing, 410=deleted/ready.
  • app/workers/study_queue_consumer.py: settings.study_explanation_enabled
    false 시 explanation 분기 skip (status/attempts 미변경, pending 유지 → Mac mini 흡수).
  • app/core/config.py: study_explanation_enabled + internal_worker_token 2 setting.
  • app/main.py: internal_study_router include (prefix /internal/study).
  • docker-compose.yml: fastapi ports → 100.110.63.63:8000 Tailscale bind,
    STUDY_EXPLANATION_ENABLED + INTERNAL_WORKER_TOKEN env 추가.

Mac mini 측: ~/derived-worker/ (별도 push 0, 어제 작성).

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

GPU = RAG context provider, Mac mini = LLM 가공 공장. GPU 측 변경: - app/api/internal_study.py: GET /internal/study/explanation-context/{qid} Bearer auth, gather_explanation_context + _render_envelope_prompt 재호출. 204=evidence missing, 410=deleted/ready. - app/workers/study_queue_consumer.py: settings.study_explanation_enabled false 시 explanation 분기 skip (status/attempts 미변경, pending 유지 → Mac mini 흡수). - app/core/config.py: study_explanation_enabled + internal_worker_token 2 setting. - app/main.py: internal_study_router include (prefix /internal/study). - docker-compose.yml: fastapi ports → 100.110.63.63:8000 Tailscale bind, STUDY_EXPLANATION_ENABLED + INTERNAL_WORKER_TOKEN env 추가. Mac mini 측: ~/derived-worker/ (별도 push 0, 어제 작성). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hyungi added 1 commit 2026-05-15 13:36:22 +09:00
GPU = RAG context provider, Mac mini = LLM 가공 공장.

GPU 측 변경:
- app/api/internal_study.py: GET /internal/study/explanation-context/{qid}
  Bearer auth, gather_explanation_context + _render_envelope_prompt 재호출.
  204=evidence missing, 410=deleted/ready.
- app/workers/study_queue_consumer.py: settings.study_explanation_enabled
  false 시 explanation 분기 skip (status/attempts 미변경, pending 유지 → Mac mini 흡수).
- app/core/config.py: study_explanation_enabled + internal_worker_token 2 setting.
- app/main.py: internal_study_router include (prefix /internal/study).
- docker-compose.yml: fastapi ports → 100.110.63.63:8000 Tailscale bind,
  STUDY_EXPLANATION_ENABLED + INTERNAL_WORKER_TOKEN env 추가.

Mac mini 측: ~/derived-worker/ (별도 push 0, 어제 작성).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
hyungi merged commit 10244a726f into main 2026-05-15 13:36:27 +09:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hyungi/hyungi_document_server#21