Skip to main content
System One is CosVec’s model for building AI-powered software, not agents. It does not generate code or choose its own next action. It provides AI primitives that embed into software, so code remains in control while the model handles common-sense judgments over unstructured data.
Summary: build a normal software workflow and insert System One only where AI is needed.
  • Keep control flow, deterministic rules, and side effects in code.
  • Break broad judgments into narrow, typed questions with explicit instructions and criteria.
  • Give each question only the context it needs.
  • Use probabilities and confidence to act, ask for review, or escalate.
  • Ask independent questions together, then compose their answers in code.

Three software architectures

CosVec is designed for building AI-powered software, where code owns the workflow and AI handles narrow, structured decisions.
Traditional code is a complex decision tree made from simple software primitives. Because each primitive is reliable, developers can compose them into higher-level abstractions.
Traditional software, agents, and AI-powered software shown as three different system architectures.Traditional software, agents, and AI-powered software shown as three different system architectures.

What makes System One composable

Structured

System One is type-safe by construction. Decisions and probabilities conform to the structured software types and JSON schema your code expects, so it never has to recover a value from generated prose.

Parallel

Questions are evaluated independently and in parallel. One primitive’s result does not become hidden context that changes another primitive’s result.

Comparable

Outputs are sortable and can drive smart if statements, thresholds, and comparisons.

Fast

Most queries complete in about 100 ms. System One is fast enough for real-time request paths and user interfaces.

Calibrated confidence

RLCD communicates uncertainty through calibrated probabilities instead of tending toward overconfidence.

Self-consistent

System One is designed to return stable answers across repeated evaluations. See the self-consistency cookbook.
Because every output is constrained to the supplied options, the model returns a full probability distribution over those options rather than inventing a value outside the schema. CosVec’s target is a greater than 100× intelligence-to-speed-and-cost ratio; the underlying bet is that cheaper intelligence will create much more demand.

Design a System One workflow

1

Use code when you can

Keep deterministic work in code. It is reliable and cheap. Avoid agent while loops when a software workflow can express the same behavior.
Browse the System One patterns for bounded ways to compose model decisions with code.
2

Decompose the input state

Include only the context relevant to the current questions. This helps the model avoid distractions and context rot. Do not rely on knowledge stored in model weights when current information can come from your own knowledge base.
3

Use structure in the input state

Use nested JSON for the state and questions fields. Point questions at specific values when that removes ambiguity, and include the backtick characters around each path inside the question.
Use a backticked dot-and-index path to point a question at a specific nested value, such as support.tickets[0].message.
4

Decompose the questions

Ask the most explicit, narrow, specific, atomic questions you can. Break down complex or ill-defined questions into separate questions that each evaluate one property.
This is probably the most important concept in this guide. Broad questions hide several judgments behind one answer. Atomic questions expose those judgments so you can inspect, tune, and combine them in code.
5

Use structure in the questions

Keep questions short. instructions and criteria are usually strings, and for a short, unambiguous question a string is all you need. They can also be objects or arrays. Put the question in one field and the data that guides the question in the others.Structure helps in these situations:
  • The question needs context or examples. A long sentence of background information or a list of example inputs belongs in named fields next to the question, where your code can add to them or swap them without rewriting the question.
  • Part of the question comes from your code. When a value comes from a database, put it in its own field instead of splicing it into a string template.
  • Several questions have similar instructions. A request takes one state and can include multiple questions. Adding supplementary data can help make questions distinct.
This Noul compares a resume in the state against a record from a candidate database. The record goes into potential_duplicate as it is, and the question refers to it by name.
The “potential_duplicate” data sourced from code can change over time. The “question” references it using backticks.The descriptions inside criteria can be objects too. For a Choice, each option’s description can be an object that says what the option covers, what belongs to a different option, and a few examples. Use the same field names across options so the model can compare them directly.
Each question type’s page has a worked example:
  • Noul compares one resume against several candidate records, one question per record, with the questions built in code.
  • Choice describes two easily confused options with what each covers, what it’s not for, and examples.
  • Score gives each level a description and example situations.
The structured-data-extraction cascade cookbook shows the shared-wording case, asking the same battery of questions about every field of an extracted record.A short, unambiguous question or criterion can remain a string. Add structure when it separates guidance that would otherwise blur together. For the full set of places structure is accepted, see Advanced: structure.
6

Ask a lot of questions

Ask many narrow, independent questions about the same state in one request. This is how you maximize effectiveness and intelligence per dollar with the API: questions run in parallel, and code can combine their signals without adding serial model round trips.See the Speculative Fan-Out pattern and Parallel questions cookbook.
7

Combine question outputs in code (or feed into a classical ML model)

Combine independent answers with deterministic rules or weighted sums. For learned composition, use the probabilities as features in a downstream classical machine-learning model.
Composite Scoring shows how to preserve individual judgments while combining them. If you do not have labels for a downstream model, use an ensemble of expensive reasoning models to generate them; the AutoResearch cookbook shows how to train a classical model on System One outputs.
8

Route on uncertainty

Make code take different actions for confident and unconfident answers. Escalate uncertain cases to a person or a more expensive reasoning model. Test thresholds by plotting confidence against accuracy on your data.
See Confidence and Confidence-Gated Routing for choosing thresholds and matching them to the risk of each action.
Decomposition does not require more round trips. Questions over the same state run in parallel.

Putting it all together

This support-ticket workflow keeps deterministic work in code, sends only relevant structured context, evaluates many atomic questions in one request, and composes the answers with explicit confidence gates.
triage_ticket.py