specadia 0.2.7__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.
- specadia-0.2.7/CODE_OF_CONDUCT.md +22 -0
- specadia-0.2.7/CONTRIBUTING.md +85 -0
- specadia-0.2.7/LICENSE +201 -0
- specadia-0.2.7/MANIFEST.in +25 -0
- specadia-0.2.7/PKG-INFO +264 -0
- specadia-0.2.7/README.md +200 -0
- specadia-0.2.7/SECURITY.md +15 -0
- specadia-0.2.7/pyproject.toml +146 -0
- specadia-0.2.7/setup.cfg +4 -0
- specadia-0.2.7/src/agents/__init__.py +22 -0
- specadia-0.2.7/src/agents/agent_base.py +58 -0
- specadia-0.2.7/src/agents/agent_callbacks.py +123 -0
- specadia-0.2.7/src/agents/agent_util.py +170 -0
- specadia-0.2.7/src/agents/local_providers.py +44 -0
- specadia-0.2.7/src/agents/model_base.py +15 -0
- specadia-0.2.7/src/agents/prompt_safety.py +9 -0
- specadia-0.2.7/src/contracts/__init__.py +7 -0
- specadia-0.2.7/src/contracts/cli.py +352 -0
- specadia-0.2.7/src/contracts/context.py +120 -0
- specadia-0.2.7/src/contracts/generator.py +190 -0
- specadia-0.2.7/src/contracts/models.py +50 -0
- specadia-0.2.7/src/contracts/prompt_safety.py +56 -0
- specadia-0.2.7/src/contracts/requirement_ids.py +16 -0
- specadia-0.2.7/src/contracts/session_store.py +100 -0
- specadia-0.2.7/src/contracts/specadia_pipeline.py +238 -0
- specadia-0.2.7/src/contracts/traceability.py +118 -0
- specadia-0.2.7/src/contracts/validation.py +166 -0
- specadia-0.2.7/src/contracts/workflow.py +409 -0
- specadia-0.2.7/src/contracts/writer.py +49 -0
- specadia-0.2.7/src/design/__init__.py +7 -0
- specadia-0.2.7/src/design/design_agent/__init__.py +5 -0
- specadia-0.2.7/src/design/design_agent/design_wrapper.py +43 -0
- specadia-0.2.7/src/design/designer/__init__.py +6 -0
- specadia-0.2.7/src/design/designer/designer_agent.py +61 -0
- specadia-0.2.7/src/design/designer/designer_models.py +21 -0
- specadia-0.2.7/src/design/documenter/__init__.py +5 -0
- specadia-0.2.7/src/design/documenter/documenter_agent.py +51 -0
- specadia-0.2.7/src/diagnostics/__init__.py +7 -0
- specadia-0.2.7/src/diagnostics/doctor.py +221 -0
- specadia-0.2.7/src/orchestrator/__init__.py +23 -0
- specadia-0.2.7/src/orchestrator/constants.py +4 -0
- specadia-0.2.7/src/orchestrator/orchestrator.py +326 -0
- specadia-0.2.7/src/orchestrator/plugins.py +59 -0
- specadia-0.2.7/src/orchestrator/read_wrapper.py +88 -0
- specadia-0.2.7/src/orchestrator/session_manager.py +57 -0
- specadia-0.2.7/src/prompt_templates/__init__.py +21 -0
- specadia-0.2.7/src/prompt_templates/analyzer_prompt.py +36 -0
- specadia-0.2.7/src/prompt_templates/collector_prompt.py +48 -0
- specadia-0.2.7/src/prompt_templates/design_prompt.py +17 -0
- specadia-0.2.7/src/prompt_templates/designer_prompt.py +46 -0
- specadia-0.2.7/src/prompt_templates/documenter_prompt.py +16 -0
- specadia-0.2.7/src/prompt_templates/kb/design_kb.py +60 -0
- specadia-0.2.7/src/prompt_templates/kb/requirements_kb.py +40 -0
- specadia-0.2.7/src/prompt_templates/re_prompt.py +10 -0
- specadia-0.2.7/src/prompt_templates/single_prompt.py +121 -0
- specadia-0.2.7/src/prompt_templates/specifier_prompt.py +32 -0
- specadia-0.2.7/src/prompt_templates/templates/design_template.py +25 -0
- specadia-0.2.7/src/prompt_templates/templates/srs_template.py +83 -0
- specadia-0.2.7/src/rag/__init__.py +1 -0
- specadia-0.2.7/src/rag/cli.py +146 -0
- specadia-0.2.7/src/rag/knowledge_base.py +570 -0
- specadia-0.2.7/src/requirement/__init__.py +8 -0
- specadia-0.2.7/src/requirement/analyzer/__init__.py +14 -0
- specadia-0.2.7/src/requirement/analyzer/analyzer_agent.py +55 -0
- specadia-0.2.7/src/requirement/analyzer/analyzer_models.py +30 -0
- specadia-0.2.7/src/requirement/collector/__init__.py +14 -0
- specadia-0.2.7/src/requirement/collector/collector_agent.py +74 -0
- specadia-0.2.7/src/requirement/collector/collector_models.py +11 -0
- specadia-0.2.7/src/requirement/re_agent/__init__.py +7 -0
- specadia-0.2.7/src/requirement/re_agent/requirements_wrapper.py +57 -0
- specadia-0.2.7/src/requirement/specifier/__init__.py +5 -0
- specadia-0.2.7/src/requirement/specifier/specifier_agent.py +52 -0
- specadia-0.2.7/src/requirement/specifier/specifier_models.py +23 -0
- specadia-0.2.7/src/single/__init__.py +5 -0
- specadia-0.2.7/src/single/single_agent.py +58 -0
- specadia-0.2.7/src/specadia/__init__.py +3 -0
- specadia-0.2.7/src/specadia/_constants.py +3 -0
- specadia-0.2.7/src/specadia/cli.py +28 -0
- specadia-0.2.7/src/specadia/contracts/__init__.py +22 -0
- specadia-0.2.7/src/specadia/contracts/cli.py +8 -0
- specadia-0.2.7/src/specadia/diagnostics/__init__.py +1 -0
- specadia-0.2.7/src/specadia/diagnostics/doctor.py +5 -0
- specadia-0.2.7/src/specadia/providers.py +61 -0
- specadia-0.2.7/src/specadia.egg-info/PKG-INFO +264 -0
- specadia-0.2.7/src/specadia.egg-info/SOURCES.txt +93 -0
- specadia-0.2.7/src/specadia.egg-info/dependency_links.txt +1 -0
- specadia-0.2.7/src/specadia.egg-info/entry_points.txt +4 -0
- specadia-0.2.7/src/specadia.egg-info/requires.txt +44 -0
- specadia-0.2.7/src/specadia.egg-info/top_level.txt +1 -0
- specadia-0.2.7/src/tools/__init__.py +5 -0
- specadia-0.2.7/src/tools/constants.py +13 -0
- specadia-0.2.7/src/tools/save_to_file_tool.py +59 -0
- specadia-0.2.7/src/utils/__init__.py +7 -0
- specadia-0.2.7/src/utils/constants.py +40 -0
- specadia-0.2.7/src/utils/logger.py +47 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our pledge
|
|
4
|
+
|
|
5
|
+
We pledge to make participation in the Specadia community respectful and harassment-free,
|
|
6
|
+
regardless of identity, background, experience, or viewpoint.
|
|
7
|
+
|
|
8
|
+
## Expected behavior
|
|
9
|
+
|
|
10
|
+
- Be constructive, specific, and respectful.
|
|
11
|
+
- Assume good intent while accepting correction.
|
|
12
|
+
- Respect privacy and do not publish credentials or private design artifacts.
|
|
13
|
+
- Focus technical disagreement on evidence and project goals.
|
|
14
|
+
|
|
15
|
+
Harassment, threats, discrimination, sustained disruption, and publication of another person's
|
|
16
|
+
private information are unacceptable.
|
|
17
|
+
|
|
18
|
+
## Enforcement
|
|
19
|
+
|
|
20
|
+
Report conduct concerns privately to the repository owner through a channel listed on their GitHub
|
|
21
|
+
profile. Project maintainers may edit or remove contributions and may temporarily or permanently
|
|
22
|
+
restrict participation when necessary. Reports will be handled as confidentially as practical.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome through GitHub issues and pull requests.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
Use Python 3.12 or 3.13 and work in a virtual environment:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
uv python install 3.13
|
|
11
|
+
uv sync --all-extras
|
|
12
|
+
source .venv/bin/activate
|
|
13
|
+
uv run python -m pytest -q
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
A conventional venv fallback is also supported:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
python3.13 -m venv .venv
|
|
20
|
+
source .venv/bin/activate
|
|
21
|
+
python -m pip install -e ".[full,test,dev]"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Install the `full`, `test`, and `dev` extras (or `--all-extras`) so that `pytest`,
|
|
25
|
+
`build`, and `twine` are all present before running tests or release checks.
|
|
26
|
+
|
|
27
|
+
`.python-version` selects a supported minor (3.12 or 3.13), not an exact patch, so pyenv/asdf/uv
|
|
28
|
+
resolve any installed patch of that minor.
|
|
29
|
+
|
|
30
|
+
Keep the public Python distribution dependency-light and under the `specadia` namespace. Harness
|
|
31
|
+
adapters should remain thin: shared contract behavior belongs in the Python engine.
|
|
32
|
+
|
|
33
|
+
Before opening a pull request, run the relevant tests and describe the input-to-output behavior
|
|
34
|
+
that changed. Do not include credentials, generated run logs, local indexes, or environment files.
|
|
35
|
+
|
|
36
|
+
## Release checks
|
|
37
|
+
|
|
38
|
+
Maintainers should build from a clean checkout and inspect the artifacts before publishing:
|
|
39
|
+
|
|
40
|
+
The `test`/`dev`/`full` extras (or `--all-extras`) must be installed first so that
|
|
41
|
+
`build` and `twine` exist. With those extras present, run from the managed
|
|
42
|
+
interpreter:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
uv run python -m build
|
|
46
|
+
uv run python -m twine check dist/*
|
|
47
|
+
uv run python scripts/audit_distribution.py dist/*.whl
|
|
48
|
+
uv lock --check
|
|
49
|
+
npm pack --dry-run
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
As part of the clean-core-wheel release checks, also verify the missing-extra hint path for
|
|
53
|
+
`from-intent`: in a venv with only the core wheel installed (no `google-adk`), run
|
|
54
|
+
`specadia-contract from-intent "Build a todo app"` and confirm it exits non-zero with a single
|
|
55
|
+
clear `specadia[full]` install message and no traceback.
|
|
56
|
+
|
|
57
|
+
Publishing, tagging, and creating a GitHub release are separate maintainer actions and are not
|
|
58
|
+
performed by CI.
|
|
59
|
+
|
|
60
|
+
### Publishing to PyPI
|
|
61
|
+
|
|
62
|
+
Publishing is performed by the `.github/workflows/publish.yml` trusted-publishing workflow. It runs
|
|
63
|
+
automatically when a GitHub Release is published for an existing annotated tag, and can be run
|
|
64
|
+
manually to recover a missed release event. It checks out the exact release tag and verifies it
|
|
65
|
+
equals `v` plus the `pyproject.toml` project version before building. Publishing uses PyPI OIDC
|
|
66
|
+
trusted publishing, so no PyPI token or secret is stored or needed.
|
|
67
|
+
|
|
68
|
+
Normal path: publish a GitHub Release for an existing annotated `vMAJOR.MINOR.PATCH` tag (for
|
|
69
|
+
example `v0.2.7`); the workflow runs automatically and publishes to https://pypi.org/p/specadia.
|
|
70
|
+
Do not move or recreate the tag after the release is created.
|
|
71
|
+
|
|
72
|
+
Recovering a missed release event (for example if the Release was created before `publish.yml`
|
|
73
|
+
reached `main`, so no workflow run fired):
|
|
74
|
+
|
|
75
|
+
1. On GitHub, open **Actions → Publish to PyPI → Run workflow**.
|
|
76
|
+
2. Leave the **Branch** as `main`.
|
|
77
|
+
3. Enter the exact existing release tag (for example `v0.2.7`) in the **tag** field.
|
|
78
|
+
4. If a `pypi` environment approval is configured, approve it when prompted.
|
|
79
|
+
5. Click **Run workflow** and watch the run until it completes.
|
|
80
|
+
|
|
81
|
+
The manual dispatch builds only from the existing annotated release tag you specify. It does not
|
|
82
|
+
move or recreate the tag or the GitHub Release, does not bump the package version, and does not run
|
|
83
|
+
for arbitrary branches or commits (the input must be an existing annotated `vMAJOR.MINOR.PATCH` tag
|
|
84
|
+
whose commit's `pyproject.toml` version matches). After the run, verify the distribution on
|
|
85
|
+
https://pypi.org/p/specadia.
|
specadia-0.2.7/LICENSE
ADDED
|
@@ -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 2025 NU Academics
|
|
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,25 @@
|
|
|
1
|
+
include LICENSE
|
|
2
|
+
include README.md
|
|
3
|
+
include CONTRIBUTING.md
|
|
4
|
+
include SECURITY.md
|
|
5
|
+
include CODE_OF_CONDUCT.md
|
|
6
|
+
recursive-include src *.py
|
|
7
|
+
prune .agents
|
|
8
|
+
prune .claude-plugin
|
|
9
|
+
prune .cline
|
|
10
|
+
prune .devin-plugin
|
|
11
|
+
prune .grok-plugin
|
|
12
|
+
prune .kimi-plugin
|
|
13
|
+
prune .opencode
|
|
14
|
+
prune .pi
|
|
15
|
+
prune plugins
|
|
16
|
+
prune scripts
|
|
17
|
+
prune skills
|
|
18
|
+
prune runs
|
|
19
|
+
prune tests
|
|
20
|
+
exclude package.json
|
|
21
|
+
exclude plugin.json
|
|
22
|
+
exclude src/__init__.py
|
|
23
|
+
exclude src/main.py
|
|
24
|
+
global-exclude .DS_Store
|
|
25
|
+
global-exclude *.py[cod]
|
specadia-0.2.7/PKG-INFO
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: specadia
|
|
3
|
+
Version: 0.2.7
|
|
4
|
+
Summary: Convert READ-MAS requirements and designs into coding-agent contracts and harness adapters
|
|
5
|
+
Author: Mesfin Tibebu
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/mtibebu/specadia
|
|
8
|
+
Project-URL: Documentation, https://github.com/mtibebu/specadia#readme
|
|
9
|
+
Project-URL: Issues, https://github.com/mtibebu/specadia/issues
|
|
10
|
+
Project-URL: Repository, https://github.com/mtibebu/specadia.git
|
|
11
|
+
Project-URL: README-MAS, https://github.com/NU-Academics/read-mas
|
|
12
|
+
Keywords: coding-agents,requirements,software-design,specifications
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
21
|
+
Requires-Python: <3.14,>=3.12
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Requires-Dist: pydantic>=2.5.0
|
|
25
|
+
Requires-Dist: rich>=13.7.0
|
|
26
|
+
Requires-Dist: typer>=0.20.0
|
|
27
|
+
Provides-Extra: agents
|
|
28
|
+
Requires-Dist: aiohttp<4,>=3.13.0; extra == "agents"
|
|
29
|
+
Requires-Dist: anthropic<1,>=0.70.0; extra == "agents"
|
|
30
|
+
Requires-Dist: google-adk<3,>=2.5.0; extra == "agents"
|
|
31
|
+
Requires-Dist: google-genai<3,>=1.63.0; extra == "agents"
|
|
32
|
+
Requires-Dist: litellm<1.85,>=1.84.0; extra == "agents"
|
|
33
|
+
Requires-Dist: loguru<1,>=0.7.0; extra == "agents"
|
|
34
|
+
Requires-Dist: ollama<1,>=0.6.1; extra == "agents"
|
|
35
|
+
Requires-Dist: openai<3,>=1.109.0; extra == "agents"
|
|
36
|
+
Requires-Dist: python-dotenv<2,>=1.0.0; extra == "agents"
|
|
37
|
+
Requires-Dist: requests<3,>=2.32.4; extra == "agents"
|
|
38
|
+
Provides-Extra: rag
|
|
39
|
+
Requires-Dist: faiss-cpu<2,>=1.13.2; extra == "rag"
|
|
40
|
+
Requires-Dist: numpy<3,>=2.0.0; extra == "rag"
|
|
41
|
+
Requires-Dist: pypdf<7,>=6.3.0; extra == "rag"
|
|
42
|
+
Provides-Extra: full
|
|
43
|
+
Requires-Dist: aiohttp<4,>=3.13.0; extra == "full"
|
|
44
|
+
Requires-Dist: anthropic<1,>=0.70.0; extra == "full"
|
|
45
|
+
Requires-Dist: faiss-cpu<2,>=1.13.2; extra == "full"
|
|
46
|
+
Requires-Dist: google-adk<3,>=2.5.0; extra == "full"
|
|
47
|
+
Requires-Dist: google-genai<3,>=1.63.0; extra == "full"
|
|
48
|
+
Requires-Dist: litellm<1.85,>=1.84.0; extra == "full"
|
|
49
|
+
Requires-Dist: loguru<1,>=0.7.0; extra == "full"
|
|
50
|
+
Requires-Dist: numpy<3,>=2.0.0; extra == "full"
|
|
51
|
+
Requires-Dist: ollama<1,>=0.6.1; extra == "full"
|
|
52
|
+
Requires-Dist: openai<3,>=1.109.0; extra == "full"
|
|
53
|
+
Requires-Dist: pypdf<7,>=6.3.0; extra == "full"
|
|
54
|
+
Requires-Dist: python-dotenv<2,>=1.0.0; extra == "full"
|
|
55
|
+
Requires-Dist: requests<3,>=2.32.4; extra == "full"
|
|
56
|
+
Provides-Extra: dev
|
|
57
|
+
Requires-Dist: build>=1.2.2; extra == "dev"
|
|
58
|
+
Requires-Dist: twine>=6.0.0; extra == "dev"
|
|
59
|
+
Provides-Extra: test
|
|
60
|
+
Requires-Dist: pytest>=7.4.0; extra == "test"
|
|
61
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "test"
|
|
62
|
+
Requires-Dist: pytest-mock>=1.17.0; extra == "test"
|
|
63
|
+
Dynamic: license-file
|
|
64
|
+
|
|
65
|
+
# Specadia
|
|
66
|
+
|
|
67
|
+
**From approved design to implementation-ready coding-agent contracts.**
|
|
68
|
+
|
|
69
|
+
Specadia is the public successor companion to
|
|
70
|
+
[README-MAS](https://github.com/NU-Academics/read-mas), the predecessor (upstream)
|
|
71
|
+
requirements-and-design system. READ-MAS produces requirements and system-design artifacts;
|
|
72
|
+
Specadia converts approved artifacts into deterministic, traceable contracts for coding-agent
|
|
73
|
+
harnesses and supplies thin plugin or skill adapters for those harnesses.
|
|
74
|
+
|
|
75
|
+
Specadia does not start an implementation agent and does not claim that generated code satisfies
|
|
76
|
+
the design. It prepares the handoff: harness instructions, source hashes, and requirement-level
|
|
77
|
+
traceability that reviewers can inspect before implementation begins.
|
|
78
|
+
|
|
79
|
+
## What it produces
|
|
80
|
+
|
|
81
|
+
Given an SRS Markdown file and an optional design Markdown file, Specadia emits:
|
|
82
|
+
|
|
83
|
+
- `AGENTS.md` for Codex;
|
|
84
|
+
- `CLAUDE.md` for Claude Code;
|
|
85
|
+
- `AGENT_CONTRACT.md` for a generic coding harness;
|
|
86
|
+
- `contract-manifest.json` with source and output SHA-256 hashes.
|
|
87
|
+
|
|
88
|
+
The repository also contains adapters for Claude Code, Codex, Cursor, Cline, Kimi, Grok, Devin,
|
|
89
|
+
GitHub Copilot, Factory Droid, Qwen Code, OpenCode, Pi, and Antigravity. The Python CLI remains the
|
|
90
|
+
canonical contract engine; adapters call or instruct that engine rather than duplicating it.
|
|
91
|
+
|
|
92
|
+
## Install
|
|
93
|
+
|
|
94
|
+
Specadia supports Python 3.12 and 3.13.
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
python -m pip install specadia
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
For a source checkout:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
git clone https://github.com/mtibebu/specadia.git
|
|
104
|
+
cd specadia
|
|
105
|
+
uv python install 3.13
|
|
106
|
+
uv sync --all-extras
|
|
107
|
+
source .venv/bin/activate
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
`--all-extras` installs the `full`, `test`, and `dev` extras together. A bare
|
|
111
|
+
`python3.13` / `python -m pytest` / `python -m build` does **not** include `pytest`,
|
|
112
|
+
`build`, or `twine`, because those live only in the `test` and `dev` extras; you
|
|
113
|
+
must install the extras first (or use `uv run` as shown under
|
|
114
|
+
[Development](#development)).
|
|
115
|
+
|
|
116
|
+
A conventional venv fallback is also supported:
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
python3.13 -m venv .venv
|
|
120
|
+
source .venv/bin/activate
|
|
121
|
+
python -m pip install -e ".[full,test,dev]"
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Use `.venv/bin/python` (or the activated env) consistently for all subsequent
|
|
125
|
+
`python` commands so `pytest`, `build`, and `twine` resolve from the same
|
|
126
|
+
environment.
|
|
127
|
+
|
|
128
|
+
`.python-version` selects a supported minor (3.12 or 3.13), not an exact patch, so pyenv/asdf/uv
|
|
129
|
+
resolve any installed patch of that minor.
|
|
130
|
+
|
|
131
|
+
The core wheel intentionally has no Google ADK dependency. It installs only deterministic
|
|
132
|
+
contract generation and diagnostics. Produce or approve requirements and designs separately,
|
|
133
|
+
then pass those files to Specadia.
|
|
134
|
+
|
|
135
|
+
## Generate from natural-language intent
|
|
136
|
+
|
|
137
|
+
The `specadia-contract from-intent` command turns a natural-language product intent into an SRS
|
|
138
|
+
and system design through a human-in-the-loop (HITL) agent pipeline, then emits coding-agent
|
|
139
|
+
contracts from the approved artifacts. This path depends on the optional agent stack:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
python -m pip install "specadia[full]"
|
|
143
|
+
specadia-contract from-intent "Build a todo app" --harness codex
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
Progress is staged through Collector, Analyzer, Specifier, Designer, and Documenter agents, with
|
|
147
|
+
interactive approval/refinement at each quality gate. Saved HITL runs can be listed and resumed:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
specadia-contract runs --sessions-dir .specadia/sessions
|
|
151
|
+
specadia-contract from-intent "Build a todo app" --run-id todo --resume
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
The core wheel deliberately omits the agent stack, so `from-intent` is unavailable there. If a
|
|
155
|
+
core-only install (or the `.[test]` environment without `google-adk`) invokes `from-intent`, the
|
|
156
|
+
CLI fails cleanly with a single hint rather than a traceback:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
Natural-language intent-to-contract requires the agent extras. Install with: pip install "specadia[full]"
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
The deterministic `generate` and `runs` commands remain dependency-free and work in the core wheel.
|
|
163
|
+
|
|
164
|
+
## Generate a contract
|
|
165
|
+
|
|
166
|
+
The canonical contract-generation command is `specadia-contract generate`:
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
specadia-contract generate requirements.md \
|
|
170
|
+
--design design.md \
|
|
171
|
+
--harness codex \
|
|
172
|
+
--output-dir .specadia/contracts
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Generate several harness formats in one run:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
specadia-contract generate requirements.md \
|
|
179
|
+
--design design.md \
|
|
180
|
+
--harness codex \
|
|
181
|
+
--harness claude \
|
|
182
|
+
--harness generic
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
> Note: the primary CLI subcommand `specadia contract ...` is a retained alias that
|
|
186
|
+
> behaves identically to `specadia-contract generate ...`. Both resolve to the same
|
|
187
|
+
> `generate_contract` command and accept the same options.
|
|
188
|
+
|
|
189
|
+
Existing output files are preserved unless `--force` is supplied. Review generated instructions
|
|
190
|
+
before placing them at a target repository root. If a repository already has `AGENTS.md` or
|
|
191
|
+
`CLAUDE.md`, merge the instructions deliberately instead of overwriting project policy.
|
|
192
|
+
|
|
193
|
+
Useful checks:
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
specadia --version
|
|
197
|
+
specadia doctor --model ollama/qwen3 --no-network
|
|
198
|
+
specadia-contract --help
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Harness adapters
|
|
202
|
+
|
|
203
|
+
### Claude Code
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
claude plugin marketplace add https://github.com/mtibebu/specadia.git
|
|
207
|
+
claude plugin install specadia@specadia --scope user
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
Use `/specadia:specadia-contract` with existing requirements and design artifacts.
|
|
211
|
+
|
|
212
|
+
### Codex
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
codex plugin marketplace add https://github.com/mtibebu/specadia.git
|
|
216
|
+
codex plugin add specadia@personal
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Invoke `$specadia-plan` and provide the approved input artifact paths.
|
|
220
|
+
|
|
221
|
+
### Other adapters
|
|
222
|
+
|
|
223
|
+
Adapter manifests and skills live under [`plugins/`](plugins/) and the harness-specific hidden
|
|
224
|
+
directories at the repository root. Their installation formats differ, but they share the same
|
|
225
|
+
contract boundary: design artifacts in, reviewable harness instructions out.
|
|
226
|
+
|
|
227
|
+
Examples using repository coordinates:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
qwen extensions install mtibebu/specadia:specadia
|
|
231
|
+
pi install git:github.com/mtibebu/specadia
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Development
|
|
235
|
+
|
|
236
|
+
Prefer uv so every command runs against the same managed interpreter with the
|
|
237
|
+
full set of extras (`full`, `test`, and `dev` — including `build` and `twine`):
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
uv python install 3.13
|
|
241
|
+
uv sync --all-extras
|
|
242
|
+
uv run python -m pytest -q
|
|
243
|
+
uv run python -m build
|
|
244
|
+
uv run python -m twine check dist/*
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
If your shell does not expand `dist/*` (or no artifacts exist yet), run `uv run python -m build`
|
|
248
|
+
first, then pass the matched files explicitly, e.g.
|
|
249
|
+
`uv run python -m twine check dist/*` or `uv run python -m twine check $(ls dist | sed 's#^#dist/#')`.
|
|
250
|
+
|
|
251
|
+
The conventional venv equivalent is `python -m pip install -e ".[full,test,dev]"` followed by
|
|
252
|
+
`python -m pytest -q`, `python -m build`, and `python -m twine check dist/*` — the uv-first path
|
|
253
|
+
above is preferred and must include `build`/`twine` via `--all-extras`.
|
|
254
|
+
|
|
255
|
+
CI tests Python 3.12 and 3.13, builds both distribution formats, checks wheel contents against an
|
|
256
|
+
allowlist, and runs the installed core CLIs in an environment without Google ADK.
|
|
257
|
+
|
|
258
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution and release-check instructions,
|
|
259
|
+
[SECURITY.md](SECURITY.md) for private vulnerability reporting, and
|
|
260
|
+
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for community expectations.
|
|
261
|
+
|
|
262
|
+
## License
|
|
263
|
+
|
|
264
|
+
Apache License 2.0. See [LICENSE](LICENSE).
|