| 1 | { |
| 2 | "schema": "zipelo.gzip-file-job-run-plan.v1", |
| 3 | "gate": "No Rust compile/discovery/FileJob execution before fixed head/manifest review. rustfmt parsing, offline lock/metadata and Python static helper tests only in preparation.", |
| 4 | "preflight": [ |
| 5 | "Blocking exclusive current workspace flock for every file write/build/cache mutation; fresh status and fixed input check inside lock. No source/branch checkout changes in shared workspace.", |
| 6 | "Verify 39 remote source blobs/modes/SHA256 and complete new manifest; existing Rust1.99.1 and offline registry graph only.", |
| 7 | "Fresh canonical owned validation and target under this tests path; refuse previous result/target reuse after failure. Preserve all old evidence.", |
| 8 | "Create runs with mode0700 only if absent under the canonical test root; verify euid and identity. Child Sandbox creates mode0700 private case root, files0600. No chmod/chown of existing paths.", |
| 9 | "Native Linux ext-family/XFS with procfs/openat2/O_TMPFILE only; unexpected Unsupported is a failed environment prerequisite, never skip/ignore/success. No mount/permission workaround.", |
| 10 | "Independent synthetic fixtures only. Maximum plain payload65537 and compressed fixture <=65599 bytes; two publishers only in concurrency case." |
| 11 | ], |
| 12 | "target": { |
| 13 | "manifest": "tests/rust-gzip-file-job/Cargo.toml", |
| 14 | "name": "file_job_public_api", |
| 15 | "exact_names": [ |
| 16 | "concurrency::acknowledged_external_cancel_before_commit_prevents_publication", |
| 17 | "concurrency::two_file_jobs_for_one_name_have_one_complete_winner", |
| 18 | "control::cancel_decode_after_inflate", |
| 19 | "control::cancel_decode_after_output", |
| 20 | "control::cancel_decode_before_inflate", |
| 21 | "control::cancel_decode_before_return", |
| 22 | "control::cancel_decode_header", |
| 23 | "control::cancel_decode_start", |
| 24 | "control::cancel_decode_trailer", |
| 25 | "control::cancel_publication_before_commit", |
| 26 | "control::cancel_publication_opening", |
| 27 | "control::cancel_publication_verifying", |
| 28 | "control::cancel_publication_writing", |
| 29 | "control::cancel_snapshot_comparing", |
| 30 | "control::cancel_snapshot_copying", |
| 31 | "control::cancel_snapshot_finalizing", |
| 32 | "control::cancel_snapshot_opening", |
| 33 | "control::cancel_snapshot_pinned", |
| 34 | "control::cancellation_after_return_preserves_committed_bytes", |
| 35 | "control::decode_observer_error_beats_accepted_cancel", |
| 36 | "control::dropping_unused_job_finishes_its_gate", |
| 37 | "control::local_decode_stop_does_not_need_cancel_request", |
| 38 | "control::local_publication_stop_does_not_need_cancel_request", |
| 39 | "control::local_snapshot_stop_does_not_need_cancel_request", |
| 40 | "control::pre_cancel_stops_before_snapshot_open", |
| 41 | "control::publication_observer_error_beats_accepted_cancel", |
| 42 | "control::snapshot_observer_error_beats_accepted_cancel", |
| 43 | "invalid::bad_crc_prevents_publication", |
| 44 | "invalid::bad_size_prevents_publication", |
| 45 | "invalid::concatenated_members_prevent_publication", |
| 46 | "invalid::invalid_deflate_preserves_backend_error", |
| 47 | "invalid::invalid_magic_prevents_publication", |
| 48 | "invalid::trailing_byte_prevents_publication", |
| 49 | "invalid::truncated_trailer_prevents_publication", |
| 50 | "limits::exact_limits_in_all_stages_allow_commit", |
| 51 | "limits::gzip_input_limit_stops_after_snapshot", |
| 52 | "limits::gzip_metadata_limit_preserves_header_cost", |
| 53 | "limits::gzip_processed_failure_includes_post_checkpoint_charge", |
| 54 | "limits::gzip_selected_output_limit_preserves_consumed_cost", |
| 55 | "limits::invalid_decode_duration_retains_snapshot_cost", |
| 56 | "limits::invalid_publication_duration_retains_both_prior_costs", |
| 57 | "limits::invalid_snapshot_duration_has_zero_cost", |
| 58 | "limits::publication_byte_limit_preserves_completed_prior_stages", |
| 59 | "limits::publication_call_limit_retains_pre_eof_usage", |
| 60 | "limits::publication_io_limit_retains_pre_eof_usage", |
| 61 | "limits::snapshot_byte_limit_preserves_partial_usage", |
| 62 | "limits::snapshot_call_limit_retains_last_eof_reservation_boundary", |
| 63 | "limits::snapshot_io_limit_retains_last_eof_reservation_boundary", |
| 64 | "namespace::existing_directory_and_child_survive_conflict", |
| 65 | "namespace::existing_file_bytes_and_identity_survive_conflict", |
| 66 | "namespace::existing_symlink_and_target_survive_conflict", |
| 67 | "namespace::identical_input_and_output_name_preserves_archive", |
| 68 | "namespace::missing_owned_input_preserves_native_open_error", |
| 69 | "namespace::replaced_parent_path_does_not_redirect_pinned_commit", |
| 70 | "success::chunk_minus_one_output", |
| 71 | "success::chunk_output", |
| 72 | "success::chunk_plus_one_output", |
| 73 | "success::empty_output", |
| 74 | "success::header_name_and_comment_never_select_destination", |
| 75 | "success::known_bytes_output", |
| 76 | "success::one_byte_output", |
| 77 | "success::replacing_input_after_snapshot_uses_captured_owned_bytes" |
| 78 | ], |
| 79 | "count": 62, |
| 80 | "filtered_per_case": 61 |
| 81 | }, |
| 82 | "commands": [ |
| 83 | "python3 -B tests/rust-gzip-file-job/static_check.py --manifest-sha256 <fixed>", |
| 84 | "cargo test --manifest-path tests/rust-gzip-file-job/Cargo.toml --locked --offline --test file_job_public_api --no-run --message-format=json", |
| 85 | "<unique-binary> --list --format terse", |
| 86 | "<unique-binary> --exact <name> --test-threads=1 --nocapture" |
| 87 | ], |
| 88 | "bounds": { |
| 89 | "compile_seconds": 120, |
| 90 | "discovery_seconds": 30, |
| 91 | "per_case_seconds": 30, |
| 92 | "per_command_log_bytes": 8388608, |
| 93 | "channel_wait_seconds": 5, |
| 94 | "termination_grace_seconds": 2, |
| 95 | "reap_grace_seconds": 5, |
| 96 | "cleanup_observation_seconds": 10, |
| 97 | "parallel_cases": 1, |
| 98 | "max_payload_bytes": 65537, |
| 99 | "max_archive_bytes": 65599 |
| 100 | }, |
| 101 | "order": "Static then compile once, unique artifact and complete exact discovery set, each sorted case exactly once. Require1passed/0failed/0ignored/0measured and61filtered. First failure/timeout/missing/duplicate/changed input stops without retry.", |
| 102 | "parser": "Handle --nocapture prefix/intermediate output/ok separation; exact unique name and summary plus exit0/reaped/EOF required. Reject malformed/missing/duplicate names or summaries and failed/timeout/capped command. Pre-selftest the runner parser, reusing verified PR54 parser logic only with source/hash record.", |
| 103 | "supervision": "Stream bounded raw logs, signal only owned process group after timeout/log overflow, TERM grace2s then KILL and reap5s. Channel receives5s; join occurs after done and whole process remains bounded by30s. Never claim hard interrupt of uninterruptible I/O.", |
| 104 | "cleanup": "Rust assertions/joins finish before Sandbox.finish; no implicit Drop deletion. Preserve failures and their residual case roots. After each passing process require runs empty and owned children/threads ended. Keep logs and binaries. Remove only newly owned empty runs after final identity check; no recursive cleanup of failures.", |
| 105 | "evidence": "Record source/test hashes before/after, exact names/filtered values, raw stdout/stderr/argv/env, binary SHA256, process exit/reap/EOF, output stage/Usage/cleanup assertions and owned residuals. Preserve original PR48/51/54 reports. Separate real FileJob results from callback scheduling and gate lifecycle.", |
| 106 | "forbidden": [ |
| 107 | "Production changes", |
| 108 | "Public receipt constructors", |
| 109 | "Retries or weakening expectations", |
| 110 | "User archives or paths", |
| 111 | "GUI/VM/OS worker/execveat", |
| 112 | "Windows cfg simulation", |
| 113 | "System permission/mount changes", |
| 114 | "Network/install/download", |
| 115 | "Main merge or product release" |
| 116 | ] |
| 117 | } |