Skip to content

refactor: update RAM RequirementArtifactType taxonomy#56

Merged
Washingtonwei merged 1 commit into
mainfrom
refactor/ram-artifact-type-taxonomy
Jun 7, 2026
Merged

refactor: update RAM RequirementArtifactType taxonomy#56
Washingtonwei merged 1 commit into
mainfrom
refactor/ram-artifact-type-taxonomy

Conversation

@Washingtonwei

Copy link
Copy Markdown
Owner

@

Summary

Updates the RAM RequirementArtifactType taxonomy: removes BUSINESS_RISK (consolidated into RISK) and adds a new DEPENDENCY type.

Changes

  • RequirementArtifactType — drop BUSINESS_RISK, add DEPENDENCY. Persisted via @Enumerated(EnumType.STRING), so the reordering is safe (no ordinal dependency).
  • ArtifactKeyPrefix — map RISK -> RSK, DEPENDENCY -> DEP; remove the old BR prefix.
  • frontend/src/apis/ram/types.ts — sync REQUIREMENT_ARTIFACT_TYPES with the backend enum (content + order).
  • V4__update_requirement_artifact_type_taxonomy.sql — new Flyway migration altering the requirement_artifact and artifact_key_sequence enum columns for prod/staging (column attributes preserved). No data migration needed: prod/staging hold no BUSINESS_RISK or RISK rows.
  • VISION_SCOPE.yml — rename the BUSINESS_RISKS section to RISKS and align example identifiers with the key prefixes (RSK-, ASM-, DEP-).

Notes

  • Dev profile uses ddl-auto: create, so dev/integration tests build the schema from the entity; the V4 migration is the source of truth for prod/staging (ddl-auto: none).
  • V2__ram_schema.sql is intentionally left untouched (immutable applied migration).
  • All backend tests pass locally.

🤖 Generated with Claude Code
@

refactor: update RAM RequirementArtifactType taxonomy

Remove BUSINESS_RISK (consolidated into RISK) and add DEPENDENCY.

- RequirementArtifactType: drop BUSINESS_RISK, add DEPENDENCY
- ArtifactKeyPrefix: map RISK->RSK, DEPENDENCY->DEP, remove BR
- frontend types.ts: sync REQUIREMENT_ARTIFACT_TYPES with backend enum
- V4 Flyway migration: alter requirement_artifact and
  artifact_key_sequence enum columns for prod/staging
- VISION_SCOPE.yml: rename BUSINESS_RISKS section to RISKS and
  align example identifiers with key prefixes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@
@Washingtonwei
Washingtonwei merged commit 3a38e61 into main Jun 7, 2026
2 checks passed
@Washingtonwei
Washingtonwei deleted the refactor/ram-artifact-type-taxonomy branch June 7, 2026 00:14
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