Skip to content

Make cjus/chessengine public: the last checks, two choices and the switch #233

Closed

Description

@cjus

Why. You want cjus/chessengine public soon (2026-10-30), well before the PRD's "around October 2027". The cleanup PR, #234, removes what assumed a private repository. It also adds what a public one needs: the book on GitHub Pages, SECURITY.md and CONTRIBUTING.md. What's left here are the choices that are yours, and the switch itself.

What I checked (2026-10-30).

  • The full history, for AWS keys, GitHub tokens, Slack and OpenAI keys and private-key blocks: none. That was a pattern search, not a secret scanner, so step 1 runs a real one.
  • Tracked files, for home-directory paths, IP addresses, hostnames and email addresses: none.
  • Commits are authored as carlos.justiniano@gmail.com, so that address becomes public with the history.
  • The history is 2.5 MB packed. The only large blob is the 5.1 MB PDF from Print edition: the book as a PDF and an EPUB, rebuilt by script #231, before Publish the print edition on the CDN instead of committing it #232 moved it to the CDN. Rewriting history on a protected main isn't worth it for that.
  • The name: a web search found no chess engine, Chess Programming Wiki entry or trademark called cb2026. Trademark aggregators list only marks called "CB".

Before the switch

  1. Scan for secrets: brew install gitleaks && gitleaks detect --source ~/dev/chessengine --log-opts="--all". Expected: "no leaks found".
  2. Trademark (optional): search "CB2026" on the USPTO's Trademark Search (https://tmsearch.uspto.gov). The web search above isn't authoritative.
  3. Links to private repositories: decide. There are 33 references to cjus/chessgui (private; Solrac stays closed) across 10 files: docs/PRD.md (12), docs/status.md (9), book/src/ch19-levels.md (4), crates/engine/src/levels.rs (2), and one each in scripts/check.sh, docs/testing.md, docs/releasing.md, docs/elo-ledger.md, deny.toml and crates/tools/src/mistakes.rs. Public readers get a 404 from each. The options:
    • (a) Reword them (recommended): say what each one was ("Solrac's report of 2026-10-21") without linking, at least in the book and the code.
    • (b) Leave them as dead links.
  4. Issues and PRs become public too: over 230 threads, including these needs-carlos discussions and the SPRT comments. Skim for anything you wouldn't publish. In particular, draft PR Use the pnxfarm build farm (draft until the farm is set up) #157 describes the proprietary pnxfarm: close it, or edit its description.
  5. CI once Actions is free: decide. On a public repository, standard runners cost nothing. The cuts made when the minutes ran out (cjus/chessgui#73) could be undone:
    • (a) Check PRs on GitHub again (recommended): ci.yml on every PR, back to the main: PR + CI ruleset, and the nightly run without its "only if main changed" limit. scripts/check.sh would stay the local check. CLAUDE.md's definition of done (item 6) would change to match.
    • (b) Keep things as they are.

The switch

  1. Settings → General → Danger Zone → Change repository visibility → Public.

Right after the switch

Tell me here once it's public and I'll do these with gh api. Or do them yourself:

  1. The book on GitHub Pages: Settings → Pages → Source: "GitHub Actions". Then run gh workflow run book.yml. Expected: the book at https://cjus.github.io/chessengine/.
  2. Security settings, under Settings → Advanced Security:
    • secret scanning, with push protection;
    • private vulnerability reporting, which SECURITY.md points to;
    • Dependabot alerts.
  3. Remove the old CNP deploy key, no longer used since Ready the repository for going public #234 (chess-node-protocol has been public since 2026-10-21):
    • the CNP_DEPLOY_KEY secret here (Settings → Secrets and variables → Actions);
    • the matching deploy key in cjus/chess-node-protocol (Settings → Deploy keys).

Expected. One comment with your choices for 3 and 5, and a word when 6 is done. I then make the follow-up PRs (3a, 5a), do 7–9, and record the date in the PRD.

Done when the repository is public, the book is on Pages, the settings in 8 are on and the old key is gone.

🤖 Generated with Claude Code

Activity

  1. self-assigned this
    on Oct 30, 2026
  2. cjus commented on Oct 30, 2026

    @cjus
    OwnerAuthor

    Step 1 done (2026-10-30): gitleaks 8.30.1 found no leaks.

    • gitleaks git . --log-opts="--all": every branch and tag, 296 commits. That's all of the history's non-merge commits; the other 183 are merge commits, which have no diffs of their own. 2.7 MB scanned.
    • gitleaks dir .: the working tree as it is on disk, including untracked and ignored files such as target/ and the built book. 559 MB scanned.

    🤖 Generated with Claude Code

  3. cjus commented on Oct 30, 2026

    @cjus
    OwnerAuthor

    Item 3 done in #235 (merged): every cjus/chessgui#N now reads "Solrac Chess AI #N", unlinked (47 references in 21 files), and git grep chessgui finds nothing.

    🤖 Generated with Claude Code

  4. cjus commented on Oct 30, 2026

    @cjus
    OwnerAuthor

    The repository is public (Carlos, 2026-10-30). Done after the switch:

    • Pages: the source is now GitHub Actions, and book.yml built and deployed the book (run 41080132223, both jobs passed). But it can't be reached yet. The account's user site, cjus/cjus.github.io (last pushed 2019), has the custom domain cjus.dev. So GitHub redirects https://cjus.github.io/chessengine/ to https://cjus.dev/chessengine/, and cjus.dev is now served by Netlify (DNS at GoDaddy), which returns 404. This needs your choice; see below.
    • Security settings: secret scanning with push protection, private vulnerability reporting (which SECURITY.md links to) and Dependabot alerts are all on.
    • Not done, needs you: deleting the CNP_DEPLOY_KEY secret here and the "chessengine CI (read-only)" deploy key (id 167236319) in cjus/chess-node-protocol. My permission settings blocked secret-store changes. To do it:
      gh secret delete CNP_DEPLOY_KEY -R cjus/chessengine
      gh api -X DELETE repos/cjus/chess-node-protocol/keys/167236319
      
      Expected: gh secret list -R cjus/chessengine prints nothing. The "chessgui CI (read-only)" key on chess-node-protocol is Solrac's, so I left it alone.

    Where the book should live: decide.

    • (a) A subdomain, such as book.cjus.dev (recommended): add a CNAME record book → cjus.github.io at GoDaddy. Then I set it as the Pages custom domain, with HTTPS, and switch the book's site-url to /.
    • (b) Remove cjus.dev from cjus/cjus.github.io's Pages settings, since that site is stale anyway. The book is then at https://cjus.github.io/chessengine/, as the README already links.

    🤖 Generated with Claude Code

  5. cjus commented on Oct 30, 2026

    @cjus
    OwnerAuthor

    Item 9 done (Carlos, 2026-10-30): the CNP_DEPLOY_KEY secret and the "chessengine CI (read-only)" deploy key on cjus/chess-node-protocol are both deleted. Only the "chessgui CI" key is left there, which is Solrac's.

    🤖 Generated with Claude Code

  6. cjus commented on Oct 30, 2026

    @cjus
    OwnerAuthor

    Item 7 done: the book is live at https://cjus.github.io/chessengine/, the link the README has. I removed the stale cjus.dev custom domain from cjus/cjus.github.io's Pages settings (Carlos, 2026-10-30), and GitHub committed the CNAME deletion as 13bb778. Then I redeployed the book to clear the cached redirect. Checked: the front page and chapter pages return 200.

    Left here: item 4 (skim the issues and PRs, especially #157) and item 5 (CI now that Actions is free).

    🤖 Generated with Claude Code

  7. cjus commented on Nov 1, 2026

    @cjus
    OwnerAuthor

    Item 4, the skim of what's public, done 2026-11-01. I covered:

    • all 246 issue and PR bodies
    • all 170 comments
    • the one review comment thread (empty) and the v1.0.0 release
    • the repository's files and full history again

    The tools were gitleaks plus pattern searches for emails, AWS account and resource IDs, IP addresses, home paths, hostnames and private repository names. GitHub secret scanning has no open alerts.

    No secrets anywhere. One finding needs you, plus one item still open from before:

    1. Run long SPRTs and gauntlets on AWS Batch (proposal) #61's body publishes the AWS account ID and the admin IAM user's name and group (the "Account" bullet near the top). An account ID isn't a credential, but published next to an admin user's name it helps targeted phishing and enumeration. To remove it:
    2. Use the pnxfarm build farm (draft until the farm is set up) #157 (draft) still describes the proprietary pnxfarm. Its branch claude/pnxfarm also adds pnxfarm.toml, scripts/pnxfarm-pause.sh and CLAUDE.md lines about the farm, so the details are public in the branch as well as the description. If that matters, close Use the pnxfarm build farm (draft until the farm is set up) #157 and delete the branch. GitHub still keeps the PR's diff, though, so editing alone doesn't hide it.

    Known and left as they are:

    • carlos.justiniano@gmail.com as the commit author (noted above). Future commits could use GitHub's noreply address.
    • Links to cjus/chessgui inside old issue and PR threads, which are dead links for readers.
    • /Users/cjus/... paths in a few SPRT comments.
    • The Apple team ID in docs/releasing.md, which every signed binary carries anyway.
    • The CDN bucket's name in scripts/build-print-book.sh. Directory listing is refused on both the bucket and the CDN (checked: AccessDenied).

    Fixed: #242 and #244 had brought back five cjus/chessgui#N links in docs/status.md and docs/PRD.md. #247 reworded them as "Solrac Chess AI #N" again, so git grep chessgui is empty.

    Item 5 (CI now that Actions is free) is still yours to decide.

    🤖 Generated with Claude Code

  8. cjus commented on Nov 1, 2026

    @cjus
    OwnerAuthor

    Update on item 4 (2026-11-01):

    🤖 Generated with Claude Code

  9. cjus commented on Nov 1, 2026

    @cjus
    OwnerAuthor

    #61's original revision is deleted from its edit history (Carlos, 2026-11-01). Checked through the API: the Oct 12 revision reads as deleted and no longer returns the account ID, and the current text is clean. Item 4 is done apart from #157.

    Still open here: #157 (close it, or leave it) and item 5 (CI on PRs now that Actions is free).

    🤖 Generated with Claude Code

  10. cjus commented on Nov 1, 2026

    @cjus
    OwnerAuthor

    Item 5a is done (Carlos, 2026-11-01), so I'm closing this.

    • CI: GitHub checks every pull request again #248 (merged): ci.yml checks every pull request, drafts included, and main every night, with no "only if it changed" skip. Its own run was the first under the new trigger: every step ran and passed in 2m06s on the cache from main, perft 665,777,044 nodes with 0 failures. CLAUDE.md's definition of done, the PRD, docs/testing.md, docs/gui-compat.md, docs/status.md and check.sh's header say PRs need green CI and scripts/check.sh again.
    • Ruleset: main: PR + CI again (ruleset 24857149). It requires the CI check from GitHub Actions, as well as a PR, and still blocks deletion and force pushes. Checked: GitHub applies all four rules to main.
    • Use the pnxfarm build farm (draft until the farm is set up) #157 is closed and its branch deleted.

    Every item here is done except item 2, the optional USPTO trademark search, which I can't run.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions