Skip to content

feat: register Codex safety hooks - #385

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/codex-hook-parity
Sep 18, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/codex-hook-parity

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

  • register the shared-Mind commit guard and end-at-deliverable guard through the generated Codex project-hook surface
  • accept representative Codex PreToolUse payloads without crashing on malformed input
  • document project-hook trust and the intentional SessionStart asymmetry

PyAutoMind issue: PyAutoLabs/PyAutoMind#407

Scripts Changed

No user-facing scripts changed.

  • bin/mind_commit_guard.py — harden the shared-Mind guard payload adapter
  • .codex/hooks.json, AGENTS.md, and tests/test_mind_commit_guard.py — configuration, documentation, and validation

Test Plan

  • 28 shared-Mind guard tests passed
  • generated adapter commands verified from a nested working directory
  • git diff check clean
  • independent review CLEAN

Human Heart RED development override

The live human authorized PyAutoMind#407 / codex-hook-parity contemporaneously, verbatim:

i do then go to phase 3

Authorization record: PyAutoLabs/PyAutoMind#407 (comment)

Exact current Heart RED reasons:

  • install verification FAILED (testpypi; checks F)
  • release validation FAILED (stage integrate)

Additional yellow:

  • manifest drift: remote-session blocks (generated) — 2 mismatch(es) vs PyAutoMind/repos.yaml

Passed gates: tests PyAutoMind 130, PyAutoBrain 28, assistants 29/32/32/29; smoke n/a for this organism/config/docs task; review CLEAN; generated-hook drift OK; lifecycle OK with the known unrelated warning; diff-check clean; nested-cwd hook commands verified.

This override permits development push and PR-open only. It does not authorize release, release rehearsal, merge, force merge, protection bypass, failed-CI bypass, or any claim that this task repairs Heart. Heart remains RED for release purposes. Merge requires a separate explicit human command and green required checks.

Generated by the PyAutoLabs agent workflow.

@Jammy2211
Jammy2211 merged commit 87ebc15 into main Sep 18, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/codex-hook-parity branch September 18, 2026 16:59
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