Skip to content

Rectify: Shell Capture Filesystem Trust Anchor#4342

Merged
Trecek merged 32 commits into
developfrom
impl-rectify_shell_capture_trust_anchor_2026-07-22_185019-20260722-200252
Jul 24, 2026
Merged

Rectify: Shell Capture Filesystem Trust Anchor#4342
Trecek merged 32 commits into
developfrom
impl-rectify_shell_capture_trust_anchor_2026-07-22_185019-20260722-200252

Conversation

@Trecek

@Trecek Trecek commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Issue #4319 is not only a missing symlink check. The shell-capture lifecycle lacks a stable filesystem authority. shell_capture_hook.py accepts an absolute cwd, builds <cwd>/.autoskillit/temp/shell_capture by pathname, and the generated Bash harness creates, redirects to, measures, hashes, replays, and reports the artifact by reopening that path. session_start_hook.py then performs cleanup through a separate pathname-only implementation. _capture_cleanup.py is tested, but it is not used by the registered SessionStart hook and it trusts a resolved symlinked root.

Closes #4319

Implementation Plan

Plan file: /home/talon/projects/generic_automation_mcp/.autoskillit/temp/rectify/rectify_shell_capture_trust_anchor_2026-07-22_185019.md

🤖 Generated with Claude Code via AutoSkillit

@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 docs/safety/hooks.md Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread tests/execution/backends/test_hook_strength_matrix.py Outdated
Comment thread tests/hooks/test_shell_capture_conformance.py
Comment thread tests/hooks/test_shell_capture_conformance.py Outdated
Comment thread tests/hooks/test_shell_capture_conformance.py Outdated
Comment thread tests/hooks/test_shell_capture_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. GitHub does not permit the PR author to submit a request-changes review on their own PR, so this was submitted as a comment review; verdict remains changes_requested.

@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_artifacts.py Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/_capture_artifacts.py Outdated
Comment thread tests/arch/test_shell_capture_trust_anchor.py Outdated
Comment thread tests/hooks/test_capture_artifacts.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 findings detected. Changes are requested; see the inline comments.

@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 docs/decisions/0006-output-containment.md Outdated
Comment thread tests/hooks/test_shell_capture_conformance.py Outdated
Comment thread tests/hooks/test_shell_capture_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: 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: approved_with_comments

Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/_capture_artifacts.py
Comment thread src/autoskillit/hooks/shell_capture_hook.py
Comment thread tests/arch/test_shell_capture_trust_anchor.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 added this pull request to the merge queue Jul 24, 2026
Merged via the queue into develop with commit 5c3f8e6 Jul 24, 2026
3 checks passed
@Trecek
Trecek deleted the impl-rectify_shell_capture_trust_anchor_2026-07-22_185019-20260722-200252 branch July 24, 2026 00:41
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