Foundation phases delivered
Phases 0–4 established contracts, data, state, paper intent, and audit foundations.
Autonomous Trading Systems Lab · public-safe case study
I turned an ambiguous, high-consequence systems idea into a governed AI-assisted engineering program: bounded requirements, deterministic authority, observable evidence, independent review, and a human decision gate before consequential action.
This is not a story about asking a model to build a trading bot. It is a case study in implementation leadership: turning uncertainty into a system that knows its boundaries, exposes its evidence, and stops when proof is missing.
Phases 0–4 established contracts, data, state, paper intent, and audit foundations.
Language models may explain or propose. Deterministic code and human approval retain authority.
Documented, implemented, tests green, CI green, operator verified, and complete are not synonyms.
Real defects strengthened validators, regression tests, evidence rules, and review gates.
02 · The business problem
The domain is market research. The transferable challenge is broader: many AI implementations fail because the data, decision rights, and definition of proof remain vague.
A decision-support “Coach” combined structured market facts with on-demand model explanation. It proved the usefulness of deterministic facts first—and exposed the ceiling created by weak provenance and freshness.
The autonomous lab became a distinct system with a harder rule: models can contribute intelligence, but irreversible decisions remain outside the model layer.
Instead of building a monolith, the work moved through data contracts, deterministic state, auditability, risk rules, strategy, planning, simulation, evaluation, and readiness review.
A defect was not closed with a patch alone. It produced a regression test, stronger acceptance criteria, a clearer owner, or a safer stop condition.
The architecture is intentionally asymmetrical. Code owns facts, state, risk, audit, and future execution planning. Models operate in a shadow research plane where they can classify, explain, challenge, and propose without gaining runtime authority.
A model can disagree with the deterministic system. It cannot override it. Any useful proposal must survive a contract, evidence, review, and human promotion path.
The core capability is not code generation. It is the operating layer around AI: deciding what matters, translating it into contracts, routing the right work, judging the evidence, and protecting the final decision.
Clarify the user, objective, constraints, and consequence.
Define behavior, boundaries, owner, and acceptance evidence.
Implement the smallest useful, reviewable slice.
Compare expected and actual behavior with durable evidence.
Use independent review against the exact commit.
Turn gaps into tests, stronger judges, or explicit stops.
A human decides whether the evidence earns the next state.
| Role | What it owns | What it cannot do |
|---|---|---|
| Chien / operator | Problem framing, product direction, architecture, model routing, acceptance criteria, privacy, review, and final promotion. | Cannot treat persuasive model output as evidence. |
| Builder agent | Scoped implementation, tests, documentation, and exact-commit handoff. | Cannot self-approve consequential work. |
| Review agent | Independent inspection of code, CI, acceptance criteria, and unresolved threads. | Cannot rely on the builder’s summary as proof. |
| Deterministic system | Facts, state transitions, risk rules, audit records, and fail-closed behavior. | Cannot infer success when evidence is missing. |
A polished case study should not hide the seams. These incidents show the system learning: each one sharpened a test, validator, contract, or review rule.
The integration compiled, but the external date value was interpreted with the wrong semantics. The system rejected all telemetry rather than accepting corrupt input.
Samples appeared to advance while the replay clock had not moved. The validator caught the mismatch and exposed a loose evidence-capture rule.
Existence checks and timing assumptions could certify artifacts that did not actually establish the promised behavior.
A validation command could run, exit non-zero, and still appear complete. Independent review blocked the work before promotion.
This public view was reconciled against the private project’s current status, GitHub issue state, draft pull request, and CI on October 4, 2026. It describes engineering progress—not operational readiness.
In progress and deliberately unmerged. The protected `main` branch still holds a fail-closed RiskKernel stub. The draft branch contains independently accepted slices and active corrections, but it is not merge-ready.
Hard boundary: no `ALLOW`, no live brokerage execution, no profitability claim, and no work represented as complete beyond its evidence state.
The trading domain makes risk visible, but the operating capabilities transfer directly to AI implementation, technical solutions, onboarding, product operations, and customer-facing systems work.
I turn a broad goal into users, constraints, risks, decision rights, and a concrete definition of success.
I convert ambiguity into contracts, acceptance criteria, dependency order, and explicit exclusions.
I design around data quality, authority boundaries, observability, failure modes, and ownership.
I route research, building, review, and documentation to specialized tools while retaining accountability.
I compare expected and actual behavior using tests, logs, fixtures, CI, visual evidence, and human checks.
I make status, limitations, next actions, and ownership legible to technical and nontechnical stakeholders.
The public repository is intentionally layered: a recruiter can scan the result, an executive can understand the decisions, and a technical reviewer can inspect the method and its limitations.
Problem, ownership, architecture, proof boundaries, and role fit.
Return to the executive scanThe deeper written account, including evolution, failures, status, technology, and selected evidence.
Read the full case studyThe requirements, integration, evidence, human-gate, and learning loop in a reusable public-safe form.
Inspect the walkthroughHow the system handles scope, identity, dependencies, evidence, privacy, consequence, and release.
Review the gatesWhat AI tools contributed, what Chien owned, and which conclusions the work does not support.
Read the attributionVersioned public copy, maintenance notes, and the inspectable source for this page.
Open the repositoryThe takeaway
This project represents how I approach implementation roles: learn the workflow, make the boundaries explicit, connect the right tools, validate what actually happened, communicate in plain English, and remain responsible for the result.