企业 AI 落地 SOP——先写清边界,再自动化。
Public SOP for enterprise AI: write the boundary before you automate.
Docs · Install / Demo · Website
This repository is a public consulting blueprint, not a product and not the fxai.ai website. It describes how 白泽明理 Baize AI (Hangzhou) designs organization-level AI work. For delivery (training, FDE on-site deployment, tool development), see https://fxai.ai/services/.
Do not treat this as a forex, trading, or “AI agent army” kit.
A five-stage SOP for enterprise AI: Diagnose → Access → Engineer → Deliver → Compound. Each stage has an exit test. If the test fails, stay. The rule above the five steps: write the boundary before you automate.
CTOs, legal, and delivery leads who must put AI into real workflows (requirements, implementation, review, release) and who can sign a one-page list of actions the model may take alone versus actions a person must approve.
Most teams buy seats first, then discover nobody owns the boundary. Scaling Copilot / Claude / Codex without that list just multiplies unowned actions. This SOP inverts the order: diagnose and sign the autonomous-vs-human table, then put permission, routing, cost, and audit in one access layer, then enter the development loop, then deliver with stage evidence, then compound into reusable skills.
| Link | What you get |
|---|---|
| Docs | Full method write-up |
| Install / Demo | Consultancy site and diagnostic booking (there is no product installer in this repo) |
| Website | Services ladder |
| In this repo | Quick start · Five stages · Contributing |
There is nothing to install from this repository. Use the SOP in one sitting.
- Copy the one-page check. Fill it in a 45-minute meeting with a business owner and someone who can speak for legal.
- If the boundary table (autonomous vs human-approved) is unsigned, stop. Do not buy more seats.
- Walk the five stages in order. Each stage has an exit test. If it fails, stay. Do not skip Access to chase Delivery.
- Adapt the tables in this README inside your company. Execution stays with your team.
- Read the full method at fxai.ai/method. Book a diagnostic via fxai.ai.
That is the start path: a meeting, a signed boundary, then the next failing exit test.
Write the boundary before you automate.
If the team cannot list, on one page, which actions AI may take alone and which actions a person must approve, do not scale tools. Scaling without that list just multiplies unowned actions.
Diagnose → Access → Engineer → Deliver → Compound
诊断 接入 工程 交付 沉淀
Each stage has an exit test. If the test fails, stay. Do not skip Access to chase Delivery.
Question: Where does AI already run, where is it blocked, and where should it never run?
Collect
- Tools in use (Codex, Claude Code, Cursor, Copilot, chat UIs, unofficial relays)
- Who holds keys and subscriptions
- Which data classes have already left the company
- One real workflow that management wants faster (not “we want to use AI”)
Produce
- A two-column boundary table: autonomous vs human-approved
- A priority list of three workflows, with the reason the others wait
- A risk note: data, audit, vendor lock-in, shadow IT
Exit: Legal and a business owner can both sign the boundary table without adding a new committee.
Do not: Start by buying more seats. Seats are not a diagnosis.
Question: How does the organization call models so permission, routing, cost, and audit live in one place?
Minimum access layer (Codex relay or LLM API gateway):
| Control | What “done” looks like |
|---|---|
| Auth | Team keys, not personal API keys in repos |
| Route | Task type → primary model, with an explicit fallback |
| Limit | Per-team quota. Burst fails closed, not open |
| Cost | Monthly spend by team, without opening five vendor consoles |
| Audit | Who called what, when, from which app. Prompt bodies retained only as long as policy allows |
| Degrade | Upstream 5xx or policy deny returns a defined backup, not a raw vendor error in the product |
Produce: architecture sketch, permission matrix, retention window, incident path.
Exit: A new engineer can get a key, make a call, and appear in the audit log the same day, without borrowing someone else’s ChatGPT Plus.
Do not: Put a commercial relay in the path if prompts or repo context must stay inside the company boundary. A private gateway still sends the request to the upstream model. It only removes the extra middleman.
Details we use with clients: What an LLM API gateway actually solves.
Question: How does AI enter the real development loop (requirements, implementation, test, review, docs) instead of living in side chats?
Two designs belong here.
AI development SOP
- Which tickets Codex / Claude Code / Cursor may finish alone
- What must stay a human draft
- What the PR description must disclose (“AI-assisted: scope X”)
- Who owns the merge if the model wrote the bulk of the diff
Loop Engineering
A loop is not “try again in the chat.” It is a designed cycle:
- Plan the change against an acceptance check
- Execute
- Observe (tests, traces, reviewer notes)
- Correct, then stop when the check passes
Three loops we install most often:
- Eval loop for a recurring task (a small golden set beats a vibe check)
- Agent loop for multi-step work (plan → act → look → fix)
- Production loop (failures become the next eval, not a Slack shrug)
Exit: The same task run twice, two weeks apart, is scored the same way. Quality is no longer “this time it felt good.”
Do not: Raise test coverage as the goal. Models will pad tests. Lock behaviour with an oracle, then let structure move. See Loop Engineering and engineering guardrails.
Question: What is the path from an idea to a shippable increment, with a check at every stage?
Produce
- Stage list (problem, design, build, verify, release)
- Owner per stage
- Evidence required to leave the stage
- Explicit non-goals (what this increment will not do)
White-Ze only designs this path. The client team builds. We do not staff an outsourcing bench.
Exit: A non-engineer executive can point to the current stage and the evidence that is missing.
Question: What becomes reusable so the next team does not start from a chat history?
Typical assets:
- Skills (procedures the model must follow, not one-off prompts)
- The boundary table, living next to the repo
- Eval sets
- Incident notes from Access
Exit: A new hire can run the Access + Engineer path from documents, without a verbal tour.
Copy this. Fill it in a meeting. If a row is blank, that row is the next design job.
| # | Check | Yes / No / Date |
|---|---|---|
| 1 | Boundary table exists and is signed | |
| 2 | Personal model keys are gone from application code | |
| 3 | There is one gateway or relay, with fallback written down | |
| 4 | Cost can be answered for last month in ten minutes | |
| 5 | An incident can be replayed from logs | |
| 6 | AI-assisted PRs disclose scope | |
| 7 | At least one eval set exists for a recurring task | |
| 8 | A delivery increment has stage evidence, not a demo video only | |
| 9 | One Skill or SOP is reused by two people |
- Customer names, prompts, or architecture that identifies a client
- Vendor account sharing instructions
- “Best AI forex bot” copy, or any trading system
- A promise that we will write or operate your production system
- Fake product screenshots or demo GIFs (this is a methodology, not an app)
For the full service ladder and a diagnostic booking path, use https://fxai.ai.
There is no product roadmap and no versioned software release. This is a public SOP. Honest placeholders until a numbered edition exists:
- SOP edition tags (for example
sop-0.1) when the five stages or exit tests change in a breaking way. None exist yet. - Translated one-pagers (tables only) if volunteers land. The locked category lines stay bilingual as they are.
- Community hygiene (this conversion): first-screen README, contributing/conduct/security, issue and PR templates, stale bot, release drafter, weekly star chart.
See Releases. Draft notes will appear after merges; no GitHub Release has been published yet.
Generated weekly by GitHub Actions (maolonglong/actions-starcharts) and written back to images/starcharts.svg. The placeholder in that path is replaced after the first successful run on the default branch. This is a star-history chart, not a product usage graph.
See LICENSE. Documentation in this repository is provided as-is for reading and adaptation inside your company. Brand names 白泽明理 and Baize AI remain with Baize Tech.
Notes on fxai.ai (in Chinese) that go deeper on single stages of the SOP:
- AI 落地场景先挑哪类?先看结果能不能当场验证: Diagnose. Pick work whose results can be checked right away.
- 企业给 Agent 开工具权限,先开哪类、后开哪类: Access. Open tool permissions step by step, by the cost of each action.
- 企业 AI 试点为什么先从一个部门开始: Engineer. Start with one department and one workflow that can be accepted or rejected.
- Agent 试点能跑通,扩到生产还缺哪几项?: Deliver. What a working pilot still lacks before it goes to production.