learning-it by example

Back to the video

Model the Customer's World: Objects, Links and Actions

Three of seven work orders were quietly wrong. A 60-line model found them and refused a bad change.

Video #310 ยท Forward deployed engineer interviews

Steps in the video

  1. 0:00 Seven work orders, and three of them were quietly wrong
  2. 0:35 The idea
  3. 1:13 Setup
  4. 1:38 Objects and links
  5. 2:12 Rules on the links
  6. 2:33 Changes go through actions
  7. 3:01 Run the checks
  8. 3:49 What this does not show
  9. 4:30 Mistakes to avoid
  10. 4:56 My take and next steps
  11. 5:25 Recap

Files

  • actions.py (21 lines)
  • rules.py (20 lines)
  • run.py (16 lines)
  • world.py (21 lines)

Download the code (zip)

Tested with

Python 3.12.15

What this does not show

Made-up sites, engineers and work orders, with three problems planted on purpose. A sketch in plain Python, not the Palantir product or API: no storage, history or permissions, hard-coded rules, and the certification lists themselves are not validated, for example a site id that does not exist.

Sources

Learning IT by Example.