Skip to content

feat(governance): add source traceability fields and Bats test infrastructure#19

Merged
desek merged 5 commits intomainfrom
dev/CR-0011-source-trace
Mar 9, 2026
Merged

feat(governance): add source traceability fields and Bats test infrastructure#19
desek merged 5 commits intomainfrom
dev/CR-0011-source-trace

Conversation

@desek
Copy link
Owner

@desek desek commented Mar 9, 2026

Summary

Implements CR-0011 (source-branch/source-commit traceability fields) and CR-0013 (Bats test infrastructure).

CR-0011: Source Traceability

  • Added source-branch and source-commit frontmatter fields to CR and ADR templates
  • Updated SKILL.md checklists with source traceability requirements
  • Added Source Traceability sections to cr-guide.md and adr-guide.md

CR-0013: Bats Test Infrastructure

  • Added bats dependency to mise.toml
  • Created tests/governance/test_helpers/setup.bash helper
  • Created tests/governance/test_cr_template.bats (2 tests)
  • Created tests/governance/test_adr_template.bats (2 tests)
  • Added .github/workflows/test.yml CI workflow targeting PRs to main

Verification

  • All 4 governance template tests pass via npx bats --recursive tests/
  • Copyright headers present on all new files
  • CI workflow triggers on pull requests to main

desek and others added 5 commits March 9, 2026 15:06
… cases

- Add item 4 'Multi-CR branch coordination' to the enables list in Motivation and Background
- Add item 5 'Known-unknowns management' to the enables list in Motivation and Background
- Add two new bullet points to Change Drivers covering multi-CR sequential consistency and CR size concerns

Co-authored-by: Junie <junie@jetbrains.com>
… fields (phase 1)

- Add source-branch and source-commit frontmatter fields to CR template
- Add SOURCE TRACEABILITY section (section 8) to CR template guidelines
- Add source-branch and source-commit frontmatter fields to ADR template
- Update SKILL.md workflow checklists with traceability capture steps
- Add Source Traceability documentation section to cr-guide.md
- Add Source Traceability documentation section to adr-guide.md

Co-authored-by: Junie <junie@jetbrains.com>
…e CR-0011

- Created docs/cr/CR-0013-bats-test-infrastructure.md (424 lines) proposing Bats test infrastructure and governance template validation tests deferred by CR-0011
- Updated CR-0011 status from proposed to implemented with date 2026-03-09
- Updated docs/llms.txt with CR-0013 entry

Co-authored-by: Junie <junie@jetbrains.com>
…ification

Co-authored-by: Junie <junie@jetbrains.com>
…late tests

- Add npm:bats to mise.toml for test runner dependency
- Create tests/governance/test_helpers/setup.bash with path resolution helpers
- Create tests/governance/test_cr_template.bats with source-branch and source-commit validation
- Create tests/governance/test_adr_template.bats with source-branch and source-commit validation
- Create .github/workflows/test.yml to run bats tests on PRs targeting main
- All 4 tests pass with bats tests/ --recursive
@desek desek merged commit 7f1eed5 into main Mar 9, 2026
2 checks passed
@desek desek deleted the dev/CR-0011-source-trace branch March 9, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant