Skip to content

cmd, pkg/domain: wire rds, backtest and explain into the binary - #41

Merged
agenticode merged 1 commit into
mainfrom
wave/p2-wire2
Aug 26, 2026
Merged

agenticode merged 1 commit into
mainfrom
wave/p2-wire2

Conversation

@agenticode

Copy link
Copy Markdown
Owner

Gate 5-axis ALL GREEN. Closes the reachability debt from today's three merges. Also closes an unchecked-usage-line hole in the account-wide commitment baseline that overstated savings, and a 100x oracle-gap display bug. The two test-fixture updates are forced by the rds kind becoming valid - every assertion is unchanged. go.sum byte-identical.

The three packages merged earlier today all deferred their wiring, so a user
building today could not reach any of them. This closes that gap: pkg/domain
learns the rds kind, and cmd/kilter gains rds, backtest and explain
subcommands. The backtest live path refuses honestly, because pkg/store keeps
only the latest snapshot and has no history to replay.

Closes a real hole found on the way: the account-wide commitment baseline
accepted domain-supplied usage lines unchecked, so an empty ID double-counted,
a duplicate ID overwrote another domain's line, and a zero rate priced real
usage at nothing — all three overstate absorption and therefore savings.
Invalid lines are now dropped with a warning, and a control test proves this
is a no-op for every shipped domain.

Also fixes a renderer that printed the oracle gap at 100x because
Scorecard.OracleGapPct is already scaled while its doc comment says otherwise.

The two test-fixture updates are forced, not loosened: five tests used the
literal "rds" as their stand-in for an unknown kind, which it no longer is,
and one asserted the number of wired domains. Every assertion is unchanged.

Co-authored-by: kording <74226694+kording@users.noreply.github.com>
@agenticode
agenticode merged commit 97d00e0 into main Aug 26, 2026
2 checks passed
@agenticode
agenticode deleted the wave/p2-wire2 branch August 26, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant