Stage 1 review assessment for desloppify issue #546. Work in…
Private research annotation
Sign in to add a private research label or note.
- User
Stage 1 review assessment for desloppify issue #546. Work in /Users/user_c042661f/Documents/desloppify. Read dev/review/prompts/1-review-agent.md and dev/review/schema.json. Use gh to read issue #546 body/comments and relevant code areas. Assess honestly per the prompt. Do not modify files. Return only the JSON object that should be written to dev/review/results/issue-546.json. Include all required fields, and include open_questions only if genuinely needed.
- Assistant
I’ll use the
desloppifyskill for the project’s review workflow, then read the stage prompt/schema and inspect issue #546 plus the relevant code without editing files. - Assistant
The project-specific prompt is the authority here. I’m reading the stage instructions, schema, and issue thread first so the output matches exactly what the review harness expects.
- Assistant
Issue #546 is a Rust binary-crate false-positive report around API-coherence rules. I’m tracing the Rust scanner/detector path now, including where Cargo target metadata is read or omitted.
- Assistant
The current detector gate is narrower than the issue description suggests: these policy detectors only run on files considered library API files. I’m checking whether that gate actually covers the reported binary-only shapes, rather than assuming the report still reproduces.
- Assistant
{ "number": 546, "type": "issue", "title": "non-idiomatic API-coherence lints fire on internal binary crate symbols", "author": "Vuk97", "stage1": { "verdict": "REJECT", "summary": "I could not confirm the reported false positive in the current code. The Rust custom policy scan runs through
phase_custom_policy()intodetect_error_boundaries()anddetect_future_proofing(), and both detectors call_is_library_api_file()before inspecting public functions or public structs._is_library_api_file()requires the file to be an internalsrc/module and also requiressrc/lib.rsto exist under the Cargo manifest. It excludessrc/main.rsand . A binary-only fixture with containing only , , and a sibling containing a public multi-field struct plus a public function produced no or entries. A comparable library fixture with did produce the expected public API finding, so the checked code path is active but already gated to library-like crates. The proposed manifest check is also not quite correct as stated because Cargo can infer a library target from even when is absent.", "reject_reason": "The reported binary-only crate path is not reachable in the current detectors as described: API-coherence checks are skipped unless the package has a library API surface. Without a concrete reproducer showing findings from a crate that truly has no library target, this issue would add redundant or potentially misleading Cargo-manifest logic.", "confidence": "high", "scope_estimate": "medium", "potential_duplicates": [], "real_problem": false } }