Skip to content

Make Git composition CI-reproducible - #75

Merged
adampoit merged 2 commits into
mainfrom
git-isolation
Aug 16, 2026
Merged

Make Git composition CI-reproducible#75
adampoit merged 2 commits into
mainfrom
git-isolation

Conversation

@adampoit

Copy link
Copy Markdown
Owner

No description provided.

@not-adam

not-adam Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Mira PR Walkthrough

This PR makes Git-based composition and promotion reproducible in CI by routing Git execution through isolated configuration/environment handling, including for nested and direct low-level calls. It strengthens workflow-policy validation across composed refs, adds policy checks to promotion/diagnostics, and updates initialization and workspace operations to use the same isolation model. A focused regression test verifies that ambient global Git configuration cannot leak into direct Git calls.

graph LR
runner["src/git.ts"] --> isolation["Git isolation"]
integration["src/integration-sync.ts"] --> runner
workspace["src/workspace-list.ts"] --> runner
policy["src/workflow-policy.ts"] --> runner
promote["src/promote-sync.ts"] --> policy
init["src/init.ts"] --> runner
Loading
Confidence: 4/5   ◉◉◉◉○   Safe with minor fixes
  • The changes are cohesive and include a targeted regression test for the central CI-reproducibility guarantee, though the broad integration and workflow-policy paths merit full CI validation.

Blast Radius — 2 dependent repositories, 3 total references

adampoit/mira — 1 reference
adampoit/wezterm — 2 references

9 files reviewed


Comment @not-adam help to get the list of available commands and usage tips.

@not-adam not-adam Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mira Review Summary

This PR aims to make Git composition CI-reproducible, but a concern remains in src/workflow-policy.ts at line 96, where direct workflow inspection could bypass the new Git isolation contract. That pathway should be kept isolated to ensure the isolation guarantees hold under all code paths.

Key Issues

Issue Location
🔴 Direct workflow inspection can bypass the new Git isolation contract. src/workflow-policy.ts:96

Comment thread src/workflow-policy.ts Outdated
@adampoit
adampoit merged commit 5e2b4f8 into main Aug 16, 2026
2 checks passed
@adampoit
adampoit deleted the git-isolation branch August 16, 2026 23:34
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