Skip to content

feat: coordinate recovery and harden opt-in package updates - #74

Merged
abruption merged 45 commits into
mainfrom
feat/v080
Oct 30, 2026
Merged

abruption merged 45 commits into
mainfrom
feat/v080

Conversation

@abruption

@abruption abruption commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Add opt-in automatic source-package updates and a coordinated local recovery entry point for the v0.8.0 development candidate. Keep execution budgets, stop requests and uncertain outcomes durable across retries and code replacement.

Changes

  • Share a local recovery ledger between the packaged watchdog and explicitly integrated external tasks. Preserve stop intent, unknown-result fences and attempt limits. Optional stale-socket cleanup requires prior healthy ownership evidence and repeated same-boot/process/namespace/socket checks; it is disabled by default.
  • Add explicit automatic-update enable/status/hold/disable, intervals, time zones, windows and stable-version pins. Reuse the manual updater with worker execution fences, bounded retries and proof-only reconciliation of an abandoned preparation. No scheduler or VM boot hook is installed.
  • Require authenticated manifest provenance for v0.8.0+ targets, using a preinstalled trusted verifier and independent trust root. Separate validation from the privileged signing job; preserve the manually reviewed legacy exception outside automatic updates.
  • Distinguish baseline declaration, CLI/daemon binaries and running backend; add read-only offline bundle inspection and scoped rate-limit diagnostics/backoff.
  • Bound shim admission without expiring healthy streams. Maintain pinned Actions and Python static checks, and document private reporting and the owner-approved main protection policy.
  • Carry the confirmed-recovery cooldown work from feat: shorten cooldown only after confirmed recovery #62 into this integration without resetting operational ledgers. Align the four README/usage languages and document the experimental recovery boundary.

Follow-up: external connection health (#75)

The relay preserves prior_boot watchdog diagnostics while deriving a separate, strictly validated external_health field. The broker independently checks that evidence before it can earn confirmed-new-incident cooldown eligibility. Legacy inputs keep the original rule; sample timing, first-success, daily budget, unknown-result and historical-slot safeguards remain intact.

Twelve additional isolated regressions cover the real sanitizer → authenticated HTTP middleware → recovery core path. Both independent CLI reviewers completed without required product corrections. Follow-up validation and rollout boundaries include the frozen review hash and the old/new receiver compatibility matrix. Operating rollout requires broker first, relay second, and preservation of the integrated server and existing ledgers; this PR does not perform that deployment.

Validation

  • Core checks at edc9e26: Python 3.11 and 3.13 each passed 541 tests, zero skipped; all four required contexts succeeded.
  • Research checks at edc9e26: Python 3.12 and 3.13 each passed 243 research + 11 lifecycle tests. These are the final PR-head checks.
  • Independent Claude Code (claude-opus-5-5) and Codex CLI reviews used frozen inputs. Grounded required findings were fixed and rechecked. Final review hashes and exact scope are recorded in the development validation report.
  • Closed, unmerged [DO NOT MERGE] Validate main protection with missing/failing/passing checks #73 observed BLOCKED with missing checks, BLOCKED with an intentional static failure, and CLEAN with all four checks passing. The observer was an administrator; no actual merge was attempted.
  • Real fork/journal/lock and Unix-socket fixtures cover the stated concurrency boundaries. The Linux fixture distinguishes full-host unknown rejection from controlled-inventory cleanup. Dummy daemons, readiness/startup stubs and TLS stand-ins do not establish live recovery, TLS operation or production load resistance.

Remaining gates

This is 0.8.0-dev, with no tag/release or operating deployment in this PR. Updates and recovery remain separate opt-ins; existing MCP tasks are not migrated automatically. Local readiness or exit zero is not fresh external SSH/ping confirmation.

Keep #45 open: a second real ChatGPT account is unavailable, and isolated owner fixtures do not prove fresh-account setup, natural unattended recovery or arbitrary VM replacement. Keep #67 open for own-publisher stable-tag attestation and independent verification of distributed bytes; the v0.7.1 bootstrap remains a separate release gate. Keep #69 open for the ordinary reporter flow: private reporting is enabled and its public button was visible, but owner-form observation is not normal-reporter E2E.

Main protection intentionally retains administrator bypass and requires zero native approvals. Independent CLI review is a separate procedure.

Supersedes #62; its cooldown implementation is included here. Do not merge that PR separately.

Closes #31
Closes #44
Closes #61
Closes #66
Closes #68
Closes #70
Closes #71
Closes #72

Refs #45
Refs #67
Refs #69
Refs #62

Closes #75

abruption added 30 commits October 29, 2026 22:02
@abruption abruption added this to the v0.8.0 milestone Oct 29, 2026
@abruption abruption added enhancement New feature or request security Security hardening, vulnerability handling, and trust boundaries. ci Continuous integration, automated checks, and workflow maintenance. labels Oct 29, 2026
@abruption abruption self-assigned this Oct 29, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T16:55:43.131713Z bf78523 PR opened
🔒 Security Review ✅ Completed 2026-10-29T16:56:05.475401Z bf78523 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gitguardian

gitguardian Bot commented Oct 29, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
39201706 Triggered Generic Password 23b9556 research/mcp-events/test_new_incident_policy_deployment.py View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@abruption

Copy link
Copy Markdown
Owner Author

Final PR head: bf78523a2816047a1d87f03705e2deaf89a4c371.

  • Required core checks: all four contexts passed; Python 3.11/3.13 each ran 541 tests, zero skipped. Both logs explicitly exercised the full-host unknown rejection branch.
  • Research checks: Python 3.12/3.13 each passed 231 research and 11 lifecycle tests.
  • Final scoped Claude/Codex review inputs and exact evidence are in the validation report.

#45, #67 and #69 retain their recorded live/release/reporting gates; they are referenced without closing keywords. PR #62 is closed as superseded, without merging. This PR remains Ready for owner review.

@abruption
abruption merged commit a9d9063 into main Oct 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment