Layer 10 · evaluation
experiment
An experiment simulates a committed architecture under a load, faults, a work mode and a profile, changes it by mutations, and searches the variants exhaustively or by fitting. Each variant is one point of the search: the values it changed, its measured KPIs, its fitness and whether it is feasible.
Depends on
- kpi · layer 10 · 11 references
- architecture · layer 9 · 5 references
- shared · layer 0 · 11 references
Used by
No block depends on this one.
Entities
Experiment
One search over variants of a committed architecture, under a load, faults, a work mode and a profile.
Identified by experiment_id (ExperimentId).
| field | type |
|---|---|
architecture_id | ArchitectureId |
work_mode_id | WorkModeId |
profile_id | ProfileId |
load | Load |
faults | list of Fault |
mutations | list of Mutation |
mode | SearchMode |
weights | list of Weight |
gates | list of KpiId |
failure | optional string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
architecturereferences Architecture of architecture (one, byarchitecture_id)work_modereferences WorkMode of kpi (one, bywork_mode_id)gate_kpisreferences Kpi of kpi (many, bygates)variantsowns Variant (many, byexperiment_id)
Lifecycle of Experiment
Done, Failed.Variant
One point of a search, with the values it changed, its measured KPIs, its fitness and whether it is feasible.
Identified by variant_id (VariantId).
| field | type |
|---|---|
experiment_id | ExperimentId |
values | list of Assignment |
measurements | list of Score |
fitness | decimal |
feasible | boolean |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Lifecycle: one state, Recorded; a recorded Variant does not change.
Commands
CompleteExperiment
Complete an experiment.
| field | type |
|---|---|
experiment_id | ExperimentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-experiment refused | no Experiment for experiment_ | No: No experiment has this id, and nothing changed. |
not-running refused | the Experiment of experiment_ has state != Running | Experiment: The experiment is not in a state that takes this command, and nothing changed. |
no-variant refused | no Variant with experiment_ | No: The experiment recorded no variant, so it cannot be done; nothing changed. |
done | otherwise | moves the Experiment Running → Done; emits Experiment |
More columns: swipe horizontally, or focus the table and use the arrow keys.
FailExperiment
Fail an experiment.
| field | type |
|---|---|
experiment_id | ExperimentId |
reason | string |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-experiment refused | no such Experiment | No: No experiment has this id, and nothing changed. |
failed | otherwise | moves the Experiment Planned, Running → Failed; emits Experiment |
wrong-state refused | the Experiment is in a state that does not allow it | Experiment: The experiment is not in a state that takes this command, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
PlanExperiment
Plan an experiment.
| field | type |
|---|---|
architecture_id | ArchitectureId |
work_mode_id | WorkModeId |
profile_id | ProfileId |
load | Load |
faults | list of Fault |
mutations | list of Mutation |
mode | SearchMode |
weights | list of Weight |
gates | list of KpiId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
empty-mutation refused | some m in mutations with m. | Empty: A mutation lists no value, and nothing was planned. |
no-weights refused | mode == Fit and weights. | No: A fitting search weighs at least one KPI, and nothing was planned. |
no-such-architecture refused | no Architecture for architecture_ | No: No architecture has this id, and nothing was planned. |
no-such-work-mode refused | no WorkMode for work_ | No: No work mode has this id, and nothing was planned. |
architecture-retired refused | the Architecture of architecture_ has state == Retired | Architecture: The architecture is retired, and nothing was planned. |
not-committed refused | no ArchitectureRevision with architecture_ | Architecture: The architecture has no committed revision to simulate, and nothing was planned. |
unknown-kpi refused | a weight or a gate names a KPI that does not exist or is retired, or a gate names a KPI that is no gate | Unknown: A weight or a gate names a KPI that does not exist or is retired, or a gate names a KPI that is no gate; nothing was planned. |
| planned | otherwise | creates a Experiment in Planned; emits Experiment |
More columns: swipe horizontally, or focus the table and use the arrow keys.
RecordVariant
Record a variant.
| field | type |
|---|---|
experiment_id | ExperimentId |
values | list of Assignment |
measurements | list of Score |
fitness | decimal |
feasible | boolean |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-experiment refused | no Experiment for experiment_ | No: No experiment has this id, and nothing changed. |
not-running refused | the Experiment of experiment_ has state != Running | Experiment: Variants are recorded only while the experiment runs, and nothing was recorded. |
infeasible refused | the variant is reported feasible while a gate KPI of the experiment measured above zero | Infeasible: The variant is reported feasible while one of the experiment's gate KPIs measured above zero, and nothing was recorded. |
recorded | otherwise | creates a Variant in Recorded; emits Variant |
More columns: swipe horizontally, or focus the table and use the arrow keys.
StartExperiment
Start an experiment.
| field | type |
|---|---|
experiment_id | ExperimentId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-experiment refused | no such Experiment | No: No experiment has this id, and nothing changed. |
started | otherwise | moves the Experiment Planned → Running; emits Experiment |
wrong-state refused | the Experiment is in a state that does not allow it | Experiment: The experiment is not in a state that takes this command, and nothing changed. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
ExperimentDone | experiment_ ExperimentId | Complete |
ExperimentFailed | experiment_ ExperimentId, reason string | Fail |
ExperimentPlanned | experiment_ ExperimentId, architecture_ ArchitectureId, work_ WorkModeId, profile_ ProfileId, mode SearchMode | Plan |
ExperimentStarted | experiment_ ExperimentId | Start |
VariantRecorded | variant_ VariantId, experiment_ ExperimentId, fitness decimal, feasible boolean | Record |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
BestVariant | each Variant with experiment_asked with experiment_ ExperimentId, page optional integer, size optional integer | variant_ VariantId, experiment_ ExperimentId, values list of Assignment, fitness decimal |
Experiments | each Experiment | experiment_ ExperimentId, architecture_ ArchitectureId, work_ WorkModeId, profile_ ProfileId, load Load, mode SearchMode, failure optional string, state State |
Variants | each Variant with experiment_asked with experiment_ ExperimentId | variant_ VariantId, experiment_ ExperimentId, values list of Assignment, measurements list of Score, fitness decimal, feasible boolean |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
Assignment | a record | part optional Name, field string, value string |
Fault | a record | kind FaultKind, part Name, from duration, lasts duration |
FaultKind | one of | Principal, Pool, Channel, Rate |
Load | a record | tasks_ integer |
Mutation | a record | part optional Name, field string, values list of string |
Score | a record | kpi_ KpiId, value decimal |
SearchMode | one of | Exhaustive, Fit |
VariantId | an identifier or value | uuid |
Weight | a record | kpi_ KpiId, weight decimal |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
4 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Completeness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
variants_feasible_shareShare of recorded variants that pass every gate. How: Variants whose gate KPIs are all 0 (or 1 for a complete share) divided by VariantRecorded events. A variant that fails a gate does not count in the ranking. | share | higher | – | simulated source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
harness_effect_pointsChange in pass rate caused by a change of harness at a fixed model. How: Pass rate of the variant with the changed harness minus pass rate of the baseline, in percentage points, over the same tasks and seeds. | points | higher | – | planned source: research/2610.35971 |
ranking_reversal_shareShare of model comparisons whose ranking reverses under another harness. How: Pairs of models ranked in opposite order under two harnesses divided by pairs compared. A high share means a model ranking holds for one harness only. | share | lower | – | planned source: research/2610.35348 |
prediction_errorDistance between a simulated KPI and the same KPI measured on a real run. How: Absolute difference between the simulated and the observed value of a KPI, divided by the observed value. A profile whose predictions miss is refitted. | ratio | lower | – | planned source: design |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part experiment:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
kind | string | What the experiment compares. | |||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.