codex: monthly audit fixes for issue #38#39
Merged
Conversation
d807e41 to
fb0235f
Compare
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.
Triggered by monthly review issue #38: #38
Changed Files
src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.pytests/test_monthly_snapshot_audit_issue.pyCodex Result
Verdict
Blocked. I fixed a low-risk monthly-report defect, but issue #38 still lacks the evidence required for HK snapshot promotion, and the generated staging input path remains unsafe as production-source evidence.
Findings
src/hk_equity_snapshot_pipelines/low_vol_dividend_longbridge_snapshot.pyandsrc/hk_equity_snapshot_pipelines/low_vol_dividend_public_snapshot.pyderive non-price fields such asmarket_cap_hkd,payout_ratio,earnings_positive,pe_ratio, andfree_cash_flow_yieldfrom provider valuation lookups that do not accept anas_oftimestamp. For backdated runs this creates look-ahead risk, sopublic_yfinance_staging/longbridge_openapi_stagingshould not be treated as point-in-time production-source audit evidence without human follow-up.src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.pyonly emitted alongbridgereadiness command even though the monthly gate explicitly requires evidence for bothlongbridgeandibkr. That could lead operators to run an incomplete monthly checklist. Fixed.Changes Made
src/hk_equity_snapshot_pipelines/monthly_snapshot_audit_issue.pyso the generated monthly issue now prints reproducibleprint_snapshot_readiness.pycommands for bothlongbridgeandibkr.tests/test_monthly_snapshot_audit_issue.pyto lock the dual-platform readiness commands into the monthly issue payload.Verification
bwrap: loopback: Failed RTM_NEWADDR: Operation not permitted.Residual Risk