MVP-2.5 · TIA onboarding, docs, synthetic fixtures + golden baseline #279

Open
opened 2026-09-20 20:18:26 +00:00 by sharang · 0 comments
Owner

Goal

Make TIA a selectable target type end to end — classifier, wizard, documented export procedure — and lock the behaviour down with fixtures and a golden baseline so the parsers can be developed and regression-tested before any customer export exists.

There is no customer data yet (decided 2026-09-20), so the fixtures are synthetic: the TIA fixtures are hand-written from the documented Openness export shapes, CODESYS comes from the public Apache-2.0 Proemion/codesys-examples archives, and the Firmwerk bundle is generated with the Firmwerk CLI over crates/firmwerk-repro/tests/fixtures/blinky-make (MVP-2.6). Every parser must be tolerant: unknown blocks, languages and attributes are recorded as unsupported on the scan run instead of failing, so coverage gaps become visible rather than silent. Real exports replace the fixtures when a customer arrives.

What to change

  • A TIA PlcFormat in the classifier and the onboarding wizard (compliance-core/src/models/onboarding.rs, compliance-dashboard/src/pages/onboarding.rs).
  • A docs/guide/siemens-tia.md export how-to (how to produce the Openness export a customer should send us).
  • A synthetic TIA fixture + golden baseline in fixtures/demo-targets/.

Acceptance

  • Uploading the synthetic TIA export through the wizard classifies as TIA and runs the PLC path.
  • The golden baseline pins expected rule_ids, component counts, CPE/CVE hits and control_refs.
  • Unsupported blocks/languages are surfaced on the scan run with the offending file, and never abort the run.
  • docs/guide/siemens-tia.md is complete enough for a customer to follow unaided.
  • The fixture is picked up by the nightly regression (#188).
## Goal Make TIA a selectable target type end to end — classifier, wizard, documented export procedure — and lock the behaviour down with fixtures and a golden baseline so the parsers can be developed and regression-tested before any customer export exists. **There is no customer data yet (decided 2026-09-20), so the fixtures are synthetic:** the TIA fixtures are hand-written from the documented Openness export shapes, CODESYS comes from the public Apache-2.0 `Proemion/codesys-examples` archives, and the Firmwerk bundle is generated with the Firmwerk CLI over `crates/firmwerk-repro/tests/fixtures/blinky-make` (MVP-2.6). Every parser must be tolerant: unknown blocks, languages and attributes are **recorded as `unsupported` on the scan run instead of failing**, so coverage gaps become visible rather than silent. Real exports replace the fixtures when a customer arrives. ## What to change - A TIA `PlcFormat` in the classifier and the onboarding wizard (`compliance-core/src/models/onboarding.rs`, `compliance-dashboard/src/pages/onboarding.rs`). - A `docs/guide/siemens-tia.md` export how-to (how to produce the Openness export a customer should send us). - A synthetic TIA fixture + golden baseline in `fixtures/demo-targets/`. ## Acceptance - [ ] Uploading the synthetic TIA export through the wizard classifies as TIA and runs the PLC path. - [ ] The golden baseline pins expected `rule_id`s, component counts, CPE/CVE hits and `control_refs`. - [ ] Unsupported blocks/languages are surfaced on the scan run with the offending file, and never abort the run. - [ ] `docs/guide/siemens-tia.md` is complete enough for a customer to follow unaided. - [ ] The fixture is picked up by the nightly regression (#188).
sharang added this to the Production MVP milestone 2026-09-20 20:18:26 +00:00
sharang added the onboardingenhancement labels 2026-09-20 20:18:26 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#279