Skip to content

Harden Zeus security, reliability, and maintainability#1

Merged
brainx merged 49 commits into
mainfrom
quality/security-reliability-hardening
Jul 22, 2026
Merged

Harden Zeus security, reliability, and maintainability#1
brainx merged 49 commits into
mainfrom
quality/security-reliability-hardening

Conversation

@brainx

@brainx brainx commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

This change set completes the Zeus engineering-quality hardening plan while preserving the v0.3.0 compatibility surface.

  • hardens readiness probing, private-file access, audit/log sanitization, gateway marker handling, process identity checks, and secret input paths
  • decomposes the API, state, and supervisor internals into focused modules while retaining the established public facades
  • adds authenticated readiness reporting and explicit SQLite durability behavior
  • strengthens packaging, fresh-VPS, real-Hermes, release-provenance, and multi-platform CI gates
  • aligns operator, architecture, compatibility, release, and onboarding documentation with the implemented behavior

Why

The v0.3.0 baseline had several security and reliability gaps around filesystem race resistance, bounded network probes, evidence handling, runtime identity checks, and reproducible verification. Its largest modules also made lifecycle behavior difficult to review safely. This PR closes those gaps and establishes characterization tests around the compatibility contract before and during the internal refactors.

Compatibility

This work intentionally preserves:

  • existing CLI commands, API routes, response fields, status codes, and documented exit behavior
  • SQLite schema version 6 and gateway marker schema version 3
  • the existing .zeus/ layout and lifecycle ordering
  • Python 3.11+ and the standard-library-only Zeus runtime
  • the public StateStore and Supervisor facades

No database migration or release publication is included.

Verification

  • ./scripts/test.sh — passed, 820 tests
  • git diff --check origin/main...origin/quality/security-reliability-hardening — passed
  • GitHub Actions branch run — all 8 jobs passed, including Python 3.11-3.14, package, lifecycle subprocess, macOS lifecycle, fresh VPS, and pinned real-Hermes verification

The pull-request checks should rerun against the merge context before approval and merge.

brainx added 30 commits July 21, 2026 18:52
@brainx
brainx enabled auto-merge (squash) July 22, 2026 02:24
@brainx brainx self-assigned this Jul 22, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a03ee99d19

ℹ️ 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".

Comment thread zeus/readiness.py Outdated
@brainx
brainx merged commit e840814 into main Jul 22, 2026
16 checks passed
@brainx
brainx deleted the quality/security-reliability-hardening branch July 22, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant