State the pipeline's exception, failure-message and helper-reuse conventions in AGENTS.md

Open
#891 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
1/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
python

Research direction

Read the repository's AGENTS.md and inspect the handlers under ricecooker/utils/pipeline/ to identify the conventions named in the acceptance criteria. The issue also requires lint to reject bare except Exception there, so check the existing prek configuration and related lint rules. Done when AGENTS.md documents all three conventions and prek catches that exception pattern.

Written by the indexing model from the issue text.

Description

TAG: tech update / debt

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Review comments on rtibblesbot's ricecooker PRs keep raising three pipeline conventions that AGENTS.md does not state: which exceptions a handler turns into a file failure, the shape of a file failure message, and which shared helpers to reuse. Each came up on 5+ PRs in the last 90 days.

Complexity: Low

Context

Exceptions:

Failure messages:

Shared helpers:

The Change

AGENTS.md should state the three conventions, and lint should catch the one it can.

Acceptance Criteria
  • AGENTS.md says a pipeline handler turns every failure its library calls raise on bad input into a file failure, including timeouts and non-OSError types such as PIL.Image.DecompressionBombError and yt-dlp's DownloadError
  • AGENTS.md says every external subprocess call takes a timeout=
  • A bare except Exception under ricecooker/utils/pipeline/ fails prek
  • AGENTS.md says a file failure message is one line: the source (URL or original path) and a reason, with no storage path, command line or raw stderr
  • AGENTS.md says to use config.FILE_PIPELINE for every file, derive extension sets from the handlers' EXTENSIONS/CONVERT_EXTENSIONS, and decode text through encodings.decode_text
References

Triaged from learningequality/le-skills#146.

AI usage

I asked Claude Code to triage le-skills#146 and file the ricecooker-specific items here; it checked the cited comments and drafted this issue.

Dominant language
Python
Stars
33
Forks
83
Avg merge
5d 16h
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/ricecooker

All issues in learningequality/ricecooker

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.