# Project Initiation Document (PID)

| Field           | Value                         |
|-----------------|-------------------------------|
| Project name    | [Name]                        |
| Client          | [Company / contact person]    |
| Contractor      | Stefan Lohmaier               |
| Date            | [YYYY-MM-DD]                  |
| Version         | [1.0]                         |
| Status          | [Draft / Approved]            |

---

## 1. Project goal

[What is to be achieved? One to three sentences.]

## 2. Scope

### In scope

- [Deliverable 1]
- [Deliverable 2]

### Out of scope

- [What is explicitly not included]
- [Boundary to other sub-projects]

## 3. Constraints

| Constraint               | Description                              |
|--------------------------|------------------------------------------|
| Target platform          | [e.g. ARM Cortex-R5, Renesas RH850]      |
| ASIL                     | [QM / A / B / C / D]                     |
| Standards                | [ASPICE 4.0, ISO 26262:2018]             |
| Programming language     | [C / C++ / Rust]                          |
| Coding standard          | [MISRA C:2012 / MISRA C:2023]            |
| Runtime environment      | [Bare-metal / AUTOSAR Classic / Linux]   |
| Customer requirements    | [Specific customer requirements]         |

## 4. Deliverables

| No. | Deliverable                       | Format              | Due         |
|-----|-----------------------------------|---------------------|-------------|
| 1   | Software Requirements Specification | Gitea Issues      | [Date]      |
| 2   | Architecture documentation        | Gitea Wiki          | [Date]      |
| 3   | Source code                       | Git repository      | [Date]      |
| 4   | Unit tests + coverage report      | CI artifact         | [Date]      |
| 5   | MISRA compliance report           | CI artifact         | [Date]      |
| 6   | Test report                       | Markdown / PDF      | [Date]      |
| 7   | Release package                   | Git tag + artifacts | [Date]      |

## 5. Milestones

| Milestone                | Date        | Criterion                                  |
|--------------------------|-------------|--------------------------------------------|
| Project start            | [Date]      | PID approved                               |
| Requirements complete    | [Date]      | All requirements reviewed                  |
| Architecture complete    | [Date]      | Architecture reviewed and approved         |
| Code complete            | [Date]      | Implementation finished, tests green       |
| Verification complete    | [Date]      | Coverage targets met, MISRA compliant      |
| Release                  | [Date]      | All exit criteria met                      |

## 6. Risks (initial)

| ID   | Risk                             | Probability | Impact  | Action                          |
|------|----------------------------------|-------------|---------|---------------------------------|
| R-01 | [Risk description]               | [H/M/L]     | [H/M/L] | [Mitigation]                    |
| R-02 | [Risk description]               | [H/M/L]     | [H/M/L] | [Mitigation]                    |

## 7. Roles involved

| Role                     | Person / organisation  | Responsibility                    |
|--------------------------|------------------------|-----------------------------------|
| Project manager          | Stefan Lohmaier        | Overall responsibility            |
| Software developer       | Stefan Lohmaier        | Implementation, unit tests        |
| QA responsible           | [Name / external]      | QA activities, audits             |
| Safety responsible       | [Name / external]      | ISO 26262 compliance              |
| Reviewer                 | [Name / external]      | Code and document reviews         |
| Client                   | [Name]                 | Requirements, acceptance          |

## 8. Approval

| Role                | Name                | Date        | Signature / Gitea reference   |
|---------------------|---------------------|-------------|-------------------------------|
| Contractor          | Stefan Lohmaier     | [Date]      |                               |
| Client              | [Name]              | [Date]      |                               |

---

*Changes to this document are versioned in the Gitea wiki.*
