B-Mohid/Phantom-sla ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python app called Phantom SLA that reconciles service credits from incident downtime and contract terms.

I want a command line tool that reads structured incident data from a local database, reads contract PDFs or text for SLA rules, figures out whether a client breached the threshold, calculates the correct credit amount, and then stops for a human approval before anything gets written to the ledger. It should be very careful and never guess when the contract wording is unclear. If the downtime does not clearly breach the SLA, it should say so and exit cleanly.

Please make the output easy to follow, with a plain English summary of how the credit was calculated, the contract clause it matched, and the final proposed amount. Also make the final ledger append only, and block any write unless it has explicit approval. If you need current library docs or implementation details, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab