docs: thêm hướng dẫn cấu hình OpenRouter end-to-end và bản đồ biến môi trường (env map) (fixes #415) - #454
Open
CodingMinh wants to merge 1 commit into
Open
docs: thêm hướng dẫn cấu hình OpenRouter end-to-end và bản đồ biến môi trường (env map) (fixes #415)#454CodingMinh wants to merge 1 commit into
CodingMinh wants to merge 1 commit into
Conversation
…i trường (env map) (fixes #415)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tóm tắt (Summary)
Fixes #415.
Pull Request này cung cấp tài liệu hướng dẫn (runbook) cấu hình OpenRouter end-to-end toàn diện, làm rõ ranh giới các environment variable prefixes giữa CLI/Desktop (
FILECONV_*) và Web/Worker (MARKHAND_*), đồng thời cập nhật mẫu cấu hìnhdeploy/.env.example.Các thay đổi chính
docs/runbooks/openrouter-intern-setup.md):FILECONV_*(dùng cho CLI cục bộ và Markhand desktop app, tự động fallback từFILECONV_OCR_API_KEYsangFILECONV_LLM_API_KEY) vàMARKHAND_*(dùng cho Web API và server background workers). Giải thích cơ chế cô lập mạng của Linux Landlock sandbox (CLONE_NEWNET): worker chạyfileconvtrong sandbox hoàn toàn không có mạng và không nhận API key, các tác vụ Vision OCR được hoãn (deferred OCR) sang stage tiếp theo của worker ngoài sandbox.qwen/qwen3-embedding-8b(229680cc2d8df20a0776d3c06b31f88a9d0f201f2047b3849e2c9ea47545629f).docs/runbooks/README.md):openrouter-intern-setup.mdtrong danh mục runbooks.deploy/.env.example):Danh mục tiêu chí nghiệm thu (Acceptance Criteria)
deploy/.env, đã chạy kiểm tra sanitization)python3 scripts/check-dependency-policy.py)Minh chứng kiểm thử (Verification Evidence)
COMPOSE_PROFILES=mock deploy/scripts/up.sh, toàn bộ dịch vụ Postgres, Qdrant, MinIO, Mock-Embedding đều báohealthy.DependencyMissingkhi chưa cấu hình Vision OCR (không nuốt lỗi âm thầm).deploy/scripts/print-index-signature.pytrả về đúng SHA-256229680cc2d8df20a0776d3c06b31f88a9d0f201f2047b3849e2c9ea47545629f.python3 scripts/check-dependency-policy.pyđã vượt qua.