How piyenghar/assurancedemo_opencode-en50128 works
This is a frozen OpenCode-based EN 50128 railway software development platform, demonstrated through a SIL 3 train-door-control project. Its main workflow starts with lifecycle planning, coordinates phase work through specialized agents, produces and checks lifecycle deliverables, and advances through gated V-Model phases. Major supporting capabilities include traceability and workflow/baseline management, MC/DC analysis and evidence, and standards-PDF conversion. The README documents the overall workflow; sampled tool excerpts and the source index support only selected internal tool relationships.
Main entry points: mcdc_analyzer.py MC/DC Analyzer · cod.md Lifecycle Authority · pm.md Phase Coordinator · coverage_tracker.py Coverage Tracker
Components 21
Agent Coordination
- Lifecycle Authority
.opencode/agents/cod.md - Phase Coordinator
.opencode/agents/pm.md - Specialist Agents
.opencode/agents - EN 50128 Skills
.opencode/skills
Lifecycle Governance
- Lifecycle Activities
activities - Deliverable Catalog
deliverables - Deliverable Loader
tools/deliverables/loader.py - Project Deliverables
.workflow/documents - Workflow and Gates
tools/workflow_manager.py - Traceability Manager
tools/traceability_manager.py
Engineering Assurance
- C Source Inputs
deliverables/implementation/C-Module-Template.c - MC/DC Analyzer
tools/mcdc/mcdc_analyzer.py - C Expression Parser
tools/mcdc/c_parser.py - MC/DC Engine
tools/mcdc/mcdc_engine.py - Coverage Tracker
tools/mcdc/coverage_tracker.py - MC/DC Evidence
tools/mcdc/report_gen.py - Test Results
Engineering Utilities
- Standards Converter
tools/pdf-conversion/pdf_to_markdown.py - Table Formatter
tools/pdf-conversion/table_formatter.py - Standards PDFs
std
Other components
- OpenCode User
Connections 19
- OpenCode User → Lifecycle Authority: plans lifecycle
README.md - OpenCode User → Phase Coordinator: executes phases
README.md - Lifecycle Authority → Lifecycle Activities: reads lifecycle
README.md - Phase Coordinator → Specialist Agents: coordinates work
README.md - Specialist Agents → EN 50128 Skills: uses skills
README.md - Phase Coordinator → Project Deliverables: produces deliverables
README.md - Lifecycle Authority → Workflow and Gates: checks gates
- Lifecycle Activities → Deliverable Catalog: maps phases
README.md - Deliverable Loader → Deliverable Catalog: loads definitions
tools/deliverables/loader.py - OpenCode User → Traceability Manager: validates links
- C Source Inputs → MC/DC Analyzer: supplies C files
tools/mcdc/mcdc_analyzer.py - MC/DC Analyzer → C Expression Parser: extracts expressions
tools/mcdc/mcdc_analyzer.py - MC/DC Analyzer → MC/DC Engine: computes vectors
tools/mcdc/mcdc_analyzer.py - MC/DC Analyzer → MC/DC Evidence: writes analysis
tools/mcdc/mcdc_analyzer.py - MC/DC Analyzer → Coverage Tracker: measures coverage
tools/mcdc/mcdc_analyzer.py - Coverage Tracker → Test Results: consumes results
tools/mcdc/coverage_tracker.py - Coverage Tracker → MC/DC Evidence: provides coverage
tools/mcdc/report_gen.py - Standards Converter → Standards PDFs: converts PDFs
tools/pdf-conversion/pdf_to_markdown.py - Standards Converter → Table Formatter: formats tables
tools/pdf-conversion/pdf_to_markdown.py