Skip to content

test(repo-mode): add regression coverage for issue #85 - #113

Open
jhapriyavart10 wants to merge 1 commit into
open-gitagent:mainfrom
jhapriyavart10:test/issue-85-regression-suite
Open

jhapriyavart10 wants to merge 1 commit into
open-gitagent:mainfrom
jhapriyavart10:test/issue-85-regression-suite

Conversation

@jhapriyavart10

Copy link
Copy Markdown

Summary

Adds hermetic regression coverage for the four repo-mode safety properties requested in Issue #85:

  • explicit repo directory required (initLocalSession validation and query() system error event)
  • ancestor repository escape prevention (refuses execution in child directories without local .git)
  • mismatched origin protection (refuses to overwrite existing repositories tracking a different remote)
  • readOnly mutation prevention with credential scrubbing (skips auto-commits and branch push on finalize, while stripping authentication tokens from origin)

Validation

Context

This is intentionally a companion test PR for the existing maintainer implementation in #88. No production code is changed.

Testing

All repository operations in the new tests use isolated temporary local Git repositories/bare remotes; no external network or real credentials are required.

Related to #85
Companion to #88

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant