Repository navigation
fix(import): add bounded diagnostics and verified reference guidance - #1010
Draft
franksong2702 wants to merge 1 commit into
Draft
franksong2702 wants to merge 1 commit into
franksong2702 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When host-file import fails, an operator using a WARN filter cannot reliably distinguish a trust denial, DNS rejection, download failure, or Runner upload failure. This change adds bounded, correlated diagnostic events and documents how callers verify committed destinations before creating document links.
Diagnostics use fixed stage/failure categories, a bounded HTTP status, and a validated canonical UUID. DNS rejection additionally reports a bounded hostname and address classes. They exclude signed URLs, raw IPs, paths, filenames, attachment contents, caller identities, credentials, and raw error text. Existing trust decisions, all-public DNS admission, address pinning, no-proxy/no-redirect downloads, upload cleanup and replay policy, and input/output schemas are preserved. The patch follows current main's
import_host_filesandinspect_project_artifactnames and does not restore retired adapters.Validation at upstream base
8c7a1c3fd1cf8baeac40652ca8b252cc89e2c685:CARGO_MANIFEST_DIR, so changingTMPDIRdid not move fixtures away from recurring macOS Documents placeholders. Rebuilding the identical candidate tree under stable temporary storage passed all 12 lifecycle-related tests. An adjacent isolated control failed at 3.14s with the original Documents binary and passed at 1.11s with the stable binary. Unchanged baseline production and testcase, with only the test helper's fixture root set to the same Documents location, reproduced the 3.14s failure; that helper control was restored. No Runner production/testcase changes are included in the patch.Direct host-attachment E2E was not run: no fresh host-populated attachment reference was available. Isolated import fixtures cover committed bytes/digests, partial success, overwrite protection, HTTP rejection, truncated-body cleanup, and log redaction.
CI run 38021706329 completed with one Linux workspace-crates failure:
webcodex-environment::process::tests::exited_leader_never_leaves_pipe_holding_descendants_or_reader_threadsparsed an empty PID marker (ParseIntError { kind: Empty }, tests.rs:67). CI tested mergef19a5acfd31be182ceee00ec1d907b57efc5e79aagainst base3c431a6e32a1c8af2e342321817a3c6ea3150a94. The base CI passed this test, and the three process implementation/test blobs are identical between base and tested merge. The exact failure was subsequently reproduced on unchanged baseline module/test sources in an isolated Linux arm64 container under bounded scheduler contention (0.5 CPU, 64 load children, first attempt). This demonstrates a timing-sensitive baseline failure; it does not establish the actual Ubuntu amd64 CI load/cause. No unrelated process changes were added. CI remains red; Server, Runner, macOS, Windows, Docker, tooling, contract and MCP-conformance jobs passed.