Skip to content

fix: add SECURITY.md and CODEOWNERS (#309) - #313

Merged
abogartz merged 3 commits into
mainfrom
fix-issue-309-docs-ownership
Nov 5, 2026
Merged

abogartz merged 3 commits into
mainfrom
fix-issue-309-docs-ownership

Conversation

@ocsi-fixer

@ocsi-fixer ocsi-fixer Bot commented Nov 5, 2026

Copy link
Copy Markdown

Closes #309

Acceptance criteria — evidence

  • RED: neither file exists at the repository root on main. Verified at main 06e4e28dd30bff61d593883aede03c1033a10b80: git ls-tree FETCH_HEAD --name-only | grep -E '^(SECURITY\.md|CODEOWNERS)$' returned nothing (exit 1).
  • GREEN: both exist. git ls-tree HEAD --name-only lists SECURITY.md and CODEOWNERS.
  • SECURITY.md names the private channel and the scope. Private channel: GitHub security advisories URL https://github.com/abogartz/opencode-self-improvement/security/advisories/new. Scope: plugin, store, viewer, each named, with out-of-scope items and an explicit no-SLA statement. Wording follows the README's store privacy and secret-redaction language (OPENCODE_MEMORY_DIR, owner-only 0700/0600, redaction of credential-shaped values).
  • CODEOWNERS contains the single owner line. File content is exactly * @abogartz.
  • No other file touched. git diff --stat FETCH_HEAD..HEAD: CODEOWNERS | 1 +, SECURITY.md | 27 +, 2 files changed, 28 insertions(+).

Commands run (measured)

  • bun run typecheck — clean (tsc --noEmit, 136 infos, 0 errors).
  • bun run lint — biome format: checked 229 files, no fixes applied.
  • bun run test — 1009 pass, 19 skip, 0 fail, 12535 expect() calls, 1028 tests across 96 files, 16.56s.
  • bun run test:e2e not run: no src/ file changed.

Deliberately not changed

  • No workflow, README, or any other file touched — the ticket limits scope to the two new root files.
  • No GitHub repository settings changed (advisories are enabled by default for public repos; enabling private-vulnerability-reporting in repo settings is a maintainer action if not already on).

@ocsi-triager ocsi-triager Bot added the review:requested Human-admitted for autonomous review by ocsi-reviewer label Nov 5, 2026

@ocsi-reviewer ocsi-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Head reviewed: 6543f3fa334eccbeee025c3b56431529b758d4ce

Contract: #309 (authored and adopted by abogartz, trusted). Spec hash d3e9c7d633f7962c == anchor comment 6649328880 — frozen.

Acceptance criteria, verbatim, with evidence:

  1. "RED: neither file exists at the repository root on main."
    — Verified: git show origin/main:SECURITY.md and git show origin/main:CODEOWNERS both fail (absent) at merge-base 06e4e28.

  2. "GREEN: both exist; SECURITY.md names the private channel and the scope; CODEOWNERS contains the single owner line; no other file touched."
    — Both exist at head. Private channel: SECURITY.md names GitHub security advisories with the direct URL (.../security/advisories/new) and explicitly says not to open a public issue/PR/discussion. Scope: plugin, store, viewer sections present, plus out-of-scope list. CODEOWNERS is the single line * @abogartz. git diff --numstat 06e4e28 HEAD: exactly CODEOWNERS +1, SECURITY.md +27, nothing else.

  3. "bun run lint green … just confirm nothing else changed via git diff --stat."
    — bun run lint: exit 0, 493 warnings = merge-base baseline, 229 files checked, no fixes applied. git diff --numstat above confirms no other file touched.

Commands run at head (measured): bun run typecheck exit 0; bun run lint exit 0 (493 warnings = baseline); bun run test 1009 pass / 19 skip / 0 fail (12535 expects, 96 files). No test files touched, no e2e needed (src/ unchanged).

Wording consistency (fix direction): SECURITY.md "redaction covers credential-shaped values" matches README:224 "credential-shaped values"; the miss-cases in README:228 are not contradicted.

Findings: none. P0/P1/nit: no findings.

Final gate re-check at filing: headRefOid = 6543f3fa334eccbeee025c3b56431529b758d4ce (unchanged); gh pr checks: lint pass, test pass, test-windows pass, smoke pass.

@WhollyMindless WhollyMindless left a comment

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.

Reviewed the two-file diff at 6543f3fa334eccbeee025c3b56431529b758d4ce against #309. The files match the requested content and owner line; no runtime/test/workflow file changes. One maintainer configuration prerequisite is currently unmet:

gh api repos/abogartz/opencode-self-improvement/private-vulnerability-reporting
{"enabled":false}

I checked this twice during this review. SECURITY.md directs outside reporters exclusively to GitHub's private reporting route and asks them not to use public issues/PRs/discussions. Private vulnerability reporting needs to be enabled for that route to serve its intended audience. The PR body already flags enabling it as a possible maintainer action; this confirms it is needed now.

Please enable private vulnerability reporting in repository settings before relying on this policy, or provide another working private contact. This is an operational follow-up for the maintainer, not a request for the fixer to change settings or workflows. I made no settings changes and submitted no vulnerability report. No code blocker found in the requested two-file implementation; no tests rerun for these content-only files.

@ocsi-reviewer

ocsi-reviewer Bot commented Nov 5, 2026

Copy link
Copy Markdown

@WhollyMindless claim verified against the live API at 2026-11-05T05:55Z:

$ gh api repos/abogartz/opencode-self-improvement/private-vulnerability-reporting
{"enabled":false}

The finding holds: private vulnerability reporting is disabled while SECURITY.md directs reporters to that route. It is an operational prerequisite outside the diff — #309's acceptance is content-scoped ("SECURITY.md names the private channel and the scope; CODEOWNERS contains the single owner line; no other file touched"), all three criteria are evidenced at 6543f3fa, and enabling the setting is a repository-settings action only @abogartz can take. My APPROVED 5780326520 stands as conformance to that contract; this reply records the follow-up so the maintainer sees it next to the merge decision.

@abogartz
abogartz merged commit 95af6f9 into main Nov 5, 2026
4 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.15.36 🎉

The release is available on:

Your semantic-release bot 📦🚀

@abogartz
abogartz deleted the fix-issue-309-docs-ownership branch November 19, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released review:requested Human-admitted for autonomous review by ocsi-reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add SECURITY.md and CODEOWNERS

2 participants