Fail a CLI assessment when its requested paper file is missing
Opened by @shuxiachai · Assignees: None
Claim Status & GitHub Signal
Unassigned, with 1 comment. Unassigned does not guarantee unclaimed—read comments and linked PRs first.
Estimated from issue labels (bug, good first issue), Python context, and discussion depth. There are 1 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.
What It's About
Fail a CLI assessment when its requested paper file is missing. Why The CLI's --paper-json option takes the path to an extracted paper contribution. If the path does not exist or names a directory, the worker silently saves a run specification without the paper. An offline check of the worker's input branch reproduced both
Why It Matters
Resolving #554 improves reliability and developer experience in shuxiachai/academic-commercialization-agent.
Expected Outcome
A focused pull request addressing #554 with relevant checks or tests verified locally.
Log in to compare this issue's requirements against your profile skills. Required concepts: Python, Git & Collaboration, CLI & Shell, Technical Documentation.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Branching, commits, rebasing, and collaborative Git workflows.
Addresses skill gap: Git & Collaboration
Shell navigation, process inspection, pipes, and CLI debugging.
Addresses skill gap: CLI & Shell
Core Python syntax, functions, control flow, and debugging basics.
Addresses skill gap: Python
Issue Description
Why
The CLI's --paper-json option takes the path to an extracted paper contribution. If the path does not exist or names a directory, the worker silently saves a run specification without the paper. An offline check of the worker's input branch reproduced both cases. A reader who expected an assessment grounded in the paper can end up with a topic-only run. CLI option · Worker input and persisted specification
Task
Treat an explicitly supplied --paper-json path that does not name a file as a CLI input error. Reject it before the legacy worker path can proceed to evidence collection.
Done when
- A nonexistent path and a directory each produce a nonzero exit with a message identifying the paper-file problem. Neither case reaches evidence collection.
- A valid contribution JSON file still becomes the saved run's paper contribution. Omitting the option still allows an ordinary topic-only run.
- Cover both failures using temporary paths and the existing offline worker test seam. Stub evidence collection and assert it was never called for an unusable path. Worker fixture with extra CLI arguments · Existing mock at the collection boundary
Read the contribution guide and comment here before starting. Keep the PR focused and to one commit.
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (1)
Hi! I'd like to take this issue. I'll validate --paper-json before evidence collection and add offline worker tests for both nonexistent paths and directories.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
CONTRIBUTING.md Excerpt
Contributing
Read AGENTS.md first. It is a decision index: several seemingly obvious changes have already been rejected on measured evidence. Use the documentation map for current guides and historical results.
For a first contribution, the map below is enough; read AGENTS.md before changing pipeline, scoring or experiment code.
Where newcomers can work
Look for issues labelled
good first issue
or help wanted.
Comment on one before you start, so two people don't take the same issue.
You can hold up to five at a time, counting the ones whose pull request is
still open. If three days pass after your claim without a pull request, or
after a review that asks for changes without a reply or a push, the issue
goes back to the pool; a maintainer may also finish an open pull request on
its branch, keeping you as its author. You need no API keys: the test suite
and the browser smokes make no paid requests.
| Where | |
|---|---|
| Good for a first PR | The main web client (web/index.html, web/samples.html, web/static/; new UI strings go in web/static/js/i18n.js, in English and Chinese); ui/ readers and PDF export; current guides (README*, CONTRIBUTING.md, docs/operating-guide.md, docs/README.md); new tests in tests/ and e2e/; new tools under scripts/ |
| Open an issue first | Production pipeline and retrieval (src/academic_agent/crew.py, source_pipeline.py, config/); API access, BYOK and billing boundaries in api/; anything that changes scores, prompts or providers |
| Do not change | src/academic_agent/evidence.py (frozen experiments hash its bytes, and their tests fail on any edit; to change its behaviour, wrap it as reviewer_plan_bounds.py does); AGENTS.md, the maintainer's instructions to assistants; the experimental pages web/saved-source-*/ and web/source-locator/; the experiment scripts under experiments/ and the experimental modules in src/academic_agent/ (their paths and bytes are bound the same way); dated documents docs/prereg-*, docs/results-*, docs/errata-*, docs/protocol-*; fixtures in tests/fixtures/, evals/ and benchmark_fixtures/. Touch pyproject.toml and `u |
... (truncated)
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.