Skip to content

chore: pre-publication check - #112

Merged
afterimaginary merged 4 commits into
mainfrom
issue-35
Nov 27, 2026
Merged

afterimaginary merged 4 commits into
mainfrom
issue-35

Conversation

@afterimaginary

@afterimaginary afterimaginary commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Closes #35
Refs #46

Summary

The checks before the repository goes public. It is ready apart from two steps that only work once it is public: flipping the visibility, then applying the plan-frozen tag ruleset.

Changes

  • CompactBench attribution. CompactBench has no NOTICE file of its own, so Apache 2.0 asks for a copy of its license and its copyright line. NOTICE gives both and lists the committed files that quote CompactBench text (memories, question-set manifest, traces, and excerpts in the gallery, REPORT, README and docs). LICENSES/Apache-2.0.txt is CompactBench 0.3.0's own LICENSE file. The README's License section points at NOTICE.
  • Licence files in the packages. license-files in pyproject puts LICENSE, NOTICE and LICENSES/Apache-2.0.txt in both the wheel and the sdist, and the packaging tests check both.
  • Licence and contact. MIT confirmed. The README gets a Contact section: issues for bugs and questions, hello@afterimaginary.dev for anything else.
  • Tag ruleset (Make the PLAN.md freeze check fail closed after tagging #46). The rulesets API still returns 403 on this private repo ("Upgrade to GitHub Pro or make this repository public"), so the ruleset lives in .github/rulesets/plan-frozen.json (target tag, refs/tags/plan-frozen, blocks deletion and update, no bypass). A test pins its shape, and CONTRIBUTING gives the gh api command that applies it. Make the PLAN.md freeze check fail closed after tagging #46 stays open until the ruleset is applied.
  • Package name. backread is free on PyPI (/pypi/backread/json and /simple/backread/ return 404).

Verification

  • History scan: every blob in every commit on all refs, plus commit identities. The output is in a comment below; every hit is a test placeholder.
  • A second scan of tracked files, commit messages, branch and tag names, issues and PRs found nothing to change.
  • Clean clone of main at 9ec2240: make test 717 passed; make report then left git status empty.
  • make ready passes on this branch, and scripts/check_report.py still matches the README's numbers.

afterimaginary and others added 2 commits November 27, 2026 00:43
Adds a NOTICE and the Apache 2.0 text under LICENSES/ for the CompactBench
text in the committed summaries, traces and excerpts, a contact section in
the README, and the plan-frozen tag ruleset as a file to apply once the
repository is public (GitHub refuses rulesets on a private free repo).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afterimaginary

Copy link
Copy Markdown
Owner Author

History scan

Every blob of every commit reachable from any branch or tag (189 commits, uv.lock excluded), searched for API keys and tokens (sk-ant-…, ANTHROPIC_API_KEY=…, AKIA…, gh[pousr]_…), home paths (/Users/…, /home/…, C:\Users\…), hostnames (*.local, *.ts.net, *.lan, MacBook) and email addresses.

Unique matches across all history, with counts:

    724 ops@example.com            # synthetic test data
    610 /Users/someone             # scrubber placeholder (scripts/scrub_transcript.py, tests)
    591 test@example.invalid       # synthetic test data
    547 /home/someone              # scrubber placeholder
    244 someone@example.com        # scrubber placeholder
    122 Someones-MacBook-Pro       # scrubber placeholder hostname
    122 MacBook                    # the leak-check regex in tests/test_claude_code_fixtures.py

No API keys, real usernames, home paths, hostnames or email addresses.

Commit identities: every author and committer is afterimaginary <126125402+afterimaginary@users.noreply.github.com> or GitHub <noreply@github.com>.

afterimaginary and others added 2 commits November 27, 2026 01:03
# Conflicts:
#	STATE.md
Declares license-files so both distributions carry the MIT licence, the
NOTICE and the Apache 2.0 text it points at; the packaging tests check both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afterimaginary

Copy link
Copy Markdown
Owner Author

Review (fresh-context /refine)

Verdict: Correct. One deferred spec item, one P3 note, five refinements.
Intent: issue #35, the ruleset criterion of #46, and the owner's comment on #35.

Spec

  • [Missing] Ruleset written down, not applied: .github/rulesets/plan-frozen.json. Make the PLAN.md freeze check fail closed after tagging #46: "A repository tag ruleset blocks deleting or updating plan-frozen". The rulesets API returns 403 while the repo is private, and changing visibility is a non-goal, so the ruleset is stored as a file with the command to apply it. Until someone runs that command, the tag has no protection on GitHub.
  • [Missing] NOTICE leaves out tests/fixtures/anthropic/ (low confidence): its README says three of the fixtures are real pilot replies copied from the traces.
  • Can't verify from the diff: the clean-clone run and the PyPI 404s (both reported in the PR body). The new test wasn't in the clean-clone run, since that run was on main; CI covers it.

Refinements

  • CONTRIBUTING.md:36 (maintain): the ruleset sentence sat between "a new entry in its Deviations section" and "Record a necessary change there", so "there" read as the ruleset file. Move it after.
  • STATE.md:20 (maintain): "GitHub only applies rulesets once the repository is public" is wrong. The 403 is specific to private repos on the free plan.
  • STATE.md and CONTRIBUTING.md (maintain, low): two copies of the apply command.
  • tests/test_plan_frozen.py (simplify, low): the test checks a static file that only gh api reads.
  • NOTICE:25-27 (simplify, low): the closing paragraph repeats the one above it.

@afterimaginary

Copy link
Copy Markdown
Owner Author

Fixed and declined

Fixed in a038c9b:

  • NOTICE now lists tests/fixtures/anthropic/, and its closing paragraph is down to one sentence.
  • CONTRIBUTING: the ruleset sentence comes after "Record a necessary change there…".
  • STATE: the reason reads "GitHub refuses rulesets on a private free repository".

Declined:

  • Applying the ruleset: not possible while the repo is private, and visibility is out of scope. Make the PLAN.md freeze check fail closed after tagging #46 stays open, and STATE's Up Next has the command to run once the repo is public.
  • Two copies of the command: STATE is a to-do list for the step right after launch, so it names the repo outright. CONTRIBUTING keeps the general form.
  • The ruleset test: kept. It stops someone loosening the JSON (dropping update, adding a bypass actor) before it's applied.

@afterimaginary
afterimaginary merged commit 5453504 into main Nov 27, 2026
1 check passed
@afterimaginary
afterimaginary deleted the issue-35 branch November 27, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pre-publication check

1 participant