adr-architecture-kit 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adr_architecture_kit-0.1.0/LICENSE +201 -0
- adr_architecture_kit-0.1.0/PKG-INFO +184 -0
- adr_architecture_kit-0.1.0/README.md +147 -0
- adr_architecture_kit-0.1.0/pyproject.toml +81 -0
- adr_architecture_kit-0.1.0/setup.cfg +4 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/PKG-INFO +184 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/SOURCES.txt +177 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/dependency_links.txt +1 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/entry_points.txt +2 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/requires.txt +14 -0
- adr_architecture_kit-0.1.0/src/adr_architecture_kit.egg-info/top_level.txt +1 -0
- adr_architecture_kit-0.1.0/src/adr_kit/__init__.py +10 -0
- adr_architecture_kit-0.1.0/src/adr_kit/cli/__init__.py +5 -0
- adr_architecture_kit-0.1.0/src/adr_kit/cli/main.py +1629 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/__init__.py +143 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/__init__.py +106 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/adr_ir_fragment_emitter.py +464 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/adr_ir_fragment_rendering.py +64 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/common.py +32 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/emitters.py +119 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/graph_emitter.py +36 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/graph_rendering.py +98 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/manifest_emitter.py +30 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/manifest_rendering.py +545 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/markdown_emitter.py +19 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/markdown_rendering.py +160 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/projection.py +76 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/backend/registry_emitter.py +52 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/config.py +31 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/diagnostics.py +84 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/driver.py +491 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/frontend/__init__.py +34 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/frontend/builder.py +64 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/frontend/parser.py +91 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/frontend/support.py +80 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/__init__.py +24 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/arch_model.py +32 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/entity_graph.py +85 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/identity.py +16 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/parsed_corpus.py +17 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/rel_graph.py +64 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/ir/unresolved_list.py +38 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/__init__.py +63 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/derive_relationships.py +252 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/detect_unresolved.py +53 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/extract_logical_entities.py +195 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/extract_physical_entities.py +150 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/fixed_order.py +154 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/resolve_invariant_canonical.py +106 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/score_completeness.py +27 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/passes/validate_bundle.py +119 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/pipeline.py +484 -0
- adr_architecture_kit-0.1.0/src/adr_kit/compiler/registry_bundle.py +228 -0
- adr_architecture_kit-0.1.0/src/adr_kit/decorators.py +53 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/__init__.py +19 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/_yaml_support.py +18 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/architecture_index_generator.py +306 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/entity_registry_generator.py +377 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/logical_generator.py +11 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/manifest_generator.py +104 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/physical_component_generator.py +11 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/physical_system_generator.py +11 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/source_adr_generator.py +101 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/system_overview_generator.py +313 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/views/__init__.py +5 -0
- adr_architecture_kit-0.1.0/src/adr_kit/generators/views/markdown.py +92 -0
- adr_architecture_kit-0.1.0/src/adr_kit/integrity/__init__.py +46 -0
- adr_architecture_kit-0.1.0/src/adr_kit/integrity/artifacts.py +40 -0
- adr_architecture_kit-0.1.0/src/adr_kit/integrity/core.py +182 -0
- adr_architecture_kit-0.1.0/src/adr_kit/integrity/legacy_registry.py +32 -0
- adr_architecture_kit-0.1.0/src/adr_kit/integrity/validation.py +166 -0
- adr_architecture_kit-0.1.0/src/adr_kit/migrators/__init__.py +11 -0
- adr_architecture_kit-0.1.0/src/adr_kit/migrators/canonical_id_normalizer.py +227 -0
- adr_architecture_kit-0.1.0/src/adr_kit/migrators/e_adr_classification.py +154 -0
- adr_architecture_kit-0.1.0/src/adr_kit/migrators/e_adr_parser.py +198 -0
- adr_architecture_kit-0.1.0/src/adr_kit/migrators/markdown_to_yaml.py +801 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/__init__.py +311 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/architecture_discovery.py +225 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/common.py +164 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/decision_ledger.py +42 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/entity_registry.py +78 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/implementation_attribution.py +49 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/invariant.py +64 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/logical_adr.py +138 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/manifest.py +180 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/normalized_architecture_model.py +281 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/objection_override.py +35 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/physical_adr.py +186 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/physical_component_adr.py +313 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/physical_system_adr.py +175 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/project_metadata.py +193 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/remediation_ledger.py +48 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/requirements_snapshot.py +54 -0
- adr_architecture_kit-0.1.0/src/adr_kit/models/steelman_review.py +40 -0
- adr_architecture_kit-0.1.0/src/adr_kit/parser/__init__.py +5 -0
- adr_architecture_kit-0.1.0/src/adr_kit/parser/yaml_parser.py +627 -0
- adr_architecture_kit-0.1.0/src/adr_kit/pathing.py +25 -0
- adr_architecture_kit-0.1.0/src/adr_kit/projection.py +93 -0
- adr_architecture_kit-0.1.0/src/adr_kit/repository/__init__.py +5 -0
- adr_architecture_kit-0.1.0/src/adr_kit/repository/architecture_repository.py +397 -0
- adr_architecture_kit-0.1.0/src/adr_kit/repository/registry_loader.py +141 -0
- adr_architecture_kit-0.1.0/src/adr_kit/repository/registry_paths.py +41 -0
- adr_architecture_kit-0.1.0/src/adr_kit/repository/semantic_adapter.py +218 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/__init__.py +13 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/contract_validation.py +317 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/implementation_attribution_validation.py +104 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/kernel_contract.py +18 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/repository_schema_generator.py +72 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/__init__.py +0 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-common.schema.json +282 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-logical.schema.json +402 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-physical-base.schema.json +218 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-physical-component.schema.json +516 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-physical-system.schema.json +201 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/adr-physical.schema.json +390 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/invariant.schema.json +149 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/manifest.schema.json +416 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/project-metadata.schema.json +322 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_0/types.schema.json +121 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/__init__.py +0 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/architecture-index.schema.json +58 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/decision-ledger.schema.json +80 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/entity-registry.schema.json +125 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/implementation-attribution-evidence.schema.json +61 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/normalized-entity-registry.schema.json +79 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/objection-override.schema.json +71 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/relationship-registry.schema.json +38 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/remediation-ledger.schema.json +46 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/requirements-snapshot.schema.json +108 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/steelman-review.schema.json +94 -0
- adr_architecture_kit-0.1.0/src/adr_kit/schema/v1_1/unresolved-registry.schema.json +52 -0
- adr_architecture_kit-0.1.0/src/adr_kit/scope/__init__.py +5 -0
- adr_architecture_kit-0.1.0/src/adr_kit/scope/resolver.py +297 -0
- adr_architecture_kit-0.1.0/src/adr_kit/templates/adr-logical.md.jinja2 +215 -0
- adr_architecture_kit-0.1.0/src/adr_kit/templates/adr-physical.md.jinja2 +201 -0
- adr_architecture_kit-0.1.0/src/adr_kit/templates/system-overview.md.jinja2 +178 -0
- adr_architecture_kit-0.1.0/src/adr_kit/validators/__init__.py +42 -0
- adr_architecture_kit-0.1.0/src/adr_kit/validators/adr_validator.py +892 -0
- adr_architecture_kit-0.1.0/src/adr_kit/validators/entity_validator.py +215 -0
- adr_architecture_kit-0.1.0/src/adr_kit/validators/runtime_hygiene.py +161 -0
- adr_architecture_kit-0.1.0/src/adr_kit/validators/system_overview_validator.py +95 -0
- adr_architecture_kit-0.1.0/tests/test_adr_ir_fragment_compiler.py +488 -0
- adr_architecture_kit-0.1.0/tests/test_adr_validator.py +547 -0
- adr_architecture_kit-0.1.0/tests/test_architecture_index_generator.py +963 -0
- adr_architecture_kit-0.1.0/tests/test_architecture_ir_publication.py +76 -0
- adr_architecture_kit-0.1.0/tests/test_architecture_repository.py +369 -0
- adr_architecture_kit-0.1.0/tests/test_canonical_id_normalizer.py +151 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_builder.py +78 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_diagnostics.py +31 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_driver.py +879 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_frontend_parser.py +43 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_graph.py +103 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_pipeline.py +87 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_projection.py +165 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_registry_bundle.py +71 -0
- adr_architecture_kit-0.1.0/tests/test_compiler_rendering.py +84 -0
- adr_architecture_kit-0.1.0/tests/test_decorators.py +159 -0
- adr_architecture_kit-0.1.0/tests/test_entity_registry_generator.py +418 -0
- adr_architecture_kit-0.1.0/tests/test_entity_registry_schema.py +59 -0
- adr_architecture_kit-0.1.0/tests/test_entity_validator.py +148 -0
- adr_architecture_kit-0.1.0/tests/test_generated_docs_integrity.py +266 -0
- adr_architecture_kit-0.1.0/tests/test_implementation_attribution_schema.py +63 -0
- adr_architecture_kit-0.1.0/tests/test_implementation_attribution_validation.py +162 -0
- adr_architecture_kit-0.1.0/tests/test_kernel_contract_schemas.py +43 -0
- adr_architecture_kit-0.1.0/tests/test_kernel_contract_validation.py +523 -0
- adr_architecture_kit-0.1.0/tests/test_kernel_schema_fixture_sync.py +28 -0
- adr_architecture_kit-0.1.0/tests/test_manifest_generator.py +88 -0
- adr_architecture_kit-0.1.0/tests/test_markdown_generator.py +78 -0
- adr_architecture_kit-0.1.0/tests/test_multi_scope_generator.py +162 -0
- adr_architecture_kit-0.1.0/tests/test_objection_override.py +155 -0
- adr_architecture_kit-0.1.0/tests/test_physical_component_adr.py +196 -0
- adr_architecture_kit-0.1.0/tests/test_physical_system_adr.py +134 -0
- adr_architecture_kit-0.1.0/tests/test_physical_system_generator.py +88 -0
- adr_architecture_kit-0.1.0/tests/test_runtime_hygiene.py +63 -0
- adr_architecture_kit-0.1.0/tests/test_schema_validation.py +210 -0
- adr_architecture_kit-0.1.0/tests/test_scope_resolver.py +325 -0
- adr_architecture_kit-0.1.0/tests/test_semantic_adapter.py +316 -0
- adr_architecture_kit-0.1.0/tests/test_source_generators.py +193 -0
- adr_architecture_kit-0.1.0/tests/test_system_overview_generator.py +52 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026-present Erik Gallmann
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: adr-architecture-kit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Authoring-time STE toolkit: validate structured ADR YAML, emit discovery outputs and Architecture IR fragments (ste-spec). Pre-1.0 Alpha.
|
|
5
|
+
Author: Erik Gallmann
|
|
6
|
+
Maintainer: Erik Gallmann
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://github.com/egallmann/adr-architecture-kit
|
|
9
|
+
Project-URL: Repository, https://github.com/egallmann/adr-architecture-kit
|
|
10
|
+
Keywords: architecture,adr,ste,decision-records,governance,architecture-decision-records
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Topic :: Software Development :: Documentation
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: pydantic>=2.0
|
|
24
|
+
Requires-Dist: pyyaml>=6.0
|
|
25
|
+
Requires-Dist: jsonschema>=4.0
|
|
26
|
+
Requires-Dist: jinja2>=3.1
|
|
27
|
+
Requires-Dist: click>=8.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
30
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
31
|
+
Requires-Dist: black>=23.0; extra == "dev"
|
|
32
|
+
Requires-Dist: ruff>=0.1; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
34
|
+
Requires-Dist: pip-audit>=2.7; extra == "dev"
|
|
35
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# ADR Architecture Kit
|
|
39
|
+
|
|
40
|
+
**ADR Architecture Kit** (`adr-architecture-kit`) is a Python toolkit for teams and integrators who maintain **Architecture Decision Records** as structured YAML. It parses and validates those sources, normalizes them into deterministic machine-queryable **repository discovery** outputs (indexes, registries, manifest), and can emit **ADR-derived Architecture IR** fragments that match the public contract defined in **`ste-spec`**.
|
|
41
|
+
|
|
42
|
+
Prose ADRs often go stale once written. Structured YAML keeps architecture as a **first-class maintained artifact**: explicit shapes and links preserve higher-fidelity intent for human review and for AI-assisted engineering, slowing drift and informal lossiness when decisions live only in narrative. Machine-readable discovery outputs and **Architecture IR** supply shared, queryable context for review and automation—grounding work in repository facts rather than inferring structure from incomplete prose; that reduces (it does not remove) the risk of speculative reasoning when assistants and engineers reason about the system at scale. Derived indexes, registries, and rendered documentation keep those views reproducible as the codebase matures. For how contracts split across related repositories, see [Who Owns What](#who-owns-what) below.
|
|
43
|
+
|
|
44
|
+
## Authoring boundary and AI orientation
|
|
45
|
+
|
|
46
|
+
`adr-architecture-kit` does not turn freeform conversation into architectural decisions by itself. It expects intent already expressed in **structured** inputs (canonical ADR YAML and related artifacts), then **validates** and **materializes** them into repository-native outputs—deterministic discovery bundles, rendered views, and ADR-derived Architecture IR aligned with **`ste-spec`**.
|
|
47
|
+
|
|
48
|
+
There is a deliberate **generation gap** between informal reasoning (including model-assisted chat) and **schema-conformant, placement-correct** STE ADRs. This repository mitigates that gap in two ways: structured drafts are checked by parsers and validators; and **[`SYSTEM-OVERVIEW.md`](SYSTEM-OVERVIEW.md)**—a **generated, AI-first orientation** artifact—gives assistants a canonical discovery path (authority order, scope rules, CLI and generator entry points, placement conventions) before they author or change ADRs. **`SYSTEM-OVERVIEW.md`** does not replace **`ste-spec`** doctrine; it orients work **in this repository** (regenerate with `adr generate-system-overview`; do not hand-edit the committed file).
|
|
49
|
+
|
|
50
|
+
**AI-assisted IDEs and coding agents** can be **guided with repository instructions and examples** to **draft** structured ADR inputs; this kit remains the **schema, validation, and materialization** boundary between accepted structured intent and committed canonical artifacts.
|
|
51
|
+
|
|
52
|
+
## Quick Start
|
|
53
|
+
|
|
54
|
+
Requires **Python 3.11+**. Installs the `adr` CLI and the `adr_kit` package.
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pip install adr-architecture-kit
|
|
58
|
+
|
|
59
|
+
adr --help
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
`adr --help` works from any directory after install. `adr validate` and `adr generate-architecture-index` are project-scoped commands: they require a resolvable project tree with `adrs/` and the expected project markers, or an explicit `--scope PATH`.
|
|
63
|
+
|
|
64
|
+
For a first end-to-end run, use a repository checkout with `adrs/` populated and follow [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md). The public example under [`examples/public-v1/`](examples/public-v1/) is included in that walkthrough.
|
|
65
|
+
|
|
66
|
+
## Minimal Example
|
|
67
|
+
|
|
68
|
+
A standalone public example lives under [`examples/public-v1/`](examples/public-v1/): one `ADR-L`, one `ADR-PS`, one `ADR-PC`, a minimal normalized discovery bundle, and an ADR-derived Architecture IR fragment file. The walkthrough links each asset.
|
|
69
|
+
|
|
70
|
+
Representative logical ADR source (trimmed from the public example):
|
|
71
|
+
|
|
72
|
+
```yaml
|
|
73
|
+
# adrs/logical/ADR-L-0001-public-example-logical.yaml (excerpt)
|
|
74
|
+
schema_version: "1.0"
|
|
75
|
+
adr_type: logical
|
|
76
|
+
id: ADR-L-0001
|
|
77
|
+
title: "Public Example Logical ADR"
|
|
78
|
+
status: accepted
|
|
79
|
+
capabilities:
|
|
80
|
+
- id: CAP-0001
|
|
81
|
+
name: Public Repository Onboarding
|
|
82
|
+
description: Explain the minimal public ADR to IR flow.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
From a checkout with `adrs/` populated, `adr generate-architecture-index` (with other generators as needed) materializes discovery outputs such as `adrs/index/architecture-index.yaml` and companion registries under `adrs/index/`.
|
|
86
|
+
|
|
87
|
+
## What It Does
|
|
88
|
+
|
|
89
|
+
- ADR schemas and frontmatter rules for canonical ADR artifacts
|
|
90
|
+
- Pydantic models, parsing, and validation for ADR and invariant sources
|
|
91
|
+
- Authoring-time normalization and deterministic repository discovery outputs
|
|
92
|
+
- Python API over compiled repository bundles (`ArchitectureRepository`, `NormalizedArchitectureModel`)
|
|
93
|
+
- ADR-to-Architecture-IR adapter logic for the public **`ste-spec`** contract
|
|
94
|
+
|
|
95
|
+
## Core Workflow
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
ADR sources and invariants
|
|
99
|
+
-> parse and validate
|
|
100
|
+
-> normalize into repository discovery outputs
|
|
101
|
+
-> expose repository-facing semantic boundary
|
|
102
|
+
-> optionally emit ADR-derived Architecture IR fragments
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Repository-local discovery outputs (derived; do not hand-edit adrs/index/* or manifest)
|
|
107
|
+
adr generate-architecture-index
|
|
108
|
+
adr generate-manifest
|
|
109
|
+
adr generate-rendered-docs
|
|
110
|
+
|
|
111
|
+
# Example publication path for ADR-derived IR fragments (schema: ste-spec; test mirror under contracts/)
|
|
112
|
+
adr build-ir-fragments
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Key Concepts
|
|
116
|
+
|
|
117
|
+
**Three data layers** — each has a distinct role:
|
|
118
|
+
|
|
119
|
+
1. **ADR source model** — Canonical YAML and invariants under `adrs/` are the authoring source of truth for this repository.
|
|
120
|
+
2. **Repository-normalized discovery bundle** — Deterministic outputs such as `adrs/index/*.yaml` and `adrs/manifest.yaml` for repo-local discovery; separate from the cross-repo Architecture IR contract. For the supported Python API, use `ArchitectureRepository` and `NormalizedArchitectureModel` (`ArchModel` is internal to the compiler, not a stable public interface).
|
|
121
|
+
3. **Public Architecture IR** — Defined in **`ste-spec`**; this kit emits conforming ADR-derived records without redefining that schema.
|
|
122
|
+
|
|
123
|
+
More detail: [architecture-ir-overview.md](docs/architecture-ir-overview.md).
|
|
124
|
+
|
|
125
|
+
**ADR taxonomy (quick reference)**
|
|
126
|
+
|
|
127
|
+
| Prefix | Role | Stability |
|
|
128
|
+
|--------|------|-------------|
|
|
129
|
+
| **ADR-L** | Conceptual architecture: capabilities, boundaries, contracts, invariants, decisions | Stable public v1 |
|
|
130
|
+
| **ADR-PS** | Physical-system: topology, integration patterns, high-level technology posture | Stable public v1 |
|
|
131
|
+
| **ADR-PC** | Physical-component: implementation-ready design, interfaces, identifiers | Stable public v1 |
|
|
132
|
+
| **ADR-P** | Legacy broad physical ADR | Compatibility; not preferred for new work |
|
|
133
|
+
| **ADR-V** | Vision / future-state exploration | Experimental; not stable v1 contract |
|
|
134
|
+
|
|
135
|
+
Full model: [adr-type-model.md](docs/adr-type-model.md).
|
|
136
|
+
|
|
137
|
+
## Who Owns What
|
|
138
|
+
|
|
139
|
+
- **`ste-handbook`** — Explanatory model, theory, teaching.
|
|
140
|
+
- **`ste-spec`** — Contracts, schemas, and the public cross-repo Architecture IR contract.
|
|
141
|
+
- **`adr-architecture-kit`** (this repo) — ADR encoding, authoring validation, repository discovery outputs, and IR adapter logic into **`ste-spec`**.
|
|
142
|
+
- **`ste-runtime`** — Runtime observation, evidence extraction, composition.
|
|
143
|
+
- **`ste-kernel`** — Admission and governance over compiled inputs.
|
|
144
|
+
|
|
145
|
+
Full split: [authority-boundary.md](docs/authority-boundary.md).
|
|
146
|
+
|
|
147
|
+
## Stability
|
|
148
|
+
|
|
149
|
+
This project is **pre-1.0 (Alpha)** on PyPI; surfaces may evolve until a **1.0** commitment. Trove classifiers match that posture.
|
|
150
|
+
|
|
151
|
+
- **Stable v1** — ADR v1.0 schemas, parser/validator behavior, discovery bundle role, supported Python API, IR adapter semantics with **`ste-spec`** owning the Architecture IR schema contract.
|
|
152
|
+
- **Draft** — v1.1 and evolving registry/IR adapter details; consume with care.
|
|
153
|
+
- **Experimental** — Vision ADRs, migrators, workspace boot examples; not a basis for long-term external dependencies.
|
|
154
|
+
|
|
155
|
+
Full breakdown: [public-surface-and-stability.md](docs/public-surface-and-stability.md).
|
|
156
|
+
|
|
157
|
+
## Documentation
|
|
158
|
+
|
|
159
|
+
### Public documentation
|
|
160
|
+
|
|
161
|
+
| Document | Description |
|
|
162
|
+
|----------|-------------|
|
|
163
|
+
| [authority-boundary.md](docs/authority-boundary.md) | Who owns what across `ste-handbook`, `ste-spec`, this kit, `ste-runtime`, and `ste-kernel` |
|
|
164
|
+
| [adr-type-model.md](docs/adr-type-model.md) | ADR taxonomy: `ADR-L`, `ADR-PS`, `ADR-PC`, legacy `ADR-P`, experimental `ADR-V` |
|
|
165
|
+
| [architecture-ir-overview.md](docs/architecture-ir-overview.md) | Three layers: ADR sources, repository discovery bundle, public Architecture IR |
|
|
166
|
+
| [public-surface-and-stability.md](docs/public-surface-and-stability.md) | Stable v1 vs draft vs experimental surfaces |
|
|
167
|
+
| [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md) | End-to-end flow with [`examples/public-v1/`](examples/public-v1/) |
|
|
168
|
+
|
|
169
|
+
### Contributor guides
|
|
170
|
+
|
|
171
|
+
| Document | Description |
|
|
172
|
+
|----------|-------------|
|
|
173
|
+
| [SYSTEM-OVERVIEW.md](SYSTEM-OVERVIEW.md) | Generated AI-first repo orientation (authority, workflows, CLI, generators); read before large changes |
|
|
174
|
+
| [contributors/tdd-workflow.md](docs/contributors/tdd-workflow.md) | TDD workflow for this codebase |
|
|
175
|
+
| [contributors/logical-adr-guide.md](docs/contributors/logical-adr-guide.md) | Writing logical ADRs |
|
|
176
|
+
| [contributors/physical-adr-guide.md](docs/contributors/physical-adr-guide.md) | Physical ADR families (`ADR-PS`, `ADR-PC`, legacy `ADR-P`) |
|
|
177
|
+
| [contributors/schema-guide.md](docs/contributors/schema-guide.md) | Long-form schema and validation notes |
|
|
178
|
+
| [contributors/placement-convention.md](docs/contributors/placement-convention.md) | Placement rules for ADRs, manifest, and index paths |
|
|
179
|
+
|
|
180
|
+
Also [CONTRIBUTING.md](CONTRIBUTING.md) and [schema/v1.0/README.md](schema/v1.0/README.md). **Where to start:** ADR authors — [adr-type-model.md](docs/adr-type-model.md), [schema/v1.0/README.md](schema/v1.0/README.md), [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md). Python or cross-repo IR consumers — [architecture-ir-overview.md](docs/architecture-ir-overview.md), [authority-boundary.md](docs/authority-boundary.md); code entry point [`architecture_repository.py`](src/adr_kit/repository/architecture_repository.py). Curated doc index: [docs/README.md](docs/README.md).
|
|
181
|
+
|
|
182
|
+
## Contributing
|
|
183
|
+
|
|
184
|
+
Contributions use **Test-Driven Development** (see [`PROJECT.yaml`](PROJECT.yaml), `ADR-L-0003`). Setup, quality gates, schema parity, governance, and PR flow are in [CONTRIBUTING.md](CONTRIBUTING.md). Authoring and placement guides live under [docs/contributors/](docs/contributors/). For authoring-time vs runtime artifact boundaries, see [AUTHORING-SYSTEM.md](AUTHORING-SYSTEM.md).
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# ADR Architecture Kit
|
|
2
|
+
|
|
3
|
+
**ADR Architecture Kit** (`adr-architecture-kit`) is a Python toolkit for teams and integrators who maintain **Architecture Decision Records** as structured YAML. It parses and validates those sources, normalizes them into deterministic machine-queryable **repository discovery** outputs (indexes, registries, manifest), and can emit **ADR-derived Architecture IR** fragments that match the public contract defined in **`ste-spec`**.
|
|
4
|
+
|
|
5
|
+
Prose ADRs often go stale once written. Structured YAML keeps architecture as a **first-class maintained artifact**: explicit shapes and links preserve higher-fidelity intent for human review and for AI-assisted engineering, slowing drift and informal lossiness when decisions live only in narrative. Machine-readable discovery outputs and **Architecture IR** supply shared, queryable context for review and automation—grounding work in repository facts rather than inferring structure from incomplete prose; that reduces (it does not remove) the risk of speculative reasoning when assistants and engineers reason about the system at scale. Derived indexes, registries, and rendered documentation keep those views reproducible as the codebase matures. For how contracts split across related repositories, see [Who Owns What](#who-owns-what) below.
|
|
6
|
+
|
|
7
|
+
## Authoring boundary and AI orientation
|
|
8
|
+
|
|
9
|
+
`adr-architecture-kit` does not turn freeform conversation into architectural decisions by itself. It expects intent already expressed in **structured** inputs (canonical ADR YAML and related artifacts), then **validates** and **materializes** them into repository-native outputs—deterministic discovery bundles, rendered views, and ADR-derived Architecture IR aligned with **`ste-spec`**.
|
|
10
|
+
|
|
11
|
+
There is a deliberate **generation gap** between informal reasoning (including model-assisted chat) and **schema-conformant, placement-correct** STE ADRs. This repository mitigates that gap in two ways: structured drafts are checked by parsers and validators; and **[`SYSTEM-OVERVIEW.md`](SYSTEM-OVERVIEW.md)**—a **generated, AI-first orientation** artifact—gives assistants a canonical discovery path (authority order, scope rules, CLI and generator entry points, placement conventions) before they author or change ADRs. **`SYSTEM-OVERVIEW.md`** does not replace **`ste-spec`** doctrine; it orients work **in this repository** (regenerate with `adr generate-system-overview`; do not hand-edit the committed file).
|
|
12
|
+
|
|
13
|
+
**AI-assisted IDEs and coding agents** can be **guided with repository instructions and examples** to **draft** structured ADR inputs; this kit remains the **schema, validation, and materialization** boundary between accepted structured intent and committed canonical artifacts.
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
Requires **Python 3.11+**. Installs the `adr` CLI and the `adr_kit` package.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install adr-architecture-kit
|
|
21
|
+
|
|
22
|
+
adr --help
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
`adr --help` works from any directory after install. `adr validate` and `adr generate-architecture-index` are project-scoped commands: they require a resolvable project tree with `adrs/` and the expected project markers, or an explicit `--scope PATH`.
|
|
26
|
+
|
|
27
|
+
For a first end-to-end run, use a repository checkout with `adrs/` populated and follow [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md). The public example under [`examples/public-v1/`](examples/public-v1/) is included in that walkthrough.
|
|
28
|
+
|
|
29
|
+
## Minimal Example
|
|
30
|
+
|
|
31
|
+
A standalone public example lives under [`examples/public-v1/`](examples/public-v1/): one `ADR-L`, one `ADR-PS`, one `ADR-PC`, a minimal normalized discovery bundle, and an ADR-derived Architecture IR fragment file. The walkthrough links each asset.
|
|
32
|
+
|
|
33
|
+
Representative logical ADR source (trimmed from the public example):
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
# adrs/logical/ADR-L-0001-public-example-logical.yaml (excerpt)
|
|
37
|
+
schema_version: "1.0"
|
|
38
|
+
adr_type: logical
|
|
39
|
+
id: ADR-L-0001
|
|
40
|
+
title: "Public Example Logical ADR"
|
|
41
|
+
status: accepted
|
|
42
|
+
capabilities:
|
|
43
|
+
- id: CAP-0001
|
|
44
|
+
name: Public Repository Onboarding
|
|
45
|
+
description: Explain the minimal public ADR to IR flow.
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
From a checkout with `adrs/` populated, `adr generate-architecture-index` (with other generators as needed) materializes discovery outputs such as `adrs/index/architecture-index.yaml` and companion registries under `adrs/index/`.
|
|
49
|
+
|
|
50
|
+
## What It Does
|
|
51
|
+
|
|
52
|
+
- ADR schemas and frontmatter rules for canonical ADR artifacts
|
|
53
|
+
- Pydantic models, parsing, and validation for ADR and invariant sources
|
|
54
|
+
- Authoring-time normalization and deterministic repository discovery outputs
|
|
55
|
+
- Python API over compiled repository bundles (`ArchitectureRepository`, `NormalizedArchitectureModel`)
|
|
56
|
+
- ADR-to-Architecture-IR adapter logic for the public **`ste-spec`** contract
|
|
57
|
+
|
|
58
|
+
## Core Workflow
|
|
59
|
+
|
|
60
|
+
```text
|
|
61
|
+
ADR sources and invariants
|
|
62
|
+
-> parse and validate
|
|
63
|
+
-> normalize into repository discovery outputs
|
|
64
|
+
-> expose repository-facing semantic boundary
|
|
65
|
+
-> optionally emit ADR-derived Architecture IR fragments
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Repository-local discovery outputs (derived; do not hand-edit adrs/index/* or manifest)
|
|
70
|
+
adr generate-architecture-index
|
|
71
|
+
adr generate-manifest
|
|
72
|
+
adr generate-rendered-docs
|
|
73
|
+
|
|
74
|
+
# Example publication path for ADR-derived IR fragments (schema: ste-spec; test mirror under contracts/)
|
|
75
|
+
adr build-ir-fragments
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Key Concepts
|
|
79
|
+
|
|
80
|
+
**Three data layers** — each has a distinct role:
|
|
81
|
+
|
|
82
|
+
1. **ADR source model** — Canonical YAML and invariants under `adrs/` are the authoring source of truth for this repository.
|
|
83
|
+
2. **Repository-normalized discovery bundle** — Deterministic outputs such as `adrs/index/*.yaml` and `adrs/manifest.yaml` for repo-local discovery; separate from the cross-repo Architecture IR contract. For the supported Python API, use `ArchitectureRepository` and `NormalizedArchitectureModel` (`ArchModel` is internal to the compiler, not a stable public interface).
|
|
84
|
+
3. **Public Architecture IR** — Defined in **`ste-spec`**; this kit emits conforming ADR-derived records without redefining that schema.
|
|
85
|
+
|
|
86
|
+
More detail: [architecture-ir-overview.md](docs/architecture-ir-overview.md).
|
|
87
|
+
|
|
88
|
+
**ADR taxonomy (quick reference)**
|
|
89
|
+
|
|
90
|
+
| Prefix | Role | Stability |
|
|
91
|
+
|--------|------|-------------|
|
|
92
|
+
| **ADR-L** | Conceptual architecture: capabilities, boundaries, contracts, invariants, decisions | Stable public v1 |
|
|
93
|
+
| **ADR-PS** | Physical-system: topology, integration patterns, high-level technology posture | Stable public v1 |
|
|
94
|
+
| **ADR-PC** | Physical-component: implementation-ready design, interfaces, identifiers | Stable public v1 |
|
|
95
|
+
| **ADR-P** | Legacy broad physical ADR | Compatibility; not preferred for new work |
|
|
96
|
+
| **ADR-V** | Vision / future-state exploration | Experimental; not stable v1 contract |
|
|
97
|
+
|
|
98
|
+
Full model: [adr-type-model.md](docs/adr-type-model.md).
|
|
99
|
+
|
|
100
|
+
## Who Owns What
|
|
101
|
+
|
|
102
|
+
- **`ste-handbook`** — Explanatory model, theory, teaching.
|
|
103
|
+
- **`ste-spec`** — Contracts, schemas, and the public cross-repo Architecture IR contract.
|
|
104
|
+
- **`adr-architecture-kit`** (this repo) — ADR encoding, authoring validation, repository discovery outputs, and IR adapter logic into **`ste-spec`**.
|
|
105
|
+
- **`ste-runtime`** — Runtime observation, evidence extraction, composition.
|
|
106
|
+
- **`ste-kernel`** — Admission and governance over compiled inputs.
|
|
107
|
+
|
|
108
|
+
Full split: [authority-boundary.md](docs/authority-boundary.md).
|
|
109
|
+
|
|
110
|
+
## Stability
|
|
111
|
+
|
|
112
|
+
This project is **pre-1.0 (Alpha)** on PyPI; surfaces may evolve until a **1.0** commitment. Trove classifiers match that posture.
|
|
113
|
+
|
|
114
|
+
- **Stable v1** — ADR v1.0 schemas, parser/validator behavior, discovery bundle role, supported Python API, IR adapter semantics with **`ste-spec`** owning the Architecture IR schema contract.
|
|
115
|
+
- **Draft** — v1.1 and evolving registry/IR adapter details; consume with care.
|
|
116
|
+
- **Experimental** — Vision ADRs, migrators, workspace boot examples; not a basis for long-term external dependencies.
|
|
117
|
+
|
|
118
|
+
Full breakdown: [public-surface-and-stability.md](docs/public-surface-and-stability.md).
|
|
119
|
+
|
|
120
|
+
## Documentation
|
|
121
|
+
|
|
122
|
+
### Public documentation
|
|
123
|
+
|
|
124
|
+
| Document | Description |
|
|
125
|
+
|----------|-------------|
|
|
126
|
+
| [authority-boundary.md](docs/authority-boundary.md) | Who owns what across `ste-handbook`, `ste-spec`, this kit, `ste-runtime`, and `ste-kernel` |
|
|
127
|
+
| [adr-type-model.md](docs/adr-type-model.md) | ADR taxonomy: `ADR-L`, `ADR-PS`, `ADR-PC`, legacy `ADR-P`, experimental `ADR-V` |
|
|
128
|
+
| [architecture-ir-overview.md](docs/architecture-ir-overview.md) | Three layers: ADR sources, repository discovery bundle, public Architecture IR |
|
|
129
|
+
| [public-surface-and-stability.md](docs/public-surface-and-stability.md) | Stable v1 vs draft vs experimental surfaces |
|
|
130
|
+
| [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md) | End-to-end flow with [`examples/public-v1/`](examples/public-v1/) |
|
|
131
|
+
|
|
132
|
+
### Contributor guides
|
|
133
|
+
|
|
134
|
+
| Document | Description |
|
|
135
|
+
|----------|-------------|
|
|
136
|
+
| [SYSTEM-OVERVIEW.md](SYSTEM-OVERVIEW.md) | Generated AI-first repo orientation (authority, workflows, CLI, generators); read before large changes |
|
|
137
|
+
| [contributors/tdd-workflow.md](docs/contributors/tdd-workflow.md) | TDD workflow for this codebase |
|
|
138
|
+
| [contributors/logical-adr-guide.md](docs/contributors/logical-adr-guide.md) | Writing logical ADRs |
|
|
139
|
+
| [contributors/physical-adr-guide.md](docs/contributors/physical-adr-guide.md) | Physical ADR families (`ADR-PS`, `ADR-PC`, legacy `ADR-P`) |
|
|
140
|
+
| [contributors/schema-guide.md](docs/contributors/schema-guide.md) | Long-form schema and validation notes |
|
|
141
|
+
| [contributors/placement-convention.md](docs/contributors/placement-convention.md) | Placement rules for ADRs, manifest, and index paths |
|
|
142
|
+
|
|
143
|
+
Also [CONTRIBUTING.md](CONTRIBUTING.md) and [schema/v1.0/README.md](schema/v1.0/README.md). **Where to start:** ADR authors — [adr-type-model.md](docs/adr-type-model.md), [schema/v1.0/README.md](schema/v1.0/README.md), [walkthrough-adr-to-ir.md](docs/walkthrough-adr-to-ir.md). Python or cross-repo IR consumers — [architecture-ir-overview.md](docs/architecture-ir-overview.md), [authority-boundary.md](docs/authority-boundary.md); code entry point [`architecture_repository.py`](src/adr_kit/repository/architecture_repository.py). Curated doc index: [docs/README.md](docs/README.md).
|
|
144
|
+
|
|
145
|
+
## Contributing
|
|
146
|
+
|
|
147
|
+
Contributions use **Test-Driven Development** (see [`PROJECT.yaml`](PROJECT.yaml), `ADR-L-0003`). Setup, quality gates, schema parity, governance, and PR flow are in [CONTRIBUTING.md](CONTRIBUTING.md). Authoring and placement guides live under [docs/contributors/](docs/contributors/). For authoring-time vs runtime artifact boundaries, see [AUTHORING-SYSTEM.md](AUTHORING-SYSTEM.md).
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "adr-architecture-kit"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Authoring-time STE toolkit: validate structured ADR YAML, emit discovery outputs and Architecture IR fragments (ste-spec). Pre-1.0 Alpha."
|
|
5
|
+
authors = [{name = "Erik Gallmann"}]
|
|
6
|
+
maintainers = [{name = "Erik Gallmann"}]
|
|
7
|
+
license = {text = "Apache-2.0"}
|
|
8
|
+
requires-python = ">=3.11"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
keywords = ["architecture", "adr", "ste", "decision-records", "governance", "architecture-decision-records"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"License :: OSI Approved :: Apache Software License",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Topic :: Software Development :: Documentation",
|
|
19
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
20
|
+
"Typing :: Typed",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
dependencies = [
|
|
24
|
+
"pydantic>=2.0",
|
|
25
|
+
"pyyaml>=6.0",
|
|
26
|
+
"jsonschema>=4.0",
|
|
27
|
+
"jinja2>=3.1",
|
|
28
|
+
"click>=8.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
dev = [
|
|
33
|
+
"pytest>=7.0",
|
|
34
|
+
"pytest-cov>=4.0",
|
|
35
|
+
"black>=23.0",
|
|
36
|
+
"ruff>=0.1",
|
|
37
|
+
"mypy>=1.0",
|
|
38
|
+
"pip-audit>=2.7",
|
|
39
|
+
"build>=1.0",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[project.urls]
|
|
43
|
+
Homepage = "https://github.com/egallmann/adr-architecture-kit"
|
|
44
|
+
Repository = "https://github.com/egallmann/adr-architecture-kit"
|
|
45
|
+
|
|
46
|
+
[project.scripts]
|
|
47
|
+
adr = "adr_kit.cli.main:cli"
|
|
48
|
+
|
|
49
|
+
[build-system]
|
|
50
|
+
requires = ["setuptools>=65.0", "wheel"]
|
|
51
|
+
build-backend = "setuptools.build_meta"
|
|
52
|
+
|
|
53
|
+
[tool.setuptools]
|
|
54
|
+
license-files = ["LICENSE"]
|
|
55
|
+
|
|
56
|
+
[tool.setuptools.packages.find]
|
|
57
|
+
where = ["src"]
|
|
58
|
+
|
|
59
|
+
[tool.setuptools.package-data]
|
|
60
|
+
"adr_kit.schema.v1_0" = ["*.json"]
|
|
61
|
+
"adr_kit.schema.v1_1" = ["*.json"]
|
|
62
|
+
"adr_kit.templates" = ["*.jinja2"]
|
|
63
|
+
|
|
64
|
+
[tool.black]
|
|
65
|
+
line-length = 100
|
|
66
|
+
target-version = ['py311']
|
|
67
|
+
|
|
68
|
+
[tool.ruff]
|
|
69
|
+
line-length = 100
|
|
70
|
+
target-version = "py311"
|
|
71
|
+
|
|
72
|
+
[tool.mypy]
|
|
73
|
+
python_version = "3.11"
|
|
74
|
+
strict = true
|
|
75
|
+
warn_return_any = true
|
|
76
|
+
warn_unused_configs = true
|
|
77
|
+
|
|
78
|
+
[tool.pytest.ini_options]
|
|
79
|
+
testpaths = ["tests"]
|
|
80
|
+
python_files = "test_*.py"
|
|
81
|
+
python_functions = "test_*"
|