Skip to content

Align SEC receipts, personal travel and suspended scores with CongressWatch - #3

Draft
OpenSourcePatents wants to merge 5 commits into
mainfrom
overhaul/scoring-alignment-2026-11-16
Draft

OpenSourcePatents wants to merge 5 commits into
mainfrom
overhaul/scoring-alignment-2026-11-16

Conversation

@OpenSourcePatents

@OpenSourcePatents OpenSourcePatents commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Behavior

Align the computed score and derived trade flag with CongressWatch PR #20: require explicitly verified identity, matching CIK, successful SEC data retrieval, and ordered available HTTPS retrieval receipts bound to every declared URL and CIK. Exclude explicit staff/unverified travel while retaining eligible unlabeled historical rows. Keep wealth, donor and ALEC components at zero, preserving the six nominal maxima without reweighting.

Routes and raw response serialization remain unchanged, including legacy money strings, nulls, raw SEC observations and staff travel. API README is intentionally reserved for Charlie.

Verification

Exact head: eead076ec527c71c2a1f5343636a543e5c9ee6fc; main/base: 19789a98f1e29ee89e8b6e603112278c4c288cae.

  • Local ESLint, 56 scoring/flag cases and Next production build passed.
  • Nonpublishing hosted checks passed lint, fixtures and build at this head using dummy service endpoints.
  • CongressWatch strict harness pins all 17 API source blobs and compares 539 members / 3,234 components / derived flags, 50 calls across 12 route contracts, and 33 serialized raw responses against previous API commit bc828aefa681b043c63a05fb1c7530ed2332d303.

Manual review and ordering

Keep available for Charlie's own review. Do not merge before CongressWatch PR #20. No approving review, auto-merge, main push, deployment or production Neon write. The review branch has a Vercel ignored-build command; Actions validate only.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
osp-api Ignored Ignored Preview Nov 24, 2026 2:38am UTC

Request Review

@OpenSourcePatents OpenSourcePatents left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not approved. Will pend on the changes to parang repo.

Comment thread lib/scoring.ts
import type { MemberSummary, MemberDetail } from "./congress";
import { parseDateAny } from "./congress";

const ANNUAL_SALARY = 174_000; // Congressional salary baseline

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this needed to change? Salary baseline should be a consistent int, if salary changes, change it on that vector not the whole graph.

Comment thread lib/scoring.ts
/** The value CongressWatch's pipeline computed and persisted. */
stored: number;
/** total - stored. Non-zero means a recency window has slid since the run. */
/** total - stored. Non-zero can reflect refresh lag, methodology changes or sliding windows. */

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think error reporting could be clearer here. Let's break down those causes and then reflect that with E.R

@OpenSourcePatents OpenSourcePatents changed the title Align CongressWatch score methodology and quarantine unverified SEC signals Align SEC receipts, personal travel and suspended scores with CongressWatch Nov 24, 2026

This branch was successfully deployed

1 active (outdated) deployment
Preview — bc828aef Deployed Nov 18, 2026 by vercel[bot]
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