Skip to content

test(cli): e2e for a start-URL hop the egress guard refuses #1281 - #2012

Merged
nc9 merged 1 commit into
mainfrom
boat/redirect-tests-1281
Nov 17, 2026
Merged

nc9 merged 1 commit into
mainfrom
boat/redirect-tests-1281

Conversation

@nc9

@nc9 nc9 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Adds the CLI-level e2e for the 'each hop passes the egress guard' criterion: a start URL redirecting to the cloud metadata address exits 4 with status redirected, flag or not, and nothing is crawled. Does not close #1281: the cloud website alias is private.

Criteria evidence (already on main unless noted): same-site follow, prompt, exit 4, -y alone, MCP confirmation (audit-start-redirect-e2e, start-redirect, audit-website-start-redirect tests); estimate/registration on destination (audit-website-billing.test.ts 'estimated, registered and billed as the destination'); private IP/metadata hop, 5-hop cap, loops (packages/crawler/tests/start-redirect-resolver.test.ts + e2e, new e2e here); chain in text/markdown/llm/xml/json (packages/report/tests/start-redirect.test.ts); docs and completions present; http->https->www unit test plus 3-hop same-site e2e. Open: hosted website alias (private).

Gates (apps/cli): format:check, lint, typecheck pass; bun test tests/cli/audit-start-redirect-e2e.test.ts 12 pass.
Agent skill: audit-website skill already mentions --follow-redirect; no change needed.

@nc9
nc9 marked this pull request as ready for review November 17, 2026 06:21
@nc9
nc9 force-pushed the boat/redirect-tests-1281 branch from d6bf9e0 to 4c0d51a Compare November 17, 2026 10:04
@nc9
nc9 merged commit 9f558dd into main Nov 17, 2026
16 checks passed
@nc9
nc9 deleted the boat/redirect-tests-1281 branch November 17, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant