Architecture ADR Workflow.md
View source on GitHub ↗
ADR Workflow
This document defines the Architecture Decision Record (ADR) process used for architecture-impacting changes in VulnParse-Pin (Apache-2.0).
Purpose
Use ADRs to make major architectural and security boundary decisions explicit, reviewable, and historically traceable.
An ADR is required when a change alters one or more core seams:
- Parser detection, streaming reader, or XML/archive security behavior
- DuckDB
.vpp.dbschema (schema.sql), canonical identity (aid_v2_/fid_v2_), or cross-scanner deduplication - Pass pipeline contracts (
run_v2_duckdb_pipeline), scoring/triage profiles (Scoring@3.0,Triage@2.0), orDiffEnginegate semantics - Enrichment orchestration, HMAC cache integrity, or CVSS provenance precedence
- Output schemas (
RunManifest,assets.schema.json,decisions.schema.json, Dossier/Roadmap contracts) - Runtime security defaults (PFH,
_UMASK_LOCK, read-onlyvpp verify, clean-roomApache-2.0dependency boundaries)
ADR Lifecycle
- Draft: Create a new ADR from ADR Template before implementation starts.
- Review: Link the ADR in the PR alongside the Architecture Review Checklist.
- Accept or reject: Maintainers record the final status.
- Implement: Code, schemas, and tests must align with the accepted ADR.
- Supersede or annotate: Never overwrite historical decisions silently; either create a superseding ADR or add a dated
v2.x Statusnote referencing subsequent evolution.
File Location and Naming
Store ADRs in documentation/docs/adr/ using zero-padded numbering:
ADR-0001-config-seam.mdADR-0002-enrichment-seam.md
Do not renumber existing ADRs.
Required ADR Sections
- Status (
Proposed,Accepted,Rejected,Superseded) - Date
- Context and problem statement
- Decision
- Alternatives considered
- Consequences (positive and negative)
- Compatibility & licensing impact (including clean-room
Apache-2.0dependency compliance) - Test and rollout plan
- Rollback strategy
Use the template at ADR Template.
When ADR Is Not Required
- Pure bug fixes that do not alter architecture, schema, or security contracts
- Internal refactors preserving behavior and contract semantics
- Documentation-only updates without behavior changes
When uncertain, default to opening a brief ADR.