16 Commits

Author SHA1 Message Date
0fd6ea129c refactor: simplify discount percentage math 2026-08-07 10:42:51 -03:00
d378f634cf revert: restore the discount divisor 2026-08-07 10:19:28 -03:00
00ca2c9d26 refactor: simplify discount percentage math 2026-08-07 10:13:32 -03:00
b58cc90912 ci: cap the warm agent at one and shorten its idle time
Keeping the pod alive for an hour left two idle demo agents holding slots in a
pool of five. That starves real CI, and would eventually starve this demo too
by leaving nothing free when a build actually needs to run.

Fifteen minutes covers a demo session - a warm-up run and then the real one -
without parking capacity overnight for nobody, and instanceCap stops a second
agent existing at all.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 05:06:35 -03:00
50372edd26 revert: restore the discount divisor 2026-08-07 05:04:36 -03:00
92fae0a1c4 ci: reuse the agent and shallow-clone so the gate is not all overhead
The tests run in 0.62 seconds; the build took 191. Agent scheduling and image
pull were ~54s, a full clone of a five-commit repo ~25s, and pip install
pytest ~55s. None of that is the thing being demonstrated.

A fixed label plus idleMinutes keeps the pod alive between builds. The default
inline template mints a random POD_LABEL per build, so a fresh pod was
guaranteed every time and the pip cache in the workspace volume was always
cold. With reuse, a second run skips scheduling, skips the image pull, and
finds pytest already cached.

The first run after an idle period still pays full price, so a throwaway run
before a demo is worth doing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 04:29:04 -03:00
6c4428c893 refactor: simplify discount percentage math 2026-08-07 03:09:22 -03:00
63e927b8b4 revert: restore the discount divisor 2026-08-07 03:08:44 -03:00
f019c79bed refactor: simplify discount percentage math 2026-08-07 01:01:43 -03:00
59f7b4b32c revert: restore the discount divisor 2026-08-07 01:01:13 -03:00
2cf11aa9ae refactor: simplify discount percentage math 2026-08-06 22:52:53 -03:00
be0f3cb59b fix(hermes): correct discount divisor (PR #1) 2026-08-06 00:16:49 +00:00
Hermes Agent
c740dfe9aa fix(hermes): A percentage must be divided by 100 before subtracting it from 1. This one-line change produces the expected 90.0, 0.0, and 16.99 results without changing validation or rounding behavior. (incident hermes-code-demo/4) 2026-08-05 22:35:18 +00:00
Brad Stein
50416b5064 refactor: simplify discount percentage math 2026-08-05 19:24:06 -03:00
Brad Stein
a7f7e2deaa ci: give pip a writable HOME on the agent 2026-08-05 19:22:26 -03:00
Brad Stein
ca1ac6bfd4 feat: pricing helper with regression tests 2026-08-05 19:03:04 -03:00