# Baltic Dev operations kit

Use the Markdown worksheets for a release review or an isolated recovery drill. The JSON file illustrates how to record the dependencies, runbook and recovery objectives for a fictitious document library.

## Run the check

Extract the ZIP into a folder and open a terminal there. Use Python 3 with its standard library.

    python validate_inventory.py service-inventory.json

The successful sample prints Inventory valid: 3 services with resolved dependencies. Exit code 0 means the inventory is structurally valid. Exit code 1 identifies invalid fields or dependencies. Exit code 2 reports invalid JSON, an unreadable file, or incorrect command usage.

The validator opens the specified file for reading and prints to the terminal. It works offline, with no package installation or server access. It checks structural completeness and dependency consistency. Runbook availability, recovery procedures and recovery time require their own checks.

## Inventory format version 1

Use a UTF-8 JSON object with the integer schema_version set to 1 and a nonempty services list. Each service has exactly these keys:

| Key | Accepted value |
| --- | --- |
| id | Unique lowercase identifier beginning with a letter. Digits and single hyphens between segments are allowed. |
| owner | Nonempty team name. |
| runbook | HTTPS URL on runbooks.example.invalid with a lowercase path. Each path segment uses letters, digits or hyphens. |
| depends_on | List of unique IDs from this inventory. The dependency graph must be acyclic. |
| recovery_time_minutes | Integer greater than zero. |
| recovery_point_minutes | Integer greater than or equal to zero. |

The check accepts sample inventories up to 1 MiB. The runbook host is a reserved illustrative domain. Measure recovery in the drill and keep the sample definitions apart from private runbooks and credentials.

Source for the reserved domain: [RFC 2606, Reserved Top Level DNS Names](https://www.rfc-editor.org/rfc/rfc2606.html).
