oscal-compass/compliance-trestle

Rules: isolate opinionated trestle Rules support into separate module(s) #1880

開放

#1,880 建立於 2025年5月21日

 (6 則留言) (0 個反應) (1 位負責人)Python (103 個分叉)auto 404
event/slamexempt-from-stalehelp wantedpythonrefactor

倉庫指標

星標
 (264 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Issue description / feature objectives

There is no formal support for rules and checks in OSCAL itself. However, to support automation such support is necessary and trestle has used existing OSCAL features (namely Properties) to embody Rules support. The initial implementation for Rules has been embedded in trestle tasks and core modules. Ideally, the code for Rules support should be gathered into one or a few modules comprising an API that the task and core modules can employ.

  • Identify the Rules code throughout the trestle code base
  • Create one or more modules to contain the Rules code
  • Relocate the Rules implementation code from the task and core modules into the Rule module(s)
  • Update the task and core modules to employ the Rules API

Caveats / Assumptions

  • Insure all existing test cases continue to pass

Completion Criteria

  • Add new test cases to assure 100% coverage for new Rules module(s)

貢獻者指南