Rectify: Codex Cook Startup History Isolation and Lifecycle Immunity#4347
Conversation
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit PR Review — Verdict: changes_requested
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit review: blocking findings detected. See inline comments for the required fixes.
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit PR Review — Verdict: approved_with_comments
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.
d5df77e to
e7d8b15
Compare
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit PR Review — Verdict: approved_with_comments
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit PR Review — Verdict: approved_with_comments
| _fsync_directory(path.parent) | ||
|
|
||
|
|
||
| @dataclass(slots=True) |
There was a problem hiding this comment.
[warning] cohesion: _FileLease independently reimplements the same lock-path validation, flock acquisition, descriptor ownership, and release lifecycle as workspace.session_skills._SessionLease and CodexConfigLock. The implementations already differ in directory-fd/inode validation and failure aggregation, so related session leases receive inconsistent safety behavior. Extract one hardened lease primitive with optional owner-diagnostic behavior and reuse it across these call sites.
There was a problem hiding this comment.
Valid observation — flagged for an architecture decision. _FileLease, workspace _SessionLease, and CodexConfigLock share OS-locking mechanics but intentionally differ in contention, timeout, reentrancy, directory hardening, diagnostics, and failure aggregation. Enforced import boundaries prohibit execution/workspace coupling, so consolidation requires a designed IL-0 primitive and cross-domain migration rather than a local extraction.
Trecek
left a comment
There was a problem hiding this comment.
AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.
8407d94 to
e5cfea4
Compare
e5cfea4 to
f5ea3cc
Compare
Summary
Verification
AUTOSKILLIT_TEST_FILTER=conservative AUTOSKILLIT_TEST_BASE_REF=develop task test-check— 28,622 passedAUTOSKILLIT_CODEX_STARTUP_CANARY=1 PYTEST_TEST_PATHS="tests/integration/test_codex_startup_canary.py" task test-all— 2 passedpre-commit run --all-files— passedCloses #4267