Working documents

AI product artifacts

Frameworks are easy to describe. These are the working documents behind them: the templates I start from, and real examples taken from the products in my case studies. Nothing here is a mock-up. Where something is designed but not yet run, it says so.

1. AI feature spec (template)

Every AI feature I scope answers the same seven questions before anyone writes a prompt. Filled-in versions are the "Decisions at a Glance" tables in the Ultipad, RAGOS, and DeepAgent for funnels case studies.

SectionWhat it must answer
1. Should this be AI?The user problem, today's workaround, and an AIM score. Below 10, stop: traditional software wins.
2. Is the data sufficient?What the model sees at decision time, where it comes from, how fresh it is, and what's missing.
3. Acceptable failure modeThe wrong output we can live with, and the one we can't. The second one needs a structural guard, not a prompt.
4. Architecture that limits the damageWorkflow or agent, which model does which job, and where deterministic code takes over.
5. How it's evaluatedThe metric, the threshold, the golden set, and the release rule. Written before the build.
6. Cost at production scaleCost per successful outcome, not per call, at expected volume, plus the latency budget.
7. Where humans stay in controlEvery approval point, every override, and who owns the escalation.

Close with out of scope and kill criteria. If you can't say what would make you stop, you're not ready to build.

2. Evaluation plan (as run on RAGOS)

This is the plan the RAGOS eval pipeline actually runs. The reasoning is in Faithfulness over accuracy.

Primary metricFaithfulness: does the answer stay inside what retrieval returned?
Floor0.85. Below it the model is confabulating, and the first suspect is retrieval, not the prompt.
Live result0.96 faithfulness in live use
Phase ARetrieval quality on a golden set of known-answer queries. Are the right chunks coming back?
Phase BThe full pipeline on representative queries: expansion, retrieval, reranking, generation, citation.
Phase CReal production conversations, scored by an LLM judge against the retrieved context.
Golden setHalf the test questions harvested from real user feedback. Every 👍/👎 feeds the set.
Release ruleEvery deploy runs the golden-set gate. A failing deploy rolls back automatically.
Cost~$0.001 per grounded answer, cheap enough to judge every answer, not a sample.
Doc-gap loopWhen the docs don't contain the answer, the gap is logged and lands in a weekly digest.

3. Decision records

Three real decisions, written the way I record them: context, decision, alternatives, consequences.

DR-01 · Score spec drift with a decision model, not an LLM (Ultipad)

DR-02 · Self-host the RAG pipeline, no Dify or LangFlow (RAGOS)

DR-03 · Enforce agent approval on the server, not in the prompt (DeepAgent for funnels)

4. Experiment design: value-first onboarding (Ultipad)

Designed, not yet run. From the Ultipad honest teardown.

ProblemFour human steps before an agent delivers any value. Cold start kills the loop.
ControlCeremony-first onboarding: evidence → decision → spec → approval → agent value.
TreatmentValue-first: the spec is auto-drafted from the developer's first prompt, then approved retroactively.
HypothesisValue-first raises week-4 loop completion without raising drift incidents.
Primary metricWeek-4 loop completion rate
GuardrailSpec approval stays human. If auto-draft quietly becomes auto-approve, the test measures a different product.
Kill criterionIf teams using the gate ship wrong features at the same rate as teams without it, the gate is theater.