Repository navigation
Add inbox/ intake for new corpus resources - #2
Merged
Merged
Conversation
- inbox/ is a PR-only staging area; validate_corpus.py fails while it holds anything but its README, so nothing unreviewed reaches main. - scripts/process_inbox.py reads each submission + .yaml sidecar, requires an explicit license statement (CC BY-SA/BY 4.0, Apache-2.0, MIT) before vendoring, moves the file into corpus/<initiative>/, appends the MANIFEST entry, and flips any `supersedes:` entry. `status: linked` catalogs without vendoring. Anything else is held with a reason. - process-inbox.yaml runs it on PRs touching inbox/, commits the result to same-repo PR branches and comments the report; fork PRs get a dry-run report in the job summary. - "Propose a corpus resource" issue form for URL-only suggestions. - README/CONTRIBUTING/CODEOWNERS updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015bzez2N6vdSh6qXV7Y44P9
Inbox processingNothing in inbox/. Reviewers: confirm the license and the manifest entry before merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
inbox/drop zone so contributors can submit a resource in a PR and have it checked and placed automatically. Stacked on #1.inbox/is PR-only staging;validate_corpus.pynow fails while it holds anything but its README, so nothing unreviewed reachesmain.scripts/process_inbox.pyreads each file plus a.yamlsidecar. It requires an explicit license statement in the document (CC BY-SA 4.0, CC BY 4.0, Apache-2.0, MIT) before vendoring; vague "creative commons licenses" boilerplate doesn't count. It moves the file intocorpus/<initiative>/, appends the MANIFEST entry, and flips anysupersedes:entry.status: linkedcatalogs without vendoring. Anything else is held with a reason..github/workflows/process-inbox.yamlruns it on PRs touchinginbox/, commits the result to same-repo PR branches, and comments the report. Fork PRs get a dry-run report in the job summary.Bot commits pushed with the default
GITHUB_TOKENdon't re-trigger other workflows. The job validates after processing, but ifvalidate-corpusis a required check, add aCORPUS_BOT_TOKENsecret (GitHub App or fine-grained token, contents: write) so it re-runs on the processed commit.Tested on a scratch copy: a licensed PDF with
supersedes:processed correctly; a PDF with no sidecar and an unlicensed markdown file were held with reasons; a sidecar-only linked entry was cataloged; the resulting manifest parses and the validator blocks while inbox/ isn't empty.Generated by Claude Code