Skip to content

Rectify: Codex Shell-Capture Cleanup Lifecycle - #4405

Merged
Trecek merged 51 commits into
developfrom
impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540
Jul 29, 2026
Merged

Rectify: Codex Shell-Capture Cleanup Lifecycle#4405
Trecek merged 51 commits into
developfrom
impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540

Conversation

@Trecek

@Trecek Trecek commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a durable lifecycle owner for Codex shell-capture artifacts, including writer liveness, crash recovery, bounded reclamation, quarantine deletion, runner-tail cleanup, and a cleanup-only SessionStart hook.

Verification

  • pre-commit run --all-files
  • task test-all: 33,368 passed, 628 skipped, 26 xfailed
  • task test-check: 31,896 passed, 559 skipped, 26 xfailed (PASS)
  • task coverage-audit

Closes #4320
Closes #4321

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit PR Review — Verdict: changes_requested

Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread src/autoskillit/hook_registry.py
Comment thread src/autoskillit/hook_registry.py
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread src/autoskillit/hooks/capture_lifecycle_hook.py Outdated
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle.py Outdated

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit review: blocking issues detected. See inline comments; changes are required. GitHub does not allow the PR author to submit a REQUEST_CHANGES review, so this verdict is recorded as a comment.

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit PR Review — Verdict: approved_with_comments

Comment thread src/autoskillit/hook_registry.py
Comment thread src/autoskillit/hook_registry.py
Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/capture_lifecycle_hook.py Outdated
Comment thread tests/docs/test_output_containment_decision.py Outdated
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle.py

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit PR Review — Verdict: changes_requested

Comment thread src/autoskillit/hooks/_capture/_authority.py Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread src/autoskillit/hooks/capture_lifecycle_hook.py Outdated
Comment thread src/autoskillit/hooks/capture_lifecycle_hook.py Outdated
Comment thread tests/hooks/test_capture_artifacts.py
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle_hook.py

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit review: blocking findings detected. See inline comments — verdict: changes_requested. GitHub does not allow the PR author to submit a REQUEST_CHANGES event on their own pull request.

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit PR Review — Verdict: approved_with_comments

Comment thread src/autoskillit/hook_registry.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread src/autoskillit/hooks/_capture_lifecycle.py Outdated
Comment thread src/autoskillit/hooks/_capture_lifecycle.py
Comment thread tests/docs/test_output_containment_decision.py Outdated
Comment thread tests/hooks/test_capture_lifecycle.py
Comment thread tests/hooks/test_capture_lifecycle_hook.py Outdated

@Trecek Trecek left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.

@Trecek
Trecek added this pull request to the merge queue Jul 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 28, 2026
@Trecek
Trecek added this pull request to the merge queue Jul 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 28, 2026
Trecek added a commit that referenced this pull request Jul 29, 2026
## Summary

- Restore branch-targeted CI runner and test-filter policy through one
fail-closed event resolver.
- Give develop-targeted pull requests and merge groups the immutable
event base SHA for conservative filtering.
- Remove PR #4405's redundant lifecycle-exception import suppression and
add behavioral, manifest, and documentation ratchets.

## Target policy

| Target | Runners | Filter |
|---|---|---|
| `develop` | `ubuntu-latest` | `conservative` |
| `main` | `ubuntu-latest` | `none` |
| `stable` | `ubuntu-latest`, `macos-15` | `none` |

## Stacked PR

This correction is based on and targets PR #4405's head branch:
`impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540`.

## Verification

- Focused CI, manifest, hook, and Pyright suppression gate passed.
- `task test-check`: 33,799 passed.
- `pre-commit run --all-files` passed.
- Hook registry hash and `.autoskillit/test-source-map.json` remained
unchanged.
Trecek and others added 25 commits July 28, 2026 20:36
- Restore branch-targeted CI runner and test-filter policy through one
fail-closed event resolver.
- Give develop-targeted pull requests and merge groups the immutable
event base SHA for conservative filtering.
- Remove PR #4405's redundant lifecycle-exception import suppression and
add behavioral, manifest, and documentation ratchets.

| Target | Runners | Filter |
|---|---|---|
| `develop` | `ubuntu-latest` | `conservative` |
| `main` | `ubuntu-latest` | `none` |
| `stable` | `ubuntu-latest`, `macos-15` | `none` |

This correction is based on and targets PR #4405's head branch:
`impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540`.

- Focused CI, manifest, hook, and Pyright suppression gate passed.
- `task test-check`: 33,799 passed.
- `pre-commit run --all-files` passed.
- Hook registry hash and `.autoskillit/test-source-map.json` remained
unchanged.
@Trecek
Trecek force-pushed the impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540 branch from 6c83344 to 533e1a0 Compare July 29, 2026 03:43
@Trecek
Trecek added this pull request to the merge queue Jul 29, 2026
Merged via the queue into develop with commit 053871f Jul 29, 2026
3 checks passed
@Trecek
Trecek deleted the impl-rectify_codex_shell_capture_cleanup_lifecycle_2026-07-27_233858-20260728-080540 branch July 29, 2026 04:09
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