vibeapp.win

What broke

A test variant sat idle for two days because it asked for today's matrix

In the stock app, a strategy variant looked up the signal matrix for today's date, but the matrix is only built at 22:50, so the variant stopped trading after one day and nothing reported an error. The fix came on 7 August 2026, after Henning asked whether the variant had run long enough; the lookup went from 0 candidates to 191.

The short version

What went wrongA strategy variant asked for today's signal matrix, which is only built at 22:50, so it found no candidates and made no trades for two days. No job failed and no error showed.

How we found itHenning asked if the variant had run long enough. Claude counted its candidates instead of answering from intent and found 0; after the fix there were 191.

The rule nowUse the latest matrix not newer than the requested day, with a 3-day maximum age that stops trading on stale data. A component that has never done anything is only a claim until measured.

This post documents something Claude got wrong. The claim rests on a commit or a file, not on memory. All of Claude's mistakes

The stock app runs strategy variants side by side so we can compare them. One of them, “Balanced + signal matrix”, picks stocks by adding up scores from a daily signal matrix. The plan was to compare it with the existing rule, which picks on the single highest score. The first verdict was due on 4 September 2026.

For two days the variant made no trades at all. No job failed and no error showed up anywhere.

What Claude got wrong

Claude wrote the code, and the bug was in the function that adds up the matrix for a given day. It asked for the matrix for today’s date. But the matrix is built at 22:50, after the day’s prices are in. From midnight until 22:50 there was no row for today, so the lookup came back empty. With no candidates, the variant had nothing to buy and nothing to sell.

The commit that fixed it, dated 7 August 2026, explains why this went unnoticed:

“Balansert + signalmatrise” handlet 10 ganger 05.08 (da matrisen tilfeldigvis var bygget manuelt midt paa dagen) og har ikke handlet siden.

In English: the variant traded 10 times on 5 August, because that day the matrix happened to have been built by hand around midday. It had not traded since.

On 5 August, a manual build happened to cover for the bug. On normal days there was only one trading cycle that could see the matrix, the one at 23:00. By then every exchange the app trades on is closed, so the trading-hours check stopped everything anyway. Without that manual run, the variant could never have rotated its holdings at all.

The commit message sums up the consequence: “Ingenting feilet; den bare sto.” Nothing failed; it just sat there.

Why it mattered

The point of the variant was a comparison. If we hadn’t caught it, the verdict on 4 September would have measured a frozen portfolio against an active one. The commit calls that result worthless, and it would have been. It would also have looked like an ordinary measurement. A variant that never trades still has a return, and a return can always be ranked.

How it was found

Henning asked a plain question, quoted in the commit: “varianten maa kjoere litt foer vi ser hva vi boer gjoere? Eller har du allerede indikasjoner?” In English: does the variant need to run for a while before we see what to do, or do you already have some indications?

The commit records that before the fix, the matrix lookup gave 0 candidates. After the fix it gave 191. The commit’s own wording is that “both” answers applied to Henning’s question, but a serious fault had to be fixed first.

The fix

The lookup now uses the most recently built matrix that is not newer than the requested day, instead of insisting on today’s date. The commit argues that this is the correct design, not a workaround. Yesterday’s matrix is built on yesterday’s closing prices, which is exactly what the scanners it is compared against use.

Using older data brings a new risk. If the matrix stops being built because a job fails or the scorer stops, the variant could keep trading on stale data without anyone noticing. So the fix adds a hard limit: the matrix may be at most 3 days old. A code comment explains the number: 3 days covers a weekend plus one missed build. If the newest matrix is older than that, the app logs a warning and does not use it. In the commit’s words, the variant should stop, not act on a week-old view.

The indication Henning asked for

Once the variant could see candidates, Claude answered the original question. The comparison tool was extended to count which exchanges show up in each rule’s top 30. On 7 August:

  • Max rule: NYSE 14, NASDAQ 13, XETRA 2, Paris 1. Oslo Børs: none.
  • Matrix: NYSE 16, Oslo Børs 8, NASDAQ 5, XETRA 1.
  • Best-ranked Oslo stock: #55 under the max rule, #11 under the matrix.
  • Overlap between the two top-10 lists: 0 %.

This fit something measured earlier the same day. Oslo Børs had the app’s highest median signal score on 4 of 5 days and still got no buys. The commit explains why: the max rule ranks on absolute top score, and NYSE, with 215 stocks against Oslo’s 46, produces higher extreme values simply because it has more stocks to draw from.

The commit is careful about what this does and does not show. It is now measured that summing scores changes which stocks get picked. Whether those picks do better has not been measured. That takes time, and the first verdict was set for 4 September. Without the fix, the commit notes, that verdict would have been about a variant that never traded.

The rule

Two rules came out of this.

Use the latest dataset that has been built, with an explicit maximum age that stops the process rather than letting it act on old data. A component that asks for “today” assumes something about when its input gets built. Here that assumption was wrong for almost 23 hours a day.

A component that has never done anything is a claim until it has been measured. The variant looked healthy. It had a name and a slot in the comparison. Before the fix, it had 0 candidates.