# The Teammately correctness loop Generated: 2026-11-11T10:25:13.652Z Source build: local Canonical docs: https://teammately.ai/docs --- id: product-loop title: The Teammately correctness loop summary: See how expert inquiry, standards, coverage, experiments, and improvement inform one another. kind: concept product_area: introduction status: stable updated: 2026-11-06 canonical: /docs/product-loop --- # The Teammately Correctness Loop The next useful development question often comes from the work you just completed. A comparison reveals an exception. A trial exposes a missing condition. An expert’s explanation suggests a better Case. Teammately keeps those discoveries connected so your team can deepen its understanding and improve the system against it. ## Definition Lemon Elicit develops expert reasoning into proposed standards. Rubrics and Policies express what matters and where it applies. Coverage Engineering defines the situations the benchmark should examine. Lemon Weave constructs material around that design. Trialground assesses candidate behavior, and Harness improvement or Weights training puts the findings to work. ## Decision checkpoint | Finding | Follow it into | Useful next question | | --- | --- | --- | | Experts prefer different outputs | A focused Contribution | Which condition or responsibility explains the difference? | | A criterion applies too broadly | Policy or rubric applicability | Which Cases should it govern? | | A consequential combination is missing | Coverage Design | What would a Case need to demonstrate? | | The candidate fails a clear requirement | Harness development | Which intervention could change the behavior? | | A recurring distinction needs teaching | Weights training | Which examples teach it, and how will it be assessed separately? | ## Before and after | Before | After | | --- | --- | | A surprising result | A concrete question about behavior or the standard | | An expert qualification | Reviewed wording and applicability | | A coverage need | A Case with a clear construction purpose | | A proposed intervention | A saved candidate and comparable trial results | ## Read the connection in both directions From a result, inspect the Case, applicable criterion, and candidate behavior. From a standard, inspect its rationale, expert contribution, applicability, and representative Cases. These paths help distinguish an implementation problem from an unclear expectation or missing situation. Each finding can then reach the people and workflow best placed to resolve it. {% example-demo title="A boundary the aggregate concealed" %} A Harness improves overall, but Cases with conflicting documents regress. The team inspects the rubric results and asks a specialist which source should control. The answer sharpens applicability, motivates a new coverage tuple, and gives the engineer a more precise source-selection objective. {% /example-demo %} ## Related workflows {% related-card-grid title="Choose the next piece of work" %} - [Product Quickstart](/docs/quickstart) - [Lemon Elicit](/docs/concepts/correctness-elicitation) - [Coverage Design](/docs/coverage-design) - [Lemon Goal](/docs/concepts/lemon-goal) - [Weights Training](/docs/weights-training) {% /related-card-grid %} ## Related reference pages {% related-card-grid title="Inspect the basis of a result" %} - [Rubrics and Policies](/docs/correctness-governance/policies-and-rubrics) - [Benchmark Evaluations](/docs/benchmark-evaluations) - [Object Model](/docs/object-model) {% /related-card-grid %} --- id: intro.correctness-infrastructure title: AI Alignment Infrastructure summary: Connect expert judgment, explicit standards, coverage, and experiments into an enduring capability for improving enterprise AI. kind: concept product_area: introduction status: stable updated: 2026-11-06 canonical: /docs/introduction/correctness-infrastructure --- # AI Alignment Infrastructure Your enterprise’s expertise lives in the way people do their work. A specialist recognizes a missing constraint. A reviewer explains why two similar situations require different decisions. A team knows which tradeoffs it accepts and who can settle a disagreement. AI Alignment Infrastructure carries that knowledge into development and keeps it useful as systems and requirements change. ## Definition Teammately connects the work of experts, product owners, and engineers: - **Lemon Elicit** prepares contributions and follows the reasoning behind expert decisions. - **Rubrics and Policies** express requirements, applicability, and how judgments combine. - **Coverage Engineering** defines which situations the benchmark should represent. - **Lemon Weave** constructs Cases, supporting material, and targeted training examples. - **Trialground** executes saved Harnesses and assesses recorded behavior. - **Lemon Code and Lemon Goal** develop and investigate candidate implementations. These capabilities reinforce one another. A surprising trial can reveal an omitted condition. A specialist’s qualification can change the rubric and the Cases needed to exercise it. ## Decision checkpoint | Question | Begin with | Useful result | | --- | --- | --- | | Which distinction changes the expert’s decision? | Expert Contributions | A reason, condition, or exception | | How should the system be assessed? | Correctness Governance | Applicable rubrics and Regime treatment | | Which situations should be represented? | Coverage Design | Stories, tuples, and intended proportions | | What did the candidate actually do? | Trialground | Responses, captured trajectories, and judgments | | What should development investigate? | Lemon Code, Lemon Goal, or Weights training | A candidate intervention and a way to assess it | ## Make expertise reusable A single expert answer can inform more than one example. Preserving its reasoning lets a team apply the distinction across Cases, investigate exceptions, and return with a focused question when a later result challenges the standard. The Project Agent Brief and Reference Materials supply shared context. Contributions retain the specialist’s judgment. Policies and rubrics express accepted standards. Benchmarks make the situations and criteria explicit. Experiments show how a candidate behaves under those conditions. ## Keep the development decision connected A benchmark score is useful when the team can trace it to the conditions tested and the criteria applied. Inspect which requirements improved, which regressed, and whether the Case population supports the intended conclusion. Engineers can use that finding to change retrieval, instructions, tools, or orchestration, or to prepare material for weights training. Experts can clarify a requirement when the result exposes an unresolved judgment. {% example-demo title="A recommendation that fits the business" %} A merchant explains why a relevant product is a poor substitute when a required accessory is unavailable. Lemon Elicit develops the qualification into a proposed criterion. Coverage Design represents availability and substitution conditions. Trialground compares recommendation Harnesses, and the engineer can see whether a change respects the merchant’s distinction across those Cases. {% /example-demo %} ## Related workflows {% related-card-grid title="Put the connection to work" %} - [Product Quickstart](/docs/quickstart) - [Working with Lemon](/docs/concepts/lemon) - [The Teammately Correctness Lifecycle](/docs/introduction/correctness-lifecycle) {% /related-card-grid %} ## Related reference pages {% related-card-grid title="Find the right scope" %} - [Product Map](/docs/getting-oriented/product-map) - [Object Model](/docs/object-model) - [Product Responsibilities](/docs/introduction/product-boundaries) {% /related-card-grid %} --- id: concepts.correctness-elicitation title: Lemon Elicit summary: Uncover the reasoning, preferences, and exceptions behind expert judgments and develop them into reviewed standards. kind: concept product_area: correctness_elicitation status: stable updated: 2026-11-06 canonical: /docs/concepts/correctness-elicitation --- # Lemon Elicit An expert’s choice often raises the next useful question. Which condition changed the decision? Was it a requirement or a preference? Would the same judgment apply in another operating context? Lemon Elicit prepares and adapts Contributions to explore those distinctions. Experts contribute their reasoning while Lemon organizes the context, questions, and interpretation. ## Definition Elicitation can take the form of output curation, pairwise or listwise comparison, trajectory review, a form, chat, or a voice interview. The learning objective gives the work its purpose. Lemon develops findings into proposed policies, rubrics, and coverage. Experts inspect whether those proposals preserve their intent. An unresolved qualification gives the team a focused reason to continue the inquiry. ## Decision checkpoint | What the team needs to understand | Useful contribution | What to examine | | --- | --- | --- | | What makes an answer acceptable | Curation | The answer, correction, and rationale | | Why one approach is preferable | Pairwise or listwise comparison | The tradeoff and the condition that changes it | | Whether the path was acceptable | Trajectory review | Recorded reasoning summaries, tool use, and actions | | Knowledge beyond the prepared example | Form, chat, or interview | Explanation, exceptions, and follow-up questions | | Whether a proposed standard preserves intent | Policy or rubric review | Wording, applicability, and the explicit decision | ## Prepare the context Project Context supplies the Project Agent Brief. Reference Materials provides indexed project knowledge. The Contribution selects its objective, experts, Cases, contextual attachments, and permitted work. Review Screens shape presentation; Comparison Directions guide alternatives. An expert should be able to see why the question matters and which information supports it. Ask for a focused distinction the team can put to use. ## Review the interpretation A specialist’s explanation may reveal a missing condition, an exception, or a responsibility shared across teams. Inspect the proposed policy and its applicability alongside the Cases that make the distinction concrete. Use the presented approval controls to accept or reject the exact standard. Discussion lets the expert qualify meaning; the explicit decision records whether the proposed artifact should move forward. ## Carry the finding into development Accepted criteria guide benchmark assessment. Coverage observations identify situations the team should represent. Lemon Weave constructs material around those distinctions, while Trialground and Harness improvement use the resulting benchmark to investigate behavior. {% example-demo title="When a substitute is acceptable" %} A merchant prefers one alternative because it preserves a customer’s required use. A follow-up reveals that the preference changes when an accessory is unavailable. Lemon Elicit develops the qualification into proposed criteria and a coverage observation. The expert reviews both before the team uses them to guide recommendation development. {% /example-demo %} ## Related workflows {% related-card-grid title="Work with your experts" %} - [Request an Expert Contribution](/docs/expert-contributions/request-contribution) - [Complete an Expert Contribution](/docs/expert-contributions/complete-contribution) - [Contributed Artifacts](/docs/expert-contributions/contributed-artifacts) {% /related-card-grid %} ## Related reference pages {% related-card-grid title="Express the resulting standard" %} - [Rubrics and Policies](/docs/correctness-governance/policies-and-rubrics) - [Comparison Directions](/docs/assets/comparison-directions) - [Review Screens](/docs/assets/review-screens) {% /related-card-grid %} --- id: concepts.weave title: Lemon Weave summary: Construct Cases, controlled alternatives, supporting materials, and targeted training examples from coverage needs and expert judgment. kind: concept product_area: weave status: stable updated: 2026-11-06 canonical: /docs/concepts/weave --- # Lemon Weave A useful synthetic Case makes a missing distinction observable. Lemon Weave constructs situations around the conditions, exceptions, and tradeoffs your benchmark needs to examine. Coverage supplies the purpose. Selected ontology tuples describe the conditions that should occur together; the Case and its materials give those conditions a concrete form. ## Definition Lemon Weave constructs candidate Cases, controlled response alternatives, and supporting artifacts from project context and coverage design. Cases follow **Project Input Schema**, including required inputs and accepted material formats. Worlds describe environment state and capabilities for tasks that unfold through action. Static documents, images, workbooks, source files, and other supporting content travel with the Case as materials. The configured experiment determines how the Harness uses its environment. The same coverage foundation guides targeted dataset augmentation for weights training. ## Decision checkpoint | Your need | Start with | Inspect | | --- | --- | --- | | Exercise a missing combination | Coverage Design → Canvas | The tuple, Case, and what it demonstrates | | Reuse a real example | Assets → Cases and Benchmark Datasets | Input, materials, and intended membership | | Examine a tradeoff | Comparison Directions and Expert Contributions | Controlled alternatives and expert reasoning | | Supply supporting artifacts | Project Input Schema and Case materials | Accepted formats and required context | | Teach a recurring failure | Weights training | Demonstrations or preferences, splits, and coverage | ## Make the difficulty meaningful A challenging Case can combine ordinary conditions in a consequential way: an urgent request, an outdated source, and an exception requiring approval. Each condition should matter to the behavior being assessed. Review whether the input and materials make the situation understandable. Inspect the controlling facts, ambiguity, and source relationships. Select Cases that add the intended coverage to the Benchmark. ## Develop teaching material from the same distinction An expert rubric can identify what a demonstration should teach. Ontology tuples guide variation across examples. Preference data can contrast approaches where the expert’s reasoning explains the better choice. In **Weights training**, inspect Dataset and Coverage, prepare an exact download, or configure a connected training service. Dataset construction and training execution are separate operations. The selected training environment and agreement determine training compute and execution scope. Keep separate assessment Cases for judging whether the trained candidate carries the behavior beyond its teaching material. {% example-demo title="Two documents with different authority" %} A tuple combines a customer-impacting exception with a plausible superseded document. Lemon Weave prepares the request and both documents. A specialist examines whether the Case makes the authority conflict clear. The same distinction can later guide training examples, with separate benchmark Cases used to assess the resulting model. {% /example-demo %} ## Related workflows {% related-card-grid title="Construct and review material" %} - [Coverage Design](/docs/coverage-design) - [Review Prepared Cases](/docs/coverage-design/case-review) - [Weights Training](/docs/weights-training) {% /related-card-grid %} ## Related reference pages {% related-card-grid title="Connect the context" %} - [Project Input Schema](/docs/project-settings/input-schema) - [Comparison Directions](/docs/assets/comparison-directions) - [Worlds](/docs/assets/worlds) {% /related-card-grid %} --- id: concepts.trialground title: Trialground summary: Execute saved Harnesses in managed sandboxes and assess recorded behavior against expert rubrics. kind: concept product_area: trialground status: stable updated: 2026-11-06 canonical: /docs/concepts/trialground --- # Trialground Trialground connects Harness execution with rubric evaluation. Your engineers can try candidate implementations across the situations in a benchmark and inspect how they behaved. A change to retrieval, instructions, tool use, or orchestration becomes a concrete experiment with recorded inputs, responses, and judgments. ## Definition Managed execution runs an exact saved Python Harness Version with its declared dependencies and selected benchmark inputs. Trialground prepares the dependency environment, manages execution, and retains outputs and captured trajectory events outside the sandbox. **Benchmark Evaluations** provides **Runs**, **Results**, and **Dashboard**. A Run contains its planned Trials; each Trial exercises the candidate across the recorded Case population. You can also submit externally executed responses, failures, and supported trajectories for assessment against the selected benchmark. ## Decision checkpoint | Your question | Open | What to inspect | | --- | --- | --- | | Which candidate will execute? | Runs | Saved Version, machine, and Trial count | | What did the agent do? | Results | Response, captured trajectory, and capture status | | Why did it receive that score? | Results | Applicable rubrics, points, penalties, and gates | | How do candidates compare? | Results and Dashboard | Comparable settings and complete populations | | What happened across repetitions? | Run history | Independent Runs and the Run used for score | ## Prepare and run the experiment Publish the intended Harness Version and grant the credentials it needs. Declared Python dependencies form the prepared execution image. Select the machine and Trials when launching an evaluation. The Harness defines model calls, tools, task behavior, and state handling. An execution job can process several inputs in one process and workspace. Configure per-Case state and World reset behavior as part of the experiment. Use a saved-Harness debug run to try supplied inputs during development. Use a Benchmark Version to assess the candidate against a fixed Case population and criteria. ## Read recorded behavior and judgments Captured trajectories make instrumented actions and tool use inspectable. Capture status identifies the recorded material available for assessment. Preserve any other execution files through the configured persistence path when the task needs them. Rubric judgments feed the project Regime. Positive points reward passing conditions; penalties deduct for failures; mandatory gates express requirements that must pass. Incomplete judgments remain visible across the full population. ## Investigate the next change Run evaluation reopens matching existing work. Use **Run again** for an independent repetition. **Used for score** identifies the Run chosen before its results were known. Follow a failure into a Harness change, a coverage question, or clarification of the standard. Engineers can compare the proposed intervention against the same benchmark that motivated it. {% example-demo title="Inspect a retrieval intervention" %} Two saved Harness Versions handle the same conflicting-document Cases. One improves source selection but becomes overconfident when the current document is missing. Results lets the engineer inspect both the gain and the regression before deciding which change to pursue. {% /example-demo %} ## Related workflows {% related-card-grid title="Run and inspect a candidate" %} - [Run a Benchmark Evaluation](/docs/benchmark-evaluations/run-evaluation) - [Evaluation Results](/docs/benchmark-evaluations/results) - [Import External Evaluation Outputs](/docs/benchmark-evaluations/output-mapping) {% /related-card-grid %} ## Related reference pages {% related-card-grid title="Understand the experiment" %} - [Harnesses](/docs/assets/harnesses) - [Rubric Points and Benchmark Scores](/docs/correctness-governance/scoring) - [Run Details and Metadata](/docs/benchmark-evaluations/run-details) {% /related-card-grid %} --- id: concepts.coevolve title: Lemon Goal summary: Use benchmark results to explore candidate improvements and return unresolved correctness or coverage questions to their owning workflows. kind: concept product_area: coevolve status: stable updated: 2026-11-06 canonical: /docs/concepts/lemon-goal --- # Lemon Goal Lemon Goal improves a saved Harness toward a benchmark objective through candidate experiments in Teammately. A useful change has an identifiable implementation, an explicit Goal and actual results. ## Definition Open **Harness improvement → Lemon Goal** to define the measured outcome, starting Harness and permitted changes. Lemon Goal investigates failures, develops candidates and tests them through Trialground. **Harness improvement** also contains **External Agents**, a separate workflow that supplies a scoped task and pinned benchmark context for your coding agent in your own repository. Both workflows preserve the selected Benchmark Version and criteria. ## Decision checkpoint | Situation | Choose | Inspect | | --- | --- | --- | | A saved Harness should meet numerical targets | Lemon Goal | Accepted criteria, candidate Versions and evaluations | | Application code should change in your repository | External Agents | Pinned task context and actual before/after behavior | | A result exposes an unclear rule | Expert Contribution | Specialist judgment and artifact decisions | | Important input situations are missing | Coverage Design | Requirements and explicit Case adoption | ## Learn from actual results Inspect the full planned population before deciding a candidate is stronger. A focused success can guide another direction without replacing the complete comparison required by the Goal. A candidate can gain on one criterion and regress another. Retained results and the Session's Evolution history should make that tradeoff explainable. A new Version is not automatically the best candidate. ## Preserve the goal and the work Lemon Goal records original instructions, targets and the starting candidate. Its conversation and Goal, Results, Evolution and Harnesses panels connect requested work to returned artifacts and measurements. A completed Session means the agent concluded; the reported outcome explains whether the Goal was achieved. External Agents relies on the coding agent to inspect actual customer code, implement within the permitted scope and submit supported results. Setup or retrieval alone does not complete that task. ## Return new questions upstream Candidate work may expose a mistaken Case, unresolved applicability or an unrepresented input condition. Route those questions to the owning governance, expert or coverage workflow. Do not hide a broken standard by changing the candidate until it passes an ambiguous test. Return the finding to the relevant expert, governance, or coverage workflow so your team can decide how it should affect the benchmark. ## Related reference pages {% related-card-grid title="Related reference pages" %} - [Harness Improvement](/docs/improve) - [Start a Lemon Goal Session](/docs/improve/start-improvement-session) - [Work with External Agents](/docs/improve/external-agents) - [Coverage Design](/docs/coverage-design) - [Request an Expert Contribution](/docs/expert-contributions/request-contribution) {% /related-card-grid %}