| new file mode 100644 |
| index 000000000..8f356fe4f |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-release-copy-across-consoles.tsv |
| @@ -0,0 +1,20 @@ |
| +# Census overlay release-copy-across-consoles, written by census-propose (#369). census-ruling-release-copy-across-consoles, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-release-copy-across-consoles.md. |
| +# 1 body, 0 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 7 new dispositions: 0 reads re-frozen at their disposition with the claim, 7 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +@legacy ebf147442919d1b4bdb28e77468287920641091c728f2abd9fc83b5a492c74cf cli.go runShip legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-1;basis=rootfs Plan 1 Task 9: takes --rootfs, --processes, --hibernate, --jit and --check and hands a rootfs ship to runShipRootfs (ship_rootfs.go) before the binary path; the --notes-file ReadFile moved into shipNoteText (its own row, the same read of the file the person named) and the direct-mode version mint into mintDirectVersion; one read site fewer, none added; Task 12: the --hibernate flag help is RFS-1-C32's new text, the same reads;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets (repeatable), checks the folders with checkShipAssets (release.ValidAssetPaths; refused on a static site) before the mode split, carries them into the API meta (sess.shipAssets) and the direct-mode manifest (shipAssetsBlock), and passes them to runShipRootfs (rootfsShipOpts.assets), which runs the same check and carries them the same two ways; after a direct-mode ship has stored a release declaring folders, directShipAssetGens runs the console ship door's backfill (provision.MintMissingAssetGens: lists the app's record keys and gives each record without an asset generation one, a CAS write in the deployment bucket as the person running the CLI) and fails naming any record it could not mint; read sites unchanged (2), none added;rev3=census-ruling-rootfs-apps-4;basis=adds the repeatable --env flag and refuses it before anything else unless --check is given (shipEnvRefusal, parseShipCheckEnv); the parsed values go into rootfsShipOpts.checkEnv. --env values reach the check's local container runtime as -e argv only, never root, never a box. No read added; read sites unchanged (2).;rev3=census-ruling-stateless-replicas-1;basis=Carry --stateless into binary/API and rootfs ship options; same two read sites, no new read.;rev3=census-ruling-platform-mail-submission;basis=Task 6: a --mail flag (only "submit" accepted, refused with one line otherwise, and refused with --rootfs), set on the manifest in direct-bucket mode and sent to the console in API mode, where a console that does not echo it is refused (ship_mail.go, apimode.go), as --stateless is. A person's ship command; no root read, no box state.;rev3=census-ruling-release-copy-across-consoles;basis=takes --from-release <dir> and, after the environment refusal and before the file-argument checks, hands the ship to runShipFromRelease (ship_from_release.go). a person's ship command run from their own machine against a console; no root read, no box state; read sites unchanged (2). file:ReadFile@8606,file:ReadFile@8830 865c26d06b9c7115291e4ec92eae92fd1ced08d8964ff7d8ad2a0a0f8b3866d3 |
| +@legacy bb22b6bc112fb024d5972e49d701ce00ecca9df4c4faae7b2a971ff2eac45ced release_pull.go apiSession.pullArtifact legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (carlos releases pull, #1389): streams one artifact from the console read door into a fresh exclusive temp file (CreateTemp) in the directory the person named with --out, hashes it, and renames it into place only when size and sha256 match the manifest; ReadAll reads only a bounded error body from the console response. CLI-side, never root, never a box path. file:CreateTemp@484,file:ReadAll@360 dbfa0197ee9fc0d2337ddb4b830c455dca377e97c06429d8e8055e0f68cf9fff |
| +@legacy c83c53bb488c804ffa1569bc124a53a8dd8b9597ffda757bc466e5abf7c39145 release_pull.go apiSession.releaseManifestRaw legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): ReadAll of the console manifest response body, capped at 1 MiB and bounded by a two-minute deadline. reads an HTTP body, not a file; CLI-side, never root. file:ReadAll@372 53fa5d2a9f1a58cf4dcc9139ed2c353530afd94952dfafacf95d6f363c5cfbdb |
| +@legacy b53c5ecf56824588aee6d73976911169273e8572f0e75528fb63ff978fbd91f0 release_pull.go lockPullDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389 final review finding 1): creates <out>/.carlos-pull.lock with O_CREATE|O_EXCL in the directory the person named, refuses when it exists, and removes only the lock it created. CLI-side, never root. file:OpenFile@111 fa3a7c507f7631843b88093c30a8802ef1a5da36b119a43a327fd182fcdde86a |
| +@legacy 09889e81a429b1a521b6fc5d8ea23ba2f0eccda910810aaf81a37fd2f3d0981d release_pull.go publishManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): writes the console manifest bytes to an exclusive temp file (CreateTemp) in --out, syncs it, and publishes it as manifest.json with a hard link that never replaces an existing file. CLI-side, never root. file:CreateTemp@78 8ba1a3335702733dc3eaf09fb6464493b688c08a1bd2d87a7d1d6ca6658aa0a9 |
| +@legacy 2856a69cfaef976a5e9ab7984ddfcdb41d8f6c934739f70f8e220e25b33aa2a2 release_pull.go pullRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): creates --out, takes its pull lock, Lstats <out>/manifest.json to refuse a directory that already holds a release, validates every manifest file name (validPulledFile: plain names only, no manifest, lock or partial names, no Windows aliases or device names) and refuses duplicates after case and trailing dot/space normalisation, then pulls each artifact and publishes the manifest last. CLI-side, never root. file:Lstat@346 ceb5e456e55a1e31ed50b5485100cb2d30e97d7b1c5dd862f1786fa8554a4509 |
| +@legacy e6ebdb9637603a55ac5a92e90520fa55d1b725b3297e02191c70627811c8875c ship_from_release.go hashReleaseFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389, carlos ship --from-release): opens one file named by a pulled manifest.json in the directory the person passed and returns its length and sha256. names reach it only after validPulledFile. CLI-side, never root. file:Open@70 1fd2348536599c426490ea9678d88a97cf096de9be4e0819046b7b64f9301152 |
| +@legacy 0e70374328de87a0c88f0434a7ef9938a84ecee35a738fa7a72f8f8a40b2e432 ship_from_release.go loadReleaseDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): reads <dir>/manifest.json from the directory the person passed with --from-release, checks kind, version and that every named file passes validPulledFile before any file is read, then hashes each file against the manifest. CLI-side, never root. file:ReadFile@93 2e828153edde2e7fef91209d520e78153f42b432bb9971d8746c68f66bcfce4d |
| +cli.go runShip legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-1;basis=rootfs Plan 1 Task 9: takes --rootfs, --processes, --hibernate, --jit and --check and hands a rootfs ship to runShipRootfs (ship_rootfs.go) before the binary path; the --notes-file ReadFile moved into shipNoteText (its own row, the same read of the file the person named) and the direct-mode version mint into mintDirectVersion; one read site fewer, none added; Task 12: the --hibernate flag help is RFS-1-C32's new text, the same reads;rev3=census-ruling-edge-asset-cache-1;basis=takes --assets (repeatable), checks the folders with checkShipAssets (release.ValidAssetPaths; refused on a static site) before the mode split, carries them into the API meta (sess.shipAssets) and the direct-mode manifest (shipAssetsBlock), and passes them to runShipRootfs (rootfsShipOpts.assets), which runs the same check and carries them the same two ways; after a direct-mode ship has stored a release declaring folders, directShipAssetGens runs the console ship door's backfill (provision.MintMissingAssetGens: lists the app's record keys and gives each record without an asset generation one, a CAS write in the deployment bucket as the person running the CLI) and fails naming any record it could not mint; read sites unchanged (2), none added;rev3=census-ruling-rootfs-apps-4;basis=adds the repeatable --env flag and refuses it before anything else unless --check is given (shipEnvRefusal, parseShipCheckEnv); the parsed values go into rootfsShipOpts.checkEnv. --env values reach the check's local container runtime as -e argv only, never root, never a box. No read added; read sites unchanged (2).;rev3=census-ruling-stateless-replicas-1;basis=Carry --stateless into binary/API and rootfs ship options; same two read sites, no new read.;rev3=census-ruling-platform-mail-submission;basis=Task 6: a --mail flag (only "submit" accepted, refused with one line otherwise, and refused with --rootfs), set on the manifest in direct-bucket mode and sent to the console in API mode, where a console that does not echo it is refused (ship_mail.go, apimode.go), as --stateless is. A person's ship command; no root read, no box state.;rev3=census-ruling-release-copy-across-consoles;basis=takes --from-release <dir> and, after the environment refusal and before the file-argument checks, hands the ship to runShipFromRelease (ship_from_release.go). a person's ship command run from their own machine against a console; no root read, no box state; read sites unchanged (2). file:ReadFile@8606,file:ReadFile@8830 865c26d06b9c7115291e4ec92eae92fd1ced08d8964ff7d8ad2a0a0f8b3866d3 |
| +release_pull.go apiSession.pullArtifact legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (carlos releases pull, #1389): streams one artifact from the console read door into a fresh exclusive temp file (CreateTemp) in the directory the person named with --out, hashes it, and renames it into place only when size and sha256 match the manifest; ReadAll reads only a bounded error body from the console response. CLI-side, never root, never a box path. file:CreateTemp@484,file:ReadAll@360 dbfa0197ee9fc0d2337ddb4b830c455dca377e97c06429d8e8055e0f68cf9fff |
| +release_pull.go apiSession.releaseManifestRaw legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): ReadAll of the console manifest response body, capped at 1 MiB and bounded by a two-minute deadline. reads an HTTP body, not a file; CLI-side, never root. file:ReadAll@372 53fa5d2a9f1a58cf4dcc9139ed2c353530afd94952dfafacf95d6f363c5cfbdb |
| +release_pull.go lockPullDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389 final review finding 1): creates <out>/.carlos-pull.lock with O_CREATE|O_EXCL in the directory the person named, refuses when it exists, and removes only the lock it created. CLI-side, never root. file:OpenFile@111 fa3a7c507f7631843b88093c30a8802ef1a5da36b119a43a327fd182fcdde86a |
| +release_pull.go publishManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): writes the console manifest bytes to an exclusive temp file (CreateTemp) in --out, syncs it, and publishes it as manifest.json with a hard link that never replaces an existing file. CLI-side, never root. file:CreateTemp@78 8ba1a3335702733dc3eaf09fb6464493b688c08a1bd2d87a7d1d6ca6658aa0a9 |
| +release_pull.go pullRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): creates --out, takes its pull lock, Lstats <out>/manifest.json to refuse a directory that already holds a release, validates every manifest file name (validPulledFile: plain names only, no manifest, lock or partial names, no Windows aliases or device names) and refuses duplicates after case and trailing dot/space normalisation, then pulls each artifact and publishes the manifest last. CLI-side, never root. file:Lstat@346 ceb5e456e55a1e31ed50b5485100cb2d30e97d7b1c5dd862f1786fa8554a4509 |
| +ship_from_release.go hashReleaseFile legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389, carlos ship --from-release): opens one file named by a pulled manifest.json in the directory the person passed and returns its length and sha256. names reach it only after validPulledFile. CLI-side, never root. file:Open@70 1fd2348536599c426490ea9678d88a97cf096de9be4e0819046b7b64f9301152 |
| +ship_from_release.go loadReleaseDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-release-copy-across-consoles;basis=new (#1389): reads <dir>/manifest.json from the directory the person passed with --from-release, checks kind, version and that every named file passes validPulledFile before any file is read, then hashes each file against the manifest. CLI-side, never root. file:ReadFile@93 2e828153edde2e7fef91209d520e78153f42b432bb9971d8746c68f66bcfce4d |
| +@coverage . 56c10ac6c22f6a4d878d339bc226daee0c3515e7e2a05a5b7fc28e3951a7f295 |