Skip to content

Enforce level-aware skill capability contracts and agent-safe projections#4345

Merged
Trecek merged 62 commits into
developfrom
impl-rectify_run_skill_capability_contract_immunity_2026-07-22_201946-20260722-223229
Jul 25, 2026
Merged

Enforce level-aware skill capability contracts and agent-safe projections#4345
Trecek merged 62 commits into
developfrom
impl-rectify_run_skill_capability_contract_immunity_2026-07-22_201946-20260722-223229

Conversation

@Trecek

@Trecek Trecek commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

This change separates machine-authoritative skill capability contracts from model-facing skill documents, validates exact execution-role ownership, resolves project-local overrides consistently, and persists the effective contract and projected document across resumed sessions. It also closes the follow-up audit findings by using effective project-root resolution during LLM triage and doctor checks, aligning projection and subprocess cwd, and adding regression coverage for override identity, role validation, fresh-versus-resume guards, and contract persistence.

Requirements

  • Parse and validate capabilities as typed, exact-role contracts.
  • Keep machine authority metadata out of model-facing projections.
  • Preserve effective source identity across routing, projection, execution, and resume.
  • Resolve project-local overrides consistently in triage and diagnostics.
  • Keep fresh-only validation out of resumed execution paths.

Closes #4332

Implementation Plan

Plan file: /home/talon/projects/generic_automation_mcp/.autoskillit/temp/rectify/rectify_run_skill_capability_contract_immunity_2026-07-22_201946.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: approved

@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 passed. No blocking issues found.

@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/execution/session/_skill_session_contract_store.py Outdated
Comment thread src/autoskillit/execution/session/_skill_session_contract_store.py Outdated
Comment thread src/autoskillit/server/tools/tools_execution.py
Comment thread src/autoskillit/server/tools/tools_execution.py Outdated
Comment thread src/autoskillit/server/tools/tools_execution.py Outdated
Comment thread src/autoskillit/workspace/skill_capabilities.py Outdated
Comment thread src/autoskillit/workspace/skills.py
Comment thread src/autoskillit/workspace/skills.py Outdated
Comment thread src/autoskillit/workspace/skills.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. See 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: changes_requested

Comment thread docs/verification/review-pr-immunity.md Outdated
Comment thread src/autoskillit/core/types/_type_protocols_execution.py Outdated
Comment thread src/autoskillit/workspace/skill_projection.py Outdated
Comment thread src/autoskillit/workspace/skill_projection.py
Comment thread src/autoskillit/workspace/skill_projection.py Outdated
Comment thread tests/cli/test_doctor_standing_pins.py Outdated
Comment thread tests/server/test_tools_execution_routing.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. See inline comments — 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/core/types/_type_protocols_workspace.py Outdated
Comment thread src/autoskillit/execution/session/_skill_session_contract_store.py
Comment thread src/autoskillit/execution/session/_skill_session_contract_store.py Outdated
Comment thread src/autoskillit/server/tools/_backend_compat.py Outdated
Comment thread src/autoskillit/server/tools/_execution_helpers.py Outdated
Comment thread src/autoskillit/workspace/skill_projection.py
Comment thread src/autoskillit/workspace/skill_projection.py
Comment thread src/autoskillit/workspace/skills.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 — Verdict: changes_requested. Blocking and warning findings were detected; see the inline comments for required changes.

@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/workspace/skills.py
Comment thread src/autoskillit/workspace/skill_projection.py Outdated
Comment thread src/autoskillit/workspace/skill_projection.py Outdated
Comment thread src/autoskillit/workspace/skills.py Outdated
Comment thread src/autoskillit/workspace/skills.py Outdated
Comment thread src/autoskillit/workspace/skill_capabilities.py Outdated
Comment thread src/autoskillit/workspace/skill_capabilities.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. See inline comments — automated verdict: changes_requested. GitHub does not allow an author to request changes on their own PR.

@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/server/tools/_execution_helpers.py
Comment thread src/autoskillit/workspace/skills.py Outdated
Comment thread src/autoskillit/server/tools/_execution_helpers.py
Comment thread src/autoskillit/workspace/skills.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 force-pushed the impl-rectify_run_skill_capability_contract_immunity_2026-07-22_201946-20260722-223229 branch from 0799ffc to b2a106f Compare July 25, 2026 00:51
@Trecek
Trecek enabled auto-merge July 25, 2026 01:04
@Trecek
Trecek added this pull request to the merge queue Jul 25, 2026
Merged via the queue into develop with commit c4317b4 Jul 25, 2026
3 checks passed
@Trecek
Trecek deleted the impl-rectify_run_skill_capability_contract_immunity_2026-07-22_201946-20260722-223229 branch July 25, 2026 01:19
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