Skip to content

v0.8.8 - Fixed-rate sending, --fail-style, agent skill - #38

Merged
colangelo merged 5 commits into
mainfrom
dev
Nov 15, 2026
Merged

colangelo merged 5 commits into
mainfrom
dev

Conversation

@colangelo

Copy link
Copy Markdown
Owner

Release v0.8.8.

  • Fixed-rate sending: a request starts every --interval whatever earlier ones are doing, like ping. One glyph is one interval of wall time during outages too (before, each failure stood for timeout + interval, 6 s by default, 12 s per braille cell). Loss % is now time-based. Results are drawn in send order.
  • --fail-style dots|bang (env HP_FAIL_STYLE): braille failure marker, purple ⣿ (default) or the red ! of 0.8.6 and earlier.
  • --skill: prints the embedded agent skill (skills/hp/SKILL.md); a test fails when a flag is missing from it.
  • Fix: host:port targets no longer fail the startup DNS check.

Verified on dev: go test -race green, golangci-lint v2.15.0 clean, CI green on d66f0b2; real runs against a black-hole IP (6 requests in 7.4 s instead of ~17 s) and a local server hung mid-run (timeline shows the outage in wall time).

🤖 Generated with Claude Code

colangelo and others added 5 commits November 15, 2026 12:54
skills/hp/SKILL.md is an agent-facing guide to running hp bounded and
reading its output. It is embedded and printed by `hp --skill`. Flags
move into defineFlags(fs) so TestSkillDocumentsEveryFlag can walk every
flag and fail when the skill misses one.

--fail-style dots|bang (env HP_FAIL_STYLE) selects the braille failure
marker: dots keeps the 0.8.7 purple full cell, bang restores the red !
of 0.8.6 and earlier (blank column for a single failure in a pair).

.gitignore anchors the binary names to the root: a bare `hp` pattern
ignored skills/hp/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Requests were sequential: a timed-out request blocked the next, so with
the defaults one failure glyph stood for 6 s (5 s timeout + 1 s sleep),
12 s per braille cell, against ~1 s while the host was up. The bar's
time scale stretched sixfold exactly during outages.

runFixedRate (schedule.go) now starts a request every interval whatever
earlier ones are doing, like ping, and hands results to the renderer in
send order (inOrder). Loss % becomes the share of time without answers.
Each request captures its protocol at send time, and downgrade counts
only failures of the current protocol, so in-flight requests of the old
protocol cannot trigger a second downgrade. Timeline periods start at
the send time of their first request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The startup DNS check passed the whole target to LookupHost, so any
host:port target ("example.com:8443", "127.0.0.1:8080") exited with
"cannot resolve" unless a proxy was set. hostname() strips the port
and IPv6 brackets before the lookup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@colangelo
colangelo merged commit a9c1444 into main Nov 15, 2026
6 checks passed
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