Skip to content

Aegis v1.0.1 — remediation fixes and polish

Latest

Choose a tag to compare

@stredevirad stredevirad released this 09 Nov 15:23
· 8 commits to main since this release

Maintenance release on top of v1.0.0. It fixes the two remediation robustness gaps that an automated security review found and v1.0.0 listed as open, and it polishes how verdicts read. There are no new features and no dependency changes.

Fixes

  • Remediation lost update. execute() and rollback() claimed a proposal with a compare-and-set but wrote the final status by id only. The worker's stuck-row sweeper can't tell a slow flag-service request from a crashed one. If it marked a row failed / rollback_failed while the request was still in flight, the late final write overwrote that record. The final write is now a compare-and-set on the claimed status (executing / rolling_back). When it matches no row, the reconciled record stays and the current row is returned. The late outcome, including the target state it produced, is kept in the audit log. Regression tests for execute and rollback run the real sweeper while the flag write is in flight. Both failed before the fix.
  • Maintenance-loop fault isolation. One unexpected exception while reconciling a single stuck remediation could end the worker's maintenance task. That silently stopped dead-job reaping, deferred-job promotion, verification and reconciliation until the worker restarted. Now each stuck row is reconciled in isolation (except Exception, logged; a row that vanished is skipped), and the loop itself logs the error and carries on. BaseException is deliberately not caught, so cancellation still stops the loop. The new tests cover a RuntimeError in one row, a RuntimeError in the loop, and cancellation.

Polish

  • Verdict headline. The UI now builds the headline from the structured root causes: "Strongly supported: catalog — Change-induced (feature flag)", not "catalog (change_induced:feature_flag)". The API's display_label is unchanged.
  • Check reasons. Two now read as plain text: "supported by logs, metrics, traces" and "only metrics modality supports it". Benchmark and held-out outputs are byte-identical to v1.0.0.
  • README. A plain-language opening sentence, results lead lines, and a note that the root src/, tests/ and config/ are the frozen research prototype.
  • Media. Refreshed screenshots, and a demo GIF that is now reproducible: frontend/e2e/demo-gif.spec.ts with E2E_GIF=1 and ffmpeg.
  • Dependabot. Version-update PRs are disabled because the repo is frozen at v1.0.x. Security updates stay on.

Verification

  • CI (run 42643499927 on b72be46): all 6 jobs green. Backend: 366 tests, 0 skipped (137 on real PostgreSQL), ruff, mypy --strict and the benchmark gate. Frontend: 81 tests and the build. E2E: 3 Playwright tests against the one-command stack. Research suite: 159 tests. Gitleaks: full history clean.
  • Synthetic regression benchmark: 15 incidents, 12 correct, 3 correctly abstained, 0 confidently wrong. The engine's authors wrote it, so it's a regression gate, not an accuracy estimate.
  • Held-out real captures: 8, 0 confidently wrong (6 abstained, 2 partially correct).

Details are in docs/production-readiness.md (Phase 6 entry). The limitations in the README still apply.