Logo
NeoArc Studio

Fitness Function Block

Architectural fitness function definition with metric, threshold, measurement method, and automation status.

The Fitness Function block defines an architectural fitness function: a measurable check that verifies whether a system characteristic remains within acceptable bounds. Each block captures the metric being measured, the acceptable threshold, how the measurement is performed, and whether it runs automatically or manually.

When to Use

Block Properties

PropertyRequiredDescription
NameYesShort name for the fitness function, for example API Response Time
Quality AttributeYesThe architectural quality being measured, for example Performance or Security
MetricYesWhat is measured, for example 95th percentile response time in milliseconds
ThresholdYesAcceptable value or range, for example less than 200ms
Current ValueNoMost recent measured value
Measurement MethodYesHow the metric is collected, for example Synthetic monitoring via Datadog
FrequencyNoHow often the measurement runs, for example Every deployment or Hourly
Automation StatusYesWhether the check is Automated, Semi-automated, or Manual
Pipeline StageNoWhere in the CI/CD pipeline the check runs, for example Post-deploy
OwnerNoTeam or individual responsible for maintaining the fitness function
NotesNoAdditional context or rationale

Rendered Output

The block renders as a structured card with the fitness function name as the heading, the quality attribute as a badge, and the remaining properties in a labelled field layout. When a current value is provided, it is displayed alongside the threshold with a pass or fail indicator based on whether the value meets the threshold condition.

Fitness Functions vs Quality Gates

AspectFitness FunctionQuality Gate
ScopeSingle architectural quality attributeMultiple pass/fail checks at a pipeline stage
GranularityOne metric with a thresholdAggregation of several metrics or rules
UsageOngoing architectural governanceGo/no-go decision at a specific point
ExampleAPI latency under 200msAll unit tests pass, code coverage above 80%, no critical vulnerabilities