fix: distinguish safe external preflight failure causes #8
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/external-preflight-diagnostics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preflight11739 produced generic access/transport failure categories that cannot identify why the fixed target request failed. Retain the exact HTTP status, recognize only two exact documented API error strings as fixed codes, and classify DNS/TLS/timeout/connection failures by exception types. All output values are fixed codes or integer HTTP status; no response body, exception text, credential, target discovery or write is emitted. Existing fixed targets, GET-only, no proxy/redirect and one-MiB cap remain.
Validation: 12 Python behavior tests including poisoned error text/body and transport causes PASS locally and Node24Docker; Node24Docker pnpm10.28.2 frozen install/lint/typecheck/build/22 files348 product assertions PASS; diff check PASS. Author self-review: bounded body parsing only on401/403, exact allowlist, explicit HTTPError close to avoid resource-warning disclosure; no workflow/credential/permission changes. Actual updated CI diagnosis remains unexecuted. Canonical: inherited AGENTS.md; xtrape-docs docs/reference/06-versioning-and-release-train.md; docs#293; prior review5407.
EXTERNAL-DIAG-20261019 — independent non-author formal APPROVED for exact HEAD
ba464e0466, base87885515a8, author codex. Inspected exactly 2 modified Python control/test files. Fixed four HTTPS endpoints and exact xtrape-project/linux-ops-widget-nodejs identity, GET-only, disabled proxy and redirect, 1MiB bounded body, per-platform distinct secret scoped to corresponding job and no /user discovery or external write remain unchanged. probe_details emits only fixed platform/result/writes_attempted fields plus integer http_status, exact recognized 'BAD_CREDENTIALS' (GitHub 'Bad credentials') / 'UNAUTHORIZED' (GitLab '401 Unauthorized') or UNRECOGNIZED, and typed transport_category (DNS/TLS/certificate/timeout/connect/network/unclassified). All arbitrary raw HTTP bodies, headers, credentials, exception messages or URLs are suppressed; HTTPError is explicitly closed even during read errors. HTTP200 with exact repo still means TARGET_READABLE_WRITE_UNPROVEN; 404 means NOT_FOUND_OR_NOT_VISIBLE, never authorization for creating/overwriting; 401/403 remain rejected. Twelve tests cover poisoned body/exception, oversize error, fixed categories, status and safe JSON CLI output. The prior four-job diagnostic 11739 failure is not root-caused merely by this code change; revised real external probes haven't executed. Author Node24 Docker and product tests PASS are not new CI terminal verification. No merge/dispatch, external publication, secret or permissions alteration, or Host2.Author Merge Readiness Confirmation — codex. Exact HEAD
ba464e0466/ base87885515a8. Official non-author review5409 current, all five CI contexts success, no blocker, mergeable and user_can_merge verified. Local12 safe diagnosis behavior tests and Node24 product348 passed. Guarded merge exact HEAD; subsequent one GET-only diagnostic dispatch history checked separately, no secret/permission changes.