Skip to content

Allow Cosmic Daily publication of credited APOD images - #43

Merged
dapiced merged 2 commits into
mainfrom
copilot/remove-false-copyright-check
Sep 7, 2026
Merged

Allow Cosmic Daily publication of credited APOD images#43
dapiced merged 2 commits into
mainfrom
copilot/remove-false-copyright-check

Conversation

Copilot AI commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Cosmic Daily failed when an APOD image carried an external copyright credit, preventing the scheduled post from being generated. This removes that false-positive publication gate.

  • Publication policy

    • Allow every APOD still image regardless of its credit field.
    • Continue rejecting non-image media.
  • Generator flow

    • Remove the unreachable review_required exit path.
    • Retain existing duplicate and image-processing safeguards.
  • Coverage and docs

    • Update the rights-policy test for externally credited images.
    • Clarify that only video entries require human review.
decision = evaluate_media_rights("image", "Jane Photographer")
assert decision.status == "allowed"

Co-authored-by: dapiced <15859528+dapiced@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix false copyright detection in Cosmic Daily workflow Allow Cosmic Daily publication of credited APOD images Sep 7, 2026
Copilot AI requested a review from dapiced September 7, 2026 16:19
@dapiced
dapiced marked this pull request as ready for review September 7, 2026 16:19
Copilot AI lite review requested due to automatic review settings September 7, 2026 16:20
@dapiced
dapiced merged commit 583e5a7 into main Sep 7, 2026

Copilot AI 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.

🟡 Changes recommended

The updated documentation and generator gating logic should be aligned with the actual “unsupported_media” behavior and made robust to any future non-allowed rights statuses.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates Cosmic Daily’s media-rights policy so that APOD still images are always eligible for automatic publication even when the APOD “copyright/credit” field is externally credited, while continuing to reject non-image media.

Changes:

  • Simplifies evaluate_media_rights() to allow all still-image entries and reject non-image media.
  • Removes the review_required exit path from the generator CLI flow.
  • Updates rights-policy tests and adjusts documentation to reflect the new policy.
File summaries
File Description
tools/cosmic-daily/tests/test_rights_policy.py Updates the unit test to assert externally credited images are allowed.
tools/cosmic-daily/README.md Updates user-facing docs to remove “external copyright requires review” guidance.
tools/cosmic-daily/cosmic_daily/rights_policy.py Removes external-copyright gating and always allows still images.
tools/cosmic-daily/cosmic_daily/cli.py Removes handling for the now-removed review_required status in generate().
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 88 to 92
decision = evaluate_media_rights(apod.media_type, apod.copyright)
if decision.status == "unsupported_media":
_emit_github_output(apod_date=apod.date, result="unsupported_media", post_path="", image_path="")
print(decision.reason)
return EXIT_ERROR
- `generate` creates a Jekyll post and the corresponding WebP image when the media is eligible.
- `check` validates front matter and image references for a generated article.
- Video entries and external-copyright cases are treated as human review only.
- Video entries are treated as human review only.
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.

Cosmic Daily: echec le 2026-09-07 (run 34119847087)

3 participants