Skip to content

Find set-aside motions in a case's court events - #1834

Merged
wittejm merged 2 commits into
codeforpdx:masterfrom
wittejm:jw/prior-expungement-events
Nov 6, 2026
Merged

wittejm merged 2 commits into
codeforpdx:masterfrom
wittejm:jw/prior-expungement-events

Conversation

@wittejm

@wittejm wittejm commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Summary

A case with a motion to set aside already filed is in the court's hands. It needs no new paperwork, and it disappears from OECI once the motion is granted. RecordSponge has treated such a case like any other: eligible, in "Eligible Now", and filed again by "Generate Paperwork".

  • Detection. The crawler reads the latest set-aside motion from the case's "OTHER EVENTS AND HEARINGS" rows, and whether a later "Order - Denial" or "Withdrawal" naming the motion resolved it. Only events after the latest motion count, so an old denial leaves a refiled motion open. Rows that set aside a default judgment, and objections or memoranda about a motion, are not motions.
  • Open motion. The case's eligible charges get the status "Motion Previously Filed", a blue section ahead of Needs More Analysis on the summary panel and in the summary PDF. Paperwork skips the case, with a bullet per skipped case on the OSP form's warnings sheet.
  • Denied or withdrawn motion. No eligibility change. The case banner shows both dates, the summary PDF prints the sentence once under the case, and the new motion for that case carries it on its warnings sheet.
  • Editor. A "Set-aside Motion" radio, None / Filed / Denied / Withdrawn, with a filed date and a denied or withdrawn date. The edit wins over the scrape.

The restitution flag was the template at every layer. The merger's label override is the hinge: once the charges carry the status, the summarizer, badges, PDF, and paperwork filter follow.

The design and the OECI findings behind it (event wording per county, the refile case, the false positives) are in set-aside-motion-project/. Real names and case numbers stay in its ignored private/ folder.

Out of scope

  • The 2026 form path never attaches the warnings sheet, so partial expungements outside Multnomah ship without one. That is a separate fix; until it lands, the denied and withdrawn bullets appear only where the sheet does.
  • Waiting periods after a denial. Dates are shown and the reader judges.

Test plan

  • Backend: 541 passed, mypy clean. New parser tests for the Marion denial, a Multnomah withdrawal, the Lane refile, filings about a motion, and the default-judgment false positive. New tests/test_set_aside_motion.py for the merged record through the summary, serializer, editor, paperwork, and PDF.
  • Frontend: 180 passed in 34 suites, tsc, eslint, prettier clean. New Record/setAsideMotion.test.tsx for the sentence, the banner, and the editor controls.

🤖 Generated with Claude Code

wittejm and others added 2 commits November 6, 2026 09:09
A case with a motion to set aside already filed is before the court: it
needs no new paperwork, and it leaves OECI once the motion is granted.
The crawler reads the latest set-aside motion from the case's other
events, and whether a later order of denial or a withdrawal resolved it.
Only events after the latest motion resolve it, so an old denial leaves
a refiled motion open.

An open motion parks the case's eligible charges under "Motion
Previously Filed", a blue section ahead of Needs More Analysis on the
summary panel and in the summary PDF, and the paperwork skips the case
with a bullet on the OSP form's warnings sheet. A denied or withdrawn
motion changes no eligibility; the case shows the dates, the PDF prints
them once under the case, and the case's new motion carries the sentence
on its warnings sheet. The case editor sets the state by hand: None,
Filed, Denied, or Withdrawn, with the dates.

The design and the OECI findings behind it are in set-aside-motion-project/.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Codacy runs pydocstyle with D212 and D213 both on, so any multi-line
docstring fails one of them. The new docstrings are one sentence each,
with the rest of the text in a comment below. The probe script writes
under the system temp directory instead of a literal /tmp path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@wittejm
wittejm merged commit 322f3d1 into codeforpdx:master Nov 6, 2026
3 checks passed
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.

1 participant