Skip to content

Inspect automation candidates through trusted Git metadata - #997

Draft
zaniebot wants to merge 6 commits into
zb/python-commit-artifactsfrom
zb/python-trusted-checkouts
Draft

zaniebot wants to merge 6 commits into
zb/python-commit-artifactsfrom
zb/python-trusted-checkouts

Conversation

@zaniebot

@zaniebot zaniebot commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Some automation agents need to write .git, so disabling core.hooksPath is not enough to make later Git operations safe. Repository-local configuration can define other executable helpers, and repository metadata can redirect object reads. Add inspect_candidate to copy an ordinary checkout's required Git data through no-follow directory descriptors into protected scratch, then inspect the result through fresh trusted metadata. The candidate's staged state and working tree are checked separately, attributes come from the trusted base, and unsupported repository layouts fail closed.

This extends #994 with the shared boundary needed by the Python rebase and pull request feedback alternatives. Workflow-specific authorship, allowed-path, ancestry, and publication policy remain with those consumers.

@astral-automations-bot astral-automations-bot Bot added internal:automations Related to internal automations security labels Sep 9, 2026
@zaniebot zaniebot added priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. labels Sep 9, 2026
@zaniebot
zaniebot force-pushed the zb/python-trusted-checkouts branch from 5addef7 to a3dbd0a Compare September 23, 2026 14:42
@zaniebot
zaniebot force-pushed the zb/python-commit-artifacts branch from 63c41bb to 1fa9dc5 Compare September 23, 2026 14:42
@zaniebot
zaniebot force-pushed the zb/python-commit-artifacts branch from 1fa9dc5 to bb05f84 Compare September 23, 2026 15:15
@zaniebot
zaniebot force-pushed the zb/python-trusted-checkouts branch from a3dbd0a to 65f73f4 Compare September 23, 2026 15:15
@zaniebot zaniebot added risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. and removed risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. labels Sep 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:automations Related to internal automations priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. risk:3 Credible risk of meaningful incorrect behavior or regression; bounded or recoverable. security size:4 Complex: architectural or security-sensitive work requiring broad or cross-repository context.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants