TRUST OS
The Courtroom
for Code…
Every other AI gateway asks you to trust the model. Trust OS asks the model to stand trial. Code changes arrive as defendants: an independent Executor — not an LLM — inspects the evidence, a Risk engine prices the danger, and a passport is sealed into a hash chain. Humans no longer write code here. Humans write laws — and sit as judge.
The Five Layers
one attestation line — nothing skips a station, no change reaches production unexamined
Little's Law runs your review queue
L = λ × W
Review backlog (L) grows with arrival rate (λ) and time-per-review (W). You cannot hire your way out — you shrink λ with risk pricing (only dangerous changes reach a human) and shrink W with passports (the judge reads evidence, not diffs). Trust OS is that equation, implemented.
One change, three unrelated concepts?
A diff touching ≥3 unrelated concepts (say: auth + billing + rendering) gets its risk multiplied ×3 and can never be graded LOW — no matter how green the tests look. Coherence is priced, not assumed. Since v5.1 the concept map is learned from your codebase itself.
Genesis Ceremony
25/10/2026 · before the seal, the system had to prove it could bleed — three mutants were released against the three most important laws, in a sealed chamber
All three ceremony records are marked simulated: true — the mutants were built for the ceremony and executed against the real Executor. The ceremony fails if any mutant escapes, and it is idempotent: it can be re-run, never re-written.
Trust Capital Ledger
reputation is earned per module, never transferred, never bought — clean change +2 · failed audit −25 · incident −100 · at ≤ −50 every price triples
These are the only entries in the real ledger: the three sacrificial genesis modules, each at −100 and blacklisted (risk ×3) after the ceremony. New modules enter at 0 and earn their standing change by change. No illustrative balances are shown here — if a module is not listed, it has no history yet.
Intent vs reality
intent.md is the second human-owned file: what the system is for, in human words. The drift engine fingerprints real traffic (shape only — never content) and replays invariants against it. Probes planted in the store must never surface in responses; foreign content in a response is drift, and drift pages the judge.
Pain becomes legislation
An incident can only be closed two ways at once: −100 trust capital applied and a draft regression law forged from its fingerprint. Drafts wait in the Law Forge (section 04) — the forge proposes, it never edits the constitution. Only the human judge ratifies.
Law Forge
3 draft laws forged by the Genesis incidents — status: PROPOSED, awaiting ratification by the human judge
The model drafts a STRUCTURED proposal (id · trigger · rejection criteria · modules). It is stored as PROPOSED only — ratification stays a human decision. Needs the admin token from section 06 and a real provider (mock cannot draft).
v6.0.0 — Ten New Capabilities
the gateway grows from “chat with a queue” into a full developer platform — every capability below is a live endpoint on the active link
Live Operations
v6.1.0 · the invariants, watched as they run — plus the evidence-first kill-switch. Real data from the active link; nothing on this panel is simulated.
Without an admin token the panel shows the public /status feed only. Stage runs and kill-switch controls call the admin API on the ACTIVE link — the token never leaves this browser except as a request header to that link.
Bring Your Own Account
since v5.2 · the public gateway never touches your session — execution happens on your own machine, under your own login
Your account stays yours
Each user signs in with their own account, in their own browser, on their own machine. The worker only automates the UI of that already-logged-in session.
Then submit a remote job — POST /v1/remote-jobs — and poll it like any other job. Honest caveat, printed in the repo since day one: web providers answer in minutes, not milliseconds. Use jobs, not held connections.
API Link Manager
mọi đường dẫn vào gateway — một nơi quản lý; link đang ACTIVE sẽ lái toàn bộ endpoint directory, code mẫu và playground ở dưới · links & keys lưu trong localStorage của trình duyệt này
Keys ở panel này là demo keys — sinh ngẫu nhiên ngay trong trình duyệt để bạn thử luồng copy/dán và playground. Key thật do gateway cấp tại /admin và chỉ lưu dưới dạng hash SHA-256 phía server (INV-DATA-01). Demo keys được giữ trong localStorage để lần sau mở lại vẫn còn.
Get Started · Bắt Đầu Code Ở Đâu?
câu trả lời ngắn: cài gì cũng được — gateway nói tiếng OpenAI · 4 bước từ số 0 tới lời gọi đầu tiên, rồi cắm thẳng vào IDE / Cursor / VS Code
Chọn một link kết nối (mục 07)
Production dùng https://api.dotech.blog/v1. Chạy thử trên máy mình thì gateway local ở http://127.0.0.1:8787/v1 (máy này) hoặc :8790 trên VPS. Link ACTIVE hiện tại:
Lấy API key
Tạo demo key ở mục 07 để thử ngay, hoặc key thật từ trang /admin của gateway. Key chỉ hiện một lần — lưu vào biến môi trường DoAPI_KEY, đừng hard-code vào repo.
Gọi API như gọi OpenAI — chỉ đổi đúng 2 dòng
Thử ngay trong playground
Gửi một tin nhắn tới link đang ACTIVE bằng demo key đầu tiên trong danh sách. Nếu gateway khôngreachable từ trình duyệt này, playground hiện sample response và ghi rõ là sample.
Gateway có sẵn MCP server tại POST /mcp (tools: chat · summarize · search_codebase · usage) — hoặc mở Web IDE tích hợp ngay trong gateway tại /ide.
Release Line
mỗi bản đều deploy lên VPS ngay khi phát hành — luật bất di bất dịch của dự án