Repository navigation
Add trusted-source fortnightly magazine publishing - #5
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4ea8e1a93d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| shortItemsBySource.set( | ||
| source.name, | ||
| (shortItemsBySource.get(source.name) ?? 0) + 1, | ||
| ); | ||
| continue; |
There was a problem hiding this comment.
Make short feed items resolvable before they block publication
If a trusted feed repeatedly includes an undated item with fewer than 100 characters, this branch skips it without storing its URL hash, so every scheduled run sees it as new and marks the ingest run unsuccessful. Because publication requires the latest ingest run to succeed, that item can block publishing indefinitely; parseFeed retains undated items, and editors have no path to dismiss them. Persist the skip for review or provide an explicit way to resolve it.
Useful? React with 👍 / 👎.
What changed
The initial trusted-source list is Dawn, OpenAI News, arXiv cs.AI, and arXiv cs.CL. This is a reviewed feed set, not a guarantee of every AI story published on the internet. Gemini processes up to six pending stories per run, so a busy issue may need more than 14 days to clear its queue. Numeric checks catch unsupported numbers but do not prove every sentence; editors must read the source links.
Validation
npm run lintnpm run typechecknpm run test:ingest(7 tests)npm run test:magazine(12 tests)npm run buildwith placeholder local Supabase valuesbrowser-use --doctorand local browser smoke checks for home, issues, process, and login pagesThe Supabase migrations and generated LaTeX PDF were not run locally because Docker and a local database/LaTeX installation are unavailable. GitHub Actions will run the generated PDF compile after deployment.
Manual steps after merge
202611190002_reprocess_updated_stories.sql,202611190003_trusted_source_allowlist.sql, and202611190004_guarded_edition_publish.sqlto the MID app Supabase project.APP_URLis the deployed Vercel URL andCRON_SECRETexactly matches Vercel's value./desk, rebuild the draft once if it asks for a source fingerprint. Then editors review stories and the note as they arrive. The publish button becomes available no earlier than day 14 and only after the full checklist passes.