fix: complete V1.1 clean-room reliability review - #31
Merged
Conversation
magetsu002
marked this pull request as ready for review
August 1, 2026 21:22
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.
V1.1 reliability review
Starting
mainSHA:22ecacc25021d06faa052d92ad3c7e9abe37acb5Final exact certified head:
545949e90149cc693732340c16d4eeb35a8ede6dReproduced real failures and root causes
js/file-system-racefindings came from checking a path withlstatand reopening it later by pathname in bin preparation, package inspection, and a clean-room regression test.observedFingerprint()included exactavailableDiskBytes. Normal free-space drift between plan and apply falsely marked an otherwise unchanged exact plan stale./usr/bin/nodeand/usr/bin/npmpaths, initially provisioned root-owned synthetic release paths, and generated an invalid escaped npm build command.no-new-privs, which made the exact allowlisted sudo service restart impossible. This was a product-level contradiction between confinement and controlled deployment.Repairs
Packaging
opshavenandopshaven-mcpentry modules.Canonical installation health and recovery
Error boundary
CodeQL
O_NOFOLLOWfile-handle inspection, handle-based reads, stats, and chmod.Deployment identity and volatile readiness
Digest-bound stale-plan identity includes the current revision, active release and rollback target, source revision/cleanliness, service identity and state, runtime readiness, target-revision verification, application binding, pinned host identity, policy version, authorization profile, operation definitions, release layout, and health-check definition.
The plan still records observed free disk for human review and audit. Exact free-byte counts are audit-only volatile observations and are excluded from the observed-state fingerprint. Apply re-inspects current disk and requires
availableDiskBytes >= DEPLOYMENT_MINIMUM_DISK_BYTESbefore any mutation.Regression coverage proves:
Controlled and read-only confinement
no-new-privs, dropped inherited/ambient capabilities, reset environment, forced SSH command, and no sudo authority.no-new-privsbecause that kernel flag makes an approved sudo transition impossible.Clean-room lifecycle
The final installed-CLI lifecycle completed:
opshaven --versionand MCP executable checks;Final full lifecycle time: 89 seconds on Ubuntu 24.04 / Node 22.
Measured major stages from the final run:
Validation
The execution environment available to this review could not clone GitHub directly, so no unsupported claim of a complete local clone-based run is made. Product changes were committed forward and validated on fresh GitHub-hosted runners.
Final unchanged-head runs:
30718880268— success, including release check and reproducible build.30718880266— success, including npm audit, repository scan, lockfile/workflow verification, synchronization, rollback, receipt tampering, cancellation, progress modes, disposable VPS, remote MCP, Ubuntu setup, trust, deployment, and onboarding integrations.30718880267— success, including strict zero-finding post-analysis gate.30718880274— success, including installed CLI, canonical state matrix, and full operator lifecycle.Security invariants preserved
Restricted SSH, pinned host identity, signed authorization, signed requests and responses, least privilege, capability-scoped dispatch, deterministic exact plans, exact-plan apply, replay protection, bounded execution, redaction, transactional synchronization, generation receipt integrity, rollback, evidence-preserving repair, tamper-evident audit, and fail-closed behavior remain enforced.
No arbitrary shell execution, broad sudo access, scan exclusion, CodeQL suppression, weakened audit level, skipped integration, release publication, or tag change is included.
Known limitations
v1.0.0.