ONB-03 · Artifact-aware classifier / auto-detection (Tramiton detect handoff) #121

Closed
opened 2026-07-10 08:34:42 +00:00 by sharang · 1 comment
Owner

Part of #118.

Context

Users should not have to hand-classify targets. Given the ingested artifacts, infer the target type + recommended scans — mirroring Tramiton's table-driven detect.

Scope

  • Classifier that maps artifacts → likely TargetType + discovered facts (languages, build system, frameworks, package manifests, MCU/board for firmware).
  • Firmware / bare-metal / RTOS / Yocto: hand off to Tramiton detect (provider/BuildPlan) for build-system + toolchain + target inference.
  • PLC/SPS: detect PLCopen XML / ST project structure (ties to CS-E1 parser).
  • Source/mobile/web/backend/desktop: language + build-system + framework fingerprinting (reuse existing SBOM/lint language detection where possible).
  • Output a confidence-ranked classification the wizard can confirm/override.

Acceptance criteria

  • Given a fixture per target type, classifier returns the correct type as top candidate.
  • Firmware fixtures route through Tramiton detect and surface MCU/build facts.
  • Ambiguous inputs return ranked candidates rather than a wrong single answer.

Depends on

ONB-01, ONB-02. Coordinates with Tramiton (tramiton-core detect) and CS-E1.

Part of #118. ## Context Users should not have to hand-classify targets. Given the ingested artifacts, infer the target type + recommended scans — mirroring Tramiton's table-driven `detect`. ## Scope - Classifier that maps artifacts → likely `TargetType` + discovered facts (languages, build system, frameworks, package manifests, MCU/board for firmware). - Firmware / bare-metal / RTOS / Yocto: hand off to **Tramiton** `detect` (provider/BuildPlan) for build-system + toolchain + target inference. - PLC/SPS: detect PLCopen XML / ST project structure (ties to CS-E1 parser). - Source/mobile/web/backend/desktop: language + build-system + framework fingerprinting (reuse existing SBOM/lint language detection where possible). - Output a confidence-ranked classification the wizard can confirm/override. ## Acceptance criteria - Given a fixture per target type, classifier returns the correct type as top candidate. - Firmware fixtures route through Tramiton detect and surface MCU/build facts. - Ambiguous inputs return ranked candidates rather than a wrong single answer. ## Depends on ONB-01, ONB-02. Coordinates with Tramiton (`tramiton-core` detect) and CS-E1.
sharang added this to the Onboarding v1 milestone 2026-07-10 08:34:42 +00:00
sharang added the enhancementonboarding labels 2026-07-10 08:34:42 +00:00
Author
Owner

Triage 2026-08-31 (status sweep against main @ 0834547). Done: compliance-agent/src/classify/ — language heuristics + FirmwareDetector → tramiton detect (MCU/board/arch facts), ranked Classification, exposed via POST /targets/{id}/detect.

Triage 2026-08-31 (status sweep against main @ 0834547). Done: `compliance-agent/src/classify/` — language heuristics + `FirmwareDetector` → tramiton detect (MCU/board/arch facts), ranked `Classification`, exposed via `POST /targets/{id}/detect`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#121