Repository navigation
feat(skills): enable self-learning review for Codex sessions - #114501
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 27, 2026, 6:10 AM ET / 10:10 UTC. ClawSweeper reviewWhat this changesThe PR passes resolved Codex app-server runtime facts and exact upstream response counts into OpenClaw’s existing delayed Skill Workshop experience-review scheduler so eligible Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain Keep open for normal maintainer review: the patch is a focused repair for an existing self-learning eligibility gap and its event-counting approach matches the Codex app-server contract, but the PR body provides tests and CI rather than after-fix evidence from a real eligible Codex session. The Priority: P2 Review scores
Verification
How this fits togetherThe Codex plugin translates app-server turn events into an embedded-agent result, then invokes core agent-end hooks. The Skill Workshop scheduler consumes those hook facts to decide whether a successful session is eligible for delayed experience review. flowchart LR
A[Codex app-server turn events] --> B[Codex event projector]
B --> C[Run result and frozen transcript]
C --> D[Agent-end hook context]
D --> E[Experience-review scheduler]
E --> F[Eligibility gates]
F --> G[Delayed Skill Workshop review]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +60, Tests +46, Docs +9. Total +115 across 9 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the existing scheduler and narrow Codex adapter boundary, then add redacted live proof from an eligible Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is included in the review evidence. The source path and targeted tests make the missing eligibility facts reproducible at the harness boundary, but a real eligible Codex session has not been shown scheduling review after this change. Is this the best way to solve the issue? Yes, provisionally. Reusing the shared scheduler and adding only the Codex facts it already requires is narrower than introducing a Codex-specific review path; a live after-fix run should confirm the event-to-scheduler integration before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b8e7f27ff254. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
b8f82b5 to
c258579
Compare
|
Maintainer landing disposition for exact head
The branch rebased without conflicts. A first exact-head CI run, 30384920868, found |
|
Merged via squash.
|
…w#114501) * feat(skills): enable Codex experience review * style(codex): keep event projector within ratchet
What Problem This Solves
Fixes an issue where self-learning was enabled but successful, substantial
openai/*sessions running through the Codex app-server harness never scheduled delayed experience review. Deterministic correction capture still worked, but this mainstream OpenAI-key route could not autonomously propose reusable procedures.Why This Change Was Made
The Codex harness now reports the runtime facts the shared scheduler already requires: its resolved thread provider/model and auth profile, actual
skill_workshopexposure, compaction state, and an exact model-iteration count derived from unique upstreamrawResponse/completedevents. It continues to use the harness's frozen current-turn transcript projection, which is mirrored to SQLite before agent-end scheduling; no new transcript reader, config surface, gateway protocol, or schema change is introduced.Unknown or incomplete runtimes still fail closed. In particular, an explicitly missing Codex response count is reported as zero, and delayed review remains ineligible when model identity or Workshop availability is absent.
User Impact
Operators who enable self-learning can now receive delayed Skill Workshop proposals after eligible Codex app-server sessions serving
openai/*models. The existing success, ten-iteration, idle-window, sandbox, tool-policy, and compaction gates remain unchanged.Evidence
node scripts/run-vitest.mjs src/skills/workshop/experience-review.test.ts extensions/codex/src/app-server/event-projector.usage.test.ts: 29 tests passed on the rebased head.node scripts/check-changed.mjs -- <9 changed files>: passed all selected typecheck, core/extension lint, SDK surface, max-lines, import-cycle, schema, and database-first guards on Blacksmith Testbox (run 30254863840).node scripts/run-vitest.mjs src/skills/workshop extensions/codexexposed the existing order-dependent Codex testuses human approval instead of Guardian for auto exec on custom model providers; that exact test passed when isolated. Runtime-artifact tests also required unsetting an ambientNODE_PATHand then passed 4/4 in isolation.AI-assisted with Codex. I reviewed the implementation and understand the runtime/result, tool-availability, transcript, and fail-closed boundaries changed here.