feat(forensic): STA, SNOA, COMBOACCRUAL + complete manipulation screen (#89) - #120
Open
JLaborda wants to merge 3 commits into
Open
feat(forensic): STA, SNOA, COMBOACCRUAL + complete manipulation screen (#89)#120JLaborda wants to merge 3 commits into
JLaborda wants to merge 3 commits into
Conversation
Extend the permanent-loss filter with QVAL Ch. 3 accrual screens: STA and SNOA from PIT fundamentals, COMBOACCRUAL as the average cross-sectional percentile, and FRD_COMBOACCRUAL_BOTTOM_PCT hard exclusion alongside the existing Beneish gate. Updates spec 008, CONTEXT.md, and backlog; expands GitHub #89 scope.
JLaborda
changed the base branch from
develop
to
cursor/forensic-permanent-loss-89-b5eb
July 7, 2026 12:00
Run make format on accrual tests; require make format before every commit in git-conventions and AGENTS.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the QVAL Ch. 3 manipulation screen for issue #89 by adding STA, SNOA, and COMBOACCRUAL with a bottom-5% hard-exclusion gate, on top of the forensic evaluator from #118.
Supersedes: #118 — close #118 when merging this PR.
Manipulation metrics (phase 2a — complete)
FRD_BENEISH_BOTTOM_PCT(net income - operating cash flow) / total assets(operating assets - operating liabilities) / lagged total assetsFRD_COMBOACCRUAL_BOTTOM_PCTDistress rules (
BK_*), EDGAR fraud stubs, CLI, and Enron/Lehman/WorldCom regression are unchanged from #118.New / changed paths
src/smartwealthai/accrual_scores.pyconfig/permanent_loss/accrual_v1.yaml,comboaccrual_gate_v1.yamlforensic_evaluator.py— wires COMBOACCRUAL gate after distress + Beneishspec/features/008-permanent-loss-filter/spec.md,CONTEXT.md, backlogStill phase 2b
PFD distress logit, EDGAR confirmed fraud, ML fusion.
Tests
65 forensic tests passing (incl.
tests/test_accrual_scores.py+ COMBOACCRUAL integration).