Skip to content

chore: add information-exposure policy for public repo - #22

Merged
Warkanlock merged 1 commit into
mainfrom
chore-agent-info-exposure
Sep 1, 2026
Merged

chore: add information-exposure policy for public repo#22
Warkanlock merged 1 commit into
mainfrom
chore-agent-info-exposure

Conversation

@mykhaylob-de

Copy link
Copy Markdown
Collaborator

Summary

Adds an information-exposure policy for agents working in this public repository: a canonical AGENTS.md (read natively by Cursor, Claude Code, Codex, and other agent CLIs) plus a thin always-applied Cursor rule that enforces the hard bans inline and points to AGENTS.md for the full policy.

Changes

  • AGENTS.md — canonical policy: no internal content (tickets, Slack, customer/org names, employee emails, internal URLs/hostnames/infra) in commits or PRs; neutral security wording; absolute ban on secrets in messages, code, examples, and HTTP fixtures; no AI/agent attribution; same rules for comments, docstrings, error strings, CHANGELOG, and example data.
  • .cursor/rules/info-exposure.mdcalwaysApply: true summary of the four hard rules, referencing AGENTS.md.

Test plan

  • Prose/config only — no runtime code changed
  • .mdc frontmatter matches the format used by existing Cursor rules

@@ -0,0 +1,16 @@
---

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.

Verdict: Reviewed information-exposure policy and agent guidelines for public repository. Both files establish clear rules for commits, PRs, code, and fixtures: no internal content (tickets, customer names, employee emails, internal URLs), no security details in commit text, no secrets anywhere, and no AI attribution trailers.

These are advisory rules documented in .cursor/rules (scanned by Cursor IDE) and AGENTS.md (human-readable). The policy is well-scoped and unambiguous. Residual risk: enforcement depends on code-review discipline and maintainer adoption — no automated CI hook or git hook blocks a violation at commit time. Recommend adding a pre-commit hook or CI check to scan for common patterns (hardcoded tokens, internal domain names, ticket IDs) if this becomes a recurring issue.

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.

Not actioned — residual pre-commit/CI scanner is out of scope for this docs-only PR. Policy is advisory by design; a hook can land later if violations recur.

@Warkanlock
Warkanlock marked this pull request as ready for review September 1, 2026 20:00
@Warkanlock
Warkanlock merged commit c053d0e into main Sep 1, 2026
4 checks passed
@mykhaylob-de
mykhaylob-de deleted the chore-agent-info-exposure branch September 2, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants