Structural Elegance Evaluation
by Nick Clark | Published March 27, 2026
Inference solutions are ranked not only by accuracy but by structural elegance, where elegance is a computable, bounded score over parsimony, locality of dependence, and audit cost. The most accurate transition is not always admitted; the most elegant admissible transition is.
Mechanism
Structural elegance evaluation is an admissibility criterion that operates inside the inference loop and ranks candidate transitions by a computable elegance score in addition to whatever accuracy or reward signal the upstream solver provides. Where conventional systems treat inference as a search for the highest-scoring continuation under a learned objective, the mechanism described in Chapter 8 of the cognition patent treats inference as a search for the highest-scoring continuation under an objective that has been augmented with structural quality terms. Those terms are not heuristic and not learned; they are deterministic functions of the candidate transition and the surrounding semantic state.
The elegance score is composed of three primary terms. Parsimony measures the minimality of the transition: how many semantic fields the transition writes, how many policy clauses it invokes, how many derivation steps it requires, and how much representational overhead it adds to the agent's state. Locality measures the spatial coupling of the transition: whether its preconditions and postconditions are confined to a bounded region of the semantic graph or whether they cross-cut unrelated subsystems. Audit cost measures the burden the transition places on downstream verification: how many independent witnesses must be replayed, how many policy obligations are triggered, and how long the resulting lineage chain becomes. Each term is computed deterministically against canonical fields and clamped to a bounded interval, so the aggregate elegance score is itself bounded and reproducible.
A candidate transition is therefore characterized by a pair: an accuracy or fitness measure produced by the underlying solver, and an elegance score produced by the structural evaluator. The admissibility gate uses both. Transitions whose accuracy falls below a configured floor are rejected outright; among the surviving candidates, the gate selects the transition that maximizes elegance subject to the accuracy floor. Two consequences follow. First, the system never trades correctness for prettiness, because the accuracy floor is hard. Second, among correct continuations the system systematically prefers the simplest, most local, and most audit-cheap option, which is the structural definition of elegance.
The evaluator is embedded within the agent's cognitive architecture as a deterministic function over canonical fields. It receives the candidate transition, the current semantic state, and the active policy reference; it emits the elegance score along with a structured breakdown that names each contributing term. Every input, intermediate, and output is recorded in lineage, which means the elegance ranking that produced any committed transition can be reconstructed and re-checked offline. There is no opaque preference; the ordering of candidates is a function of declared signals.
Operating Parameters
The elegance evaluator exposes a small set of declarative parameters that domains tune through policy rather than through code changes. The parsimony term is parameterized by per-field weights that allow operators to express, for example, that writes to long-lived identity fields are more costly than writes to ephemeral working memory, or that invoking a high-privilege policy clause is more costly than invoking a low-privilege one. The locality term is parameterized by a coupling radius and a partition map: transitions whose preconditions or postconditions reach beyond the configured radius accrue a locality penalty proportional to the excess, and transitions that cross declared partition boundaries accrue a fixed structural penalty.
The audit-cost term is parameterized by a witness-replay model. Each policy obligation triggered by a candidate transition has a declared replay cost, expressed in canonical units; each lineage extension has a declared chain cost. The audit-cost component of the elegance score is the sum of those declared costs over the obligations and lineage edges the transition would induce. Because the costs are declared rather than measured, the elegance score is reproducible across executions and across operators.
The aggregator is parameterized by a weight vector that combines the three terms into a scalar. The default policy uses a normalized convex combination so that the aggregate score is bounded in a fixed interval, but the framework also supports lexicographic combinations in which parsimony is preferred over locality, and locality over audit cost, with ties broken by the next term down. Either combination yields a total order on candidates, which is what the admissibility gate requires.
The accuracy floor is itself a parameter. In low-stakes domains, the floor may be relaxed to admit a wider set of candidates and let elegance dominate the ranking; in high-stakes domains, the floor may be raised so that elegance only breaks ties among already-near-optimal candidates. The floor is expressed as a function of context, so the same agent can apply different floors to different request classes without changing the underlying mechanism.
Alternative Embodiments
In a single-model embodiment, the elegance evaluator runs inline on the same compute path that produces the underlying inference. Each candidate continuation is scored as it is generated, and the gate selects among the top-k continuations by aggregate score. This embodiment is appropriate where latency budgets are tight and where the candidate set is naturally small.
In a proposal-and-review embodiment, a generative component proposes a wider set of candidates and a separate evaluator process scores them in parallel. The gate selects from the scored set. This embodiment is appropriate where the underlying solver is expensive and the elegance evaluator is cheap, because it allows the elegance score to amortize the cost of broader exploration.
In a staged embodiment, elegance is evaluated at multiple granularities. A coarse-grained pass scores entire trajectories or plans against a parsimony-and-locality budget, pruning branches whose aggregate elegance cannot meet the floor regardless of their continuations. A fine-grained pass scores individual transitions within the surviving branches. The staged embodiment is appropriate for long-horizon agents whose reasoning extends over many steps and where early pruning yields large efficiency gains.
In a federated embodiment, multiple agents share a common elegance-scoring policy but compute scores locally. Because the scoring function is deterministic over declared inputs, agents in the federation produce identical scores for identical candidates, and committed transitions can be cross-validated by replaying the elegance computation on a peer. This embodiment supports cooperative inference and external audit without exposing the underlying model weights.
Composition with Other Mechanisms
Elegance evaluation composes with the semantic admissibility gate by supplying a tie-breaking ranking among candidates that the gate has already certified as admissible. The gate enforces hard constraints, including policy compatibility, integrity invariants, and trust-slope bounds; the elegance score then orders the survivors. Because the score is deterministic, the gate's overall behavior remains reproducible: identical inputs and identical policy yield identical commitments.
Elegance evaluation composes with lineage and audit because it both feeds and is fed by the lineage record. The audit-cost term reads the projected lineage extension that a candidate would induce, and the committed elegance breakdown is itself written to lineage so that any later reviewer can see why one candidate was preferred over another. This makes the preference order itself an auditable artifact rather than an emergent behavior of a learned ranker.
Elegance evaluation composes with rights-grade governance because the parsimony and locality terms naturally penalize transitions that touch fields outside the rights envelope of the calling subject. A transition that would write to a field the subject has not consented to expanding accrues both a locality penalty and, when combined with rights enforcement, a hard rejection. The two mechanisms reinforce each other: rights enforcement removes the inadmissible, and elegance preference selects the cleanest among the admissible.
Distinction from Prior Art
Conventional ranking and reranking systems score candidates by a learned reward model whose internal preferences are not declared and whose outputs are not bounded by structural quantities. Such systems can be tuned to prefer shorter or more confident answers, but the preference is implicit in weights rather than expressed as a declared function over canonical fields. They cannot be audited offline against a written specification, and identical inputs do not necessarily yield identical orderings across model revisions.
Heuristic complexity penalties used in classical search, such as length penalties or regularization terms, address parsimony in isolation but do not combine it with locality and audit cost, do not bind the result to a declared lineage, and do not interact with an admissibility gate. They influence search but do not govern commitment.
The disclosed mechanism is distinguished by the conjunction of three properties: elegance is computable from declared inputs, the elegance score is bounded and reproducible, and the score is consumed by an admissibility gate that treats it as a structural rather than statistical signal. This conjunction permits formal analysis of the preference order, which conventional rerankers do not support.
Disclosure Scope
This disclosure covers the elegance-evaluation mechanism, its parsimony, locality, and audit-cost terms, the parameters by which domains tune those terms, the aggregation rules that combine them into a total order, and the composition of the resulting score with admissibility, lineage, and rights enforcement. It covers single-model, proposal-and-review, staged, and federated embodiments, including any embodiment in which a deterministic, bounded structural score is consulted at the point of commitment rather than after the fact.
The disclosure is structural rather than implementation-specific. Implementations may compute the elegance terms in any order, may use any representation of the canonical fields that preserves their declared semantics, and may share scoring across federated peers without departing from the disclosed mechanism. The defining property is that elegance is a declared, computable, bounded function consulted within the inference loop, and that the inference loop's commitment behavior is governed by it.
The disclosure further covers any embodiment in which the elegance score, the accuracy floor, or the aggregation rule is dynamically reconfigured by policy update, and any embodiment in which the elegance breakdown is exposed to an external auditor as a portable artifact. It covers embodiments in which the elegance evaluator is implemented as a co-resident process, as a remote service consulted under signed contract, or as an in-model objective term that has been compiled from the declared parsimony, locality, and audit-cost specifications. In every such embodiment, the determinative criterion is that the score is bounded, that its inputs are declared, that its consumption is a precondition of commitment, and that the resulting preference order is recoverable from lineage. Embodiments that satisfy these criteria fall within the disclosed scope regardless of the substrate on which the evaluator runs.
Equally within scope are embodiments that compose elegance evaluation with non-disclosed downstream selectors, provided the elegance score is consulted as described and the admissibility gate retains its hard-floor semantics. The disclosure does not require that elegance be the sole ranking signal; it requires only that elegance, as defined, participate in the ordering and that its participation be auditable.