| 1 | { |
| 2 | "schema": "zipelo.file-snapshot.regressions.v1", |
| 3 | "source_head": "b7c3d5575943f8caab8bbdcf465c278c3e7059d1", |
| 4 | "source_manifest_sha256": "668b1c3f140a033a6a0768b84ec52f111ee5fbfaf707632d2fc9a5a380758120", |
| 5 | "branch": "fix/rust-file-snapshot-regressions", |
| 6 | "scope": "Source-only public API regressions; Rust compile/discovery/execution not performed. No production changes, copies, include!, private access, worker or publication.", |
| 7 | "declared_test_count": 72, |
| 8 | "test_names": [ |
| 9 | "boundaries::chunk", |
| 10 | "boundaries::chunk_minus_one", |
| 11 | "boundaries::chunk_plus_one", |
| 12 | "boundaries::empty", |
| 13 | "boundaries::empty_accepts_zero_byte_limit_with_exact_eof_budget", |
| 14 | "boundaries::exact_io_and_call_budget_includes_both_eof_probes", |
| 15 | "boundaries::invalid_bytes_cap", |
| 16 | "boundaries::invalid_calls_cap", |
| 17 | "boundaries::invalid_calls_zero", |
| 18 | "boundaries::invalid_deadline_cap", |
| 19 | "boundaries::invalid_deadline_zero", |
| 20 | "boundaries::invalid_io_cap", |
| 21 | "boundaries::maximum", |
| 22 | "boundaries::maximum_minus_one", |
| 23 | "boundaries::nonempty_rejects_zero_byte_limit", |
| 24 | "boundaries::one", |
| 25 | "boundaries::one_less_call_budget_fails_last_eof", |
| 26 | "boundaries::one_less_io_budget_fails_last_eof_without_refund", |
| 27 | "boundaries::retry_usage_is_per_attempt_not_hidden_cumulative_state", |
| 28 | "boundaries::sha256_known_abc_and_debug_redaction", |
| 29 | "boundaries::source_over_maximum_rejected_before_data_open", |
| 30 | "boundaries::zero_io_budget_is_valid_but_cannot_probe_eof", |
| 31 | "control::callback_error_precedes_expired_checkpoint_deadline", |
| 32 | "control::callback_error_precedes_next_observed_source_change", |
| 33 | "control::callback_panic_propagates_without_snapshot", |
| 34 | "control::callback_preserves_non_send_error_identity", |
| 35 | "control::cancel_after_first_chunk_preserves_accumulated_usage", |
| 36 | "control::cancel_at_comparing", |
| 37 | "control::cancel_at_copying", |
| 38 | "control::cancel_at_finalizing", |
| 39 | "control::cancel_at_opening", |
| 40 | "control::cancel_at_pinned", |
| 41 | "control::cancellation_precedes_expired_checkpoint_deadline", |
| 42 | "control::cancellation_requested_after_return_does_not_change_owned_result", |
| 43 | "control::checkpoint_order_offsets_and_usage_are_observable", |
| 44 | "control::natural_elapsed_deadline_precedes_path_validation", |
| 45 | "control::selected_public_types_have_send_bounds", |
| 46 | "mutations::append_after_comparison_detected_by_second_eof_probe", |
| 47 | "mutations::append_after_copy_detected_by_first_eof_probe", |
| 48 | "mutations::append_after_pinning_detected_before_data_read", |
| 49 | "mutations::finalizing_append_detected_by_final_metadata", |
| 50 | "mutations::hard_link_added_at_finalizing_rejected", |
| 51 | "mutations::positive_short_read_is_accumulated_before_later_eof", |
| 52 | "mutations::replaced_leaf_never_captures_replacement_bytes", |
| 53 | "mutations::replaced_parent_keeps_pinned_inode_not_new_path_contents", |
| 54 | "mutations::returned_snapshot_owns_bytes_after_source_changes", |
| 55 | "mutations::same_size_overwrite_before_comparison_returns_content_change", |
| 56 | "mutations::truncate_after_pinning_detected_before_data_read", |
| 57 | "mutations::truncate_before_comparison_returns_early_eof", |
| 58 | "mutations::truncate_before_copy_returns_early_eof", |
| 59 | "paths::ancestor_symlink_rejected", |
| 60 | "paths::component_255_bytes_is_supported", |
| 61 | "paths::component_over_255", |
| 62 | "paths::dangling_symlink_preserves_eloop", |
| 63 | "paths::directory_rejected_before_data_open", |
| 64 | "paths::dot_component", |
| 65 | "paths::empty_path", |
| 66 | "paths::fifo_without_writer_rejected_before_data_open", |
| 67 | "paths::leaf_symlink_rejected_without_reading_target", |
| 68 | "paths::linux_backslash_and_colon_are_name_bytes", |
| 69 | "paths::missing_path_preserves_enoent_and_stage", |
| 70 | "paths::multiple_hard_links_rejected_and_contents_preserved", |
| 71 | "paths::non_utf8_linux_name_is_supported", |
| 72 | "paths::nul_byte", |
| 73 | "paths::parent_component", |
| 74 | "paths::path_over_4096", |
| 75 | "paths::regular_parent_component_preserves_enotdir", |
| 76 | "paths::relative_path", |
| 77 | "paths::repeated_slash", |
| 78 | "paths::root_only", |
| 79 | "paths::trailing_slash", |
| 80 | "paths::unix_socket_rejected_before_data_open" |
| 81 | ], |
| 82 | "evidence_classes": { |
| 83 | "boundaries::chunk": "real-file-public-api", |
| 84 | "boundaries::chunk_minus_one": "real-file-public-api", |
| 85 | "boundaries::chunk_plus_one": "real-file-public-api", |
| 86 | "boundaries::empty": "real-file-public-api", |
| 87 | "boundaries::empty_accepts_zero_byte_limit_with_exact_eof_budget": "real-file-public-api", |
| 88 | "boundaries::exact_io_and_call_budget_includes_both_eof_probes": "real-file-public-api", |
| 89 | "boundaries::invalid_bytes_cap": "public-validation-no-file", |
| 90 | "boundaries::invalid_calls_cap": "public-validation-no-file", |
| 91 | "boundaries::invalid_calls_zero": "public-validation-no-file", |
| 92 | "boundaries::invalid_deadline_cap": "public-validation-no-file", |
| 93 | "boundaries::invalid_deadline_zero": "public-validation-no-file", |
| 94 | "boundaries::invalid_io_cap": "public-validation-no-file", |
| 95 | "boundaries::maximum": "real-file-public-api", |
| 96 | "boundaries::maximum_minus_one": "real-file-public-api", |
| 97 | "boundaries::nonempty_rejects_zero_byte_limit": "real-file-public-api", |
| 98 | "boundaries::one": "real-file-public-api", |
| 99 | "boundaries::one_less_call_budget_fails_last_eof": "real-file-public-api", |
| 100 | "boundaries::one_less_io_budget_fails_last_eof_without_refund": "real-file-public-api", |
| 101 | "boundaries::retry_usage_is_per_attempt_not_hidden_cumulative_state": "real-file-public-api", |
| 102 | "boundaries::sha256_known_abc_and_debug_redaction": "real-file-public-api", |
| 103 | "boundaries::source_over_maximum_rejected_before_data_open": "real-file-public-api", |
| 104 | "boundaries::zero_io_budget_is_valid_but_cannot_probe_eof": "real-file-public-api", |
| 105 | "control::callback_error_precedes_expired_checkpoint_deadline": "natural-elapsed-callback-no-file", |
| 106 | "control::callback_error_precedes_next_observed_source_change": "real-file-callback-injection", |
| 107 | "control::callback_panic_propagates_without_snapshot": "real-file-callback-injection", |
| 108 | "control::callback_preserves_non_send_error_identity": "real-file-callback-injection", |
| 109 | "control::cancel_after_first_chunk_preserves_accumulated_usage": "real-file-callback-injection", |
| 110 | "control::cancel_at_comparing": "real-file-callback-injection", |
| 111 | "control::cancel_at_copying": "real-file-callback-injection", |
| 112 | "control::cancel_at_finalizing": "real-file-callback-injection", |
| 113 | "control::cancel_at_opening": "real-file-callback-injection", |
| 114 | "control::cancel_at_pinned": "real-file-callback-injection", |
| 115 | "control::cancellation_precedes_expired_checkpoint_deadline": "natural-elapsed-callback-no-file", |
| 116 | "control::cancellation_requested_after_return_does_not_change_owned_result": "real-file-callback-injection", |
| 117 | "control::checkpoint_order_offsets_and_usage_are_observable": "real-file-callback-injection", |
| 118 | "control::natural_elapsed_deadline_precedes_path_validation": "natural-elapsed-callback-no-file", |
| 119 | "control::selected_public_types_have_send_bounds": "compile-bound-assertions", |
| 120 | "mutations::append_after_comparison_detected_by_second_eof_probe": "real-file-checkpoint-mutation", |
| 121 | "mutations::append_after_copy_detected_by_first_eof_probe": "real-file-checkpoint-mutation", |
| 122 | "mutations::append_after_pinning_detected_before_data_read": "real-file-checkpoint-mutation", |
| 123 | "mutations::finalizing_append_detected_by_final_metadata": "real-file-checkpoint-mutation", |
| 124 | "mutations::hard_link_added_at_finalizing_rejected": "real-file-checkpoint-mutation", |
| 125 | "mutations::positive_short_read_is_accumulated_before_later_eof": "real-file-checkpoint-mutation", |
| 126 | "mutations::replaced_leaf_never_captures_replacement_bytes": "real-file-checkpoint-mutation", |
| 127 | "mutations::replaced_parent_keeps_pinned_inode_not_new_path_contents": "real-file-checkpoint-mutation", |
| 128 | "mutations::returned_snapshot_owns_bytes_after_source_changes": "real-file-checkpoint-mutation", |
| 129 | "mutations::same_size_overwrite_before_comparison_returns_content_change": "real-file-checkpoint-mutation", |
| 130 | "mutations::truncate_after_pinning_detected_before_data_read": "real-file-checkpoint-mutation", |
| 131 | "mutations::truncate_before_comparison_returns_early_eof": "real-file-checkpoint-mutation", |
| 132 | "mutations::truncate_before_copy_returns_early_eof": "real-file-checkpoint-mutation", |
| 133 | "paths::ancestor_symlink_rejected": "real-file-public-api", |
| 134 | "paths::component_255_bytes_is_supported": "real-file-public-api", |
| 135 | "paths::component_over_255": "public-validation-no-file", |
| 136 | "paths::dangling_symlink_preserves_eloop": "real-file-public-api", |
| 137 | "paths::directory_rejected_before_data_open": "real-file-public-api", |
| 138 | "paths::dot_component": "public-validation-no-file", |
| 139 | "paths::empty_path": "public-validation-no-file", |
| 140 | "paths::fifo_without_writer_rejected_before_data_open": "real-file-public-api", |
| 141 | "paths::leaf_symlink_rejected_without_reading_target": "real-file-public-api", |
| 142 | "paths::linux_backslash_and_colon_are_name_bytes": "real-file-public-api", |
| 143 | "paths::missing_path_preserves_enoent_and_stage": "real-file-public-api", |
| 144 | "paths::multiple_hard_links_rejected_and_contents_preserved": "real-file-public-api", |
| 145 | "paths::non_utf8_linux_name_is_supported": "real-file-public-api", |
| 146 | "paths::nul_byte": "public-validation-no-file", |
| 147 | "paths::parent_component": "public-validation-no-file", |
| 148 | "paths::path_over_4096": "public-validation-no-file", |
| 149 | "paths::regular_parent_component_preserves_enotdir": "real-file-public-api", |
| 150 | "paths::relative_path": "public-validation-no-file", |
| 151 | "paths::repeated_slash": "public-validation-no-file", |
| 152 | "paths::root_only": "public-validation-no-file", |
| 153 | "paths::trailing_slash": "public-validation-no-file", |
| 154 | "paths::unix_socket_rejected_before_data_open": "real-file-public-api" |
| 155 | }, |
| 156 | "fixture_provenance": { |
| 157 | "input": "Only source-defined synthetic bytes: pattern(i)=(i*37+11)%251, fixed ASCII literals and generated boundary lengths. No archives, user files or external fixtures.", |
| 158 | "digest": "SHA256 known-answer for ASCII abc: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad. Rust expected bytes are independent of the production digest implementation.", |
| 159 | "filesystem": "Future runs create mode-0700 runs/case-PID-counter exclusively below this test directory. File helpers create_new. Mutation cases intentionally alter only their own synthetic input. Root identity checked before cleanup; no Drop cleanup on failed assertions, so evidence remains. No hostile concurrent actor or same-UID deletion safety claim.", |
| 160 | "special_files": "FIFO via existing libc::mkfifo, local Unix socket inode without accepting connections, directory, hard links, and symlinks inside each owned sandbox. No device node creation, system special files or mounts.", |
| 161 | "boundary_lengths": [ |
| 162 | 0, |
| 163 | 1, |
| 164 | 65535, |
| 165 | 65536, |
| 166 | 65537, |
| 167 | 16777215, |
| 168 | 16777216, |
| 169 | 16777217 |
| 170 | ] |
| 171 | }, |
| 172 | "contracts": { |
| 173 | "acquisition": "Frozen source remains unchanged. All Rust tests use the actual path dependency and public API. Callback mutations occur synchronously at real capture checkpoints, not timing races.", |
| 174 | "success": "Normal full-read accounting is 2*N+2 reserved, 2*N actual, N compared and 2*ceil(N/65536)+2 calls. EOF and failed attempt reservations are not refunded.", |
| 175 | "short_read": "Truncating at the first Copying checkpoint forces a positive one-byte read followed by EOF. The offset-1 checkpoint proves accumulation; the final expected outcome is Changed(Length), not successful short-read completion.", |
| 176 | "replacement": "Parent rename/replacement retains the old regular-file inode without re-resolving the caller path. Leaf replacement unlinks the old inode and therefore expects Unsupported(MultipleLinks) from the nlink!=1 guard. No original-path persistence guarantee.", |
| 177 | "cancellation": "Opening/Pinned/Copying/Comparing/Finalizing cancellation and typed callback error preserve usage. Callback errors win over next source observation and expired checkpoint deadline. Finalizing-to-return race remains uncovered.", |
| 178 | "timing": "Three deadline-priority cases use natural elapsed time after a 10 ms callback sleep against a 1 ms budget. They are not injected clocks, hard deadlines, scheduler/latency guarantees or worker cleanup proof.", |
| 179 | "panic": "One intentional callback panic is caught; source content is checked. This is not fd-close or OS cleanup evidence.", |
| 180 | "send": "One Rust test contains Send bounds for selected types; non-Send Rc callback E is separately preserved. No compile result until approved no-run. No universal 'static or Send E requirement is claimed.", |
| 181 | "privacy": "FileSnapshot Debug is checked against bytes/path/digest/identity exposure. Other generic callback/error Debug output is not covered.", |
| 182 | "cleanup": "Explicit sandbox finish on success; any panic/error/timeout leaves the case directory and stops later cases. No cleanup success inferred from Drop.", |
| 183 | "old_results": "Existing 16 classification failures and seven unverified cases remain unchanged and are not counted in these 72 declarations." |
| 184 | }, |
| 185 | "unverified": [ |
| 186 | "Successful positive-short-read sequence, read EINTR/EIO/permission errno, allocator failure and arbitrary syscall fault injection: no public injection boundary; no production hook or private include added.", |
| 187 | "Device and block nodes, procfs substitution, kernel primitive absence, privileged mounts and malicious same-process fd reuse.", |
| 188 | "Changed(Identity) from a correctly pinned FD, deterministic standalone Changed(Metadata), full ABA/same-inode mutation exclusion, atomic point-in-time copy.", |
| 189 | "Cancellation after final callback before return, final-metadata native failure vs deadline precedence.", |
| 190 | "Opaque-constructor compile-fail checks, non-Linux runtime/Unsupported branch, Windows/VM, strict syscall timeout, fd leak/cleanup proof.", |
| 191 | "OS worker launch/identity/EOF/reap, publication/commit/durability; execveat EACCES and held probes stay deferred." |
| 192 | ], |
| 193 | "future_execution": { |
| 194 | "gate": "Separate fixed-head review required before any Rust compile/no-run/discovery/runtime or fixture syscall execution.", |
| 195 | "order": "Verify source+test hashes -> locked/offline no-run -> list --format terse -> validate every nonempty line and exact unique name set -> execute each exact name once, --test-threads=1 --nocapture.", |
| 196 | "test_target": "snapshot_public_api", |
| 197 | "per_case_filtered": 71, |
| 198 | "cases_serial": true, |
| 199 | "max_parallel_publishers": 0, |
| 200 | "compile_timeout_seconds": 120, |
| 201 | "per_case_timeout_seconds": 30, |
| 202 | "logs_per_command_bytes": 8388608, |
| 203 | "max_case_data_bytes": 134217728, |
| 204 | "on_failure": "Stop at first compile/discovery/test/nonzero/unknown result; preserve logs and residual paths. No source/expectation edits or repeats. Deadline expiry requests termination only of the harness-owned test child; failure to reap is a separate blocked result.", |
| 205 | "limit_caveat": "Parent timeout is observation/control, not a guarantee of interrupting uninterruptible kernel I/O. No worker isolation claim.", |
| 206 | "records": "Exact argv/cwd/env allowlist, exit/status, raw stdout/stderr SHA256, binary SHA256, exact discovered/executed/pass/fail/ignored/filtered sets, source/test hashes before/after. Runs and validation output remain local and excluded from PR.", |
| 207 | "commands": [ |
| 208 | "CARGO_TARGET_DIR=tests/rust-file-snapshot/target cargo test --manifest-path tests/rust-file-snapshot/Cargo.toml --locked --offline --test snapshot_public_api --no-run --message-format=json", |
| 209 | "<fixed-binary> --list --format terse", |
| 210 | "<fixed-binary> --exact <contract-name> --test-threads=1 --nocapture" |
| 211 | ], |
| 212 | "toolchain": "Existing 1.99.1-x86_64-unknown-linux-gnu explicitly selected; default stable lacks rustfmt. No toolchain installation or shared override.", |
| 213 | "sandbox_precondition": "Approved runner creates tests/rust-file-snapshot/runs with mode 0700 before tests, verifies no symlink and expected owner, and refuses leftover case directories. No sandbox or synthetic input has been created at source-only stage." |
| 214 | }, |
| 215 | "static_validation": { |
| 216 | "allowed": [ |
| 217 | "rustfmt --check", |
| 218 | "normal Python static checks and checker helper tests", |
| 219 | "cargo generate-lockfile --offline", |
| 220 | "cargo metadata --locked --offline" |
| 221 | ], |
| 222 | "python_guard": "Reject -O/PYTHONOPTIMIZE before argument parsing and file reads.", |
| 223 | "manifest": "SHA256SUMS enumerates every deliverable except itself; source-pins.json independently records all nine fixed production blobs/hashes.", |
| 224 | "deps": "Only production path dependency plus its existing libc version/features; no new registry package or feature. Cargo.lock must equal production packages plus test root." |
| 225 | } |
| 226 | } |