Repository navigation
Open
Labels
ai-proposalProposed by the AI idea scout; needs human reviewenhancementNew feature or requestpeer-reviewSurfaced by external AI/peer review of the repopriority/P1High priority — V1.0 foundation
Description
Motivation
Several v0.1.0 schema features (structured architecture, structured attackSteps, structured dataFlows, AFR inputFactors, impact categories, CAL/TAF objects) exist in the schema but are not demonstrated in examples/rdx-xml-comprehensive.xml or the JSON comprehensive example, which still lean on legacy string forms. Adopters following the examples will skip the newer capabilities entirely. The XSD/JSON parity work is partly invisible because no test vector currently exercises it end-to-end.
Proposed change
- Rewrite
examples/rdx-xml-comprehensive.xmland the JSON counterpart so every supported object/field type is exercised at least once — including:- structured
architecturewith components + dataFlows + trustZones - structured
attackStepswithtype+ references (after Make structured attackSteps the default and link to CVE/CWE/CAPEC/ATT&CK #48 lands) - structured assumptions (after Deepen architecture model (interfaces, attack surface, env variants, hierarchy, trust zones) and structure assumptions #49 lands)
riskLevels,riskThresholdMatrix, cryptographichashes, AFRinputFactors, impactcategories,componentIds- CAL assurance levels, CAL assessments, TAF assessments, and the new CAL relationship types
- structured
- Add an XSD coverage report to
tools/validate.shthat lists which complexType / element / attribute names are exercised by the comprehensive example and flags any unused ones in CI output. - Document the comprehensive example in
CLAUDE.mdandREADME.mdas the canonical "what does a fully populated RDX document look like" reference.
References
- AI peer review, section 4 closing note ("the comprehensive example still uses a simple architecture string, even though the schema supports structured architecture")
CLAUDE.md— schema parity note ("XML coverage example is the XSD coverage/test vector")
Acceptance criteria
-
examples/rdx-xml-comprehensive.xmland its JSON twin validate AND exercise every schema feature listed above -
tools/validate.shprints (or CI step displays) an XSD coverage summary - README and CLAUDE.md point to the comprehensive example as the canonical reference
- Depends on Make structured attackSteps the default and link to CVE/CWE/CAPEC/ATT&CK #48 and Deepen architecture model (interfaces, attack surface, env variants, hierarchy, trust zones) and structure assumptions #49 landing first for structured attackSteps/architecture/assumptions
Surfaced by external AI peer review; see chat transcript for full review text.
Metadata
Metadata
Assignees
Labels
ai-proposalProposed by the AI idea scout; needs human reviewenhancementNew feature or requestpeer-reviewSurfaced by external AI/peer review of the repopriority/P1High priority — V1.0 foundation
Activity