Repository navigation
feat(release): harden M1 beta qualification lifecycle - #10530
Conversation
|
|
||
| @contextmanager | ||
| def _locked(root: Path) -> Iterator[None]: | ||
| root.mkdir(parents=True, exist_ok=True) |
There was a problem hiding this comment.
🔒 Agentic Security Review
Severity: MEDIUM
The lease root is created with default permissions under a predictable /tmp path, and the active lease file later stores a live release token. Without enforcing owner-only directory/file modes (and rejecting unsafe root conditions), another local user on a shared host can tamper with or read lease state and disrupt qualification lifecycle ownership.
Impact: Cross-user local interference with release-gate qualification state (including unauthorized lease release / lifecycle DoS) on shared runners.
Reviewed by Cursor Security Reviewer for commit 4972862. Configure here.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4972862e2d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
47c304a to
ca3b357
Compare
|
@cursor fix merge conflict, ci, and new review comments |
|
Handled merge conflicts, CI-related flake, and the new review items on Merge conflict
Review comments
CI
Verification run locally
PR description could not be auto-updated (not agent-managed on GitHub); CI should re-run on the new commit. I can watch checks if you want. |
1d40585 to
059425e
Compare
|
Monitor pass update:
Local verification:
Post-push re-scan: no unresolved trusted Codex/Cubic threads found. Most CI checks are green; |
…st contracts Three pre-existing Desktop Swift test failures from #10523 (chore: add storage and bridge diagnostics) were never caught on main because the Desktop Swift CI path-filter skips the build for non-Swift commits. PR #10530's Swift compile fixes trigger the full suite, exposing them. Fixes: 1. AgentRuntimeBridgeLifecycle.StartFailure rawValue now snake_case (handshake_timed_out) matching the bounded telemetry convention the test asserts. 2. DesktopDiagnosticsManager.cloudIncidentSnapshotKeys now includes path_class/database_file_size_bytes/volume_free_bytes/volume_total_bytes so StorageFailureDiagnostics context survives into beta trail snapshots. 3. RewindStorageErrorClassificationTests source-inspection updated for the CGImage frame logError that now carries structured context (multi-line).
…st contracts Three pre-existing Desktop Swift test failures from #10523 (chore: add storage and bridge diagnostics) were never caught on main because the Desktop Swift CI path-filter skips the build for non-Swift commits. PR #10530's Swift compile fixes trigger the full suite, exposing them. Fixes: 1. AgentRuntimeBridgeLifecycle.StartFailure rawValue now snake_case (handshake_timed_out) matching the bounded telemetry convention the test asserts. 2. DesktopDiagnosticsManager.cloudIncidentSnapshotKeys now includes path_class/database_file_size_bytes/volume_free_bytes/volume_total_bytes so StorageFailureDiagnostics context survives into beta trail snapshots. 3. RewindStorageErrorClassificationTests source-inspection updated for the CGImage frame logError that now carries structured context (multi-line).
3fef38b to
abdc981
Compare
Monitor pass — diagnostic contract alignment for #10523 Swift testsPR #10530's Swift compile fixes (commit Fixed (commit
|
Failure-Class: none
…st contracts Three pre-existing Desktop Swift test failures from #10523 (chore: add storage and bridge diagnostics) were never caught on main because the Desktop Swift CI path-filter skips the build for non-Swift commits. PR #10530's Swift compile fixes trigger the full suite, exposing them. Fixes: 1. AgentRuntimeBridgeLifecycle.StartFailure rawValue now snake_case (handshake_timed_out) matching the bounded telemetry convention the test asserts. 2. DesktopDiagnosticsManager.cloudIncidentSnapshotKeys now includes path_class/database_file_size_bytes/volume_free_bytes/volume_total_bytes so StorageFailureDiagnostics context survives into beta trail snapshots. 3. RewindStorageErrorClassificationTests source-inspection updated for the CGImage frame logError that now carries structured context (multi-line).
…flow The desktop e2e flow coverage manifest check requires changed Swift files to have corresponding flow coverage. AgentRuntimeBridgeLifecycle.swift is exercised by the hermetic chat flow (AgentRuntimeProcess consumes the lifecycle reducer), so add it to chat-hermetic.yaml covers.
Failure-Class: none
Failure-Class: none
Failure-Class: none
Failure-Class: none
Failure-Class: none
cb5ffc0 to
c75287b
Compare
Failure-Class: none





Summary
Product invariants affected
Failure class
Failure-Class: none
Verification
bash scripts/dev-harness/run-tests.sh— 56 passedbackend/.venv/bin/python -m pytest backend/tests/unit/test_qualified_beta_promotion.py -q— 182 passedbash desktop/macos/tests/test-fault-suite-launch-env.shbash desktop/macos/tests/test-fault-suite-owned-app-cleanup.shbash desktop/macos/tests/test-qualification-stage-isolation.shbash desktop/macos/tests/test-qualify-desktop-beta-contract.shpython3 .github/scripts/test_desktop_release_flow_contract.pyactionlint -config-file .github/actionlint.yaml .github/workflows/desktop_qualify_beta.ymlpython3 .github/scripts/check-release-process-guards.py