Repository navigation
Add safe single-file copy - #112
Merged
Merged
Conversation
scripts/vibe-harness.ps1 drives a built orbit binary and asserts the observable claims this milestone commits to: deterministic plan output, no-op idempotence (hash + mtime preserved), concurrent publish atomicity, staging-file placement and cleanup, mid-copy source-change detection, large-file round-trip hashes, well-formed --json NDJSON, operation_id sensitivity to inputs, and exit-code mapping. Complements cargo test: the Rust integration tests exercise the code from inside the process; this harness exercises the shipped binary from outside with real filesystem and race conditions. Default binary path resolves relative to the script so a clone + cargo build --release + run just works; -OrbitPath overrides. README.md gains a short section pointing to the harness.
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.
Introduces the first narrow write path for the reboot:
orbit copy SOURCE_FILE DEST_FILE [--verify hash|size] [--json|--quiet].What this branch delivers
docs/superpowers/.scripts/vibe-harness.ps1(13 checks: plan determinism, no-op idempotence incl. mtime, concurrent publish atomicity, staging placement/cleanup, mid-copy source-change detection, large-file round-trip hash, JSON NDJSON schema, exit-code mapping).Local verification
cargo fmt --all -- --check— cleancargo clippy --all-targets -- -D warnings— cleancargo test --all-targets— 38 tests passpwsh -NoProfile -File scripts/vibe-harness.ps1— 13/13 pass against the release binaryKnown follow-ups
Tracked separately: #110 (trailing-slash dest normalisation), #111 (error-message path prefix inconsistency).