This repository holds a first draft of a GovStack specification for Adapters: software components that let an existing software product offer the interface of a GovStack specification without being rewritten.
It casts the adapter concept of the GovStack Architecture 1.0.0 (chapter 6.1, Adaptors) and the wiki page Adaptor Concept (2023) into the structure of bb-template (branch beta/2.0) and the Specification Framework (branch feat/functionalities_extensions_capabilities), following the model of bb-file-management v0.6.
An Adapter is bound to one Target Specification (the GovStack specification whose API it exposes) and one Adapted Product (the existing software it fronts). It is assessed twice: the Adapter and product together must pass the Target Specification's own tests for every operation the Adapter declares (EXP-1), and the Adapter on its own must meet this specification. This specification does not care whether the Adapter is custom code or a configured off-the-shelf platform. It cares that the Adapter exposes the contract exactly, translates without losing or inventing data, fails in the Target Specification's terms, does not weaken access control, declares its coverage and gaps, and can be traced, reviewed and tested.
.
├── metadata.yml # name, URN, capabilities, extensions
├── authors.yml
├── toc.yml
├── CHANGELOG.md
├── introduction
│ ├── purpose.md # value, capabilities, place in larger systems
│ ├── scope.md # subject, two-part conformance, covered, not covered
│ ├── technical_overview.md # market assessment, functionalities, core and extensions, actors, interfaces
│ ├── terminology.yml
│ └── references.md
├── requirements # one file per functionality; requirements in YAML front matter
│ ├── contract-exposure.md # core (Class 1)
│ ├── data-translation.md # core (Class 2)
│ ├── error-translation.md # core
│ ├── access-mediation.md # core
│ ├── adapter-description.md # core
│ ├── traceability.md # core
│ ├── mapping-management.md # core
│ ├── response-composition.md # Response Composition extension (Class 3)
│ ├── event-bridging.md # Event Bridging extension
│ └── tenant-routing.md # Tenant Routing extension
└── resources
├── api.yml # the Adapter's own small API: descriptor and health
├── implementation-guide.md # when to use an Adapter, ways to build one, AI-assisted build sequence
├── examples.md # HL7 registry, composed read, DMS
└── open-questions.md # including whether the BB format fits| Part | Functionalities | REQUIRED | RECOMMENDED |
|---|---|---|---|
| Core | 7 | 32 | 14 |
| Response Composition extension | 1 | 2 | 0 |
| Event Bridging extension | 1 | 5 | 0 |
| Tenant Routing extension | 1 | 3 | 1 |
| Architecture 1.0.0 | This draft |
|---|---|
| Class 1: URL rewriting | Core, Contract Exposure |
| Class 2: payload mapping | Core, Data Translation and Error Translation |
| Class 3: synchronous one-to-many calls | Response Composition extension |
| Adaptors are synchronous; complex or async work goes to Workflow | EXP-6, EXP-8, ERR-5 |
| Adaptors are product-specific; no universal adaptors | Scope, Subject and applicability |
| Adaptors should not be used for outbound requests | Kept, with one argued exception (Event Bridging); see open questions |
- Requirement numbers. All requirements are
DRAFTwith an emptyid. A working label (EXP-1, MAP-1, ...) is kept as a YAML comment above each requirement, as inbb-file-managementv0.6. - Framework fields. Functionality files use
description,realises,conformance,extension,interactionandcontractfrom the Specification Framework branch above.mutabilityis not yet set. - Contracts elsewhere. Most
SERVICE_APIrequirements are exercised through the Target Specification's API, so they name acontractand leaveapi_operation_idempty. Only the descriptor and health operations live inresources/api.yml. - No product names in the introduction or requirements. Kinds of software are named in the market assessment and the implementation guide.
- Not yet written.
testfields, mutability, CFR requirement numbers.