Skip to content

Add --force option to reprocess items ignoring processed state#76

Merged
sroussey merged 2 commits intomainfrom
claude/add-force-reprocess-option-wLPwY
Mar 12, 2026
Merged

Add --force option to reprocess items ignoring processed state#76
sroussey merged 2 commits intomainfrom
claude/add-force-reprocess-option-wLPwY

Conversation

@sroussey
Copy link
Contributor

When processing code changes, previously-processed submissions, facts,
and forms need to be re-parsed and re-stored. The --force flag bypasses
the incremental processing checks in update, sync, and bootstrap
commands, causing all items to be reprocessed.

https://claude.ai/code/session_0142e35M3KT37gWcbj4LnGSW

When processing code changes, previously-processed submissions, facts,
and forms need to be re-parsed and re-stored. The --force flag bypasses
the incremental processing checks in update, sync, and bootstrap
commands, causing all items to be reprocessed.

https://claude.ai/code/session_0142e35M3KT37gWcbj4LnGSW
Interfaces don't have an implicit index signature, so they fail the
DataPorts constraint required by the Task generic. Type aliases work
because they're structurally compatible with index signatures.

https://claude.ai/code/session_0142e35M3KT37gWcbj4LnGSW
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a --force flag to the SEC pipeline CLI to bypass “already processed” incremental checks, enabling full reprocessing (re-parse/re-store) of submissions, company facts, and forms across update, sync, and bootstrap flows.

Changes:

  • Add force?: boolean to update/bootstrap task inputs and bypass processed-state filtering when enabled.
  • Wire --force through update, sync, and bootstrap CLI commands into the relevant tasks.
  • Update forms processing to optionally select all filings for requested form types when forced.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/task/submissions/UpdateAllSubmissionsTask.ts Adds force input to reprocess all CIKs regardless of processed submissions state.
src/task/submissions/BootstrapSubmissionsTask.ts Adds force input to process all downloaded submission CIK files regardless of processed state.
src/task/forms/UpdateAllFormsTask.ts Adds force input to process all filings for selected forms rather than only unprocessed ones.
src/task/facts/UpdateAllCompanyFactsTask.ts Adds force input to reprocess all CIKs regardless of processed facts state.
src/task/facts/BootstrapCompanyFactsTask.ts Adds force input to process all downloaded company facts CIK files regardless of processed state.
src/cli/groups/update.ts Adds --force option and passes it into update tasks.
src/cli/groups/sync.ts Adds --force option and passes it into submissions/facts/forms update tasks.
src/cli/groups/bootstrap.ts Adds --force option (bootstrap + bootstrap ingest) and passes it into bootstrap/update tasks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sroussey sroussey merged commit baee05d into main Mar 12, 2026
5 checks passed
@sroussey sroussey deleted the claude/add-force-reprocess-option-wLPwY branch March 12, 2026 05:52
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.

3 participants