Because Adams County prosecutors disclosed key evidence in a criminal case only four days before trial — and 11 months after the evidence first became available — a judge acted within his authority by dismissing one of the charges against the defendant, the Court of Appeals ruled on Thursday.