Skip to content

fix(cli): the start-URL redirect probe comes out of the --max-duration budget #1853 - #1860

Merged
nc9 merged 2 commits into
mainfrom
boat/probe-in-budget-1853
Nov 14, 2026
Merged

nc9 merged 2 commits into
mainfrom
boat/probe-in-budget-1853

Conversation

@nc9

@nc9 nc9 commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Closes #1853

The redirect probe (resolveStartRedirect) takes a new deadlineAt; each hop's timeout is min(its own 10 s cap, remaining budget). The CLI audit command and the MCP audit tool pass the --max-duration end (crawlStopAt). Without a budget nothing changes.

Acceptance criteria

  • Silent host ends within budget + margin: test 'the start-URL redirect probe is cut to the budget, not its own 10 s cap' (no probe knob; fails at 10.5 s without the fix, passes with it).
  • Test asserted against the configured budget (BUDGET_S, MIN_MARGIN_MS), not absolute seconds.
  • No-flag behaviour unchanged: test 'without --max-duration the probe keeps its own cap'.
  • Docs: docs/cli/audit.mdx exit-margin paragraph now names the redirect check; make validate passes.

Gates (apps/cli)

format:check, lint, typecheck clean. audit-max-duration-e2e 16 pass, seed-redirect-pinning 22 pass, start-redirect + audit-start-redirect-e2e 22 pass.

Docs and skill

Docs updated. The squirrelscan agent skill does not mention --max-duration (grep of skills/ finds nothing), so no change needed.

The PR adds no test.concurrent (the two new tests are plain test).

@nc9
nc9 marked this pull request as ready for review November 14, 2026 13:58
@nc9
nc9 merged commit 67ff375 into main Nov 14, 2026
16 checks passed
@nc9
nc9 deleted the boat/probe-in-budget-1853 branch November 14, 2026 14:13
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.

--max-duration does not bound the start-URL redirect probe (6 s budget takes ~10 s)

1 participant