Repository navigation
Revert "chore(agents): enforce OSS isolation with a mechanical pre-push guard (#369)" - #372
Conversation
✅ Deploy Preview for adt-cli canceled.
|
|
Warning Amazon Q Developer for GitHub: end of support On January 30, 2027, AWS will discontinue support for the Amazon Q Developer for GitHub App. New app installations will no longer be available starting November 18, 2026. For capabilities similar to the Amazon Q Developer for GitHub App, explore Kiro and the Kiro GitHub App. For more information about the end of support, see Amazon Q Developer end-of-support announcement on the AWS DevOps Blog. |
|
Skipping CodeAnt AI review — this PR is a revert. The diff is the inverse of code that was previously reviewed and merged, so a fresh review typically adds no signal. If you want CodeAnt to double-check the revert, comment |
Reviewer's GuideImplementationRemove the OSS GitHub guard script as part of reverting the public-repository enforcement mechanism.
ConfigurationRemove the ignore configuration associated with the reverted OSS isolation workflow.
DocumentationRemove the OSS isolation rule and its mandatory guidance from the repository because this workflow is retained outside the public repo.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Kody Review CompleteGreat news! 🎉 Keep up the excellent work! 🚀 Kody Guide: Usage and ConfigurationInteracting with Kody
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Review Summary
This PR reverts PR #369, removing the OSS isolation pre-push guard and its associated .gitignore rule. The changes are deletion-only across two files.
Critical finding:
The removal of scripts/.oss-guard-local.patterns from .gitignore creates a latent security risk: if the sensitive patterns file (containing organization-specific forbidden strings) is ever placed back under scripts/ locally, nothing now prevents it from being accidentally committed and pushed to this public repository. A broader ignore pattern should be added to close this gap before merging.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
| .beads-credential-key | ||
| .beads/proxieddb/ | ||
| *.gate.lock* | ||
| scripts/.oss-guard-local.patterns |
There was a problem hiding this comment.
🛑 Security Vulnerability: Removing scripts/.oss-guard-local.patterns from .gitignore means the local patterns file (which contains organization-specific forbidden strings) can now be accidentally committed to this public repository. The PR description says local copies are retained outside the repo, but nothing prevents the file from living inside scripts/ and being staged. Add a broader ignore rule (e.g., scripts/*.patterns or *.oss-guard*) to ensure the sensitive patterns file can never be committed even if accidentally placed back under scripts/.1
Footnotes
-
CWE-312: Cleartext Storage of Sensitive Information - https://cwe.mitre.org/data/definitions/312.html ↩
|
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Hey - I've found 2 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="AGENTS.md" line_range="130" />
<code_context>
-`.agents/rules/git/oss-isolation.md`).
-
-Before any `git push` to a public remote or `gh pr create/edit/comment`:
-run `scripts/oss-github-guard.sh` (the pre-push hook enforces this; a
-non-zero exit is a hard stop). Full rule:
-`.agents/rules/git/oss-isolation.md`.
</code_context>
<issue_to_address>
**Internal context reaches public remotes**
When a public contribution contains internal context, including text matching a locally configured forbidden pattern, `scripts/oss-github-guard.sh` is missing, so the public-contribution checks do not run and the content reaches the public remote.
Restore the guard script and ensure it runs before public pushes and GitHub contribution actions.
</issue_to_address>
### Comment 2
<location path="AGENTS.md" line_range="127" />
<code_context>
-
-The concrete forbidden patterns are organization-specific and live in
-`scripts/.oss-guard-local.patterns` (local, untracked; see
-`.agents/rules/git/oss-isolation.md`).
-
-Before any `git push` to a public remote or `gh pr create/edit/comment`:
</code_context>
<issue_to_address>
**OSS rule source disappears**
When contributors rely on the repository’s guidance for public contributions, aGENTS.md no longer points to the full rule, and `.agents/rules/git/oss-isolation.md` is deleted, so contributors lack the repository’s specified source for the zero-internal-context requirement.
Keep the required rule available at the canonical path or update the applicable repository guidance to point to an available source.
</issue_to_address>Sourcery assessment
Needs a human reviewer. 2 findings to address first, and without the pre-push guard and mandatory instructions, internal context can be included in public GitHub pushes or PR activity and remain publicly exposed even if this revert is reversed. The removed boundary applies broadly to future contributions, with no automatic signal that a disclosure occurred.
Blocking findings: AGENTS.md:130, AGENTS.md:127
| `.agents/rules/git/oss-isolation.md`). | ||
|
|
||
| Before any `git push` to a public remote or `gh pr create/edit/comment`: | ||
| run `scripts/oss-github-guard.sh` (the pre-push hook enforces this; a |
There was a problem hiding this comment.
🟠 High · Internal context reaches public remotes
When a public contribution contains internal context, including text matching a locally configured forbidden pattern, scripts/oss-github-guard.sh is missing, so the public-contribution checks do not run and the content reaches the public remote.
Restore the guard script and ensure it runs before public pushes and GitHub contribution actions.
Prompt for AI agents
In `AGENTS.md` at line 130:
**Internal context reaches public remotes**
When a public contribution contains internal context, including text matching a locally configured forbidden pattern, `scripts/oss-github-guard.sh` is missing, so the public-contribution checks do not run and the content reaches the public remote.
Restore the guard script and ensure it runs before public pushes and GitHub contribution actions.From .agents/rules/git/oss-isolation.md L35-37:
The concrete patterns for this organization live in
`scripts/.oss-guard-local.patterns` (local, untracked — never commit it). The
mechanical guard reads that file and adds its patterns to the generic scan.|
|
||
| The concrete forbidden patterns are organization-specific and live in | ||
| `scripts/.oss-guard-local.patterns` (local, untracked; see | ||
| `.agents/rules/git/oss-isolation.md`). |
There was a problem hiding this comment.
🟡 Medium · OSS rule source disappears
When contributors rely on the repository’s guidance for public contributions, aGENTS.md no longer points to the full rule, and .agents/rules/git/oss-isolation.md is deleted, so contributors lack the repository’s specified source for the zero-internal-context requirement.
Keep the required rule available at the canonical path or update the applicable repository guidance to point to an available source.
Prompt for AI agents
In `AGENTS.md` at line 127:
**OSS rule source disappears**
When contributors rely on the repository’s guidance for public contributions, aGENTS.md no longer points to the full rule, and `.agents/rules/git/oss-isolation.md` is deleted, so contributors lack the repository’s specified source for the zero-internal-context requirement.
Keep the required rule available at the canonical path or update the applicable repository guidance to point to an available source.From AGENTS.md L120-127, AGENTS.md L131-132:
Public GitHub remotes and internal development remotes are separate worlds.
**Zero internal context in any public contribution** — titles, bodies,
comments, reviews, issues, branch names, commit messages, author/committer
emails, code comments and docs.
The concrete forbidden patterns are organization-specific and live in
`scripts/.oss-guard-local.patterns` (local, untracked; see
`.agents/rules/git/oss-isolation.md`).


Reverts commit cb6705f / PR #369. The OSS isolation guard and rule are private workflow logic and must not live in the public repository. Local copies are retained outside the repo.
Reverts the previous changes that enforced OSS isolation via a mechanical pre-push guard, removing the corresponding documentation from
AGENTS.mdand the pattern exclusion entry from.gitignore.