openai / gpt-6-astra / high / high effort preferred over xai / grok-4.7-efficient / medium / medium effort · clear win.
Primary judge: Sol 6.1, requested Low. Effective provider effort and internal attempts were not verified. A close win is still a scored preference; it does not establish a material defect.
Reviewed public evidence
Task goal
Adversarially review BattleRanks recipe and individual cost comparability using the named frozen source. Trace reference costs, included execution classification, actualBilling unknown, cache accounting, original judge omission, synthesis costs, and combined-score baseline. Determine whether any accepted receipt or rendered record could imply actual billed dollars, a full workflow total, subscription debit, or fair economic comparison that the evidence does not support. Cite exact functions and accepted values; provide minimal counterexamples for concrete defects, state preconditions and severity, and propose minimal fixes and regression scenarios while preserving current rating formulas and historical rows. Explicitly distinguish actual costs, declared reference estimates, and unknown costs. Do not edit files or claim tests ran.
openai / gpt-6-astra / high / high effort answer
## Conclusion
**The supplied code supports declared reference estimates—not actual billed dollars, subscription debits, or complete workflow costs.** Its explicit accounting labels largely enforce that distinction. However, several validation and comparability gaps can admit misleading reference comparisons.
This was an independent, direct static review of the frozen packet. No files were edited and no tests were run.
## Cost-provenance trace
| Area | What the code actually establishes |
|---|---|
| Recipe reference costs | `deriveRecipeObservation()` computes input as `input + cache.read + cache.write`, output as `output + reasoning`, and passes those totals to `estimatedCostFraction()` using profile rates (`source/recipe-evidence.js:51–54`). |
| Synthesis | Recipe reference cost sums every supplied worker plus synthesis. The synthesis contestant receives that sum for combined scoring (`recipe-evidence.js:66–68`). |
| Actual billing | Admission requires exactly `accounting.actualBilling === 'unknown'` and `reference.basis === 'declared-reference-estimate'` (`source/recipe-observations.js:88`). No actual billed amount is authenticated here. |
| Included execution / subscription | None of these four files validates an included-execution classification, billing arrangement, or subscription debit. Such evidence cannot be recovered from the reference estimate. The public recipe schema has no fields for it (`recipe-observations.js:22–30`). |
| Original judge | Its export is required when a manifest child has the recognized judge title. Only its duration is extracted; its tokens and monetary cost are not priced (`recipe-evidence.js:61–64`). |
| Workflow total | Accepted records require `costCoverage:'workers-and-synthesis-only'`, `originalJudgeReferenceUSD:null`, and `totalWorkflowUSD:null` (`recipe-observations.js:90`). Historical records without coverage receive those conservative defaults (`67–72`). |
| Unknown versus zero | Worker/synthesis reference amounts can all be nonnegative numbers, including zero, or all be `null` with `workerCosts:null` (`recipe-observations.js:91–96`). Neither case establishes an actual charge. |
| Combined comparison | Quality compares synthesis quality against the highest worker quality. Combined comparison independently uses the maximum worker combined score, while recipe cost is workers plus synthesis (`recipe-evidence.js:66–68`). Cost/time deltas in summaries instead use the **best-quality** individual (`recipe-observations.js:125`). |
| Retrospective reassessment | `REVIEWED_COST_BASIS` fixes Astra reference rates at **$10/M input and $50/M output**, Standard, short-context; explicitly declares historical rates unverified, pre-dispatch approval not claimed, billing reference-not-invoice, and attempt coverage unverified (`source/combined-cost-reassessment.js:8–15`). |
`authenticateCombinedCostReassessment()` has substantially stronger binding than a self-hash alone: it requires the original prospective v2 no-tests cohort, legacy scenario, missing-approved-rate exclusion, zero active cost weight, original assessment/event identities, and native accounting verification (`combined-cost-reassessment.js:37–48`). This supports a narrowly scoped **retrospective reference valuation**, not a correction to historical invoices or proof of complete attempt costs.
## Findings
### 1. “Approved” recipe comparison does not verify the approved profile
**Severity: Medium; potentially high if attacker-controlled evidence reaches the resolver. Confidence: High for the local validation gap.**
`deriveRecipeObservation()` checks that the profile hashes itself, matches the task, and has:
- `policy.kind === 'no-tests'`;
- weights exactly `{judgment:90, objective:0, speed:5, cost:5}`;
- positive reference time and reference cost.
It then consumes the profile’s rates (`recipe-evidence.js:27–28,52–54`).
It does **not** call `verifiedCombinedProfile()`, whose reconstruction checks approved policies and supported scenarios (`source/combined-season-profile.js:42–43,55–69`). Nevertheless, the produced comparison is labeled `approved-no-tests-90-5-5-v1` (`recipe-evidence.js:68`).
**Minimal counterexample:** Starting with otherwise valid evidence, replace a positive `policy.referenceCostUSD` with another positive value and recompute the profile and affected export/manifest hashes. All displayed recipe policy checks still pass, although the policy need not be an approved reconstruction. The same gap applies to substituted positive rate tables, subject to the external cost helper accepting those rates.
**Implication:** A digest establishes internal consistency, not approval. The reference comparison can carry an approval label that the local verifier did not establish.
**Minimal fix:** For newly admitted evidence, verify the complete profile through the approved-profile verifier or an explicitly versioned approved historical policy registry. Preserve historical rows and identify their verification provenance separately.
**Regression scenario:** Reject a self-consistent profile with altered reference cost, reference time, rates, or unsupported scenario despite unchanged 90/5/5 weights.
### 2. Cache and reasoning accounting depend on an unvalidated token convention
**Severity: Medium; High if mixed export conventions occur. Confidence: High that the convention is unchecked; occurrence is unknown.**
`derive()` validates each counter as a nonnegative safe integer, then unconditionally adds cache counters to input and reasoning to output (`recipe-evidence.js:51–54`). It supplies `inputIncludesCache:true` and `outputIncludesReasoning:true` **after** making those additions.
Those flags describe the constructed totals; they do not prove that the source counters excluded cache and reasoning.
**Minimal counterexample:** An accepted-shaped export reports:
```text
input=100, cache.read=80, cache.write=0
output=20, reasoning=10
```
If that exporter already includes cache reads within `input` and reasoning within `output`, the function values **180 input and 30 output tokens**, rather than 100 and 20. Nothing shown distinguishes that export convention from exclusive counters.
The separate reviewed reassessment explicitly declares inclusive cache valued at ordinary prompt rate and output/reasoning counted once (`combined-cost-reassessment.js:14`), and invokes native accounting verifiers (`45–46`). Their implementations are outside this packet.
**Minimal fix:** Require versioned source-accounting semantics and normalize once before calling the unchanged cost formula. Reject or mark the reference estimate unknown when inclusion semantics cannot be established. State explicitly that ordinary prompt-rate cache valuation is a reference convention, not observed cache billing.
**Regression scenarios:** Exclusive and inclusive exports for identical usage normalize to identical totals; ambiguous exports cannot silently produce a numeric estimate.
### 3. Combined baseline permits duplicate configurations and omission of a worker
**Severity: Medium; High if standalone admission is the authoritative ingestion gate. Confidence: High.**
`verifiedRecipeObservation()` checks combined-baseline length and membership, but not uniqueness or equality of configuration sets (`recipe-observations.js:83–85`). `checkedPair()` then verifies the maximum of the supplied list (`53–60`).
**Minimal counterexample:** For contributors A and B, a record can contain:
```text
comparisonBaseline.individuals:
A: eligible=true, scorePoints=10
A: eligible=true, scorePoints=10
combined:
recipePoints=20
bestIndividualPoints=10
pointDelta=10
relativeUpliftPct=100
```
Both entries are members of the valid individual set, the length is two, and the pair arithmetic passes. B is absent.
Neither `recipeFamilyID()` nor `recipeObservationID()` hashes these baseline values (`recipe-observations.js:42–50`), so changing them does not require changing those identifiers.
**Precondition:** The mutated record reaches standalone verification. Fresh derivation constructs one combined row per worker; an external rederivation-and-equality gate could prevent this, but is not shown.
**Minimal fix:** Require unique combined configuration IDs and exact equality with the contributor set.
**Regression scenario:** Reject `[A,A]` for contributors `[A,B]`, even when every score and pair equation is internally consistent.
### 4. Standalone reference validation establishes arithmetic, not monetary provenance
**Severity: Medium, conditional on ingestion trust. Confidence: High.**
`verifiedRecipeObservation()` validates worker-cost sums, recipe totals, and the best-quality worker’s corresponding amount (`recipe-observations.js:91–101`). It does not reconstruct costs from token evidence or bind them to approved rates. Supplying `battle` only checks battle ID, category, and configuration cohort (`80`).
**Minimal counterexample:** Take an otherwise valid record and multiply every worker cost, `workersUSD`, `synthesisUSD`, `fullRecipeUSD`, and `bestQualityIndividualUSD` by ten. All displayed monetary checks still pass, and the observation ID remains unchanged.
The result still correctly says “declared-reference-estimate”; the defect is treating that acceptance as authentication of the estimate.
**Minimal fix:** Make the authoritative admission boundary require trusted derivation and equality against the submitted record. Keep structural validation available, but distinguish it from provenance verification. Existing historical rows can retain their values with an explicit verification status.
**Regression scenario:** A balanced, tenfold-inflated record passes structural arithmetic checks but fails authenticated admission.
### 5. Aggregation mixes potentially different economic scenarios
**Severity: Medium. Confidence: High.**
Recipe families depend on configuration IDs, rubric version, synthesis protocol version, and instruction hash—not reference-price scenario or policy (`recipe-observations.js:42–47`).
Although optional `frozen.policyVersion` and `frozen.costScenarioID` are allowed, they receive only string-format validation (`66`). Fresh derivation does not populate them (`recipe-evidence.js:68`). Aggregation groups solely by recipe family and averages combined-score deltas and reference costs (`recipe-observations.js:129–145`).
**Minimal counterexample:** Two otherwise valid observations for distinct battles have the same recipe family but different declared reference-price scenarios. Both can be accepted and placed in one aggregate without any scenario homogeneity check.
**Implication:** A mean reference-dollar value or combined uplift can blend different price bases or normalization policies. It is not necessarily a like-for-like economic comparison.
**Minimal fix:** Preserve quality ranking and historical rows, but attach scenario provenance to observations and partition monetary/combined summaries by a verified comparability key. Historical unknown scenarios should remain explicitly unknown rather than inherit a current scenario.
**Regression scenario:** Same-family observations under different scenarios remain available together for quality analysis but cannot produce an unlabeled pooled economic summary.
### 6. Worker completeness and original-judge detection rely on title conventions
**Severity: Medium, conditional on noncanonical manifests. Confidence: High for the bypassable checks.**
Manifest completeness requires only `children.length >= workers.length`. Exact worker coverage is enforced only when some child titles include `/effort-` (`recipe-evidence.js:34–36`). Original-judge detection similarly depends on a title ending `/moa-judge]` (`61–64`).
**Minimal counterexample:** A manifest contains actual workers A, B, and C plus synthesis, but no worker title contains `/effort-`. Supply exports for A and B and a judge packet containing A, B, and synthesis. The displayed cohort checks permit C’s omission, assuming the remaining bindings are valid.
Likewise, an original judge with an unrecognized title does not trigger the original-judge export requirement.
**Implication:** “Workers-and-synthesis-only” can represent only the supplied worker subset. This does not bypass the explicit unknown workflow total, but it weakens completeness and economic comparability.
**Minimal fix:** Bind an explicit role-tagged worker roster and original-judge identity to authenticated run evidence. For historical title-only manifests, expose completeness as unverified without rewriting their scores.
**Regression scenarios:** Reject an omitted role-tagged worker; recognize a judge independently of its display title.
## Guardrails and non-findings
- **A billed-cost claim is explicitly rejected:** changing `actualBilling` from `'unknown'` fails admission (`recipe-observations.js:88`).
- **A numeric workflow total is explicitly rejected**, including zero; original-judge reference cost must also remain `null` (`90`).
- Synthesis reference cost is included in both the recorded recipe sum and the recipe combined-score input (`recipe-evidence.js:66–68`).
- The maximum-quality worker and maximum-combined-score worker are deliberately different baselines. That is not a formula defect; presentation must identify which baseline each delta uses.
- `fullRecipeUSD` is potentially misleading when displayed alone, but accepted records and aggregate output carry the narrower coverage label (`recipe-observations.js:90,125`). No renderer is supplied, so an actual UI mislabeling is not established.
- Zero marginal subscription charge, actual provider billing, and reference valuation are distinct concepts. No supplied check permits inferring one from another.
## Evidence limits and next action
`combined-exact.js`, `input-accounting.js`, `cost-scenarios.js`, `design-policy.js`, and the event/eligibility implementations are outside this packet. Consequently, exact normalization formulas, native counter semantics, approved legacy rates, and end-to-end ingestion authentication cannot be confirmed. No invoice source or renderer is supplied.
**Next useful action:** Harden the admission/provenance boundary, add the regression scenarios above, and ensure displayed costs retain their basis, coverage, scenario, and unknown-billing labels. Preserve current rating formulas and historical values; add provenance annotations or separate reassessments rather than silently recomputing old rows.xai / grok-4.7-efficient / medium / medium effort answer
The accepted records do not establish actual billed dollars, a subscription debit, or a fair economic comparison. They can still be read that way: numeric `fullRecipeUSD` and combined-score deltas sit beside incomplete execution coverage and incommensurable clocks. Actual cost is unknown; the dollars that are present are declared reference estimates.
## 1. Conclusion
**Actual cost is never accepted as a number.** `verifiedRecipeObservation` rejects anything except `accounting.actualBilling === 'unknown'` and `accounting.reference.basis === 'declared-reference-estimate'` (`recipe-observations.js` `verifiedRecipeObservation`, around the accounting checks). `totalWorkflowUSD` and `originalJudgeReferenceUSD` must be `null`, and `costCoverage` must be `'workers-and-synthesis-only'`. A missing `costCoverage` is backfilled to that triple; a historical row that already filled either USD is rejected, not coerced into a workflow total. `deriveRecipeObservation` always writes those sentinels (`recipe-evidence.js`, record built near the end of `derive`).
**Declared reference estimates are what the numeric USD fields are.** For each succeeded worker and the synthesizer, `derive` sums `tokens.input + tokens.cache.read + tokens.cache.write` and `tokens.output + tokens.reasoning`, then calls `estimatedCostFraction(..., {inputIncludesCache:true, outputIncludesReasoning:true})` against the single `policy.rates` row for that model. `fullRecipeUSD` is `numeric` of the exact sum of those fractions. `workersUSD` is a binary sum of already-rounded per-worker `referenceCostUSD`. `synthesisUSD` is the synthesizer fraction only. The same sum is substituted as the recipe row’s `costFraction` before `calculateCombined` (`teamCost`). Policy must be no-tests weights `{judgment:90, objective:0, speed:5, cost:5}` with finite `referenceCostUSD > 0`. That policy constant is a score normalizer, not a measured spend, and it is not copied onto the observation.
**Unknown, and not priced:** scoring judge (`record.judge` identity only), original native `/moa-judge]` (time may be set; USD forced `null`), root/orchestrator tokens, retries and failed attempts, cache-discount or batch invoices, credits, and any subscription debit. No field asserts a debit. `actualBilling:'unknown'` means not represented, not “charge was zero.”
**Cohort reassessment is a different, better-labeled reference object, still not an invoice.** Accepted `REVIEWED_COST_BASIS` is exact: `inputUSDPerMillion:10`, `outputUSDPerMillion:50`, `billing:'reference-not-invoice'`, `historicalRateAtExecution:'unverified'`, `preDispatchApproval:'not-claimed'`, `attemptCoverage:'unverified'`, `inputBasis:'inclusive-cache-at-ordinary-prompt-rate'`, `outputBasis:'generated-and-reasoning-counted-once'`. `reviewedReferencePolicy` sets `priceBasis:'retrospective-reference-not-historical-billing'`. `authenticateCombinedCostReassessment` returns that policy only for a legacy prospective no-tests cohort whose assessment still has `activeWeights.cost === 0` and `costStatus === 'excluded-whole-cohort-missing-approved-rate'`. This file does not write a dollar total and does not rewrite historical score rows.
**Implication defects that admission does not block**
1. **High — `fullRecipeUSD` can be quoted as a workflow total.** It is workers plus synthesis only. Counterexample that `verifiedRecipeObservation` accepts: two workers at reference `$0.40` and `$0.25`, synthesis `$0.15`, `fullRecipeUSD === 0.80`, `preSynthesisJudgeMs === 12000`, `originalJudgeReferenceUSD === null`, `totalWorkflowUSD === null`, `actualBilling === 'unknown'`, scoring-judge tokens never read. Evidence does not support “the recipe cost $0.80.”
2. **High — time and dollar boundaries differ.** `fullRecipeMs` is synthesis `completed - admission` (`tools[0].time.ran`), so an in-window original judge is inside the clock and outside the dollars. Worker `elapsedMs` is session `idle - created` (or published, ±250 ms), not that clock. Aggregate `meanElapsedDeltaVsBestQualityIndividualMs` subtracts them anyway (`summarizeAccounting`).
3. **High if the token precondition fails — cache and reasoning may be double-counted in every accepted reference USD.** The sum adds `cache.read`, `cache.write`, and `reasoning` with no proof that `input` and `output` exclude them. `estimatedCostFraction` is outside this packet. If native `input` already includes cache, every `referenceCostUSD` and `fullRecipeUSD` is inflated even as a reference estimate. Recipe observations also do not record the reassessment sentence `inclusive-cache-at-ordinary-prompt-rate`, so they are not comparable to a cache-discounted invoice or to the Astra 10/50 card.
4. **Medium-high — bare `*USD` names under a nested basis.** `workerCosts[].referenceCostUSD` and aggregate `meanReferenceCostUSD` are qualified. `workersUSD`, `synthesisUSD`, `fullRecipeUSD`, `bestQualityIndividualUSD`, and `meanCostDeltaVsBestQualityIndividualUSD` are not. A flattened render implies actual dollars the parent `basis` does not support.
5. **Medium — combined baseline is not a fair economic ranking.** Per-observation `comparisonBaseline.policy` is only `'approved-no-tests-90-5-5-v1'`. The disclaimer `comparison only, not a recipe ranking policy` appears only on the aggregate row. Recipe combined score uses synthesis quality, admission-to-synthesis wall time, and the sum of reference costs. Individuals use own quality, own session elapsed, and own reference cost. `quality` / `bestQualityIndividualUSD` pick the quality winner; `comparisonBaseline.combined.bestIndividualPoints` picks the max combined score. Those can be different contestants. Cost weight is 5%. Omitted recipe-only executions bias the reference delta down. Cross-model cache discounts are not in the rate application, so individual-vs-individual reference USD is not a fair actual-spend comparison either.
6. **Medium — rate identity and attempt coverage are unbound on recipe rows.** `deriveRecipeObservation` does not set optional `frozen.costScenarioID` or `frozen.policyVersion`. Recipe records have no `attemptCoverage:'unverified'` (that sentinel exists only on `REVIEWED_COST_BASIS`). Succeeded exports only are priced.
7. **Conditional high — a truthy zero fraction becomes “free.”** Recipe rate check does not require `promptRate > 0` and `completionRate > 0` (reassessment does: `r[1]>0 && r[2]>0`). If `estimatedCostFraction` returns a truthy zero, `check(costFraction)` passes and `fullRecipeUSD === 0`, which implies no debit. `$0` is not what `null` means; the verifier correctly rejects `originalJudgeReferenceUSD === 0`.
**What is adequately guarded:** no accepted recipe record can set `actualBilling` to a known invoice state; no accepted record can store a numeric workflow total or a numeric original-judge USD; aggregate `mean()` of `totalWorkflowUSD` stays `null` with `totalCostSampleCount === 0` rather than falling back to `fullRecipeUSD`; reassessment annotations cannot substitute a different `reference` object. Those guards are sibling fields, not names, so they do not stop a partial render from implying the unsupported claim.
Confidence: high on acceptance predicates and omitted executions; medium on fair-comparison impact, because `calculateCombined` and `estimatedCostFraction` are outside the packet.
## 2. Alternatives, disagreements, discarded hypotheses
- Discarded: “aggregate launders `fullRecipeUSD` into `meanTotalWorkflowReferenceCostUSD`.” It does not. Empty `amount(totalWorkflowUSD)` yields `null`.
- Discarded: “`null` judge USD is stored as zero.” Non-null, including `0`, fails `costCoverage` checks.
- Discarded: “reassessment replaces historical combined scores with billed Astra cost.” `authenticateCombinedCostReassessment` does not mutate `cohort.assessment` rows; cost weight must already be 0.
- Discarded as a false-acceptance bug: the non-empty `configurationDispatch` array path. Synthesis is appended only when that array is empty (`dispatch.push` is inside `if(!dispatch.length)`). A worker-only array fails closed at session match instead of emitting a mis-priced synthesizer.
- Not treated as confirmed double-counting: per-session cache counters summed across workers. That matches per-call billing if each counter is that call’s tokens. Shared-prefix reporting is an unverified precondition, not a demonstrated defect.
- Float `workersUSD` vs exact `fullRecipeUSD` beyond `1e-8` is a false-rejection risk with ≤31 workers, not a false invoice.
## 3. Missing evidence
Outside the packet, so unresolved: `estimatedCostFraction` and `calculateCombined` (`combined-exact.js`); native token schema (`input`/`output` vs cache and reasoning); `policy.rates` and `referenceCostUSD` (`design-policy.js`); `extendAstraPolicy` (`cost-scenarios.js`); whether any renderer drops `basis` / `actualBilling`. Consequence: cache arithmetic and the 5% cost term cannot be certified from this snapshot. Do not treat 10/50 or recipe `fullRecipeUSD` as interchangeable with each other or with an invoice until those are bound.
## 4. Next useful action
Preserve rating formulas and historical rows. Do not rename USD fields, do not recompute `calculateCombined`, and do not invent judge dollars.
- Backfill, when absent, without changing numbers: `subscriptionDebit:'not-represented'`, `attemptCoverage:'succeeded-exports-only'`, `cachePricing:'ordinary-prompt-rate-cache-read-and-write-added-unverified'`, `excludedExecutions:['scoring-judge','original-native-judge','root-orchestrator','retries-and-failed-attempts']`, `fullRecipeMeans:'workers-plus-synthesis-reference-estimate-not-workflow-total'`. Reject any value that says billed, debited, or workflow-complete.
- Keep accepting `comparisonBaseline.policy === 'approved-no-tests-90-5-5-v1'`. Add an optional disclaimer backfill; put `costDeltaBasis` and `elapsedDeltaBasis:'wall-clock-from-admission-vs-session-elapsed'` on new aggregate objects.
- Populate `frozen.costScenarioID` / `policyVersion` on newly derived rows only.
- Reject truthy zero-rate reference costs instead of storing `$0`.
- Regression cases that must stay admitted: historical row with numeric worker/synthesis/fullRecipe/best-individual USD, `actualBilling:'unknown'`, missing `costCoverage` (backfill nulls, same dollars and score points); aggregate workflow mean stays `null`. Cases that must stay rejected: `actualBilling:'invoiced'`, `totalWorkflowUSD === fullRecipeUSD`, `originalJudgeReferenceUSD === 0`, non-null judge USD with coverage still `'workers-and-synthesis-only'`. New case: original-judge tokens present in the export must not move `fullRecipeUSD`.Primary judge's stated reason
B provides a better-supported actionable audit: its duplicate-baseline example demonstrates misleading comparison acceptance at the named local boundary, with a minimal repair that preserves formulas and historical values. Together with its more disciplined treatment of zero reference costs and absent renderers, this supports a clear comparative preference, not merely a forced slight preference. A's stronger timing analysis is a meaningful countervailing benefit, and an independent review could weigh coverage differently.
This reason is the judge's assessment. No independent factual-defect finding is asserted by this record.
Battle wave: 431da5a4-1ac3-4bda-b919-c2eb52d7ae58. Pair: brp1_303fc87ba47bd62080ae70de9eedac841b8431b4ce2078142741873ab8cdc74e. A separate independent review is required before calling a concern a verified factual defect. Judge disagreement is not recorded here.