Skip to content

fixx: add common cause mapping layer#242

Open
Faith-okereke wants to merge 2 commits into
Toolbox-Lab:mainfrom
Faith-okereke:fix/add-common-cause
Open

fixx: add common cause mapping layer#242
Faith-okereke wants to merge 2 commits into
Toolbox-Lab:mainfrom
Faith-okereke:fix/add-common-cause

Conversation

@Faith-okereke

@Faith-okereke Faith-okereke commented Jun 17, 2026

Copy link
Copy Markdown

Closes #230
Common causes were already present in embedded TOML entries.
This change ensures they load reliably, are shown in human CLI output, and are covered by tests.
Verified with cargo test -p prism-core tier1.

Verified the new Tier 1 taxonomy/common-cause tests with cargo test -p prism-core tier1. Full cargo test -p prism-core currently fails in unrelated RPC client tests.

@codeZe-us

codeZe-us commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

@Faith-okereke your PR does not have a close tag for the issue number you resolved. This is your task #280, add #280 to your PR description

@codeZe-us codeZe-us self-requested a review June 19, 2026 02:15

@codeZe-us codeZe-us left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Faith-okereke This PR updates the rendering logic, schema definitions, and report generation for common causes, but it completely misses adding the actual common_causes fields to the error mapping entries in the TOML files, so update the TOML files in crates/core/src/taxonomy/data/ to include one to three plain-English cause strings per Tier 1 error code to ensure they actually surface in the decoded output

@Faith-okereke

Copy link
Copy Markdown
Author

Hi, I have updated the files to include the strings as requested.

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.

Map Every Tier 1 Error Code to One or More Plain-English Common Causes

2 participants