Repository navigation
docs(codex): document native compaction hooks - #70906
vincentkoc wants to merge 1 commit into
Conversation
|
Codex review: found issues before merge. Reviewed July 3, 2026, 3:04 AM ET / 07:04 UTC. Summary PR surface: Docs +26. Total +26 across 2 files. Reproducibility: not applicable. this is a documentation PR rather than a runnable bug report. The review path is source-backed docs consistency against current OpenClaw and sibling Codex source. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Refresh the draft, update the runtime contract page to match the Codex-owned native hook boundary, and cite the merged upstream Codex hook implementation before normal maintainer review. Do we have a high-confidence way to reproduce the issue? Not applicable; this is a documentation PR rather than a runnable bug report. The review path is source-backed docs consistency against current OpenClaw and sibling Codex source. Is this the best way to solve the issue? No, not as-is. The clarification belongs in the right docs layer, but the maintainable solution also updates the sibling runtime contract page, replaces the stale upstream dependency reference, and refreshes the conflicted draft branch. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8ed6c78b7891. Label changesLabel justifications:
Evidence reviewedPR surface: Docs +26. Total +26 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Closing this stale docs draft rather than replaying it. The upstream situation changed: openai/codex#19060 closed unmerged, while openai/codex#19905 later landed Current OpenClaw docs already preserve the important boundary: native Codex hook notifications are projected as The durable contract should stay concise and source-owned; if OpenClaw later relays native compact hooks or exposes intervention semantics, that code change should update the runtime table with exact behavior. Thanks for starting the upstream work, @vincentkoc. |
Summary
PreCompact/PostCompacthooks as Codex-owned command hooksbefore_compaction/after_compactionremain adapter-level plugin hook eventsDependency
Validation
pnpm format:check -- docs/plugins/codex-harness.md docs/concepts/compaction.mdpnpm docs:listpnpm check:changed