기존 Cotton 로고에서 배경과 글자를 제거한 웃는 목화 캐릭터

Cotton

Translation workflow

RPG 대사를 용어집에 맞춰 12개 언어로 번역해 주는 웹 앱입니다.

주머니에 몰래 넣어 온 씨앗 하나가, 온 동네의 겨울을 따뜻하게 바꿉니다.

2026.05.06 — 2026.05.26

pinxlab AI R&D 프리랜스 · 번역 처리·판정·검토 경로

  • 웹 앱구현 · 개발 환경

Cotton vocabulary

Prompt Layers: SYSTEM_PROMPT_L0 · buildTranslateUserMessage · L1 CONTRACT · L3 SPEAKER · L6 SOURCE · L7 INSTRUCTION · ICU PLACEHOLDER · INLINE TAG · TARGET TEXT ONLY · FORCED MAPPING · L2 GLOSSARY · speaker_keyGlossary: glossary_term · fetchGlossaryHits · canonical_form · forbidden_translations · SUBSTRING MATCH · FORCED MAPPING · FORBIDDEN ALTERNATIVE · L2 GLOSSARY · glossary_hits · glossary_complianceGeneration: AdapterRegistry · anthropic-sdk · openai-sdk · claude-local · codex-local · llm_plan · PIVOT_VIA · shouldPivot · COTTON_ADAPTER_CONCURRENCY · NODE_OPTIONS · pivot_register_carry · translation.refinedRevision: buildTranslateUserMessage · L7 INSTRUCTION · runRefinementLoop · priorAttempt · priorCritique · REJECTED BY THE JUDGE · maxTurns · willRetry · RefinementHooks · HOOK ABORT · turn_count_to_final · critique_for_retry · failingDimensions · cost_ceiling_usd · needs_reviewJudge: glossary_hits · runJudge · JUDGE_SYSTEM_PROMPT · judgeModel · TEMPERATURE 0 · parseJudgeResponse · FOUR-SECTION XML · VERBATIM CHUNKS · severity · critique_for_retry · judge_citation · missingHardGates · TRIGGER ABSENT = PASS · judge.scoredHard Gate: ICU PLACEHOLDER · INLINE TAG · FORBIDDEN ALTERNATIVE · hard_gate_fail · hardGatePassed · glossary_compliance · cps_budget_compliant · icu_validity · inline_tag_preserved · length_constraint · HARD GATE FIRST · missingHardGates · TRIGGER ABSENT = PASSScore: HARD GATE FIRST · computeVerdict · cottonEvalScore · WEIGHTED AVERAGE · tone_register · personality_consistent · emotional_state_match · cultural_marker_preserved · accuracy · pivot_register_carry · auto_approve_threshold · failingDimensions · approval_gate · judge.scoredIntake: processXlsxBytes · classifySheetName · parseGoogleSheetsUrl · source_file · content_sha256 · extractStageDirection · speaker_key · ingest_session · segment.ingested · github.push.receivedCheckpoint: translation_progress · last_completed_step · turn_translated · turn_judged · finalized · jobEntryGuard · SELECT FOR UPDATE · attempt_count · DEFAULT_MAX_RESUME_ATTEMPTS · TWO-TX SPLIT · ON CONFLICT DO NOTHINGSpend Control: llm_plan · costCap · cost_ceiling_usd · rateLimit · FailoverDispatcher · haltOnQuota · detectQuotaFromStream · quota_daily_exhausted · auth_revoked · NO AUTO-SWAP · needs_credential · POST /:id/resumeStale Sweep: COTTON_ADAPTER_CONCURRENCY · NODE_OPTIONS · attempt_count · runStaleSweep · STALE_THRESHOLD_INTERVAL · DLQ_ATTEMPT_CAP · LIMIT 200 · re_enqueued · dead_lettered · ORPHAN RE-ENQUEUE · IN-FLIGHT SET · /health/queues · maxStalledCount · needs_reviewApproval: auto_approve_threshold · ingest_session · SELECT FOR UPDATE · needs_credential · POST /:id/resume · POST /:id/approve · POST /:id/unapprove · POST /:id/reject · APPROVE_FROM · REJECT_FROM · needs_review · reviewer_id · HITL · approval_gate · translation.approved · EDIT & APPROVE · actor_idCorrection: POST /:id/correct · corrected_text · CORRECT_FROM · EDIT & APPROVE · human_corrected_segments · human-corrected-after-mt · translation.human_corrected · supersedes · NEW REVISION · IMMUTABLE HISTORYAudit Trail: turn_count_to_final · severity · judge_citation · content_sha256 · segment.ingested · github.push.received · translation.approved · human_corrected_segments · translation.human_corrected · IMMUTABLE HISTORY · event_log · appendNextEvent · ULID · AGGREGATE VERSION · translation_state_log · actor_id · llm_call_log · telemetryHook · judge.scored · translation.refined

Stack

Hono API가 업로드된 대본을 PostgreSQL에 기록한 뒤 Redis 위 BullMQ에 넣으면, 워커가 용어집을 붙여 번역 생성과 판정을 같은 어댑터(Anthropic·OpenAI SDK 또는 Claude Code·Codex CLI)로 호출해 Drizzle ORM으로 기록하고, 한도에 닿으면 사람 검토로, 할당량·인증 신호에는 자격 확인 대기로 넘기며, 멈춘 초안은 stale sweep이 되돌립니다.

  1. Stack
  2. Network
Hono API가 업로드된 대본을 PostgreSQL에 기록한 뒤 Redis 위 BullMQ에 넣으면, 워커가 용어집을 붙여 번역 생성과 판정을 같은 어댑터(Anthropic·OpenAI SDK 또는 Claude Code·Codex CLI)로 호출해 Drizzle ORM으로 기록하고, 한도에 닿으면 사람 검토로, 할당량·인증 신호에는 자격 확인 대기로 넘기며, 멈춘 초안은 stale sweep이 되돌립니다. 크게 보기
Network개발 Mac 한 대에서 브라우저가 Next.js(3000)와 Hono API(4000)에 HTTP로 붙고, API와 BullMQ 워커는 Docker Compose의 Redis(6379)와 PostgreSQL(5432)에 TCP로 연결되며, 워커는 SDK로 Anthropic·OpenAI에 HTTPS로 나가거나 Claude Code·Codex CLI를 표준 입출력 자식 프로세스로 띄웁니다. GitHub 웹훅을 받을 공개 경로는 저장소에 없습니다.
Network 크게 보기