Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 0 additions & 71 deletions .agents/rules/git/oss-isolation.md

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,3 @@ gascity/AGENTS.md
.beads-credential-key
.beads/proxieddb/
*.gate.lock*
scripts/.oss-guard-local.patterns

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.

🛑 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

  1. CWE-312: Cleartext Storage of Sensitive Information - https://cwe.mitre.org/data/definitions/312.html ↩

16 changes: 0 additions & 16 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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 .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`).


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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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, 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.

non-zero exit is a hard stop). Full rule:
`.agents/rules/git/oss-isolation.md`.
84 changes: 0 additions & 84 deletions scripts/oss-github-guard.sh

This file was deleted.

Loading