Stage 12 failure records keep only the exception class name
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
Research direction
Start in the Stage 12 coordinator, worker and result-comparison handlers, where error_summary is set from type(error).__name__ and RuntimeError("Stage 12 report coordination failed") is raised. Check where a worker's saved cause is overwritten by the wait error. Pull request #791 is already open against this issue, so review it before starting. Done means the record keeps a redacted cause (type, stage, role, message) without secrets or input values, a worker-saved cause survives, and the exceptions returned to Modal are unchanged.
Written by the indexing model from the issue text.
Description
Problem
Stage 12 failure records don't say what went wrong. The coordinator, worker and result-comparison handlers store only type(error).__name__ in error_summary. They then raise RuntimeError("Stage 12 report coordination failed").
From 6 to 13 October 2026, 47 of the 153 production Stage 12 failures were recorded only as that generic coordination failure. Finding their causes meant replaying saved artifacts and reading retained Modal results. The causes turned out to be:
- 42 a UK aggregate validation defect (#786)
- 2 invalid reform parameter paths
- 1 non-finite reform income
- 1 congressional-district sample below the aggregation minimum
- 1 database session limit
The coordinator can also overwrite a cause that a failed worker had already saved, replacing it with the class name of the wait error.
Expected
- A failure record stores a bounded, redacted cause: the exception type, the failing or last finished stage, the simulation role, and the message.
- Credentials, connection strings, tokens, signed URLs, validation input values and SQL parameters are never stored.
- A cause saved by a worker is kept, not overwritten.
- The exceptions returned to Modal are unchanged.
- Dominant language
- Python
- Stars
- 1
- Forks
- 1
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 27
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/policyengine-sim-api
-
Integration tests fail due to missing UV virtual environment setupPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
PolicyEngine/policyengine-sim-api#314 ·
Maintainers usually reply within 1 day
-
Update policyengine to 6.3.4Possibly taken @policyengine claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 40/100
PolicyEngine/policyengine-sim-api#796 ·
Maintainers usually reply within 1 day
-
Segmented US national runs wait on stuck regional children until the parent times outPossibly taken @anth-volk claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
PolicyEngine/policyengine-sim-api#794 ·
Maintainers usually reply within 1 day
-
Stage 12 coordinator can outlive its timeout while waiting and leaves workers runningPossibly taken @anth-volk claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 20/100
PolicyEngine/policyengine-sim-api#792 ·
Maintainers usually reply within 1 day
-
Stage 12 runs exhaust the database session pooler's 15-client limitPossibly taken @anth-volk claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
PolicyEngine/policyengine-sim-api#788 ·
Maintainers usually reply within 1 day
All issues in PolicyEngine/policyengine-sim-api
Similar issues
-
[Bug]: LangGraph Store sync put bypasses namespace validationPossibly taken @ktz03 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#6050 ·
Maintainers usually reply within 1 day
-
[Bug]: Streamed /v1/chat/completions sends unredacted agent error text (keys) in the final chunkPossibly taken @rodricksz4h5 claimed this today. Openarea/streaming comp/gateway P2 type/security
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#138245 ·
Maintainers usually reply within 1 day
-
[oblt-aw][autodoc] Update user onboarding guide for mandatory trigger CODEOWNERS stepPossibly taken @github-actions claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
correction metadata
Difficulty 2/5 Under an hour Newbie friendliness 68/100
acl-org/acl-anthology#10378 · 1 comment ·
Maintainers usually reply within 1 day
-
cloudtrail_multi_region_enabled_logging_management_events fails when the advanced event selector has a custom namePossibly taken @12YYCCYY16 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
prowler-cloud/prowler#13033 ·
Maintainers usually reply within 1 day