Repository navigation
Revert "chore(agents): enforce OSS isolation with a mechanical pre-push guard (#369)" #372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -190,4 +190,3 @@ gascity/AGENTS.md | |
| .beads-credential-key | ||
| .beads/proxieddb/ | ||
| *.gate.lock* | ||
| scripts/.oss-guard-local.patterns | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,19 +114,3 @@ bd prime # Refresh Beads context | |
|
|
||
| **Architecture in one line:** issues live in a local Dolt DB; sync uses `refs/dolt/data` on your git remote; `.beads/issues.jsonl` is a passive export. See https://github.com/gastownhall/beads/blob/main/docs/core-concepts/sync-concepts.md for details and anti-patterns. | ||
| <!-- END BEADS CODEX SETUP --> | ||
|
|
||
| ## OSS isolation (mandatory) | ||
|
|
||
| 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`). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 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 Keep the required rule available at the canonical path or update the applicable repository guidance to point to an available source. Prompt for AI agentsIn `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 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`). |
||
|
|
||
| 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 High · Internal context reaches public remotes When a public contribution contains internal context, including text matching a locally configured forbidden pattern, Restore the guard script and ensure it runs before public pushes and GitHub contribution actions. Prompt for AI agentsIn `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 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. |
||
| non-zero exit is a hard stop). Full rule: | ||
| `.agents/rules/git/oss-isolation.md`. | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛑 Security Vulnerability: Removing
scripts/.oss-guard-local.patternsfrom.gitignoremeans 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 insidescripts/and being staged. Add a broader ignore rule (e.g.,scripts/*.patternsor*.oss-guard*) to ensure the sensitive patterns file can never be committed even if accidentally placed back underscripts/.1Footnotes
CWE-312: Cleartext Storage of Sensitive Information - https://cwe.mitre.org/data/definitions/312.html ↩